/* ============================================================================
 * HopShip — design tokens
 * Deep navy base + the existing blue as the single brand accent.
 * Green/amber/red are functional state colors (used by the hero viz).
 * ========================================================================== */
:root {
    --navy-950: #070d17;
    --navy-900: #0b1626;
    --navy-800: #122036;
    --navy-700: #1b2f4a;
    --ink: #101a28;
    --muted: #5b6b7f;
    --line: #e3e9f0;
    --paper: #f6f8fb;
    --accent: #3b82f6;
    --accent-deep: #1d4ed8;
    --ok: #2bd576;
    --warn: #ffb020;
    --danger: #ff4d4d;
    --on-dark: #e9eff7;
    --on-dark-muted: #93a5bb;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* overflow-x: clip (NOT hidden) — hidden makes body a scroll container,
 * which silently breaks position:sticky for the hero scrollytelling. */
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background-color: #ffffff;
    overflow-x: clip;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.15rem;
    text-align: center;
    color: var(--muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Kept for airport.html */
.highlight {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--line);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================================
 * Header & Navigation — navy, floats over the hero
 * ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 22, 38, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(147, 165, 187, 0.12);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(11, 22, 38, 0.96);
    box-shadow: 0 4px 20px rgba(3, 8, 16, 0.35);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--on-dark);
}

/* The logo is navy line-art; render it white on the dark header/footer */
.nav-logo img {
    filter: brightness(0) invert(1);
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--on-dark);
}

.nav-link.nav-cta {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
}

.nav-link.nav-cta:hover {
    background: var(--accent-deep);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--on-dark);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* ============================================================================
 * Hero — sticky canvas scrollytelling
 * ========================================================================== */
.hero {
    background: var(--navy-900);
}

.hero-scroll {
    height: 620vh;       /* scrollytelling runway; one band per scenario */
    position: relative;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.hero-canvas-wrap {
    position: absolute;
    inset: 0;
}

#hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hero copy — real DOM, sits over the canvas */
.hero-copy {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 2rem 0;
    pointer-events: none;
    z-index: 3;
}

.hero-copy > * {
    pointer-events: auto;
    max-width: 560px;
}

.hero-copy .hero-title {
    max-width: 640px;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: var(--on-dark);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 24px rgba(7, 13, 23, 0.8);
}

.hero-title span {
    display: block; /* two-line headline on desktop; flows naturally on mobile */
}

.hero-subhead {
    font-size: 1.15rem;
    color: var(--on-dark-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 0 1px 16px rgba(7, 13, 23, 0.8);
}

.hero-actions {
    margin-bottom: 2.5rem;
}

/* Stat strip — thin inline strip, not cards */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(147, 165, 187, 0.18);
    color: var(--on-dark-muted);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.stat { white-space: nowrap; }

.stat-number {
    color: var(--on-dark);
    font-weight: 700;
    margin-right: 0.35rem;
}

.stat-sep {
    width: 1px;
    height: 16px;
    background: rgba(147, 165, 187, 0.3);
}

.hero-scroll-hint {
    margin-top: 2.2rem;
    font-size: 0.85rem;
    color: var(--on-dark-muted);
    opacity: 0.8;
}

.hero-scroll-hint i {
    margin-left: 0.4rem;
    animation: hint-bob 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes hint-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Scenario caption (bottom-left) */
.hero-caption {
    position: absolute;
    left: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
    bottom: 9vh;
    max-width: 420px;
    z-index: 3;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.hero-caption.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-caption-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.hero-caption strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--on-dark);
    margin-bottom: 0.35rem;
}

.hero-caption p {
    font-size: 0.95rem;
    color: var(--on-dark-muted);
    line-height: 1.5;
}

/* Vertical scroll seek bar (right edge) — prompts scrolling + tracks progress */
.hero-seek {
    position: absolute;
    right: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hero-seek.show { opacity: 1; }

.hero-seek-track {
    position: relative;
    width: 4px;
    height: 190px;
    margin-right: 4px;       /* leave room for the thumb glow at the edge */
    border-radius: 4px;
    background: rgba(147, 165, 187, 0.20);
}

.hero-seek-fill {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent), rgba(77, 159, 255, 0.45));
}

.hero-seek-thumb {
    position: absolute;
    left: 50%;
    top: 0;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(77, 159, 255, 0.18), 0 0 12px rgba(77, 159, 255, 0.5);
}

/* Pulse the thumb until the visitor starts scrolling, to draw the eye */
.hero-seek:not(.scrolled) .hero-seek-thumb {
    animation: seek-pulse 1.8s ease-in-out infinite;
}

@keyframes seek-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(77, 159, 255, 0.18), 0 0 12px rgba(77, 159, 255, 0.5); }
    50%      { box-shadow: 0 0 0 7px rgba(77, 159, 255, 0.30), 0 0 18px rgba(77, 159, 255, 0.7); }
}

/* Scenario tick marks living on the seek track */
.hero-dots {
    position: absolute;
    inset: 0;
}

.hero-dot {
    position: absolute;
    left: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: rgba(147, 165, 187, 0.45);
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dot.on {
    background: var(--accent);
    transform: scale(1.35);
}

/* "Scroll to see it in action" prompt under the bar */
.hero-seek-prompt {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: var(--on-dark-muted);
    text-align: right;
    white-space: nowrap;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-seek-prompt i {
    font-size: 0.8rem;
    color: var(--accent);
    animation: hint-bob 2s ease-in-out infinite;
}

/* Once scrolling begins the prompt is no longer needed */
.hero-seek.scrolled .hero-seek-prompt {
    opacity: 0;
    transform: translateY(-6px);
}

/* Alert toast (sells the <100 ms story) */
.hero-alert {
    position: absolute;
    top: 92px;
    right: 1.6rem;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(7, 13, 23, 0.92);
    border: 1px solid rgba(255, 77, 77, 0.55);
    border-left: 3px solid var(--danger);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    color: var(--on-dark);
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
    max-width: 380px;
}

.hero-alert.show {
    opacity: 1;
    transform: translateX(0);
}

.hero-alert strong {
    color: var(--danger);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.hero-alert em {
    font-style: normal;
    color: var(--on-dark-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Agentic-AI comms console (top-center) — controller line + agent actions */
.hero-agent {
    position: absolute;
    top: 92px;
    left: 50%;
    transform: translate(-50%, -8px);
    z-index: 4;
    width: min(460px, calc(100vw - 2.5rem));
    background: rgba(7, 13, 23, 0.92);
    border: 1px solid rgba(147, 165, 187, 0.22);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 14px 40px rgba(3, 8, 16, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.hero-agent.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.agent-row {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.25rem 0;
}

.agent-row + .agent-row {
    margin-top: 0.2rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(147, 165, 187, 0.14);
}

.agent-tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: 116px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
}

.agent-row.controller .agent-tag { color: var(--on-dark-muted); }
.agent-row.agent .agent-tag { color: var(--accent); }

.agent-msg {
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--on-dark);
}

.agent-row.agent .agent-msg { color: var(--on-dark-muted); }
.agent-row.agent.warn .agent-msg { color: var(--warn); font-weight: 500; }
.agent-row.agent.ok .agent-msg { color: var(--ok); font-weight: 600; }

.agent-cursor {
    font-weight: 400;
    color: var(--accent);
    animation: agent-blink 1s steps(1) infinite;
}

@keyframes agent-blink { 50% { opacity: 0; } }

.agent-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: 2px;
    vertical-align: middle;
}

.agent-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
    animation: agent-dot 1.1s ease-in-out infinite;
}

.agent-dots i:nth-child(2) { animation-delay: 0.18s; }
.agent-dots i:nth-child(3) { animation-delay: 0.36s; }

@keyframes agent-dot {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-2px); }
}

/* Hover tooltip */
.hero-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 215px;
    background: rgba(7, 13, 23, 0.94);
    border: 1px solid rgba(147, 165, 187, 0.25);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    font-size: 0.8rem;
    color: var(--on-dark);
    opacity: 0;
    transition: opacity 0.12s ease;
    pointer-events: none;
}

.hero-tooltip.show { opacity: 1; }

.hero-tooltip strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(147, 165, 187, 0.18);
}

.tt-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.1rem 0;
}

.tt-row em {
    font-style: normal;
    color: var(--on-dark-muted);
}

.tt-ok { color: var(--ok); font-weight: 600; }
.tt-warn { color: var(--warn); font-weight: 600; }
.tt-danger { color: var(--danger); font-weight: 700; }

/* Reduced-motion fallback: static frame + labeled callouts */
.hero-static .hero-scroll { height: 100vh; }

#hero-callouts {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-callout {
    position: absolute;
    transform: translate(-50%, -130%);
    background: rgba(7, 13, 23, 0.92);
    border: 1px solid rgba(147, 165, 187, 0.3);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--on-dark);
    white-space: nowrap;
}

.hero-callout::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1px;
    height: 14px;
    background: rgba(147, 165, 187, 0.5);
}

.hero-callout.danger {
    border-color: rgba(255, 77, 77, 0.6);
    color: var(--danger);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-scroll-hint i { animation: none; }
    .hero-caption, .hero-seek, .hero-alert { display: none; }
}

/* ============================================================================
 * Problem
 * ========================================================================== */
.problem {
    padding: 100px 0;
    background: white;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.problem-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.problem-text p {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.75;
}

.problem-numbers {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 3px solid var(--danger);
    padding-left: 2rem;
}

.problem-number b {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.1;
}

.problem-number span {
    color: var(--muted);
    font-size: 0.98rem;
}

/* ============================================================================
 * How it works — numbered steps on a connecting line
 * ========================================================================== */
.how {
    padding: 100px 0;
    background: var(--paper);
}

.how-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    counter-reset: step;
}

.how-steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--danger));
    opacity: 0.35;
}

.how-step {
    text-align: center;
    position: relative;
}

.how-num {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translate(26px, 0);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
}

.how-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: var(--navy-900);
    color: var(--on-dark);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(11, 22, 38, 0.25);
}

.how-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--ink);
}

.how-step p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ============================================================================
 * Capabilities — a ledger, not a card grid
 * ========================================================================== */
.capabilities {
    padding: 100px 0;
    background: white;
}

.capability-ledger {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.capability-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    padding: 2rem 0.5rem;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}

.capability-row:hover {
    background: var(--paper);
}

.capability-name {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.capability-name i {
    color: var(--accent);
    font-size: 1.15rem;
    margin-top: 0.25rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.capability-name h3 {
    font-size: 1.2rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.capability-row p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* ============================================================================
 * Beyond safety — quiet roadmap teaser
 * ========================================================================== */
.beyond {
    padding: 70px 0;
    background: var(--paper);
}

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

.beyond-inner h2 {
    font-size: 1.6rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

.beyond-inner p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.beyond-inner strong {
    color: var(--ink);
    font-weight: 600;
}

.beyond-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
}

.beyond-link:hover {
    color: var(--accent-deep);
}

.beyond-link i {
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* ============================================================================
 * CTA
 * ========================================================================== */
.cta {
    padding: 90px 0;
    background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: white;
}

.cta-description {
    font-size: 1.15rem;
    margin-bottom: 3rem;
    color: var(--on-dark-muted);
}

.cta-content iframe {
    max-width: 100%;
    width: 100%;
    border: none;
    border-radius: 12px;
    background: white;
}

/* ============================================================================
 * Contact
 * ========================================================================== */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-info h2 {
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.contact-info p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 20px;
}

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

.contact-item a:hover {
    color: var(--accent-deep);
}

/* ============================================================================
 * Footer
 * ========================================================================== */
.footer {
    background: var(--navy-950);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--on-dark-muted);
    margin-top: 1rem;
    max-width: 360px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-column a {
    display: block;
    color: var(--on-dark-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(147, 165, 187, 0.15);
    padding-top: 1rem;
    text-align: center;
    color: var(--on-dark-muted);
    font-size: 0.9rem;
}

/* ============================================================================
 * Error page (error.html)
 * ========================================================================== */
.error-section {
    padding: 120px 0 80px;
    background: var(--paper);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.error-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.error-icon {
    width: 120px;
    height: 120px;
    background: var(--danger);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    z-index: 2;
    animation: pulse-error 2s infinite;
}

@keyframes pulse-error {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.error-signals,
.hero-signals {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.signal {
    position: absolute;
    border: 3px solid var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.signal-1 { width: 200px; height: 200px; top: -100px; left: -100px; }
.signal-2 { width: 300px; height: 300px; top: -150px; left: -150px; animation-delay: 0.5s; }
.signal-3 { width: 400px; height: 400px; top: -200px; left: -200px; animation-delay: 1s; }

.error-signals .signal {
    border-color: var(--danger);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.error-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.error-code {
    display: block;
    font-size: 4rem;
    color: var(--danger);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.error-description {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-suggestions { margin-bottom: 2rem; }

.error-suggestions h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

.suggestions-list {
    list-style: none;
    padding: 0;
}

.suggestions-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.suggestions-list i {
    color: var(--ok);
    font-size: 0.9rem;
}

.error-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.error-quick-links { text-align: center; }

.error-quick-links h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--ink);
}

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

.quick-link-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(11, 22, 38, 0.1);
    border-color: var(--accent);
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    background: var(--navy-900);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.quick-link-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.quick-link-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================================================
 * Roadmap page (roadmap.html)
 * ========================================================================== */
.page-hero {
    padding: 130px 0 60px;
    background: var(--navy-900);
    text-align: center;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--on-dark);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--on-dark-muted);
    max-width: 640px;
    margin: 0 auto;
}

.roadmap {
    padding: 80px 0;
    background: white;
}

.roadmap-stage {
    max-width: 820px;
    margin: 0 auto 3.5rem;
}

.roadmap-stage-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.roadmap-stage-header h2 {
    font-size: 1.5rem;
    color: var(--ink);
}

.roadmap-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    background: var(--accent);
    color: white;
    white-space: nowrap;
}

.roadmap-badge.now { background: var(--ok); color: var(--navy-950); }
.roadmap-badge.later { background: var(--navy-700); }

.roadmap-stage > p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.roadmap-items {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 2rem;
}

.roadmap-items li {
    display: flex;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.roadmap-items li strong {
    color: var(--ink);
    font-weight: 600;
}

.roadmap-items i {
    color: var(--accent);
    margin-top: 0.3rem;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.back-home {
    text-align: center;
    padding-bottom: 80px;
    background: white;
}

/* ============================================================================
 * Responsive
 * ========================================================================== */
@media (max-width: 1024px) {
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .how-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-steps::before { display: none; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--navy-900);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid rgba(147, 165, 187, 0.15);
        transform: translateY(-110%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle { display: flex; }

    .section-title { font-size: 2rem; }

    .hero-copy { padding: 90px 1.25rem 0; }

    .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .hero-title span { display: inline; }

    .hero-subhead { font-size: 1rem; }

    .hero-stats {
        flex-wrap: wrap;
        gap: 0.6rem;
        font-size: 0.8rem;
    }

    .stat-sep { display: none; }

    .hero-caption {
        left: 1.25rem;
        right: 1.25rem;
        max-width: none;
        bottom: calc(16vh + env(safe-area-inset-bottom, 0px));
    }

    .hero-alert {
        left: 1.25rem;
        right: 1.25rem;
        max-width: none;
        flex-wrap: wrap;
    }

    /* Keep the scroll seek bar on mobile — it's the key affordance there. Drop it
       into the lower-right, clear of the left-aligned hero copy at the top. */
    .hero-seek { right: 1.1rem; top: 60%; gap: 0.6rem; }
    .hero-seek-track { height: 120px; }
    .hero-seek-prompt { font-size: 0.66rem; }

    .hero-tooltip { display: none; }

    /* Agent console: stack the tag above the message so it fits narrow screens */
    .hero-agent { top: 84px; padding: 0.7rem 0.85rem; }
    .agent-row { flex-direction: column; gap: 0.15rem; }
    .agent-tag { width: auto; font-size: 0.66rem; }
    .agent-msg { font-size: 0.85rem; }

    .capability-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .how-steps { grid-template-columns: 1fr; }

    .problem-number b { font-size: 2.2rem; }

    .roadmap-items { grid-template-columns: 1fr; }

    .error-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .error-visual { order: -1; height: 200px; }
    .error-title { font-size: 2.5rem; }
    .error-code { font-size: 3rem; }
    .error-buttons { flex-direction: column; align-items: center; }
    .quick-links-grid { grid-template-columns: 1fr; }

    .footer-content { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr 1fr; }

    .container { padding: 0 1.25rem; }
    .nav-container { padding: 0 1.25rem; }
}

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