/* ═══════════════════════════════════════════════════════════════
   WanderAI Landing — Cartographic Luxury
   Navigation charts meet modern travel planning
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
    --void: #060a12;
    --ocean: #0b1120;
    --depth: #111a2e;
    --chart: #162036;
    --ink: #e8e0d6;
    --ink-soft: #b0a899;
    --ink-faint: #7a7368;
    --ink-ghost: #3d3830;
    --brass: #d4a254;
    --brass-light: #e8be78;
    --brass-dim: #b8893e;
    --brass-glow: rgba(212, 162, 84, 0.12);
    --brass-line: rgba(212, 162, 84, 0.25);
    --seafoam: #6db882;
    --edge: rgba(184, 168, 144, 0.08);
    --edge-warm: rgba(212, 162, 84, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--ocean);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ─── Atmosphere ──────────────────────────────────────────────── */

.landing {
    position: relative;
}

.landing::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(212, 162, 84, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 80%, rgba(109, 184, 130, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Grid overlay — faint chart lines */
.chart-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(184, 168, 144, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 168, 144, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

/* ─── Navigation ──────────────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    background: rgba(11, 17, 32, 0.8);
    border-bottom: 1px solid var(--edge);
}

.nav-brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brass);
    text-decoration: none;
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 200ms;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--ink);
}

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--void);
    background: var(--brass);
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 200ms;
    letter-spacing: -0.01em;
}

.nav-cta:hover {
    background: var(--brass-dim);
}

/* ─── Hero ────────────────────────────────────────────────────── */

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    text-align: center;
    overflow: hidden;
}

/* Rotating destination background */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease;
    z-index: -1;
}

.hero-bg.loaded {
    opacity: 1;
}

/* Heavy overlay so image is atmospheric, not distracting */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11, 17, 32, 0.82) 0%,
        rgba(11, 17, 32, 0.88) 40%,
        rgba(11, 17, 32, 0.95) 100%
    );
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 800ms 200ms both;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--brass-line);
}

.hero-heading {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    max-width: 800px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 800ms 350ms both;
}

.hero-heading .accent {
    color: var(--brass);
}

.hero-sub {
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 400;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 44px;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeUp 800ms 500ms both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 800ms 650ms both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--brass);
    color: var(--void);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-radius: 8px;
    text-decoration: none;
    transition: all 200ms;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--brass-light);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-radius: 8px;
    text-decoration: none;
    transition: all 200ms;
    border: 1px solid var(--edge);
}

.btn-secondary:hover {
    color: var(--ink);
    border-color: var(--brass-line);
    background: var(--brass-glow);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--ink-ghost);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 800ms 900ms both;
}

.scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--brass-line), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ─── Route Section (How It Works) ────────────────────────────── */

.route-section {
    position: relative;
    z-index: 1;
    padding: 100px 40px 120px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 12px;
}

.section-heading {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 480px;
    margin-bottom: 64px;
}

/* The route map */
.route-map {
    position: relative;
}

/* The connecting path line */
.route-path {
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        var(--brass-line) 0px,
        var(--brass-line) 6px,
        transparent 6px,
        transparent 12px
    );
}

.route-waypoint {
    position: relative;
    display: flex;
    gap: 32px;
    padding-bottom: 48px;
}

.route-waypoint:last-child {
    padding-bottom: 0;
}

/* Waypoint marker */
.waypoint-marker {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--depth);
    border: 2px solid var(--brass-line);
    font-size: 20px;
    position: relative;
    z-index: 2;
    transition: all 400ms;
}

.route-waypoint:hover .waypoint-marker {
    border-color: var(--brass);
    background: var(--brass-glow);
    transform: scale(1.08);
}

.waypoint-body {
    padding-top: 4px;
    flex: 1;
}

.waypoint-number {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass-dim);
    margin-bottom: 4px;
}

.waypoint-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.waypoint-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 400px;
}

/* ─── Features Strip ──────────────────────────────────────────── */

.features {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    border-top: 1px solid var(--edge);
    border-bottom: 1px solid var(--edge);
    background: var(--void);
}

.features-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.feature {
    position: relative;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--brass-glow);
    border: 1px solid var(--edge-warm);
    font-size: 18px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--ink-soft);
}

/* ─── CTA Section ─────────────────────────────────────────────── */

.cta-section {
    position: relative;
    z-index: 1;
    padding: 120px 40px;
    text-align: center;
}

.cta-section .section-heading {
    margin-bottom: 20px;
}

.cta-section .section-sub {
    margin: 0 auto 40px;
}

/* Compass rose decoration */
.compass {
    display: inline-block;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    opacity: 0.5;
    position: relative;
}

.compass::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid var(--brass-line);
    border-radius: 50%;
}

.compass::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: var(--brass);
    transform: translate(-50%, -50%) rotate(-20deg);
    border-radius: 1px;
}

/* ─── Footer ──────────────────────────────────────────────────── */

.footer {
    position: relative;
    z-index: 1;
    padding: 40px;
    border-top: 1px solid var(--edge);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 14px;
    font-weight: 700;
    color: var(--brass-dim);
    letter-spacing: -0.02em;
}

.footer-note {
    font-size: 12px;
    color: var(--ink-ghost);
}

/* ─── Animations ──────────────────────────────────────────────── */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered reveals */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms, transform 600ms;
}

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

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 400ms; }

/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 768px) {
    .nav {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-link {
        display: none;
    }

    .hero {
        padding: 100px 24px 80px;
    }

    .route-section {
        padding: 60px 24px 80px;
    }

    .features-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .features {
        padding: 60px 24px;
    }

    .cta-section {
        padding: 80px 24px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .route-waypoint {
        gap: 20px;
    }

    .waypoint-marker {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .route-path {
        left: 19px;
    }

    .waypoint-title {
        font-size: 17px;
    }
}
