/* ── RESET & BASE ── */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

:root {
    --dark:    #07090f;
    --surface: #0d1117;
    --card:    #111827;
    --card2:   #161f2e;
    --border:  #1e2d45;
    --border2: #243550;
    --accent:  #3b82f6;
    --accent2: #06b6d4;
    --gold:    #f59e0b;
    --text:    #e2e8f0;
    --muted:   #4b5563;
    --light:   #94a3b8;
    --green:   #10b981;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* ── AURORA BACKGROUND ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(
            ellipse 80% 60% at 20% 0%,
            rgba(37,99,235,0.07) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 60% 50% at 80% 100%,
            rgba(6,182,212,0.05) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 40% 40% at 60% 50%,
            rgba(59,130,246,0.03) 0%,
            transparent 60%
        );
    animation: auroraShift 12s ease-in-out infinite alternate;
    pointer-events: none; 
}

@keyframes auroraShift {
    0% {
        background:
            radial-gradient(
                ellipse 80% 60% at 20% 0%,
                rgba(37,99,235,0.07) 0%,
                transparent 70%
            ),
            radial-gradient(
                ellipse 60% 50% at 80% 100%,
                rgba(6,182,212,0.05) 0%,
                transparent 70%
            );
    }
    50% {
        background:
            radial-gradient(
                ellipse 80% 60% at 80% 0%,
                rgba(6,182,212,0.07) 0%,
                transparent 70%
            ),
            radial-gradient(
                ellipse 60% 50% at 20% 100%,
                rgba(37,99,235,0.05) 0%,
                transparent 70%
            );
    }
    100% {
        background:
            radial-gradient(
                ellipse 80% 60% at 50% 0%,
                rgba(59,130,246,0.06) 0%,
                transparent 70%
            ),
            radial-gradient(
                ellipse 60% 50% at 50% 100%,
                rgba(6,182,212,0.04) 0%,
                transparent 70%
            );
    }
}

/* ── REVEAL ANIMATIONS ── */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    animation: revealUp 0.7s ease both;
    animation-delay: var(--delay, 0s);
}

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* ── MAIN WRAPPERS ── */
.landing {
    position: relative;
    z-index: 1;
}

/* ── LANGUAGE SCREEN ── */
.lang-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.05) 0%, transparent 50%);
    position: relative;
    z-index: 1;    
}

.lang-box { text-align: center; padding: 60px 40px; }

.lang-logo {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 60%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.lang-prompt {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 48px;
}

.lang-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 20px 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(6,182,212,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-btn:hover::before { opacity: 1; }

.lang-btn:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59,130,246,0.2);
}

/* ── NAV ── */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7,9,15,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    border-color: var(--border);
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.nav-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: white;
    border-color: var(--border);
    background: var(--card);
}

.nav-link:hover::after { width: 60%; }

.lang-switch {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--light);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-switch:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 16px rgba(59,130,246,0.15);
}

/* ── HERO ── */
.hero {
    max-width: 820px;
    margin: 0 auto;
    padding: 110px 24px 80px;
    text-align: center;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.veteran-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 50px;
    padding: 8px 20px 8px 8px;
    margin-bottom: 48px;
    transition: border-color 0.3s ease;
}

.veteran-badge:hover { border-color: var(--accent); }

.veteran-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: white;
    box-shadow: 0 0 12px rgba(37,99,235,0.4);
}

.veteran-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}

.veteran-status {
    font-size: 12px;
    color: var(--green);
    font-weight: 500;
}

.hero-title {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    background: linear-gradient(160deg, #ffffff 0%, #cbd5e1 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--light);
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto 52px;
}

.cta-btn {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(59,130,246,0.3);
    animation: breathe 3s ease-in-out infinite;
}

.cta-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

@keyframes breathe {
    0%, 100% { box-shadow: 0 8px 32px rgba(59,130,246,0.3); }
    50%       { box-shadow: 0 8px 48px rgba(59,130,246,0.5); }
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 48px rgba(59,130,246,0.45);
    animation: none;
}

.hero-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 16px;
}

/* ── FLOATING CARDS ── */
.float-cards {
    position: relative;
    height: 60px;
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.float-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--light);
    font-weight: 500;
}

.float-card--left {
    animation: floatLeft 4s ease-in-out infinite;
}

.float-card--right {
    animation: floatRight 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes floatLeft {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

@keyframes floatRight {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

.float-card-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
}

/* ── HOW IT WORKS ── */
.steps {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 24px;
}

.steps-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 56px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover::before { opacity: 1; }

.step-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.3);
}

.step-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--border2);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.step-card:hover .step-number { color: var(--accent); }

.step-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.step-text {
    font-size: 15px;
    color: var(--light);
    line-height: 1.65;
}

/* ── FINAL CTA ── */
.final-cta {
    padding: 80px 24px 120px;
    text-align: center;
}

.final-cta-inner {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 28px;
    padding: 64px 48px;
    position: relative;
    overflow: hidden;
}

.final-cta-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.final-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 36px;
    line-height: 1.3;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .nav { padding: 16px 20px; }
    .nav-links { display: none; }
    .hero { padding: 80px 20px 60px; }
    .final-cta-inner { padding: 40px 24px; }
    .float-cards { display: none; }
    .lang-btn { min-width: 100%; }
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── COLD START SCREEN ── */
.cs-container {
    text-align: center;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── AVATAR WITH RINGS ── */
.cs-avatar-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.cs-avatar-wrap.visible {
    opacity: 1;
    transform: translateY(0);
}

.cs-avatar-core {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 3;
    animation: csAvatarGlow 3s ease-in-out infinite;
}

@keyframes csAvatarGlow {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(37,99,235,0.5),
            0 0 60px rgba(37,99,235,0.2);
    }
    50% {
        box-shadow:
            0 0 50px rgba(37,99,235,0.8),
            0 0 100px rgba(6,182,212,0.3),
            0 0 140px rgba(37,99,235,0.1);
    }
}

.cs-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: csRingPulse 3s ease-in-out infinite;
}

.cs-ring--1 {
    width: 96px;
    height: 96px;
    border: 1px solid rgba(59,130,246,0.4);
    animation-delay: 0s;
}

.cs-ring--2 {
    width: 128px;
    height: 128px;
    border: 1px solid rgba(59,130,246,0.2);
    animation-delay: 0.5s;
}

.cs-ring--3 {
    width: 160px;
    height: 160px;
    border: 1px solid rgba(59,130,246,0.08);
    animation-delay: 1s;
}

@keyframes csRingPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* ── VETERAN NAME ── */
.cs-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold), #fde68a, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 36px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.cs-name.visible { opacity: 1; }

/* ── TYPEWRITER ── */
.cs-line-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
    min-height: 90px;
}

.cs-typewriter-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
}

.cs-line-en {
    font-size: clamp(17px, 2.8vw, 24px);
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    letter-spacing: -0.01em;
    max-width: 480px;
    text-align: center;
}

.cs-cursor {
    color: var(--accent);
    font-size: clamp(17px, 2.8vw, 24px);
    font-weight: 300;
    animation: cursorBlink 0.75s step-end infinite;
    margin-left: 1px;
    line-height: 1.4;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.cs-line-fr {
    font-size: clamp(12px, 1.8vw, 15px);
    color: var(--muted);
    font-style: italic;
    opacity: 0;
    transition: opacity 0.8s ease;
    text-align: center;
    max-width: 380px;
    line-height: 1.5;
}

.cs-line-fr.visible { opacity: 1; }

/* ── DIVIDER ── */
.cs-divider {
    width: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--border2),
        transparent
    );
    margin-bottom: 28px;
    transition: width 0.8s ease;
}

.cs-divider.visible { width: 240px; }

/* ── PROMPT ── */
.cs-prompt {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.cs-prompt.visible { opacity: 1; }

/* ── LANG OPTIONS ANIMATION ── */
.cs-lang-options {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cs-lang-options.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .cs-container { padding: 48px 24px; }
}
