/* caveauAI — Shared Marketing Styles
   Design system: Jazz Noir / BNL AI Site
   Default: light (cream) — dark via [data-theme="dark"]
   Nav: crossnav top bar + site-nav pill (light default, dark override)
*/

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS — Light Default
   ═══════════════════════════════════════════════════════════════ */
:root {
    /* Brand palette */
    --cream: #FAF8F3;
    --ivory: #FFF9F0;
    --warm-white: #FDFBF7;
    --blue-note: #2A3B5C;
    --jazz-blue: #4A6FA5;
    --midnight: #1B2838;
    --brass: #c9a84c;
    --gold: #c9a84c;
    --slate: #64748B;
    --charcoal: #1E293B;
    --silver: #E2E8F0;

    /* Semantic — LIGHT default */
    --bg: var(--cream);
    --bg-alt: var(--ivory);
    --bg-card: #fff;
    --text: var(--charcoal);
    --text-mute: var(--slate);
    --border: rgba(42, 59, 92, 0.12);
    --border-strong: rgba(42, 59, 92, 0.2);

    /* Typography — Midnight Studio (matches the platform) */
    --font-display: 'IBM Plex Sans', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    /* Legacy aliases (nav + Tailwind compat) */
    --accent: #c9a84c;
    --accent-bright: #e6c65a;
    --accent-dark: #9a7e3a;
    --accent-glow: rgba(201, 168, 76, 0.10);
    --accent-glow-strong: rgba(201, 168, 76, 0.22);
    --text-bright: var(--charcoal);
    --text-secondary: var(--slate);
    --text-muted: #7a8da5;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(201, 168, 76, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --bg-deep: var(--ivory);

    /* Nav */
    --nav-height: 80px;
    --nav-pill-bg: rgba(255, 255, 255, 0.75);
    --nav-pill-border: rgba(0, 0, 0, 0.06);
    --nav-scrolled-bg: rgba(255, 255, 255, 0.95);
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 16px;
    --max-width: 1200px;
    --content-pad: clamp(1.25rem, 4vw, 2rem);
}

/* ═══════════════════════════════════════════════════════════════
   DARK THEME OVERRIDES
   ═══════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
    /* Midnight Studio dark — brand midnight #0a0f1e + gold #c9a84c (matches the platform) */
    --bg: #0a0f1e;
    --bg-alt: #0c1322;
    --bg-card: #111827;
    --text: #e6ecf5;
    --text-mute: #9aa7bd;
    --border: rgba(201, 168, 76, 0.16);
    --border-strong: rgba(201, 168, 76, 0.30);
    --blue-note: #58a6ff;
    --midnight: #0a0f1e;

    /* Legacy aliases */
    --text-bright: #f4f7fb;
    --text-secondary: #9aa7bd;
    --bg-deep: #070b16;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(10, 15, 30, 0.78);
    --nav-pill-bg: rgba(17, 24, 39, 0.72);
    --nav-pill-border: rgba(201, 168, 76, 0.14);
    --nav-scrolled-bg: rgba(10, 15, 30, 0.94);
}

/* ═══════════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body, .site {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    min-height: 100%;
    line-height: 1.6;
    font-size: 16px;
}

.site a { color: inherit; text-decoration: none; }
.site a.btn { text-decoration: none; }
.site a.btn--primary { color: #fff; }
.site a.btn--brass { color: var(--midnight); }
.site a.btn--outline, .site a.btn--ghost { color: var(--text); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--text);
    margin: 0;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass);
}
.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 14px;
}
.t-display {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(40px, 5vw, 68px);
    letter-spacing: -0.025em;
    line-height: 1.02;
}
.t-display em { font-style: italic; font-weight: 400; color: var(--brass); }
.t-h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.02em; line-height: 1.1; }
.t-h3 { font-size: 22px; letter-spacing: -0.01em; }
.t-lead {
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.55;
    color: var(--text-mute);
    font-weight: 400;
    max-width: 680px;
}

/* Gold gradient text */
.gradient-gold {
    background: linear-gradient(135deg, #c9a84c 0%, #e6c65a 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
}
.btn--primary {
    background: var(--blue-note);
    color: #fff;
    box-shadow: 0 4px 20px rgba(42, 59, 92, 0.18);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(42, 59, 92, 0.28); }
.btn--outline { border-color: var(--border-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--blue-note); background: color-mix(in srgb, var(--blue-note) 4%, transparent); }
.btn--ghost { color: var(--text); }
.btn--ghost:hover { color: var(--brass); }
.btn--brass { background: var(--brass); color: var(--midnight); font-weight: 600; }
.btn--brass:hover { background: var(--gold); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 16px 28px; font-size: 15px; }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    padding: 96px 0 64px;
    overflow: hidden;
}
/* Staff-line decorative background */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(42, 59, 92, 0.035) 1px, transparent 1px);
    background-size: 100% 80px;
    background-position: 0 40px;
    pointer-events: none;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 28px;
}
.hero__eyebrow::before {
    content: '';
    width: 32px; height: 1px;
    background: var(--brass);
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(44px, 5.5vw, 78px);
    letter-spacing: -0.028em;
    line-height: 1.0;
    font-weight: 500;
    margin: 0 0 28px;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--brass); }
.hero__subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-mute);
    max-width: 520px;
    margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.04em;
}
.hero__signal { display: inline-flex; align-items: center; gap: 8px; }
.hero__signal::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--brass);
}
.hero__visual {
    position: relative;
    aspect-ratio: 4/5;
    border: 1px solid var(--border);
    background: var(--midnight);
    overflow: hidden;
}
.hero__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(27, 40, 56, 0.55) 100%);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; mix-blend-mode: luminosity; }
.hero__visual-meta {
    position: absolute;
    left: 24px; right: 24px; bottom: 24px;
    z-index: 2; color: #fff;
    display: flex; justify-content: space-between; align-items: end; gap: 16px;
}
.hero__visual-meta-title { font-family: var(--font-display); font-size: 22px; font-style: italic; letter-spacing: -0.01em; }
.hero__visual-meta-tag {
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--brass);
}

/* Hero with background image (used in some pages) */
.hero-gradient { background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.06) 0%, transparent 60%); }

.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(250,248,243,0.72) 0%,
        rgba(250,248,243,0.18) 30%,
        rgba(250,248,243,0.08) 55%,
        rgba(250,248,243,0.68) 100%);
    z-index: 0;
}
[data-theme="dark"] .hero-bg::before {
    background: linear-gradient(180deg,
        rgba(10,15,30,0.82) 0%,
        rgba(10,15,30,0.28) 30%,
        rgba(10,15,30,0.18) 55%,
        rgba(10,15,30,0.78) 100%);
}
.hero-bg > * { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--midnight); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-label { color: var(--brass); }
.section--dark .t-lead { color: rgba(255, 255, 255, 0.7); }

.section__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.section__head--center { text-align: center; flex-direction: column; align-items: center; margin-bottom: 64px; }
.section__head-text { max-width: 640px; }
.section__head-text p { margin: 12px 0 0; color: var(--text-mute); font-size: 17px; }

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER (interior pages)
   ═══════════════════════════════════════════════════════════════ */
.page-head {
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}
.page-head__crumb {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--text-mute);
    text-transform: uppercase;
    margin-bottom: 20px;
}
.page-head__crumb span { color: var(--brass); }
.page-head__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.5vw, 58px);
    letter-spacing: -0.025em;
    line-height: 1.05;
    font-weight: 500;
    margin: 0 0 20px;
    max-width: 900px;
}
.page-head__title em { font-style: italic; color: var(--brass); }
.page-head__subtitle {
    font-size: 19px;
    color: var(--text-mute);
    line-height: 1.5;
    max-width: 680px;
    margin: 0 0 32px;
}
.page-head__signals {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.04em;
}
.page-head__signal { display: inline-flex; align-items: center; gap: 8px; }
.page-head__signal::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }

/* ═══════════════════════════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════════════════════════ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
}
.product-card {
    background: var(--bg-card);
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    min-height: 440px;
    transition: background 0.3s;
    cursor: pointer;
    position: relative;
}
.product-card:hover { background: var(--bg-alt); }
.product-card__poster {
    aspect-ratio: 16/10;
    background: var(--midnight);
    margin: -36px -32px 28px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.product-card__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-card__poster img { transform: scale(1.04); }
.product-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 14px;
}
.product-card__status--beta { color: var(--jazz-blue); }
.product-card__status::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.product-card__title { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.015em; margin: 0 0 6px; font-weight: 500; }
.product-card__tagline { font-size: 14px; color: var(--text-mute); margin: 0 0 16px; font-style: italic; font-family: var(--font-display); }
.product-card__desc { font-size: 15px; line-height: 1.55; color: var(--text-mute); margin: 0 0 22px; flex: 1; }
.product-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.product-card__chip {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--border-strong);
    color: var(--text-mute);
}
.product-card__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.product-card__cta-text {
    font-weight: 600; font-size: 14px; color: var(--text);
    display: inline-flex; align-items: center; gap: 8px;
}
.product-card__cta-text svg { transition: transform 0.3s; }
.product-card:hover .product-card__cta-text svg { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════════
   PILLARS / FEATURE GRID
   ═══════════════════════════════════════════════════════════════ */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
}
.pillars--4 { grid-template-columns: repeat(4, 1fr); }
.pillars--2 { grid-template-columns: repeat(2, 1fr); }
.pillar {
    padding: 36px 32px;
    background: var(--bg);
    min-height: 240px;
    display: flex;
    flex-direction: column;
}
.pillar__num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--brass);
    margin-bottom: 24px;
}
.pillar__title { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.015em; font-weight: 500; margin: 0 0 14px; }
.pillar__desc { font-size: 15px; color: var(--text-mute); line-height: 1.6; margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   SPOTLIGHT (2-col feature section)
   ═══════════════════════════════════════════════════════════════ */
.spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.spotlight--reverse .spotlight__poster { order: 1; }
.spotlight--reverse .spotlight__content { order: 0; }
.spotlight__poster {
    aspect-ratio: 3/4;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--midnight);
    position: relative;
}
.spotlight__poster img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__badge {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--brass);
    color: var(--midnight);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 12px;
    font-weight: 600;
}
.spotlight__features {
    list-style: none;
    padding: 0;
    margin: 28px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.spotlight__features li { padding-left: 28px; position: relative; font-size: 16px; line-height: 1.5; }
.spotlight__features li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 16px; height: 1px;
    background: var(--brass);
}

/* Legacy spotlight image (atmospheric) */
.spotlight__img {
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    position: relative;
    max-width: 340px;
}
.spotlight__img img {
    width: 100%; height: auto;
    aspect-ratio: 4/3;
    object-fit: cover; display: block;
    filter: saturate(0.85) brightness(1) contrast(1);
    transition: transform 0.6s ease, filter 0.6s ease;
}
.spotlight__img:hover img { transform: scale(1.04); filter: saturate(0.95) brightness(1.02) contrast(1); }
[data-theme="dark"] .spotlight__img img { filter: saturate(0.7) brightness(0.85) contrast(1.1); mix-blend-mode: luminosity; }
[data-theme="dark"] .spotlight__img:hover img { mix-blend-mode: normal; filter: saturate(0.85) brightness(0.95); }

/* ═══════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
}
.plan {
    background: var(--bg-card);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    min-height: 580px;
}
.plan--featured { background: var(--midnight); color: #fff; }
.plan--featured .plan__name,
.plan--featured .plan__price,
.plan--featured .plan__features li { color: #fff; }
.plan--featured .plan__interval { color: rgba(255,255,255,0.6); }
.plan__tag {
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--brass);
    margin-bottom: 14px;
}
.plan__name { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.015em; margin: 0 0 10px; font-weight: 500; }
.plan__blurb { font-size: 14px; color: var(--text-mute); margin: 0 0 24px; line-height: 1.5; min-height: 42px; }
.plan--featured .plan__blurb { color: rgba(255,255,255,0.7); }
.plan__price { font-family: var(--font-display); font-size: 44px; letter-spacing: -0.025em; font-weight: 500; margin: 0 0 2px; }
.plan__price sub { font-family: var(--font-body); font-size: 14px; color: var(--text-mute); font-weight: 400; vertical-align: baseline; }
.plan__interval { font-size: 13px; color: var(--text-mute); margin: 0 0 28px; }
.plan__features {
    list-style: none; padding: 0; margin: 0 0 28px;
    display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.plan__features li { font-size: 14px; padding-left: 22px; position: relative; line-height: 1.5; color: var(--text); }
.plan__features li::before { content: '♪'; position: absolute; left: 0; color: var(--brass); font-size: 14px; top: 1px; }
.plan__features li.muted { color: var(--text-mute); }
.plan__divider { height: 1px; background: var(--border); margin: 0 0 20px; }

/* ═══════════════════════════════════════════════════════════════
   ECOSYSTEM MAP (dark section)
   ═══════════════════════════════════════════════════════════════ */
.ecomap { display: flex; flex-direction: column; align-items: center; gap: 56px; padding-top: 24px; }
.ecomap__tier {
    display: flex; gap: 22px; flex-wrap: wrap;
    justify-content: center; position: relative;
}
.ecomap__tier::before {
    content: '';
    position: absolute; top: -32px; left: 50%;
    width: 1px; height: 24px;
    background: rgba(201, 169, 97, 0.35);
}
.ecomap__tier:first-child::before { display: none; }
.ecomap__node {
    border: 1px solid rgba(201, 169, 97, 0.25);
    background: rgba(201, 169, 97, 0.04);
    padding: 18px 26px;
    text-align: center; min-width: 180px;
    transition: all 0.3s; cursor: pointer;
}
.ecomap__node:hover { border-color: var(--brass); background: rgba(201, 169, 97, 0.1); transform: translateY(-2px); }
.ecomap__node--flagship { border-color: var(--brass); background: rgba(201, 169, 97, 0.1); padding: 22px 32px; min-width: 240px; }
.ecomap__node-name { display: block; font-family: var(--font-display); font-size: 20px; color: #fff; font-weight: 500; letter-spacing: -0.01em; }
.ecomap__node-tag { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--brass); margin-top: 6px; letter-spacing: 0.18em; text-transform: uppercase; }

/* ═══════════════════════════════════════════════════════════════
   PAGE LINKS ("where to next") — renamed from design crossnav
   ═══════════════════════════════════════════════════════════════ */
.page-links {
    background: var(--bg-alt);
    padding: 96px 0;
    border-top: 1px solid var(--border);
}
.page-links__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
}
.page-links__card {
    padding: 40px 32px;
    background: var(--bg);
    min-height: 240px;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: background 0.3s; cursor: pointer;
}
.page-links__card:hover { background: var(--bg-alt); }
.page-links__card-label {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; color: var(--brass); text-transform: uppercase;
}
.page-links__card-title {
    font-family: var(--font-display);
    font-size: 28px; letter-spacing: -0.015em; line-height: 1.1;
    font-weight: 500; margin: 18px 0 8px;
}
.page-links__card-desc { font-size: 14px; color: var(--text-mute); margin: 0; }
.page-links__card-arrow {
    margin-top: 28px;
    font-family: var(--font-mono); font-size: 12px; color: var(--text);
    display: inline-flex; align-items: center; gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    background: var(--midnight);
    color: rgba(255, 255, 255, 0.7);
    padding: 72px 0 32px;
    font-size: 14px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand-name { font-family: var(--font-display); font-size: 20px; color: #fff; font-weight: 500; }
.footer__tagline { font-family: var(--font-display); font-style: italic; font-size: 17px; color: rgba(255,255,255,0.8); margin: 22px 0 8px; max-width: 320px; line-height: 1.4; }
.footer__sub { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 320px; margin-bottom: 14px; }
.footer__col h4 {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
    color: var(--brass); text-transform: uppercase; font-weight: 500; margin: 0 0 18px;
}
.footer__col a {
    display: block; color: rgba(255,255,255,0.7); margin-bottom: 10px;
    font-size: 14px; transition: color 0.2s; cursor: pointer; text-decoration: none;
}
.footer__col a:hover { color: var(--brass); }
.footer__bottom {
    padding-top: 28px;
    display: flex; justify-content: space-between;
    font-size: 12px; color: rgba(255,255,255,0.45);
    font-family: var(--font-mono); letter-spacing: 0.05em;
    flex-wrap: wrap; gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   CHAT WIDGET
   ═══════════════════════════════════════════════════════════════ */
.chat-fab {
    position: fixed; right: 28px; bottom: 28px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--blue-note);
    color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(42,59,92,0.35);
    z-index: 40; transition: transform 0.2s;
}
.chat-fab:hover { transform: scale(1.05); }
.chat-fab__pulse {
    position: absolute; inset: 0; border-radius: 50%;
    background: var(--brass); opacity: 0;
    animation: pulse 2.2s ease-out infinite; z-index: -1;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.6); opacity: 0; }
}
.chat-panel {
    position: fixed; right: 28px; bottom: 96px;
    width: 380px; max-width: calc(100vw - 56px);
    height: 560px; max-height: calc(100vh - 140px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    z-index: 41; display: flex; flex-direction: column;
    overflow: hidden; animation: chat-rise 0.3s ease-out;
}
@keyframes chat-rise {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.chat-header {
    padding: 18px 20px;
    background: var(--midnight); color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(201,169,97,0.2);
}
.chat-header__title { font-family: var(--font-display); font-size: 17px; margin: 0; font-weight: 500; }
.chat-header__sub { font-family: var(--font-mono); font-size: 10px; color: var(--brass); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 3px; }
.chat-header__close { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.chat-body {
    flex: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 14px;
    background: var(--bg);
}
.chat-msg { max-width: 85%; padding: 12px 16px; font-size: 14px; line-height: 1.5; border-radius: 2px; }
.chat-msg--bot { background: var(--bg-card); border: 1px solid var(--border); align-self: flex-start; }
.chat-msg--bot-cite { font-family: var(--font-mono); font-size: 10px; color: var(--brass); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.chat-msg--user { background: var(--blue-note); color: #fff; align-self: flex-end; }
.chat-suggest { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 16px; }
.chat-suggest button { background: transparent; border: 1px solid var(--border); padding: 10px 14px; font-size: 13px; color: var(--text); text-align: left; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.chat-suggest button:hover { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 6%, transparent); }
.chat-input { padding: 14px 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; background: var(--bg-card); }
.chat-input input { flex: 1; border: none; background: transparent; font-family: inherit; font-size: 14px; color: var(--text); outline: none; }
.chat-input input::placeholder { color: var(--text-mute); }
.chat-input__send { width: 34px; height: 34px; border: none; background: var(--blue-note); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); align-self: flex-start; }
.chat-typing span { width: 6px; height: 6px; background: var(--brass); border-radius: 50%; animation: typing 1.3s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT DETAIL SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.prod-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--border); }
.prod-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: start; }
.prod-hero__tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--brass); margin-bottom: 24px;
}
.prod-hero__title { font-family: var(--font-display); font-size: clamp(44px, 5vw, 70px); letter-spacing: -0.028em; line-height: 1.02; font-weight: 500; margin: 0 0 20px; }
.prod-hero__title em { font-style: italic; color: var(--brass); }
.prod-hero__lede { font-size: 20px; line-height: 1.5; color: var(--text-mute); margin: 0 0 32px; }
.prod-hero__meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.prod-hero__meta-item .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--brass); text-transform: uppercase; margin-bottom: 4px; }
.prod-hero__meta-item .value { font-family: var(--font-display); font-size: 18px; color: var(--text); font-weight: 500; }
.prod-hero__poster { aspect-ratio: 3/4; border: 1px solid var(--border); overflow: hidden; background: var(--midnight); position: relative; }
.prod-hero__poster img { width: 100%; height: 100%; object-fit: cover; }

.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-split--reverse .feature-split__visual { order: -1; }
.feature-split__visual { aspect-ratio: 4/3; border: 1px solid var(--border); overflow: hidden; background: var(--midnight); }
.feature-split__visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-split h3 { margin-bottom: 16px; }
.feature-split p { color: var(--text-mute); font-size: 16px; line-height: 1.6; }

.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.tool { background: var(--bg); padding: 28px; display: flex; gap: 20px; align-items: start; }
.tool__num { font-family: var(--font-display); font-size: 28px; font-style: italic; color: var(--brass); width: 40px; flex-shrink: 0; }
.tool__body { flex: 1; }
.tool__title { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; font-weight: 500; margin: 0 0 6px; }
.tool__desc { font-size: 14px; color: var(--text-mute); line-height: 1.55; margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   ABOUT / FOUNDER
   ═══════════════════════════════════════════════════════════════ */
.founder { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.founder__portrait { aspect-ratio: 4/5; border: 1px solid var(--border); overflow: hidden; background: var(--midnight); }
.founder__portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder__name { font-family: var(--font-display); font-size: 38px; letter-spacing: -0.02em; font-weight: 500; margin: 0 0 6px; }
.founder__role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--brass); text-transform: uppercase; margin-bottom: 24px; }
.founder__bio p { font-size: 17px; line-height: 1.65; color: var(--text-mute); margin: 0 0 18px; }
.founder__bio p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 64px; float: left; line-height: 0.9; margin: 6px 14px 0 0;
    color: var(--brass); font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--brass); text-transform: uppercase; }
.contact-form input,
.contact-form textarea,
.contact-form select {
    font-family: var(--font-body); font-size: 15px; padding: 12px 14px;
    border: 1px solid var(--border-strong); background: var(--bg-card);
    color: var(--text); border-radius: 2px; outline: none; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--brass); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info { background: var(--bg-alt); border: 1px solid var(--border); padding: 32px; }
.contact-info h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--brass); text-transform: uppercase; margin: 0 0 10px; font-weight: 500; }
.contact-info p { margin: 0 0 24px; font-size: 15px; color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS & UTILITIES
   ═══════════════════════════════════════════════════════════════ */
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fade-in 0.6s ease-out forwards; opacity: 0; }
.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.3s; }
.fade-in-d4 { animation-delay: 0.4s; }
.fade-in-d5 { animation-delay: 0.5s; }

@keyframes pulse-gold { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes pulse-green { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } }
.animate-pulse-gold { animation: pulse-gold 2s ease-in-out infinite; }
.gpu-online { animation: pulse-green 2s infinite; }
.gpu-offline { animation: pulse-red 2s infinite; }

.card-glow { transition: box-shadow 0.3s ease; }
.card-glow:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
[data-theme="dark"] .card-glow:hover { box-shadow: 0 0 30px rgba(201, 168, 76, 0.15); }

.step-line { position: relative; }
.step-line::after { content: ''; position: absolute; top: 2.5rem; left: 50%; width: 100%; height: 2px; background: linear-gradient(90deg, rgba(201,168,76,0.2), rgba(201,168,76,0.05)); }

.code-block { background: #f8f9fa; border: 1px solid #e2e8f0; }
[data-theme="dark"] .code-block { background: #0d1117; border-color: #30363d; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.25); border-radius: 3px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #111827; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #374151; }

/* ═══════════════════════════════════════════════════════════════
   SCREENSHOT LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */
.screenshot-zoom { position: relative; cursor: zoom-in; display: inline-block; }
.screenshot-zoom img { border: 1px solid var(--border); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.screenshot-zoom:hover img { border-color: rgba(201,168,76,0.3); box-shadow: 0 0 30px rgba(201,168,76,0.1); }
.screenshot-zoom__icon {
    position: absolute; bottom: 10px; right: 10px;
    width: 32px; height: 32px; border-radius: 4px;
    background: rgba(255,255,255,0.9); border: 1px solid rgba(201,168,76,0.2);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease; z-index: 5; pointer-events: none;
}
[data-theme="dark"] .screenshot-zoom__icon { background: rgba(10,15,30,0.85); }
.screenshot-zoom:hover .screenshot-zoom__icon { opacity: 1; }
.screenshot-zoom__icon svg { width: 16px; height: 16px; color: #c9a84c; }

.lightbox-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(250,248,243,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease; cursor: zoom-out;
}
[data-theme="dark"] .lightbox-overlay { background: rgba(6,10,22,0.92); }
.lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }
.lightbox-overlay img {
    max-width: 90vw; max-height: 85vh;
    border: 1px solid rgba(201,168,76,0.15);
    box-shadow: 0 20px 80px rgba(0,0,0,0.12);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}
[data-theme="dark"] .lightbox-overlay img { box-shadow: 0 20px 80px rgba(0,0,0,0.6); }
.lightbox-overlay.is-open img { transform: scale(1); }
.lightbox-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    width: 40px; height: 40px;
    background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.08);
    border-radius: 4px; color: #4a5f7a; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s, color 0.2s;
}
[data-theme="dark"] .lightbox-close { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #94a3b8; }
.lightbox-close:hover { background: rgba(0,0,0,0.08); color: #c9a84c; }

/* ═══════════════════════════════════════════════════════════════
   CROSSNAV (top 40px bar) — Light Default
   ═══════════════════════════════════════════════════════════════ */
.crossnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1001;
    background: rgba(250, 248, 243, 0.97);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
}
[data-theme="dark"] .crossnav {
    background: rgba(4, 8, 18, 0.96);
    border-bottom-color: rgba(201, 168, 76, 0.12);
}
.crossnav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-pad);
    display: flex; align-items: center; justify-content: space-between;
    height: 40px;
}
.crossnav__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.crossnav__logo img { height: 22px; width: auto; transition: filter 0.3s ease; }
[data-theme="dark"] .crossnav__logo img { filter: brightness(0) invert(1); }
.crossnav__links { display: flex; align-items: center; gap: 0.25rem; }
.crossnav__link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.72rem; font-weight: 500;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
[data-theme="dark"] .crossnav__link { color: rgba(255, 255, 255, 0.45); border-color: rgba(255, 255, 255, 0.08); }
.crossnav__link svg { width: 12px; height: 12px; flex-shrink: 0; }
.crossnav__link:hover { color: var(--accent); border-color: rgba(201, 168, 76, 0.3); background: rgba(201, 168, 76, 0.06); }
[data-theme="dark"] .crossnav__link:hover { color: var(--accent); border-color: rgba(201, 168, 76, 0.3); background: rgba(201, 168, 76, 0.06); }
.crossnav__link--active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.crossnav__link--active:hover { background: var(--accent-bright); color: #fff; border-color: var(--accent-bright); }

/* ═══════════════════════════════════════════════════════════════
   SITE NAV (pill) — Light Default
   ═══════════════════════════════════════════════════════════════ */
.site-nav {
    position: fixed;
    top: 40px; left: 0; right: 0;
    z-index: 1000;
    padding: 0.75rem clamp(1rem, 2vw, 1.5rem) 0;
}
.site-nav__inner {
    max-width: calc(var(--max-width) + (var(--content-pad) * 2));
    margin: 0 auto;
    min-height: 64px;
    padding: 0.5rem 1.2rem;
    display: flex; align-items: center; justify-content: space-between;
    border: 1px solid var(--nav-pill-border);
    border-radius: 999px;
    background: var(--nav-pill-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
[data-theme="dark"] .site-nav__inner { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16); }
.site-nav--scrolled .site-nav__inner {
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-color: var(--nav-pill-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .site-nav--scrolled .site-nav__inner { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4); }

.site-nav__logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; flex-shrink: 0; color: var(--text); }
.site-nav__logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.site-nav__logo-text { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.site-nav__logo-text .ai { color: var(--accent); font-weight: 800; }

.site-nav__menu { display: none; align-items: center; gap: 0.25rem; }
.site-nav__link {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.25s var(--ease);
    text-decoration: none; position: relative; cursor: pointer;
    background: none; border: none;
}
.site-nav__link:hover { color: var(--text); background: rgba(201, 168, 76, 0.06); }
.site-nav__link--active { color: var(--accent); }
.site-nav__link--active::after {
    content: '';
    position: absolute; bottom: 2px; left: 50%;
    transform: translateX(-50%);
    width: 16px; height: 2px;
    background: var(--accent); border-radius: 1px;
}
.site-nav__link--has-dropdown { display: inline-flex; align-items: center; gap: 0.25rem; }

.site-nav__chevron { transition: transform 0.2s var(--ease); opacity: 0.6; flex-shrink: 0; }
.site-nav__dropdown { position: relative; }
.site-nav__dropdown:hover .site-nav__chevron,
.site-nav__dropdown:focus-within .site-nav__chevron { transform: rotate(180deg); opacity: 1; }

.site-nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 0.15rem); left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 210px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px; padding: 0.5rem;
    display: flex; flex-direction: column; gap: 0.15rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
}
[data-theme="dark"] .site-nav__dropdown-menu {
    background: rgba(15, 20, 35, 0.95);
    border-color: rgba(201, 168, 76, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.site-nav__dropdown::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 0.35rem; }
.site-nav__dropdown:focus-within .site-nav__dropdown-menu,
.site-nav__dropdown.is-open .site-nav__dropdown-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.site-nav__dropdown.is-open .site-nav__chevron { transform: rotate(180deg); opacity: 1; }

.site-nav__link:focus-visible,
.site-nav__dropdown-link:focus-visible,
.site-nav__login:focus-visible,
.site-nav__cta:focus-visible,
.site-nav__avatar:focus-visible,
.site-nav__mobile-toggle:focus-visible,
.site-nav__mobile-link:focus-visible,
.site-nav__mobile-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.site-nav__dropdown-link {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 0.82rem; font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem; border-radius: 8px;
    text-decoration: none; transition: all 0.2s var(--ease);
    white-space: nowrap; display: block;
}
.site-nav__dropdown-link:hover { color: var(--text); background: rgba(201, 168, 76, 0.08); }

.site-nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.site-nav__login {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.4rem 0.9rem;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 0.82rem; font-weight: 500;
    color: var(--accent);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius);
    background: transparent; text-decoration: none;
    transition: all 0.25s var(--ease);
}
.site-nav__login:hover { background: rgba(201, 168, 76, 0.08); border-color: rgba(201, 168, 76, 0.5); }
.site-nav__cta {
    display: none; align-items: center;
    padding: 0.4rem 1rem;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 0.82rem; font-weight: 700;
    color: var(--bg-deep);
    background: var(--accent); border: none; border-radius: var(--radius);
    text-decoration: none; transition: all 0.25s var(--ease);
}
.site-nav__cta:hover { background: var(--accent-bright); }

.site-nav__user { position: relative; }
.site-nav__avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(201, 168, 76, 0.15);
    color: var(--accent); display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; cursor: pointer; border: none;
}
.site-nav__user-menu {
    position: absolute; right: 0; top: calc(100% + 0.5rem);
    width: 200px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    transform: translateY(4px); z-index: 100; overflow: hidden;
}
[data-theme="dark"] .site-nav__user-menu { background: rgba(15, 20, 35, 0.95); border-color: rgba(201, 168, 76, 0.08); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); }
.site-nav__user:hover .site-nav__user-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.site-nav__user-header { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-subtle); }
.site-nav__user-name { font-size: 0.85rem; color: var(--text); font-weight: 600; }
.site-nav__user-plan { font-size: 0.7rem; color: var(--text-muted); }
.site-nav__user-link { display: block; padding: 0.5rem 1rem; font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; transition: all 0.15s ease; }
.site-nav__user-link:hover { color: var(--accent); background: rgba(201, 168, 76, 0.05); }
.site-nav__user-link--danger { color: #ef4444; }
.site-nav__user-link--danger:hover { color: #f87171; background: rgba(239, 68, 68, 0.05); }

.site-nav__mobile-toggle { display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 0.3rem; transition: color 0.2s ease; }
.site-nav__mobile-toggle:hover { color: var(--accent); }
.site-nav__mobile-toggle svg { width: 22px; height: 22px; }
.site-nav__mobile-menu {
    display: none;
    position: fixed;
    top: calc(40px + 64px + 0.75rem);
    left: 0; right: 0; bottom: 0;
    background: rgba(250, 248, 243, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 999; overflow-y: auto; padding: 1.5rem;
}
[data-theme="dark"] .site-nav__mobile-menu { background: rgba(10, 15, 30, 0.97); }
.site-nav__mobile-menu.active { display: block; }
.site-nav__mobile-section { margin-bottom: 1rem; }
.site-nav__mobile-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; padding: 0 0.5rem; }
.site-nav__mobile-link { display: block; padding: 0.65rem 0.75rem; font-size: 0.9rem; color: var(--text-secondary); text-decoration: none; border-radius: var(--radius-sm); transition: all 0.15s ease; }
.site-nav__mobile-link:hover { color: var(--text); background: rgba(201, 168, 76, 0.06); }
.site-nav__mobile-divider { height: 1px; background: var(--border-subtle); margin: 0.75rem 0; }
.site-nav__mobile-cta { display: block; text-align: center; padding: 0.65rem 1rem; font-size: 0.9rem; font-weight: 700; color: var(--bg-deep); background: var(--accent); border-radius: var(--radius); text-decoration: none; margin-top: 0.5rem; transition: background 0.2s ease; }
.site-nav__mobile-cta:hover { background: var(--accent-bright); }

@media (min-width: 769px) {
    .site-nav__menu { display: flex; }
    .site-nav__cta { display: inline-flex; }
    .site-nav__mobile-toggle { display: none; }
    .crossnav__logo { display: flex; }
}
@media (max-width: 768px) {
    .crossnav__logo { display: none; }
    .crossnav__inner { justify-content: center; }
    .crossnav__link { font-size: 0.67rem; padding: 0.25rem 0.65rem; }
    .site-nav { padding: 0.5rem 0.75rem 0; }
    .site-nav__inner { min-height: 52px; padding: 0.35rem 0.75rem; }
    .site-nav__logo-text { font-size: 0.85rem; }
    .site-nav__cta { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Design System Components
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1020px) {
    .hero__grid, .spotlight, .prod-hero__grid, .feature-split, .founder, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .product-grid, .pillars, .pillars--4 { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .page-links__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .hero { padding: 56px 0 32px; }
    .section { padding: 64px 0; }
    .nav__links { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .pillars--2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   HTML.LIGHT — Tailwind backward-compat overrides
   Keeps unrewritten pages (demo.php, caveaucrm-beta.php) working
   in light mode when the user switches themes.
   ═══════════════════════════════════════════════════════════════ */
html.light body { background: #FAF8F3; color: #1a2a3a; }

html.light .bg-midnight { background-color: #FAF8F3 !important; }
html.light .bg-midnight-light { background-color: #ffffff !important; }
html.light .bg-midnight-card { background-color: #ffffff !important; }
html.light .bg-midnight-light\/30 { background-color: rgba(255,255,255,0.3) !important; }
html.light .bg-midnight-light\/50 { background-color: rgba(255,255,255,0.5) !important; }
html.light .bg-midnight-card\/50 { background-color: rgba(255,255,255,0.5) !important; }
html.light .bg-midnight-card\/60 { background-color: rgba(255,255,255,0.6) !important; }
html.light .bg-midnight\/50 { background-color: rgba(250,248,243,0.5) !important; }
html.light .bg-midnight\/80 { background-color: rgba(250,248,243,0.8) !important; }
html.light .bg-white\/3 { background-color: rgba(0,0,0,0.02) !important; }
html.light .bg-white\/5 { background-color: rgba(0,0,0,0.03) !important; }
html.light .bg-white\/10 { background-color: rgba(0,0,0,0.05) !important; }
html.light .bg-gray-700\/50 { background-color: rgba(0,0,0,0.04) !important; }
html.light .bg-cyan-900\/20 { background-color: rgba(0,119,182,0.06) !important; }
html.light .bg-blue-900\/20 { background-color: rgba(37,99,235,0.06) !important; }
html.light .bg-green-900\/20 { background-color: rgba(5,150,105,0.06) !important; }
html.light .bg-purple-900\/20 { background-color: rgba(124,58,237,0.06) !important; }
html.light .bg-rose-900\/20 { background-color: rgba(219,39,119,0.06) !important; }
html.light .bg-amber-900\/20 { background-color: rgba(217,119,6,0.06) !important; }
html.light .bg-teal-900\/20 { background-color: rgba(13,148,136,0.06) !important; }
html.light .bg-orange-900\/20 { background-color: rgba(234,88,12,0.06) !important; }
html.light .bg-indigo-900\/20 { background-color: rgba(99,102,241,0.06) !important; }

html.light .text-white { color: #1a2a3a !important; }
html.light .text-gray-300 { color: #4a5f7a !important; }
html.light .text-gray-400 { color: #64748b !important; }
html.light .text-gray-500 { color: #7a8da5 !important; }
html.light .text-gray-600 { color: #4a5f7a !important; }
html.light .text-midnight { color: #FAF8F3 !important; }
html.light .text-cyan-400 { color: #0077b6 !important; }
html.light .text-blue-400 { color: #2563eb !important; }
html.light .text-green-400 { color: #059669 !important; }
html.light .text-purple-400 { color: #7c3aed !important; }
html.light .text-rose-400 { color: #db2777 !important; }
html.light .text-amber-400 { color: #d97706 !important; }
html.light .text-teal-400 { color: #0d9488 !important; }
html.light .text-orange-400 { color: #ea580c !important; }
html.light .text-indigo-400 { color: #6366f1 !important; }
html.light .text-red-400 { color: #dc2626 !important; }

html.light .border-white\/5 { border-color: rgba(0,0,0,0.04) !important; }
html.light .border-white\/10 { border-color: rgba(0,0,0,0.08) !important; }
html.light .border-gray-500\/20 { border-color: rgba(0,0,0,0.08) !important; }
html.light .border-gray-600 { border-color: rgba(0,0,0,0.1) !important; }
html.light .border-cyan-500\/20 { border-color: rgba(0,119,182,0.15) !important; }
html.light .border-blue-500\/20 { border-color: rgba(37,99,235,0.15) !important; }
html.light .border-green-500\/20 { border-color: rgba(5,150,105,0.15) !important; }
html.light .border-purple-500\/20 { border-color: rgba(124,58,237,0.15) !important; }
html.light .border-rose-500\/20 { border-color: rgba(219,39,119,0.15) !important; }
html.light .border-amber-500\/20 { border-color: rgba(217,119,6,0.15) !important; }
html.light .border-teal-500\/20 { border-color: rgba(13,148,136,0.15) !important; }
html.light .border-orange-500\/20 { border-color: rgba(234,88,12,0.15) !important; }
html.light .border-indigo-500\/20 { border-color: rgba(99,102,241,0.15) !important; }

html.light .ring-cyan-500\/20 { --tw-ring-color: rgba(0,119,182,0.15) !important; }
html.light .ring-gold\/20 { --tw-ring-color: rgba(201,168,76,0.15) !important; }

html.light .hero-gradient { background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 60%); }
html.light .card-glow:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
html.light .code-block { background: #f8f9fa; border-color: #e2e8f0; color: #1a2a3a; }
html.light .step-line::after { background: linear-gradient(90deg, rgba(201,168,76,0.2), rgba(201,168,76,0.05)); }
html.light .spotlight__img { border-color: rgba(201,168,76,0.1); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
html.light .lightbox-overlay { background: rgba(250,248,243,0.92); }
html.light .lightbox-overlay img { border-color: rgba(201,168,76,0.15); box-shadow: 0 20px 80px rgba(0,0,0,0.12); }
html.light .lightbox-close { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: #4a5f7a; }
html.light .lightbox-close:hover { background: rgba(0,0,0,0.08); color: #c9a84c; }
html.light .screenshot-zoom img { border-color: rgba(0,0,0,0.08); }
html.light .screenshot-zoom__icon { background: rgba(255,255,255,0.9); border-color: rgba(201,168,76,0.2); }
html.light ::-webkit-scrollbar-track { background: #f0ede5; }
html.light ::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.25); }

html.light .from-midnight { --tw-gradient-from: #FAF8F3 !important; }
html.light .to-midnight { --tw-gradient-to: #FAF8F3 !important; }
html.light .from-midnight-light { --tw-gradient-from: #ffffff !important; }
html.light .to-midnight-light { --tw-gradient-to: #ffffff !important; }
html.light .shadow-lg { box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important; }
html.light .shadow-2xl { box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important; }

/* Tool demo window output — always dark regardless of page theme */
.sample-output { background: rgba(13,17,23,0.8); border: 1px solid rgba(48,54,61,0.6); border-radius: 0.75rem; }

/* ═══════════════════════════════════════════════════════════════
   COMMITTED DARK — the marketing surface is always Midnight Studio
   dark, so the injected light/dark switcher is hidden here.
   ═══════════════════════════════════════════════════════════════ */
.bnl-theme-toggle { display: none !important; }
