/* ============================================================
   ATLAS LANDING — visual system mirrors src/ui/.../wwwroot/css/app.css
   Tokens, fonts, gradient-noise backdrop and the neon-green accent
   are all carried over from the operator portal so the two surfaces
   feel like one product.
   ============================================================ */

/* ---- 1. TOKENS (DARK = Obsidian Gold neon, LIGHT = Indigo) ---- */
:root {
    /* Backgrounds */
    --color-bg-base:        #111315;
    --color-bg-surface:     #1D2125;
    --color-bg-elevated:    #282C31;
    --color-bg-overlay:     #1A1D21;
    --color-bg-hover:       #2A2E33;

    /* Borders */
    --color-border:         rgba(255, 255, 255, 0.08);
    --color-border-strong:  rgba(255, 255, 255, 0.14);

    /* Accent — neon green (operator portal) */
    --color-accent:         #8FFF00;
    --color-accent-rgb:     143, 255, 0;
    --color-accent-dim:     rgba(143, 255, 0, 0.15);
    --color-accent-hover:   #7AE000;
    --color-accent2:        #FD7557;
    --color-accent2-dim:    rgba(253, 117, 87, 0.15);

    /* Text */
    --color-text-primary:   #FFFFFF;
    --color-text-secondary: #8A8F98;
    --color-text-muted:     #5A5F66;
    --color-text-on-accent: #111315;

    /* Status */
    --color-success:        #34D399;
    --color-warning:        #FBBF24;
    --color-danger:         #F87171;
    --color-info:           #60A5FA;

    /* Radii */
    --radius-sm:    6px;
    --radius-md:    10px;
    --radius-lg:    14px;
    --radius-xl:    18px;
    --radius-2xl:   24px;
    --radius-full:  9999px;

    /* Spacing */
    --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
    --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
    --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;

    /* Typography — DM Sans for Latin, Inter for Cyrillic */
    --font-family:  'DM Sans', 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows */
    --shadow-sm:        0 1px 3px rgba(0,0,0,0.08);
    --shadow-card:      0 4px 24px rgba(0,0,0,0.3);
    --shadow-dropdown:  0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow:      0 0 24px rgba(143,255,0,0.35);

    /* Transitions */
    --transition:       150ms ease;
    --transition-md:    250ms ease;
    --transition-spring: 400ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Topbar */
    --topbar-h: 72px;
}

/* ---- LIGHT THEME (Indigo, no green anywhere) ---- */
[data-theme="light"] {
    --color-bg-base:        #F8FAFC;
    --color-bg-surface:     #FFFFFF;
    --color-bg-elevated:    #F1F5F9;
    --color-bg-overlay:     #F8FAFC;
    --color-bg-hover:       #F1F5F9;

    --color-border:         #E2E8F0;
    --color-border-strong:  #CBD5E1;

    --color-accent:         #4F46E5;
    --color-accent-rgb:     79, 70, 229;
    --color-accent-dim:     #EEF2FF;
    --color-accent-hover:   #4338CA;
    --color-accent2:        #DC2626;
    --color-accent2-dim:    #FEF2F2;

    --color-text-primary:   #0F172A;
    --color-text-secondary: #64748B;
    --color-text-muted:     #94A3B8;
    --color-text-on-accent: #FFFFFF;

    --color-success: #16A34A;
    --color-warning: #D97706;
    --color-danger:  #DC2626;
    --color-info:    #2563EB;

    --shadow-card:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-dropdown:  0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
    --shadow-glow:      0 4px 24px rgba(79,70,229,0.25);
}

/* ---- 2. RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

html, body {
    height: 100%;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--color-text-primary);
    background-color: var(--color-bg-base);
    background-image:
        radial-gradient(ellipse 80% 60% at 15% 5%,  rgba(45, 50, 56, 0.6) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 85% 0%,  rgba(143, 255, 0, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 100% 80% at 50% 20%, rgba(35, 39, 44, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 120% 120% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

[data-theme="light"] body {
    background-color: var(--color-bg-base);
    background-image:
        radial-gradient(ellipse 80% 60% at 15% 5%, rgba(99, 102, 241, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 85% 0%, rgba(79, 70, 229, 0.04) 0%, transparent 60%);
}

/* Noise overlay (Atlas signature texture) */
body::after {
    content: '';
    position: fixed; inset: 0;
    z-index: 0; pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}
[data-theme="light"] body::after { display: none; }

#app, .layout { position: relative; z-index: 1; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* Blazor surfaces an unhandled-error toast by toggling display on this
   element. Default it to `none` — the framework's own JS flips it to block
   when an actual exception bubbles up. Without this rule the toast renders
   on every page load. */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--color-danger);
    color: #fff;
    font-size: 13px; font-weight: 600;
    align-items: center; justify-content: space-between;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
}
#blazor-error-ui .reload { color: #fff; font-weight: 700; text-decoration: underline; cursor: pointer; }
#blazor-error-ui .dismiss { cursor: pointer; font-size: 16px; opacity: 0.85; margin-left: 16px; }
.blazor-error-boundary {
    padding: 16px;
    background: rgba(248, 113, 113, 0.10);
    color: var(--color-danger);
    border-radius: var(--radius-md);
}

/* Boot splash — uses currentColor so it inherits theme. */
.boot {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-bg-base);
    z-index: 1000;
}
.boot-globe {
    width: 64px; height: 64px;
    color: var(--color-text-primary);
    animation: spin 4s linear infinite;
}
.boot-globe-core { color: var(--color-accent); }

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============================================================
   3. CONTAINER
   ============================================================ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   4. TOPBAR
   ============================================================ */
.topbar {
    position: sticky; top: 0; z-index: 100;
    height: var(--topbar-h);
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    padding: 0 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: linear-gradient(180deg, rgba(17, 19, 21, 0.85) 0%, rgba(17, 19, 21, 0.55) 100%);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}
[data-theme="light"] .topbar {
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.70) 100%);
}

.topbar__brand {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none; color: inherit;
    user-select: none;
    flex-shrink: 0;
}
.topbar__logo-wrap { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.topbar__logo {
    width: 44px; height: 44px;
    color: var(--color-text-primary);
    transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 300ms ease;
    position: relative; z-index: 1;
}
.topbar__logo-core { color: var(--color-accent); }
[data-theme="light"] .topbar__logo { color: var(--color-accent); }

.topbar__logo-glow {
    position: absolute; inset: -10px;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb),0.30) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 300ms ease;
}
.topbar__brand:hover .topbar__logo {
    transform: rotate(360deg);
    filter: drop-shadow(0 0 8px rgba(var(--color-accent-rgb),0.5));
}
.topbar__brand:hover .topbar__logo-glow { opacity: 1; }

.topbar__title {
    font-size: 20px; font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1;
    background: linear-gradient(90deg, var(--color-text-primary) 0%, var(--color-text-primary) 40%, var(--color-accent) 60%, var(--color-text-primary) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-position 600ms ease;
}
.topbar__brand:hover .topbar__title { background-position: 100% 0; }
.topbar__sub {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-top: 4px;
    line-height: 1.2;
    max-width: 220px;
    -webkit-text-fill-color: var(--color-text-muted);
}

.topbar__nav {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 5px;
}
[data-theme="light"] .topbar__nav { background: var(--color-bg-elevated); }

.nav-link {
    display: inline-flex; align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: 13px; font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
}
.nav-link:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}
[data-theme="light"] .nav-link:hover { background: #FFFFFF; }

.topbar__right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.t-toggle {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    border-radius: 50%;
    transition: all var(--transition);
}
.t-toggle:hover { color: var(--color-accent); border-color: var(--color-accent); transform: rotate(15deg); }
[data-theme="light"] .t-toggle { background: var(--color-bg-elevated); }

/* Language picker */
.lang { position: relative; }
.lang__trigger {
    height: 40px;
    padding: 0 14px;
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    font-size: 13px; font-weight: 600;
    transition: all var(--transition);
}
[data-theme="light"] .lang__trigger { background: var(--color-bg-elevated); }
.lang__trigger:hover { color: var(--color-accent); border-color: var(--color-accent); }
.lang__flag { font-size: 14px; line-height: 1; }
.lang__chev { transition: transform 200ms ease; }
.lang.open .lang__chev { transform: rotate(180deg); }

.lang__list {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 180px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-dropdown);
    z-index: 200;
    animation: dropdown 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dropdown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lang__item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-size: 13px; font-weight: 500;
    cursor: pointer;
    background: none; border: 0; width: 100%; text-align: left;
    transition: all var(--transition);
}
.lang__item:hover { background: var(--color-bg-elevated); transform: translateX(2px); }
.lang__item.active { background: var(--color-accent-dim); color: var(--color-accent); font-weight: 700; }

/* Contact-us ghost CTA */
.cta-ghost {
    display: inline-flex; align-items: center; gap: 7px;
    height: 40px; padding: 0 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-primary);
    font-weight: 600; font-size: 13px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition);
    text-decoration: none;
}
[data-theme="light"] .cta-ghost { background: var(--color-bg-elevated); }
.cta-ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
    text-decoration: none;
}

.cta-portal {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 18px;
    background: var(--color-accent);
    color: var(--color-text-on-accent);
    font-weight: 700; font-size: 13px;
    border: 0;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    text-decoration: none;
}
.cta-portal:hover {
    background: var(--color-accent-hover);
    color: var(--color-text-on-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ============================================================
   5. SECTION SCAFFOLD
   ============================================================ */
section { position: relative; z-index: 1; }
.section { padding: 120px 0; position: relative; }
.section--contact { padding-bottom: 140px; }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 64px; }

/* Editorial eyebrow — minimal monospace tag with slash separator and a
   short hairline. Deliberately unlike the rounded pill+pulse-dot pattern
   that reads as AI-generated. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: none;
    border: 0;
    padding: 0;
    margin-bottom: 22px;
    position: relative;
}
.eyebrow::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--color-accent);
    flex-shrink: 0;
}
.eyebrow::after {
    content: '/';
    font-weight: 400;
    opacity: 0.55;
    margin-left: -2px;
    font-size: 13px;
}

h1, h2, h3, h4 { color: var(--color-text-primary); letter-spacing: -0.02em; line-height: 1.15; }
.h-section { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; margin-bottom: 16px; }
.lead { font-size: 17px; color: var(--color-text-secondary); line-height: 1.6; }

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
}

.hero__bg-gradient {
    position: absolute; top: -200px; right: -200px;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb),0.10) 0%, transparent 60%);
    pointer-events: none;
    animation: drift 18s ease-in-out infinite;
}
@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-30px, 20px); }
}

.hero__bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
[data-theme="light"] .hero__bg-grid {
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__copy { max-width: 640px; }

/* Hero eyebrow — magazine-cover style: bracketed counter on the left,
   hairline separator, copy on the right. No pill, no pulsing dot. */
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero__eyebrow-mark {
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.hero__eyebrow-text {
    position: relative;
    padding-left: 16px;
    color: var(--color-text-secondary);
}
.hero__eyebrow-text::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    width: 8px; height: 1px;
    background: var(--color-text-secondary);
    transform: translateY(-50%);
}

.hero__title {
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.04;
    margin-bottom: 28px;
}
.hero__title .accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, color-mix(in srgb, var(--color-accent) 60%, white) 50%, var(--color-accent) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s ease-in-out infinite;
    display: inline-block;
    padding: 0 4px;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 36px;
}

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 52px; padding: 0 24px;
    border-radius: var(--radius-full);
    font-size: 14px; font-weight: 700;
    border: 1px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn--primary {
    background: var(--color-accent);
    color: var(--color-text-on-accent);
    box-shadow: 0 8px 32px rgba(var(--color-accent-rgb), 0.25);
}
.btn--primary::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 700ms ease;
}
.btn--primary:hover {
    background: var(--color-accent-hover);
    color: var(--color-text-on-accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(var(--color-accent-rgb), 0.35);
    text-decoration: none;
}
.btn--primary:hover::before { left: 100%; }

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-primary);
    border-color: var(--color-border-strong);
}
[data-theme="light"] .btn--ghost { background: var(--color-bg-surface); }
.btn--ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Hero visual — same SVG as the operator-portal logo, scaled huge */
.hero__visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 520px;
    margin-left: auto;
    width: 100%;
}
.hero-globe {
    width: 100%; height: 100%;
    color: var(--color-text-primary);
    animation: rotate-slow 80s linear infinite;
    filter: drop-shadow(0 8px 28px rgba(0,0,0,0.35));
}
.hero-globe-core { color: var(--color-accent); }
[data-theme="light"] .hero-globe { color: var(--color-accent); }
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero__halo {
    position: absolute; inset: -10%;
    background: radial-gradient(circle at 50% 50%, rgba(var(--color-accent-rgb), 0.20) 0%, transparent 55%);
    pointer-events: none; z-index: -1;
    animation: halo-pulse 6s ease-in-out infinite;
}
@keyframes halo-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1.0; transform: scale(1.05); }
}

/* Concentric rings around the globe — slow expand outward */
.hero__rings { position: absolute; inset: 0; pointer-events: none; }
.hero__ring {
    position: absolute; top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-accent-rgb), 0.20);
    transform: translate(-50%, -50%);
    animation: ring-pulse 4s ease-out infinite;
}
.hero__ring--1 { width: 65%; height: 65%; animation-delay: 0s; }
.hero__ring--2 { width: 65%; height: 65%; animation-delay: 1.3s; }
.hero__ring--3 { width: 65%; height: 65%; animation-delay: 2.6s; }
@keyframes ring-pulse {
    0%   { width: 65%; height: 65%; opacity: 0.6; }
    100% { width: 130%; height: 130%; opacity: 0; }
}

/* Floating particles */
.particle {
    position: absolute;
    width: 6px; height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--color-accent);
    opacity: 0.7;
    pointer-events: none;
}
.particle--1 { top: 18%; left: 10%; animation: float 8s ease-in-out infinite; }
.particle--2 { top: 75%; left: 15%; animation: float 10s ease-in-out infinite -2s; }
.particle--3 { top: 35%; right: 12%; animation: float 12s ease-in-out infinite -4s; }
.particle--4 { bottom: 18%; right: 8%;  animation: float 9s ease-in-out infinite -6s; }
.particle--5 { top: 50%; left: 50%; animation: float 11s ease-in-out infinite -3s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(8px, -12px); }
    50%      { transform: translate(-6px, -20px); }
    75%      { transform: translate(-10px, -8px); }
}

/* ============================================================
   7. STATS
   ============================================================ */
.stats {
    padding: 56px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(8px);
}
[data-theme="light"] .stats { background: rgba(255, 255, 255, 0.6); }

.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

.stat { text-align: center; }
.stat__value {
    font-size: 44px; font-weight: 800;
    letter-spacing: -0.03em; line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(180deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat__label {
    font-size: 11px; font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.10em; text-transform: uppercase;
}

/* ============================================================
   8. FEATURES — creative number-driven tiles, no SVG icons
   ============================================================ */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.feature {
    position: relative; overflow: hidden;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md);
}
.feature::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(var(--color-accent-rgb), 0.10) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-md);
    pointer-events: none;
}
.feature:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--color-accent-rgb), 0.25);
    box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(var(--color-accent-rgb), 0.10);
}
.feature:hover::before { opacity: 1; }

/* Creative art block — large bg number + a single shape per tile */
.feature__art {
    position: relative;
    height: 90px;
    margin-bottom: 22px;
    overflow: hidden;
}
.feature__art-num {
    position: absolute; top: -18px; left: -8px;
    font-size: 110px; font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-border-strong);
    letter-spacing: -0.08em;
    transition: -webkit-text-stroke-color var(--transition-md), transform var(--transition-md);
    pointer-events: none;
}
.feature:hover .feature__art-num {
    -webkit-text-stroke-color: rgba(var(--color-accent-rgb), 0.45);
    transform: translateY(-4px);
}

/* shape variants */
.feature__art-arc {
    position: absolute; right: 12px; top: 14px;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    border-color: var(--color-accent) transparent transparent var(--color-accent);
    transform: rotate(-45deg);
    transition: transform var(--transition-spring);
}
.feature:hover .feature__art-arc { transform: rotate(135deg); }

/* 2×2 grid — visual cue for "four countries under one contract".
   Each tile fades in/out on a stagger so the cluster feels alive. */
.feature__art-grid {
    position: absolute; right: 14px; top: 14px;
    display: grid;
    grid-template-columns: repeat(2, 26px);
    grid-template-rows:    repeat(2, 26px);
    gap: 4px;
}
.feature__art-grid i {
    background: var(--color-accent);
    border-radius: 6px;
    opacity: 0.85;
    animation: tile-fade 2.4s ease-in-out infinite;
}
.feature__art-grid i:nth-child(1) { animation-delay: 0s; }
.feature__art-grid i:nth-child(2) { animation-delay: 0.6s; }
.feature__art-grid i:nth-child(3) { animation-delay: 1.2s; }
.feature__art-grid i:nth-child(4) { animation-delay: 1.8s; }
@keyframes tile-fade {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50%      { opacity: 0.40; transform: scale(0.92); }
}

.feature__art-pulse {
    position: absolute; right: 18px; top: 18px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0.6);
    animation: pulse-art 2.4s ease-out infinite;
}
@keyframes pulse-art {
    0%   { box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0.6); }
    100% { box-shadow: 0 0 0 22px rgba(var(--color-accent-rgb), 0); }
}

.feature__art-bar {
    position: absolute; right: 6px; top: 18px;
    width: 70px; height: 56px;
    background:
        linear-gradient(to top, var(--color-accent) 25%, transparent 25%) 0 0/14px 100% no-repeat,
        linear-gradient(to top, var(--color-accent) 60%, transparent 60%) 22px 0/14px 100% no-repeat,
        linear-gradient(to top, var(--color-accent) 40%, transparent 40%) 44px 0/14px 100% no-repeat,
        linear-gradient(to top, var(--color-accent) 80%, transparent 80%) 66px 0/14px 100% no-repeat;
    transition: transform var(--transition-spring);
}
.feature:hover .feature__art-bar { transform: scaleY(1.1); transform-origin: bottom; }

.feature__art-dots {
    position: absolute; right: 14px; top: 28px;
    display: flex; gap: 10px;
}
.feature__art-dots i {
    width: 14px; height: 14px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: dots-bounce 1.4s ease-in-out infinite;
    display: inline-block;
}
.feature__art-dots i:nth-child(2) { animation-delay: 0.2s; }
.feature__art-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dots-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50%      { transform: translateY(-8px); opacity: 1; }
}

.feature__art-ring {
    position: absolute; right: 14px; top: 14px;
    width: 60px; height: 60px;
    border: 6px solid var(--color-accent-dim);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 2.4s linear infinite;
}

.feature__title {
    font-size: 17px; font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}
.feature__body {
    font-size: 13.5px; line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ============================================================
   9. GEOGRAPHIES
   ============================================================ */
.geos__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.geo-card {
    position: relative;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 26px 24px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform var(--transition-md), border-color var(--transition-md);
}
.geo-card::before {
    content: '';
    position: absolute; bottom: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-md);
}
.geo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--color-accent-rgb), 0.25);
}
.geo-card:hover::before { opacity: 1; }

.geo-card__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
/* SVG flag from flagcdn.com — img, not emoji, so it renders identically on
   Windows where regional-indicator emoji pairs aren't drawn. */
.geo-card__flag {
    width: 48px; height: 34px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: transform var(--transition-spring);
    display: block;
}
.geo-card:hover .geo-card__flag { transform: scale(1.08) rotate(-3deg); }

/* Footer flag strip */
.footer__flags .flag {
    width: 28px; height: 20px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
    display: inline-block;
    transition: transform var(--transition);
}
.footer__flags .flag:hover { transform: translateY(-2px); }
.geo-card__tag {
    font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 4px 10px;
    background: rgba(52, 211, 153, 0.10);
    color: #6EE7B7;
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: var(--radius-full);
}
[data-theme="light"] .geo-card__tag { background: #DCFCE7; color: #15803D; border-color: #86EFAC; }

.geo-card__title {
    font-size: 22px; font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.geo-card__body {
    font-size: 13.5px; line-height: 1.6;
    color: var(--color-text-secondary);
    position: relative;
}

/* Roadmap row — full-width below the country grid */
.geo-roadmap {
    background: var(--color-bg-surface);
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 28px;
    align-items: center;
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition-md);
}
.geo-roadmap:hover { border-color: var(--color-accent); }

.geo-roadmap__head { display: flex; flex-direction: column; gap: 6px; }
.geo-roadmap__tag {
    font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 3px 10px;
    background: var(--color-accent-dim);
    color: var(--color-accent);
    border: 1px solid rgba(var(--color-accent-rgb), 0.25);
    border-radius: var(--radius-full);
    align-self: flex-start;
}
.geo-roadmap__title {
    font-size: 18px; font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}
.geo-roadmap__flags {
    font-size: 36px;
    letter-spacing: 8px;
    line-height: 1;
}
.geo-roadmap__body {
    font-size: 13.5px; line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ============================================================
   10. INTEGRATION — 4 numbered steps
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}
.steps::before {
    /* hairline connecting all four step cards horizontally */
    content: '';
    position: absolute;
    top: 78px; left: 4%; right: 4%;
    height: 1px;
    background: repeating-linear-gradient(to right, var(--color-border-strong) 0 6px, transparent 6px 14px);
    z-index: 0;
}

.step {
    position: relative; z-index: 1;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-md), border-color var(--transition-md);
}
.step:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--color-accent-rgb), 0.30);
}
.step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    background: var(--color-accent-dim);
    color: var(--color-accent);
    border: 1px solid rgba(var(--color-accent-rgb), 0.25);
    border-radius: 50%;
    font-size: 18px; font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    transition: transform var(--transition-spring);
}
.step:hover .step__num {
    transform: rotate(360deg);
    background: var(--color-accent);
    color: var(--color-text-on-accent);
}
.step__title {
    font-size: 17px; font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}
.step__body {
    font-size: 13.5px; line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ============================================================
   11. CONTACT — only the form, no channels
   ============================================================ */
.contact__layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: start;
}
.contact__copy { padding-right: 40px; }

.form-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition-md);
}
.form-card:focus-within { border-color: var(--color-accent); }

.form-row { margin-bottom: 18px; }
.form-row label {
    display: block;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
    width: 100%;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--color-text-muted); }
.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), 0.04);
}
.form-row textarea { resize: vertical; min-height: 120px; }

.form-error {
    background: rgba(248, 113, 113, 0.10);
    color: #FCA5A5;
    border: 1px solid rgba(248, 113, 113, 0.25);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 16px;
}
.form-success {
    background: rgba(52, 211, 153, 0.10);
    color: #6EE7B7;
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 24px 18px;
    border-radius: var(--radius-md);
    text-align: center;
}
.form-success b { color: #A7F3D0; display: block; margin-bottom: 6px; font-size: 16px; font-weight: 700; }

.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ============================================================
   12. FOOTER — multi-column with flag strip
   ============================================================ */
.footer {
    position: relative;
    border-top: 1px solid var(--color-border);
    padding: 64px 0 32px;
    background: rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(8px);
    overflow: hidden;
}
[data-theme="light"] .footer { background: var(--color-bg-surface); }

.footer__strip {
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent) 25%, var(--color-accent) 75%, transparent 100%);
    opacity: 0.5;
}

.footer__top {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer__brand-col .topbar__title { font-size: 18px; }
.footer__tagline {
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.6;
    max-width: 360px;
    margin-bottom: 20px;
}

.footer__flags {
    display: flex; align-items: center;
    gap: 8px;
    font-size: 22px;
    line-height: 1;
}
.footer__flags-sep {
    color: var(--color-text-muted);
    font-size: 18px;
    margin: 0 4px;
}
.footer__flags-coming { opacity: 0.45; transition: opacity var(--transition); }
.footer__flags-coming:hover { opacity: 1; }

.footer__col-title {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}
.footer__col a {
    display: block;
    color: var(--color-text-secondary);
    font-size: 13.5px; font-weight: 500;
    padding: 5px 0;
    transition: color var(--transition), transform var(--transition);
    text-decoration: none;
}
.footer__col a:hover {
    color: var(--color-accent);
    transform: translateX(3px);
    text-decoration: none;
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 12px;
    flex-wrap: wrap;
    gap: 16px;
}
.footer__bottom-left, .footer__bottom-right {
    display: inline-flex; align-items: center; gap: 8px;
}
.footer__sep { color: var(--color-text-muted); opacity: 0.6; }
.footer__location {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--color-text-muted);
}

/* ============================================================
   13. SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal--delay-1.in-view { transition-delay: 80ms; }
.reveal--delay-2.in-view { transition-delay: 160ms; }
.reveal--delay-3.in-view { transition-delay: 240ms; }
.reveal--delay-4.in-view { transition-delay: 320ms; }
.reveal--delay-5.in-view { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-globe, .hero__title .accent, .hero__bg-gradient,
    .hero__halo, .hero__ring, .particle, .feature__art-pulse,
    .feature__art-blob, .feature__art-dots i, .feature__art-ring { animation: none; }
}

/* ============================================================
   14. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .hero__inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero__copy { margin: 0 auto; }
    .hero__visual { margin: 0 auto; max-width: 360px; }
    .hero__ctas { justify-content: center; }
    .hero__eyebrow { margin-left: auto; margin-right: auto; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .geos__grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
    .contact__layout { grid-template-columns: 1fr; gap: 32px; }
    .contact__copy { padding-right: 0; }
    .topbar__nav { display: none; }
    .footer__top { grid-template-columns: 1.6fr 1fr 1fr; }
    .footer__legal { display: none; }
    .geo-roadmap { grid-template-columns: 1fr; gap: 16px; text-align: center; }
    .geo-roadmap__flags { letter-spacing: 12px; }
}

@media (max-width: 720px) {
    .topbar { padding: 0 16px; gap: 8px; }
    .topbar__sub { display: none; }
    .topbar__title { font-size: 18px; letter-spacing: 0.18em; }
    .container { padding: 0 16px; }
    .section { padding: 80px 0; }
    .hero { padding: 80px 0 60px; }
    .hero__title { font-size: clamp(34px, 9vw, 56px); }
    .hero__subtitle { font-size: 16px; }
    .hero__visual { max-width: 280px; }
    .features__grid { grid-template-columns: 1fr; }
    .geos__grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .stat__value { font-size: 32px; }
    .footer__top { grid-template-columns: 1fr; gap: 28px; }
    .footer__bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
    .form-card { padding: 24px; }
    .lang__label { display: none; }
    .lang__trigger { padding: 0 12px; }
    .cta-ghost span { display: none; }
    .cta-ghost { padding: 0 12px; }
    .cta-portal span { display: none; }
    .cta-portal { padding: 0 14px; }
    .footer__flags { flex-wrap: wrap; }
}

@media (max-width: 460px) {
    .topbar__title { font-size: 16px; }
    .hero__title { font-size: clamp(28px, 9vw, 42px); }
    .h-section { font-size: clamp(24px, 7vw, 32px); }
    .stats__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat__value { font-size: 28px; }
    .feature, .geo-card, .step { padding: 22px 18px; }
    .feature__art { height: 76px; margin-bottom: 16px; }
    .feature__art-num { font-size: 84px; }
}
