:root {
    --sd-bg: #050816;
    --sd-bg-soft: #0b1020;
    --sd-surface: #101729;
    --sd-surface-soft: #151f35;
    --sd-surface-glass: rgba(16, 23, 41, 0.72);

    --sd-text: #f5f7fb;
    --sd-muted: #9ba8c7;
    --sd-muted-strong: #c8d2ee;

    --sd-primary: #4f8cff;
    --sd-primary-soft: rgba(79, 140, 255, 0.18);
    --sd-accent: #22d3ee;
    --sd-accent-soft: rgba(34, 211, 238, 0.16);

    --sd-border: rgba(156, 178, 221, 0.18);
    --sd-border-strong: rgba(156, 178, 221, 0.32);

    --sd-radius-sm: 12px;
    --sd-radius-md: 20px;
    --sd-radius-lg: 32px;

    --sd-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
    --sd-shadow-glow: 0 0 80px rgba(79, 140, 255, 0.20);

    --sd-container: 1180px;
    --sd-font: Inter, Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 8%, var(--sd-primary-soft), transparent 30%),
        radial-gradient(circle at 86% 18%, var(--sd-accent-soft), transparent 28%),
        linear-gradient(180deg, var(--sd-bg), #070b18 48%, #050816);
    color: var(--sd-text);
    font-family: var(--sd-font);
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.sd-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sd-main {
    flex: 1;
}

.sd-container {
    width: min(var(--sd-container), calc(100% - 40px));
    margin: 0 auto;
}

/* Header */

.sd-header {
    position: sticky;
    top: 0;
    z-index: 70;
    border-bottom: 1px solid var(--sd-border);
    background: rgba(5, 8, 22, 0.76);
    backdrop-filter: blur(18px);
}

.sd-header-inner {
    width: min(1280px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.sd-brand,
.sd-brand-footer {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--sd-text);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.sd-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    background:
        radial-gradient(circle at 30% 30%, #ffffff, transparent 18%),
        linear-gradient(135deg, var(--sd-primary), var(--sd-accent));
    box-shadow: 0 0 38px var(--sd-primary-soft);
}

.sd-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--sd-muted);
    font-size: 14px;
    font-weight: 800;
}

.sd-nav a:hover {
    color: var(--sd-text);
}

.sd-nav-action {
    padding: 11px 16px;
    border: 1px solid var(--sd-border-strong);
    border-radius: 999px;
    color: var(--sd-muted-strong);
    font-size: 14px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.04);
}

.sd-nav-action:hover {
    color: var(--sd-text);
    border-color: var(--sd-primary);
}

/* Shared */

.sd-eyebrow,
.sd-resource-meta {
    margin: 0 0 14px;
    color: var(--sd-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sd-primary), var(--sd-accent));
    color: #ffffff;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 18px 46px var(--sd-primary-soft);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.sd-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.sd-button-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--sd-border-strong);
    color: var(--sd-muted-strong);
    box-shadow: none;
}

.sd-button-ghost:hover {
    color: var(--sd-text);
}

.sd-inline-link {
    color: var(--sd-accent);
    font-size: 14px;
    font-weight: 900;
}

.sd-inline-link:hover {
    text-decoration: underline;
}

.sd-section-header {
    max-width: 780px;
    margin-bottom: 34px;
}

.sd-section-header-row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.sd-section-header h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.07em;
}

/* Home hero */

.sd-product-hero {
    padding: 84px 0 40px;
}

.sd-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 46px;
    align-items: center;
}

.sd-hero-copy h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.94;
    letter-spacing: -0.08em;
}

.sd-hero-text {
    max-width: 680px;
    margin: 26px 0 0;
    color: var(--sd-muted);
    font-size: 20px;
}

.sd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

/* Dashboard mockup */

.sd-dashboard-card {
    overflow: hidden;
    border-radius: var(--sd-radius-lg);
    border: 1px solid var(--sd-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
        var(--sd-surface-glass);
    box-shadow: var(--sd-shadow), var(--sd-shadow-glow);
}

.sd-dashboard-top {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-bottom: 1px solid var(--sd-border);
    background: rgba(255, 255, 255, 0.04);
}

.sd-dashboard-top span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--sd-border-strong);
}

.sd-dashboard-screen {
    position: relative;
    padding: 18px;
}

.sd-dashboard-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid var(--sd-border);
    background: var(--sd-surface-soft);
    opacity: 0.9;
}

.sd-dashboard-overlay {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--sd-border);
    background: rgba(5, 8, 22, 0.72);
    backdrop-filter: blur(14px);
}

.sd-dashboard-overlay p {
    margin: 0 0 4px;
    color: var(--sd-muted);
    font-size: 12px;
    font-weight: 800;
}

.sd-dashboard-overlay strong {
    color: var(--sd-text);
}

.sd-pulse-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--sd-accent);
    box-shadow: 0 0 0 8px var(--sd-accent-soft);
}

.sd-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--sd-border);
}

.sd-metric-grid div {
    padding: 18px;
    border-right: 1px solid var(--sd-border);
}

.sd-metric-grid div:last-child {
    border-right: 0;
}

.sd-metric-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--sd-accent);
    font-weight: 900;
}

.sd-metric-grid p {
    margin: 0;
    color: var(--sd-muted);
    font-size: 13px;
    font-weight: 800;
}

/* Feature rail */

.sd-feature-rail {
    padding: 34px 0 66px;
}

.sd-rail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.sd-rail-card {
    min-height: 190px;
    padding: 24px;
    border-radius: var(--sd-radius-md);
    border: 1px solid var(--sd-border);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: var(--sd-shadow);
}

.sd-rail-card span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--sd-accent);
    font-weight: 900;
}

.sd-rail-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--sd-text);
    font-size: 20px;
}

.sd-rail-card p {
    margin: 0;
    color: var(--sd-muted);
}

/* Capabilities */

.sd-capability-section,
.sd-resource-section,
.sd-faq-section,
.sd-contact-panel,
.sd-doc-section {
    padding: 72px 0;
}

.sd-capability-stack {
    display: grid;
    gap: 18px;
}

.sd-capability-panel {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 24px;
    padding: 26px;
    border-radius: var(--sd-radius-lg);
    border: 1px solid var(--sd-border);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent),
        var(--sd-surface-glass);
}

.sd-capability-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 22px;
    background: var(--sd-primary-soft);
    color: var(--sd-accent);
    font-weight: 900;
}

.sd-capability-content h3,
.sd-doc-block h2,
.sd-faq-item summary {
    margin: 0 0 12px;
    color: var(--sd-text);
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.sd-capability-content p,
.sd-doc-block p,
.sd-faq-item p {
    margin: 0 0 16px;
    color: var(--sd-muted);
}

.sd-capability-content p:last-child,
.sd-doc-block p:last-child,
.sd-faq-item p:last-child {
    margin-bottom: 0;
}

/* Resources */

.sd-resource-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.sd-resource-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--sd-radius-lg);
    border: 1px solid var(--sd-border);
    background: var(--sd-surface-glass);
    box-shadow: var(--sd-shadow);
}

.sd-resource-glow {
    position: absolute;
    inset: -80px -80px auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--sd-primary-soft);
    filter: blur(10px);
}

.sd-resource-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--sd-surface-soft);
    border-bottom: 1px solid var(--sd-border);
    opacity: 0.88;
}

.sd-resource-body {
    position: relative;
    padding: 24px;
}

.sd-resource-card h3 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.sd-resource-card p {
    margin: 0 0 18px;
    color: var(--sd-muted);
}

/* FAQ */

.sd-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sd-faq-item {
    padding: 22px;
    border-radius: var(--sd-radius-md);
    border: 1px solid var(--sd-border);
    background: rgba(255, 255, 255, 0.045);
}

.sd-faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: 20px;
}

.sd-faq-item summary::-webkit-details-marker {
    display: none;
}

.sd-faq-item summary::after {
    content: "+";
    float: right;
    color: var(--sd-accent);
}

.sd-faq-item[open] summary::after {
    content: "–";
}

/* Contact */

.sd-contact-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 34px;
    border-radius: var(--sd-radius-lg);
    border: 1px solid var(--sd-border);
    background:
        radial-gradient(circle at top right, var(--sd-primary-soft), transparent 34%),
        var(--sd-surface-glass);
    box-shadow: var(--sd-shadow);
}

.sd-contact-box h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -0.065em;
}

.sd-contact-box p:not(.sd-eyebrow) {
    margin: 16px 0 0;
    color: var(--sd-muted);
}

/* Docs page */

.sd-doc-intro {
    padding: 64px 0 24px;
}

.sd-doc-intro-card {
    padding: 34px;
    border-radius: var(--sd-radius-lg);
    border: 1px solid var(--sd-border);
    background:
        radial-gradient(circle at top right, var(--sd-accent-soft), transparent 30%),
        var(--sd-surface-glass);
    box-shadow: var(--sd-shadow);
}

.sd-doc-intro-card h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.075em;
}

.sd-doc-intro-card p:last-child {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--sd-muted);
    font-size: 19px;
}

.sd-doc-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.sd-doc-sidebar,
.sd-article-index {
    position: sticky;
    top: 110px;
}

.sd-doc-widget,
.sd-briefing-card,
.sd-article-index {
    padding: 22px;
    border-radius: var(--sd-radius-md);
    border: 1px solid var(--sd-border);
    background: rgba(255, 255, 255, 0.045);
}

.sd-doc-widget strong,
.sd-briefing-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--sd-text);
    font-size: 20px;
}

.sd-doc-widget p,
.sd-briefing-card p {
    color: var(--sd-muted);
}

.sd-doc-nav,
.sd-index-links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.sd-doc-nav a,
.sd-index-links a {
    padding: 13px 15px;
    border-radius: 999px;
    border: 1px solid var(--sd-border);
    background: rgba(255, 255, 255, 0.035);
    color: var(--sd-muted);
    font-size: 14px;
    font-weight: 800;
}

.sd-doc-nav a:hover,
.sd-index-links a:hover {
    color: var(--sd-text);
    border-color: var(--sd-primary);
}

.sd-doc-content {
    display: grid;
    gap: 18px;
}

.sd-doc-block {
    padding: 28px;
    border-radius: var(--sd-radius-lg);
    border: 1px solid var(--sd-border);
    background: var(--sd-surface-glass);
}

.sd-doc-block-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.sd-doc-block-head span {
    display: inline-flex;
    min-width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--sd-primary-soft);
    color: var(--sd-accent);
    font-weight: 900;
}

.sd-faq-section-inner {
    padding: 36px 0 0;
}

/* Article */

.sd-article-briefing {
    padding: 64px 0 34px;
}

.sd-article-briefing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: stretch;
}

.sd-article-briefing h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.075em;
}

.sd-article-briefing p:not(.sd-eyebrow) {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--sd-muted);
    font-size: 19px;
}

.sd-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    color: var(--sd-muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sd-article-frame {
    padding: 16px;
    margin: 34px 0;
    border-radius: var(--sd-radius-lg);
    border: 1px solid var(--sd-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
        var(--sd-surface-glass);
    box-shadow: var(--sd-shadow);
}

.sd-article-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 22px;
    background: var(--sd-surface-soft);
    opacity: 0.9;
}

.sd-article-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    padding: 34px 0 72px;
}

.sd-index-links a {
    border-radius: 16px;
}

.sd-index-links span {
    color: var(--sd-accent);
}

.sd-article-content {
    max-width: 820px;
}

.sd-article-section {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--sd-border);
}

.sd-article-section h2 {
    margin: 0 0 18px;
    font-size: 40px;
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.sd-article-section p {
    margin: 0 0 18px;
    color: var(--sd-muted);
    font-size: 18px;
}

/* Footer */

.sd-footer {
    padding: 56px 0 26px;
    border-top: 1px solid var(--sd-border);
    background: rgba(255, 255, 255, 0.025);
}

.sd-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
}

.sd-footer-brand p,
.sd-footer-links a,
.sd-footer-bottom {
    color: var(--sd-muted);
}

.sd-footer h3 {
    margin: 0 0 16px;
    color: var(--sd-muted-strong);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sd-footer-links {
    display: grid;
    gap: 10px;
}

.sd-footer-links a:hover {
    color: var(--sd-accent);
}

.sd-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--sd-border);
    font-size: 13px;
}

/* Responsive */

@media (max-width: 1060px) {
    .sd-hero-layout,
    .sd-doc-layout,
    .sd-article-briefing-grid,
    .sd-article-layout {
        grid-template-columns: 1fr;
    }

    .sd-doc-sidebar,
    .sd-article-index {
        position: static;
    }

    .sd-resource-strip,
    .sd-rail-grid,
    .sd-footer-grid {
        grid-template-columns: 1fr;
    }

    .sd-section-header-row {
        display: block;
    }
}

@media (max-width: 760px) {
    .sd-container,
    .sd-header-inner {
        width: min(var(--sd-container), calc(100% - 28px));
    }

    .sd-header-inner {
        min-height: auto;
        padding: 16px 0;
        display: grid;
        gap: 16px;
    }

    .sd-nav {
        flex-wrap: wrap;
        gap: 14px;
    }

    .sd-nav-action {
        width: max-content;
    }

    .sd-product-hero,
    .sd-capability-section,
    .sd-resource-section,
    .sd-faq-section,
    .sd-contact-panel,
    .sd-doc-section {
        padding: 46px 0;
    }

    .sd-capability-panel,
    .sd-contact-box {
        grid-template-columns: 1fr;
    }

    .sd-faq-grid,
    .sd-metric-grid {
        grid-template-columns: 1fr;
    }

    .sd-metric-grid div {
        border-right: 0;
        border-bottom: 1px solid var(--sd-border);
    }

    .sd-metric-grid div:last-child {
        border-bottom: 0;
    }

    .sd-article-cover {
        aspect-ratio: 16 / 10;
    }

    .sd-footer-bottom {
        display: grid;
    }
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .mg-layout,
html[dir="rtl"] .cp-page-layout,
html[dir="rtl"] .cp-article-layout,
html[dir="rtl"] .sd-hero-layout,
html[dir="rtl"] .sd-doc-layout,
html[dir="rtl"] .sd-article-layout {
    direction: rtl;
}

html[dir="rtl"] .mg-nav,
html[dir="rtl"] .cp-nav,
html[dir="rtl"] .sd-nav {
    direction: rtl;
}

html[dir="rtl"] .mg-sidebar-inner,
html[dir="rtl"] .cp-sidebar-inner,
html[dir="rtl"] .cp-article-sidebar {
    border-right: 0;
    padding-right: 0;
    border-left: 1px solid var(--mg-border, var(--cp-border, rgba(0, 0, 0, 0.15)));
    padding-left: 22px;
}

html[dir="rtl"] .mg-question summary::after,
html[dir="rtl"] .cp-faq-item summary::after,
html[dir="rtl"] .sd-faq-item summary::after {
    float: left;
}

html[dir="rtl"] ol,
html[dir="rtl"] ul {
    padding-right: 1.25rem;
    padding-left: 0;
}

html[lang="ar"] body {
    font-family: Tahoma, Arial, Helvetica, sans-serif;
}