:root {
    --bg: #0a0b10;
    --bg-elevated: #11121a;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --text: #f5f5f7;
    --text-muted: #a1a1aa;
    --accent: #ff7a33;
    --accent-2: #4f8cff;
    --accent-gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 20px;
    --radius-sm: 12px;
    --font: 'Inter', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f8fafc;
        --bg-elevated: #ffffff;
        --surface: rgba(15, 23, 42, 0.04);
        --surface-hover: rgba(15, 23, 42, 0.07);
        --text: #0f172a;
        --text-muted: #64748b;
        --accent: #2563eb;
        --accent-2: #ff7a33;
        --border: rgba(15, 23, 42, 0.10);
        --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
    }
}

[dir="rtl"] {
    --font: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body[dir="rtl"] .brand-logo,
body[dir="rtl"] .feature-icon,
body[dir="rtl"] .map-node span,
body[dir="rtl"] .lang-toggle {
    margin-right: 0;
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 11, 16, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

@media (prefers-color-scheme: light) {
    .site-header {
        background: rgba(248, 250, 252, 0.85);
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 72px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--text);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    color: var(--text);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lang-toggle:hover {
    background: var(--surface-hover);
    transform: translateY(-1px);
}

.lang-target {
    color: var(--accent-2);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1rem 5rem;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(79, 140, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 122, 51, 0.12) 0%, transparent 40%);
    pointer-events: none;
}

.hero-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 70px 70px;
    opacity: 0.4;
    mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 28px rgba(255, 122, 51, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(255, 122, 51, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat strong {
    font-size: 1.25rem;
    font-weight: 700;
}

.stat span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Sections */
.section {
    padding: 6rem 1rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Features */
.section-features {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Network */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.split-content > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    color: var(--text);
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

[dir="rtl"] .checklist li {
    padding-left: 0;
    padding-right: 2rem;
}

[dir="rtl"] .checklist li::before {
    left: auto;
    right: 0;
}

.network-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}

.map-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    width: 100%;
    z-index: 1;
}

.map-node span {
    font-size: 2rem;
    line-height: 1;
}

.map-node small {
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

.map-line {
    width: 2px;
    height: 40px;
    background: var(--accent-gradient);
    opacity: 0.6;
    border-radius: 2px;
}

/* White Label */
.section-whitelabel {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.whitelabel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.whitelabel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whitelabel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.whitelabel-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.whitelabel-card p {
    color: var(--text-muted);
}

/* CTA */
.section-cta {
    padding: 4rem 1rem;
}

.cta-box {
    background: var(--accent-gradient);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-box p {
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-box .btn-primary {
    background: white;
    color: var(--accent-2);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.cta-box .btn-primary:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-inner p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-visual {
        order: -1;
    }

    .network-map {
        max-width: 200px;
    }

    .map-node {
        padding: 1.25rem;
    }

    .map-node span {
        font-size: 1.75rem;
    }

    .map-node small {
        font-size: 0.8rem;
    }

    .map-line {
        height: 32px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 18px;
    }

    .main-nav {
        position: fixed;
        top: 104px;
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-elevated);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 1rem;
        box-shadow: var(--shadow);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav a {
        padding: 1rem 1.25rem;
        border-radius: 8px;
        font-size: 1.1rem;
    }

    .main-nav a:hover {
        background: var(--surface);
    }

    .main-nav a::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
        padding: 0.75rem;
    }

    .menu-toggle span {
        width: 28px;
        height: 3px;
    }

    .hero {
        padding: 8rem 1.25rem 4rem;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }

    .hero-lead {
        font-size: 1.15rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        padding: 1.1rem 2rem;
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat strong {
        font-size: 1.4rem;
    }

    .stat span {
        font-size: 1rem;
    }

    .features-grid,
    .whitelabel-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .whitelabel-card {
        padding: 2rem;
    }

    .feature-card h3,
    .whitelabel-card h3 {
        font-size: 1.5rem;
    }

    .feature-card p,
    .whitelabel-card p {
        font-size: 1.05rem;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
        line-height: 64px;
        font-size: 2.25rem;
    }

    .section {
        padding: 4rem 1.25rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header p {
        font-size: 1.15rem;
    }

    .checklist li {
        padding-left: 2.5rem;
        font-size: 1.05rem;
    }

    [dir="rtl"] .checklist li {
        padding-left: 0;
        padding-right: 2.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-inner p {
        font-size: 1rem;
    }

    .footer-links a {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        height: 56px;
    }

    .lang-toggle {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .eyebrow {
        font-size: 0.75rem;
    }

    .hero {
        padding: 7.5rem 1rem 3.5rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .hero-lead {
        font-size: 1.1rem;
    }

    .btn {
        padding: 1rem 1.75rem;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .cta-box h2 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .cta-box p {
        font-size: 1.1rem;
    }
}

/* Scroll effects */
.site-header.scrolled {
    background: rgba(10, 11, 16, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: light) {
    .site-header.scrolled {
        background: rgba(248, 250, 252, 0.95);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

[dir="rtl"] .reveal {
    transform: translateY(20px);
}
