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

:root {
    --blue: #3b82f6;
    --indigo: #6366f1;
    --cyan: #06b6d4;
    --violet: #8b5cf6;
    --emerald: #10b981;
    --slate: #94a3b8;
    --muted: #64748b;
    --surface: rgba(15, 23, 42, 0.72);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #030712;
    color: #f8fafc;
    overflow-x: hidden;
}

/* =============================================
           SCROLLBAR
        ============================================= */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0f1e;
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, .45);
    border-radius: 99px;
}

/* =============================================
           CANVAS - STARFIELD (fixed, all zones)
        ============================================= */
#star-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* =============================================
           NEBULA / GLOW BLOBS (fixed)
        ============================================= */
.nebula {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: nebulaFloat 18s ease-in-out infinite alternate;
}

.nb-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(99, 102, 241, .22), transparent);
    top: -180px;
    left: -160px;
    animation-delay: 0s;
}

.nb-2 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(6, 182, 212, .18), transparent);
    bottom: -140px;
    right: -120px;
    animation-delay: -7s;
}

.nb-3 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(139, 92, 246, .15), transparent);
    top: 35%;
    left: 55%;
    animation-delay: -13s;
}

@keyframes nebulaFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 30px) scale(1.1);
    }
}

/* =============================================
           SECTION - WRAPPER
        ============================================= */
section {
    position: relative;
    z-index: 2;
}

/* =============================================
           HERO SECTION
        ============================================= */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    text-align: center;
}

/* === Orbit ring decoration === */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, .15);
    pointer-events: none;
    animation: orbitSpin 30s linear infinite;
}

.orbit-ring:nth-child(2) {
    width: 420px;
    height: 420px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
}

.orbit-ring:nth-child(3) {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 40s;
    animation-direction: reverse;
}

.orbit-ring::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--indigo);
    box-shadow: 0 0 12px var(--indigo);
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes orbitSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* === Planet glow === */
.planet-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(99, 102, 241, .12), rgba(6, 182, 212, .06) 50%, transparent 70%);
    border: 1px solid rgba(99, 102, 241, .1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(1px);
    animation: planetPulse 6s ease-in-out infinite;
}

@keyframes planetPulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(99, 102, 241, .08);
    }

    50% {
        box-shadow: 0 0 80px rgba(99, 102, 241, .2);
    }
}

/* === Hero badge === */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(6, 182, 212, .08);
    border: 1px solid rgba(6, 182, 212, .22);
    border-radius: 100px;
    padding: .35rem 1rem;
    margin-bottom: 1.75rem;
    animation: fadeUp .8s ease both;
}

.hero-badge .blink {
    width: 7px;
    height: 7px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .2;
    }
}

/* === Hero title === */
.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: 1.5rem;
    animation: fadeUp .9s .1s ease both;
}

.hero-title .line-white {
    display: block;
    background: linear-gradient(165deg, #f8fafc 20%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .line-glow {
    display: block;
    background: linear-gradient(90deg, var(--blue), var(--indigo), var(--cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-sub {
    font-size: clamp(.95rem, 2vw, 1.1rem);
    color: var(--slate);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    animation: fadeUp .9s .2s ease both;
}

/* === CTA scroll indicator === */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: 3.5rem;
    animation: fadeUp 1s .5s ease both;
}

.scroll-hint .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(148, 163, 184, .3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.scroll-hint .wheel {
    width: 4px;
    height: 8px;
    background: var(--indigo);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* =============================================
           JOURNEY SECTION (scroll = space → earth)
        ============================================= */
#journey {
    padding: 6rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--indigo);
    margin-bottom: .75rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--slate);
    line-height: 1.75;
    max-width: 520px;
}

/* Timeline journey */
.journey-timeline {
    display: grid;
    grid-template-columns: 1fr 3px 1fr;
    gap: 0 2rem;
    margin-top: 4rem;
    align-items: start;
}

.timeline-spine {
    grid-column: 2;
    grid-row: 1 / span 6;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--indigo) 15%, var(--cyan) 50%, var(--emerald) 85%, transparent);
    border-radius: 2px;
    position: relative;
}

.timeline-spine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 0%;
    background: linear-gradient(180deg, var(--indigo), var(--cyan), var(--emerald));
    border-radius: 2px;
    transition: height 1.5s ease;
}

.timeline-spine.reveal::before {
    height: 100%;
}

.timeline-item {
    padding: 0 0 3.5rem;
    opacity: 0;
    transform: translateX(var(--tx, -24px));
    transition: opacity .7s ease, transform .7s ease;
}

.timeline-item.right {
    --tx: 24px;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.left {
    text-align: right;
}

.timeline-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-bottom: .85rem;
    font-size: 1.3rem;
    position: relative;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: .3;
}

.td-indigo {
    background: rgba(99, 102, 241, .12);
    color: var(--indigo);
}

.td-cyan {
    background: rgba(6, 182, 212, .12);
    color: var(--cyan);
}

.td-violet {
    background: rgba(139, 92, 246, .12);
    color: var(--violet);
}

.td-emerald {
    background: rgba(16, 185, 129, .12);
    color: var(--emerald);
}

.timeline-item.left .timeline-dot {
    margin-left: auto;
}

.timeline-item.right .timeline-dot {
    margin-right: auto;
}

.tl-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.tl-body {
    font-size: .88rem;
    color: var(--slate);
    line-height: 1.65;
}

/* Timeline spine dot node */
.tn {
    grid-column: 2;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 14px 0;
}

.tn-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--indigo);
    box-shadow: 0 0 10px var(--indigo);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* =============================================
           FEATURES SECTION
        ============================================= */
#features {
    padding: 6rem 1.5rem;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .5) 20%, rgba(15, 23, 42, .5) 80%, transparent);
}

.features-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

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

.feat-card {
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, .1);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
    opacity: 0;
    transform: translateY(28px);
}

.feat-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .7s ease, transform .7s ease, border-color .35s ease, box-shadow .35s ease;
}

.feat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, .35);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .35), 0 0 0 1px rgba(99, 102, 241, .12) inset;
}

.feat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(99, 102, 241, .06), transparent 60%);
    pointer-events: none;
}

.feat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
}

.fi-blue {
    background: rgba(59, 130, 246, .15);
    border: 1px solid rgba(59, 130, 246, .25);
}

.fi-indigo {
    background: rgba(99, 102, 241, .15);
    border: 1px solid rgba(99, 102, 241, .25);
}

.fi-cyan {
    background: rgba(6, 182, 212, .15);
    border: 1px solid rgba(6, 182, 212, .25);
}

.fi-violet {
    background: rgba(139, 92, 246, .15);
    border: 1px solid rgba(139, 92, 246, .25);
}

.fi-emerald {
    background: rgba(16, 185, 129, .15);
    border: 1px solid rgba(16, 185, 129, .25);
}

.fi-amber {
    background: rgba(245, 158, 11, .15);
    border: 1px solid rgba(245, 158, 11, .25);
}

.feat-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .45rem;
}

.feat-body {
    font-size: .875rem;
    color: var(--slate);
    line-height: 1.65;
}

.feat-tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .25rem .7rem;
    border-radius: 100px;
}

.ft-blue {
    color: var(--blue);
    background: rgba(59, 130, 246, .1);
    border: 1px solid rgba(59, 130, 246, .2);
}

.ft-cyan {
    color: var(--cyan);
    background: rgba(6, 182, 212, .1);
    border: 1px solid rgba(6, 182, 212, .2);
}

.ft-violet {
    color: var(--violet);
    background: rgba(139, 92, 246, .1);
    border: 1px solid rgba(139, 92, 246, .2);
}

.ft-emerald {
    color: var(--emerald);
    background: rgba(16, 185, 129, .1);
    border: 1px solid rgba(16, 185, 129, .2);
}

.ft-amber {
    color: #f59e0b;
    background: rgba(245, 158, 11, .1);
    border: 1px solid rgba(245, 158, 11, .2);
}

.ft-indigo {
    color: var(--indigo);
    background: rgba(99, 102, 241, .1);
    border: 1px solid rgba(99, 102, 241, .2);
}

/* =============================================
           PROGRESS SECTION
        ============================================= */
#progress-section {
    padding: 6rem 1.5rem;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.progress-wrap {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.prog-row {
    text-align: left;
}

.prog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: #cbd5e1;
}

.prog-pct {
    color: var(--indigo);
}

.prog-track {
    width: 100%;
    height: 7px;
    background: rgba(148, 163, 184, .1);
    border-radius: 100px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    width: 0;
    border-radius: 100px;
    transition: width 1.6s cubic-bezier(.16, 1, .3, 1);
}

/* =============================================
           STATS BAR
        ============================================= */
#stats {
    padding: 4rem 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, .07);
    border-bottom: 1px solid rgba(148, 163, 184, .07);
}

.stats-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-num {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: .8rem;
    color: var(--muted);
    margin-top: .3rem;
}

/* =============================================
           FOOTER
        ============================================= */
#footer {
    position: relative;
    z-index: 2;
    padding: 5rem 1.5rem 3rem;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .04em;
    background: linear-gradient(90deg, var(--blue), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-desc {
    font-size: .88rem;
    color: var(--slate);
    line-height: 1.65;
}

.footer-tagline {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--cyan);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-col-title {
    font-size: .9rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.footer-links li {
    font-size: .88rem;
    color: var(--slate);
    line-height: 1.5;
}

.footer-links a {
    color: var(--slate);
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #f8fafc;
    transform: translateX(3px);
}

.footer-bottom {
    max-width: 1100px;
    margin: 4rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    color: var(--muted);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    padding: .85rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 8px 24px rgba(59, 130, 246, .3);
    cursor: default;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, .45);
}

/* =============================================
           SCROLL PROGRESS BAR (top)
        ============================================= */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--indigo), var(--cyan));
    z-index: 100;
    transition: width .1s linear;
}

/* =============================================
           NAV (minimal floating)
        ============================================= */
#nav {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background: rgba(3, 7, 18, .7);
    border: 1px solid rgba(148, 163, 184, .1);
    border-radius: 100px;
    padding: .6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    white-space: nowrap;
    transition: box-shadow .3s;
}

#nav:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}

.nav-logo {
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .04em;
    background: linear-gradient(90deg, var(--blue), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: .78rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .03em;
    transition: color .2s;
}

.nav-links a:hover {
    color: #f8fafc;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    color: #fff;
    border-radius: 100px;
    padding: .45rem 1.1rem;
    text-decoration: none;
    letter-spacing: .02em;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(59, 130, 246, .3);
    white-space: nowrap;
}

.nav-cta:hover {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, .45);
}

/* =============================================
           ANIMATIONS BASE
        ============================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

/* =============================================
           RESPONSIVE
        ============================================= */
@media (max-width:768px) {
    .journey-timeline {
        grid-template-columns: 1fr;
    }

    .timeline-spine {
        display: none;
    }

    .timeline-item {
        text-align: left;
        --tx: -16px;
    }

    .timeline-item.left .timeline-dot {
        margin-left: 0;
    }

    .tn {
        display: none;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-top: 2.5rem;
    }

    .footer-bottom-right {
        margin-top: 0.25rem;
    }

    #nav {
        gap: 1rem;
        padding: .5rem 1.2rem;
    }
}

@media (max-width:480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .stat-num {
        font-size: 2rem;
    }
}

/* =============================================
           PARALLAX OVERLAY - space→earth gradient
           Deep space → atmosphere → sky blue → earth
        ============================================= */
#sky-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
            rgba(3, 7, 18, 0) 0%,
            rgba(14, 21, 57, calc(var(--opacity-space, 0))) 25%,
            rgba(12, 47, 99, calc(var(--opacity-atmo, 0))) 50%,
            rgba(14, 80, 145, calc(var(--opacity-skyblue, 0))) 70%,
            rgba(186, 230, 253, calc(var(--opacity-cloud, 0) * .18)) 88%,
            rgba(224, 242, 254, calc(var(--opacity-ground, 0) * .12)) 100%);
    transition: background .15s linear;
}
