/* ============================================
   OrbitMI: The Chart
   Nautical chart aesthetic — cream paper, ink navy, brass, chart blue
   ============================================ */

:root {
    /* --- Chart palette: cream paper, navy ink, brass, chart blue --- */
    --c-paper:        #F1E9D2;   /* chart paper cream */
    --c-paper-2:      #E5D9B6;   /* deeper land tone */
    --c-paper-3:      #D8C99A;   /* aged paper / dividers */
    --c-water:        #C4DCE6;   /* chart blue: shallow water */
    --c-water-2:      #A8C8D8;   /* chart blue: medium water */
    --c-water-3:      #6E96AC;   /* chart blue: deep water (dark sections) */
    --c-ink:          #1B2D4D;   /* deep navy ink (chart text & lines) */
    --c-ink-2:        #243657;   /* slightly lighter ink */
    --c-deep:         #0F1D34;   /* deepest navy (very dark sections) */
    --c-graphite:     #4A5870;   /* secondary text */
    --c-fog:          #8B96A8;   /* tertiary text / muted */
    --c-rule:         #2A3850;   /* hairline borders on dark */
    --c-rule-light:   #B8A878;   /* warm tan hairline on light (chart line color) */

    /* Accents */
    --c-brass:        #B8860B;   /* primary: brass — compass marks, soundings */
    --c-brass-dim:    #8E6608;
    --c-brass-light:  #D9A93E;
    --c-brass-glow:   rgba(184, 134, 11, 0.15);
    --c-maritime-red: #B22222;   /* secondary: warning / regulatory */
    --c-maritime-red-dim: #8C1A1A;
    --c-flag-yellow:  #C8A040;
    --c-magenta:      #FF1F8A;   /* RESERVED: live route trail only */

    /* Legacy alias compatibility */
    --c-phosphor:     var(--c-brass);
    --c-phosphor-dim: var(--c-brass-dim);
    --c-phosphor-glow: var(--c-brass-glow);
    --c-amber:        var(--c-maritime-red);
    --c-amber-dim:    var(--c-maritime-red-dim);
    --c-cyan:         var(--c-water-2);

    /* Aliases for legacy components */
    --color-primary:       var(--c-deep);
    --color-primary-light: var(--c-ink-2);
    --color-deep:          var(--c-deep);
    --color-deep-2:        var(--c-ink-2);
    --color-deep-3:        var(--c-rule);
    --color-ocean:         var(--c-ink-2);
    --color-sky:           var(--c-paper);
    --color-sky-2:         var(--c-paper-2);
    --color-cream:         var(--c-paper);
    --color-accent:        var(--c-brass);
    --color-accent-dark:   var(--c-brass-dim);
    --color-accent-glow:   var(--c-brass-glow);
    --color-amber:         var(--c-maritime-red);
    --color-amber-dark:    var(--c-maritime-red-dim);
    --color-amber-glow:    rgba(178, 34, 34, 0.15);
    --color-magenta:       var(--c-magenta);
    --color-success:       #2E8557;
    --color-warning:       var(--c-flag-yellow);
    --color-danger:        var(--c-maritime-red);

    --color-white:    #FFFFFF;
    --color-gray-50:  var(--c-paper);
    --color-gray-100: var(--c-paper-2);
    --color-gray-200: var(--c-paper-3);
    --color-gray-300: #B6AC9A;
    --color-gray-400: var(--c-fog);
    --color-gray-500: var(--c-graphite);
    --color-gray-600: #2A3340;
    --color-gray-700: #1B2530;
    --color-gray-800: var(--c-ink);
    --color-gray-900: var(--c-deep);

    /* --- Typography: editorial serif display + clean sans body + mono for data --- */
    --font-body:    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', 'GT Sectra', Georgia, serif;
    --font-mono:    'IBM Plex Mono', Consolas, monospace;
    --font-family:  var(--font-body);

    --font-size-xs: 0.6875rem;     /* 11px */
    --font-size-sm: 0.8125rem;     /* 13px */
    --font-size-base: 0.9375rem;   /* 15px */
    --font-size-lg: 1.0625rem;     /* 17px */
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.25rem;
    --font-size-6xl: 4.25rem;

    /* Spacing scale */
    --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
    --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
    --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
    --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

    /* Radius: minimal in Bridge */
    --radius-sm: 0; --radius-md: 0; --radius-lg: 0;
    --radius-xl: 0; --radius-2xl: 0; --radius-full: 9999px;

    /* Shadows: none in Bridge */
    --shadow-sm: none; --shadow-md: none; --shadow-lg: none; --shadow-xl: none;
    --shadow-glow: none;

    --transition-fast: 120ms linear;
    --transition-base: 200ms linear;
    --transition-slow: 350ms ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.55;
    color: var(--c-ink);
    background: var(--c-paper);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "ss01", "cv11";
    /* Subtle paper grain via ultra-faint noise pattern */
    background-image:
        radial-gradient(circle at 25% 35%, rgba(184, 134, 11, 0.025) 0%, transparent 40%),
        radial-gradient(circle at 75% 65%, rgba(110, 150, 172, 0.03) 0%, transparent 35%);
}

img { max-width: 100%; display: block; }
a { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-rule-light); text-underline-offset: 3px; transition: text-decoration-color var(--transition-fast); }
a:hover { text-decoration-color: var(--c-brass); }

/* Mono utility */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; letter-spacing: 0; }
.tabular { font-variant-numeric: tabular-nums; }

/* Headings: editorial Fraunces serif with character */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--c-ink);
    font-variation-settings: "opsz" 144, "SOFT" 50;
}

/* Eyebrow style: small mono caps with bracket marks */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-graphite);
    display: inline-block;
}
.eyebrow::before { content: '◈'; color: var(--c-brass); margin-right: 8px; font-size: 9px; }
.eyebrow::after  { content: '◈'; color: var(--c-brass); margin-left: 8px; font-size: 9px; }

/* Section number labels */
.section-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--c-graphite);
    text-transform: uppercase;
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.section-tag::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--c-brass);
    display: inline-block;
}

/* --- Layout --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-8); }
.section-header { margin-bottom: var(--space-16); max-width: 720px; }
.section-title {
    font-family: var(--font-display);
    font-size: var(--font-size-5xl);
    font-weight: 600;
    color: var(--c-ink);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-bottom: var(--space-5);
    font-variation-settings: "opsz" 144, "SOFT" 30;
}
.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--c-graphite);
    max-width: 640px;
    line-height: 1.55;
}

/* --- Status bar: deep navy chart band with brass accents --- */
.statusbar {
    background: var(--c-deep);
    color: rgba(241, 233, 210, 0.6);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--c-rule);
    position: relative;
    z-index: 1001;
}
.statusbar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}
.statusbar__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c-brass-light);
    font-weight: 500;
}
.statusbar__pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-brass-light);
    box-shadow: 0 0 6px var(--c-brass-light);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
.statusbar__sep { color: rgba(241, 233, 210, 0.18); }
.statusbar__metric { color: rgba(241, 233, 210, 0.5); }
.statusbar__metric span { color: var(--c-paper); font-weight: 500; margin-left: 4px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--c-ink);
    border-radius: 0;
    background: transparent;
    color: var(--c-ink);
    padding: 14px 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}
.btn::before, .btn::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: var(--c-brass);
    border-style: solid;
    border-width: 0;
    transition: opacity var(--transition-fast);
    opacity: 0;
}
.btn::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.btn::after  { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.btn:hover::before, .btn:hover::after { opacity: 1; }

.btn--small { font-size: 11px; padding: 8px 14px; }
.btn--large { font-size: 13px; padding: 18px 28px; }

.btn--primary {
    background: var(--c-ink);
    color: var(--c-paper);
    border-color: var(--c-ink);
}
.btn--primary:hover {
    background: var(--c-deep);
    color: var(--c-brass-light);
    border-color: var(--c-brass);
}

.btn--ghost {
    background: transparent;
    color: var(--c-paper);
    border-color: rgba(244, 240, 232, 0.4);
}
.btn--ghost:hover {
    border-color: var(--c-brass);
    color: var(--c-brass-light);
}

.btn--outline {
    background: transparent;
    color: var(--c-ink);
    border-color: var(--c-ink);
}
.btn--outline:hover {
    background: var(--c-ink);
    color: var(--c-paper);
}

.btn--full { width: 100%; }
.btn .arrow { font-family: var(--font-mono); margin-left: 4px; transition: transform var(--transition-fast); }
.btn:hover .arrow { transform: translateX(3px); }

/* --- Navigation --- */
.nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--c-paper);
    border-bottom: 1px solid var(--c-rule-light);
    transition: border-color var(--transition-base);
}
.nav__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--c-ink);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.nav__logo-img { height: 28px; width: auto; }
.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}
.nav__link {
    color: var(--c-graphite);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}
.nav__link:hover { color: var(--c-ink); }
.nav__link--highlight { color: var(--c-brass-dim) !important; }
.nav__link--highlight::before {
    content: '◈';
    margin-right: 4px;
    color: var(--c-brass);
    font-size: 9px;
    vertical-align: middle;
}
.nav__cta {
    background: var(--c-ink);
    color: var(--c-paper) !important;
    border: 1px solid var(--c-ink);
    padding: 8px 14px;
    font-size: 11px;
    text-decoration: none !important;
}
.nav__cta:hover {
    background: var(--c-brass);
    color: var(--c-deep) !important;
    border-color: var(--c-brass);
}
.nav__mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: var(--space-2); }
.nav__mobile-toggle span { display: block; width: 22px; height: 1px; background: var(--c-ink); }
.nav__mobile-menu { display: none; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: var(--c-paper); border-top: 1px solid var(--c-rule-light); }
.nav__mobile-menu.active { display: flex; }

/* --- Hero --- */
.hero {
    position: relative;
    background: var(--c-deep);
    color: var(--c-paper);
    padding: var(--space-24) 0 var(--space-20);
    overflow: hidden;
    border-bottom: 1px solid var(--c-rule);
}
.hero__bg-pattern {
    position: absolute; inset: 0;
    background-image:
        /* Lat/long graticule in brass */
        linear-gradient(rgba(184, 134, 11, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 134, 11, 0.06) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.hero::before {
    /* Detailed compass rose watermark with cardinal points */
    content: '';
    position: absolute;
    top: 50%;
    right: -180px;
    transform: translateY(-50%);
    width: 760px;
    height: 760px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23B8860B' stroke-opacity='0.18' stroke-width='0.4'><circle cx='100' cy='100' r='95'/><circle cx='100' cy='100' r='80'/><circle cx='100' cy='100' r='62'/><circle cx='100' cy='100' r='42'/><circle cx='100' cy='100' r='22'/><line x1='100' y1='5' x2='100' y2='195'/><line x1='5' y1='100' x2='195' y2='100'/><line x1='32' y1='32' x2='168' y2='168'/><line x1='168' y1='32' x2='32' y2='168'/><line x1='62' y1='14' x2='138' y2='186'/><line x1='138' y1='14' x2='62' y2='186'/><line x1='14' y1='62' x2='186' y2='138'/><line x1='14' y1='138' x2='186' y2='62'/><polygon points='100,15 105,100 100,80 95,100' fill='%23B8860B' fill-opacity='0.22' stroke='none'/><polygon points='100,185 95,100 100,120 105,100' fill='%23B8860B' fill-opacity='0.10' stroke='none'/><text x='100' y='13' text-anchor='middle' font-family='serif' font-size='9' font-weight='700' fill='%23B8860B' fill-opacity='0.45' stroke='none'>N</text><text x='190' y='103' text-anchor='middle' font-family='serif' font-size='8' fill='%23B8860B' fill-opacity='0.30' stroke='none'>E</text><text x='100' y='196' text-anchor='middle' font-family='serif' font-size='8' fill='%23B8860B' fill-opacity='0.30' stroke='none'>S</text><text x='10' y='103' text-anchor='middle' font-family='serif' font-size='8' fill='%23B8860B' fill-opacity='0.30' stroke='none'>W</text></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* Depth soundings scattered as faint background numbers */
.hero::after {
    content: '⌐ 24 ⌐ 18 ⌐ 32 ⌐ 12 ⌐ 45 ⌐';
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(184, 134, 11, 0.22);
    letter-spacing: 0.4em;
    pointer-events: none;
    white-space: nowrap;
}

.hero__layout {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-12);
    align-items: stretch;
    z-index: 2;
}

.hero__content { position: relative; }

.hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--c-brass-light);
    text-transform: uppercase;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.hero__eyebrow::before { content: '◈'; font-size: 11px; color: var(--c-brass); }

.hero__badge {
    display: inline-block;
    background: transparent;
    color: var(--c-brass-light);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--c-brass);
    border-radius: 0;
    margin-bottom: var(--space-6);
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--font-size-6xl);
    font-weight: 600;
    color: var(--c-paper);
    line-height: 1.02;
    margin-bottom: var(--space-6);
    letter-spacing: -0.025em;
    font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero__title-highlight {
    color: var(--c-brass-light);
    font-weight: 600;
    font-style: italic;       /* Fraunces italic is gorgeous */
    background: none;
    -webkit-text-fill-color: var(--c-brass-light);
}
.hero__subtitle {
    font-size: var(--font-size-lg);
    color: var(--c-paper-3);
    line-height: 1.55;
    margin-bottom: var(--space-8);
    max-width: 560px;
}
.hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-10);
}

/* Hero data sheet (right column, chart-card style) */
.hero__data {
    border: 1px solid var(--c-brass);
    background: rgba(241, 233, 210, 0.04);
    backdrop-filter: blur(2px);
    font-family: var(--font-mono);
    color: rgba(241, 233, 210, 0.7);
    padding: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}
.hero__data-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-brass);
    background: rgba(184, 134, 11, 0.10);
    color: var(--c-brass-light);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero__data-header::before { content: '◈'; margin-right: 6px; }
.hero__data-header span { color: rgba(241, 233, 210, 0.5); font-weight: 400; letter-spacing: 0.05em; }
.hero__data-row {
    padding: 11px 16px;
    border-bottom: 1px solid rgba(184, 134, 11, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
}
.hero__data-row:last-child { border-bottom: none; }
.hero__data-row span:first-child {
    color: rgba(241, 233, 210, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 10px;
}
.hero__data-row span:last-child {
    color: var(--c-paper);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.hero__data-row--lg span:last-child {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-display);
    font-style: italic;
    letter-spacing: -0.01em;
}
.hero__data-row--accent span:last-child {
    color: var(--c-brass-light);
}

.hero__data-footer {
    padding: 14px 16px;
    background: rgba(184, 134, 11, 0.08);
    border-top: 1px solid var(--c-brass);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero__data-footer .btn {
    background: var(--c-brass);
    color: var(--c-deep);
    border-color: var(--c-brass);
}
.hero__data-footer .btn:hover {
    background: var(--c-brass-light);
    color: var(--c-deep);
    border-color: var(--c-brass-light);
}

.hero__data-indicators {
    display: flex;
    justify-content: center;
    gap: 4px;
}
.hero__calc-indicator {
    width: 18px; height: 4px;
    background: rgba(184, 134, 11, 0.25);
    border: none;
    border-radius: 0;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast);
}
.hero__calc-indicator:hover { background: rgba(184, 134, 11, 0.5); }
.hero__calc-indicator.is-active { background: var(--c-brass-light); }

#calc-route-label {
    font-family: var(--font-mono);
    color: var(--c-fog);
    font-weight: 400;
    letter-spacing: 0.06em;
    font-size: 10px;
}

/* Hero coordinate stamps */
.hero__coord {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(217, 169, 62, 0.55);
    letter-spacing: 0.05em;
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.hero__coord--top    { top: 16px;    left: var(--space-8); }
.hero__coord--bot    { bottom: 16px; right: var(--space-8); }
.hero__coord::before {
    content: '◈ ';
    font-size: 9px;
    color: var(--c-brass);
    margin-right: 4px;
    opacity: 0.85;
}
.hero.is-tracking .hero__coord {
    color: rgba(217, 169, 62, 0.95);
}

/* --- Section divider rule --- */
.rule-section {
    border-top: 1px solid var(--c-rule-light);
    height: 0;
}
.rule-section--dark { border-color: var(--c-rule); }

/* --- How Flow (3-step) --- */
.how-flow {
    padding: var(--space-24) 0;
    background: var(--c-paper);
    border-bottom: 1px solid var(--c-rule-light);
}
.flow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--c-rule-light);
    border-bottom: 1px solid var(--c-rule-light);
}
.flow-step {
    padding: var(--space-8);
    border-right: 1px solid var(--c-rule-light);
    background: var(--c-paper);
    position: relative;
    transition: background var(--transition-fast);
}
.flow-step:last-child { border-right: none; }
.flow-step:hover { background: var(--c-paper-2); }
.flow-step__number {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--c-phosphor-dim);
    letter-spacing: 0.12em;
    margin-bottom: var(--space-5);
}
.flow-step__icon {
    width: 36px; height: 36px;
    color: var(--c-ink);
    margin-bottom: var(--space-5);
}
.flow-step__icon svg { width: 100%; height: 100%; }
.flow-step h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--c-ink);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}
.flow-step p {
    font-size: var(--font-size-sm);
    color: var(--c-graphite);
    line-height: 1.6;
}
.flow-arrow { display: none; }

/* --- Problems --- */
.problems { padding: var(--space-24) 0; background: var(--c-paper); border-bottom: 1px solid var(--c-rule-light); }
.problems__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--c-rule-light); border-bottom: 1px solid var(--c-rule-light); }
.problem-card {
    padding: var(--space-8);
    border-right: 1px solid var(--c-rule-light);
    background: var(--c-paper);
    transition: background var(--transition-fast);
}
.problem-card:last-child { border-right: none; }
.problem-card:hover { background: var(--c-paper-2); }
.problem-card__icon {
    width: 32px; height: 32px;
    margin-bottom: var(--space-5);
    color: var(--c-amber);
    background: none;
    border-radius: 0;
    display: block;
}
.problem-card__icon svg { width: 100%; height: 100%; }
.problem-card__icon--red    { color: #FF4747; }
.problem-card__icon--orange { color: var(--c-amber); }
.problem-card__icon--yellow { color: #D9A833; }
.problem-card__title { font-size: var(--font-size-xl); font-weight: 700; color: var(--c-ink); margin-bottom: var(--space-3); letter-spacing: -0.02em; }
.problem-card__text  { font-size: var(--font-size-sm); color: var(--c-graphite); line-height: 1.6; }

/* --- Solutions / Offer (now a spec-sheet table) --- */
.solutions { padding: var(--space-24) 0; background: var(--c-paper); border-bottom: 1px solid var(--c-rule-light); }
.solutions__ladder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--c-rule-light);
    background: var(--c-paper);
}
.solution-card {
    padding: var(--space-8);
    border-right: 1px solid var(--c-rule-light);
    background: var(--c-paper);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background var(--transition-fast);
}
.solution-card:last-child { border-right: none; }
.solution-card:hover { background: var(--c-paper-2); }
.solution-card--paid {
    background: var(--c-ink);
    color: var(--c-paper);
}
.solution-card--paid:hover { background: var(--c-deep); }
.solution-card__badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px 8px;
    border: 1px solid currentColor;
    margin-bottom: var(--space-6);
    width: fit-content;
}
.solution-card__badge--green { color: var(--c-phosphor-dim); }
.solution-card__badge--blue  { color: var(--c-phosphor); }
.solution-card__badge--navy  { color: var(--c-graphite); }
.solution-card--paid .solution-card__badge--blue { color: var(--c-phosphor); border-color: var(--c-phosphor); }

.solution-card__title { font-size: var(--font-size-2xl); font-weight: 800; color: inherit; margin-bottom: var(--space-3); letter-spacing: -0.02em; }
.solution-card--paid .solution-card__title { color: var(--c-paper); }
.solution-card__text { font-size: var(--font-size-sm); color: var(--c-graphite); line-height: 1.55; margin-bottom: var(--space-6); }
.solution-card--paid .solution-card__text { color: var(--c-paper-3); }

.solution-card__features { list-style: none; margin-bottom: var(--space-8); flex-grow: 1; padding: var(--space-3) 0; border-top: 1px solid var(--c-rule-light); }
.solution-card--paid .solution-card__features { border-color: var(--c-rule); }
.solution-card__features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--c-graphite);
    border-bottom: 1px dotted var(--c-rule-light);
}
.solution-card__features li:last-child { border-bottom: none; }
.solution-card--paid .solution-card__features li { color: var(--c-paper-3); border-color: var(--c-rule); }
.solution-card__features li::before {
    content: '◢';
    color: var(--c-phosphor-dim);
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}
.solution-card--paid .solution-card__features li::before { color: var(--c-phosphor); }

.solution-card__price {
    margin-bottom: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--c-rule-light);
}
.solution-card--paid .solution-card__price { border-color: var(--c-rule); }
.solution-card__amount {
    font-family: var(--font-display);
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--c-ink);
    letter-spacing: -0.04em;
    line-height: 1;
}
.solution-card--paid .solution-card__amount { color: var(--c-paper); }
.solution-card__period {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-graphite);
    margin-left: var(--space-2);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.solution-card--paid .solution-card__period { color: var(--c-paper-3); }

.solution-card--paid .btn--primary {
    background: var(--c-brass);
    color: var(--c-deep);
    border-color: var(--c-brass);
}
.solution-card--paid .btn--primary:hover {
    background: var(--c-brass-light);
    color: var(--c-deep);
    border-color: var(--c-brass-light);
}

/* --- Why OrbitMI --- */
.why { padding: var(--space-24) 0; background: var(--c-paper-2); border-bottom: 1px solid var(--c-rule-light); }
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--c-rule-light); border-left: 1px solid var(--c-rule-light); }
.why__item {
    padding: var(--space-8);
    background: var(--c-paper);
    border-right: 1px solid var(--c-rule-light);
    border-bottom: 1px solid var(--c-rule-light);
    transition: background var(--transition-fast);
}
.why__item:hover { background: var(--c-paper-2); }
.why__icon { width: 32px; height: 32px; color: var(--c-phosphor-dim); margin-bottom: var(--space-4); }
.why__icon svg { width: 100%; height: 100%; }
.why__item h3 { font-size: var(--font-size-xl); font-weight: 700; color: var(--c-ink); margin-bottom: var(--space-3); letter-spacing: -0.02em; }
.why__item p  { font-size: var(--font-size-sm); color: var(--c-graphite); line-height: 1.6; }

/* --- Results / Stats: deep ocean navy with brass --- */
.results { padding: var(--space-24) 0; background: var(--c-deep); color: var(--c-paper); border-bottom: 1px solid var(--c-rule); position: relative; }
.results::before {
    /* Subtle bathymetric contour line decoration */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(184, 134, 11, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 134, 11, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}
.results > * { position: relative; }
.results__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: var(--space-16);
    border-top: 1px solid var(--c-rule);
    border-bottom: 1px solid var(--c-rule);
}
.stat { padding: var(--space-10) var(--space-8); border-right: 1px solid var(--c-rule); }
.stat:last-child { border-right: none; }
.stat__number {
    font-family: var(--font-display);
    font-size: var(--font-size-5xl);
    font-weight: 600;
    color: var(--c-brass-light);
    line-height: 1;
    margin-bottom: var(--space-3);
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
.stat__label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-paper-3);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.results__logos { text-align: left; margin-bottom: var(--space-12); }
.results__logos-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-fog);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: var(--space-6);
}
.results__logos-label::before { content: '──── '; color: var(--c-rule); }
.results__logo-grid { display: flex; align-items: center; gap: var(--space-12); flex-wrap: wrap; }
.logo-placeholder {
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--c-fog);
    padding: var(--space-3) var(--space-6);
    border: 1px solid var(--c-rule);
    letter-spacing: 0.04em;
}
.results__recognition { padding-top: var(--space-8); border-top: 1px solid var(--c-rule); }
.recognition-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: transparent;
    border: 1px solid var(--c-rule);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-paper-3);
    letter-spacing: 0.06em;
}
.recognition-badge__icon { width: 14px; height: 14px; color: var(--c-amber); flex-shrink: 0; }

/* --- Final CTA --- */
.final-cta {
    padding: var(--space-20) 0;
    background: var(--c-deep);
    color: var(--c-paper);
    border-bottom: 1px solid var(--c-rule);
    text-align: left;
}
.final-cta__title { font-family: var(--font-display); font-size: var(--font-size-5xl); font-weight: 800; color: var(--c-paper); margin-bottom: var(--space-5); letter-spacing: -0.03em; line-height: 1.04; max-width: 720px; }
.final-cta__text  { font-size: var(--font-size-lg); color: var(--c-paper-3); margin-bottom: var(--space-8); max-width: 640px; line-height: 1.55; }
.final-cta__buttons { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* --- Footer --- */
.footer { padding: var(--space-16) 0 var(--space-8); background: var(--c-deep); color: var(--c-fog); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-10); margin-bottom: var(--space-12); padding-bottom: var(--space-10); border-bottom: 1px solid var(--c-rule); }
.footer__logo { display: flex; align-items: center; margin-bottom: var(--space-4); }
.footer__logo-img { height: 24px; width: auto; }
.footer__tagline { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; max-width: 280px; color: var(--c-fog); }
.footer__links h4 { font-family: var(--font-mono); color: var(--c-paper); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: var(--space-4); }
.footer__links a { display: block; color: var(--c-fog); font-size: 13px; padding: var(--space-1) 0; text-decoration: none; transition: color var(--transition-fast); }
.footer__links a:hover { color: var(--c-brass-light); }
.footer__bottom { font-family: var(--font-mono); font-size: 11px; color: var(--c-fog); letter-spacing: 0.06em; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero__layout { grid-template-columns: 1fr; gap: var(--space-10); }
    .hero__title { font-size: var(--font-size-5xl); }
    .flow-steps, .problems__grid, .solutions__ladder { grid-template-columns: 1fr; border-left: 1px solid var(--c-rule-light); border-right: 1px solid var(--c-rule-light); }
    .flow-step, .problem-card, .solution-card { border-right: none; border-bottom: 1px solid var(--c-rule-light); }
    .flow-step:last-child, .problem-card:last-child, .solution-card:last-child { border-bottom: none; }
    .why__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .results__stats { grid-template-columns: 1fr 1fr; }
    .stat { border-right: 1px solid var(--c-rule); border-bottom: 1px solid var(--c-rule); }
    .stat:nth-child(2n) { border-right: none; }
    .stat:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 640px) {
    .results__stats { grid-template-columns: 1fr; }
    .stat { border-right: none !important; border-bottom: 1px solid var(--c-rule) !important; }
    .stat:last-child { border-bottom: none !important; }
}

@media (max-width: 768px) {
    .nav__links, .nav__cta { display: none; }
    .nav__mobile-toggle { display: flex; }
    .hero { padding: var(--space-16) 0 var(--space-12); }
    .hero__title { font-size: var(--font-size-4xl); }
    .hero__cta-group { flex-direction: column; }
    .hero__cta-group .btn { width: 100%; text-align: center; }
    .section-title, .final-cta__title { font-size: var(--font-size-4xl); }
    .stat__number { font-size: var(--font-size-5xl); }
    .final-cta__buttons { flex-direction: column; align-items: stretch; }
    .footer__grid { grid-template-columns: 1fr; }
    .statusbar__inner { gap: var(--space-3); font-size: 10px; }
    .statusbar__sep:nth-of-type(n+3) { display: none; }
}

@media (max-width: 480px) {
    .hero__title { font-size: var(--font-size-3xl); }
    .container { padding: 0 var(--space-4); }
}
