/* ============================================================
   VenueVox — Design System & Component Styles
   ============================================================ */

/* ===================== DESIGN TOKENS ===================== */
:root {
  /* ── Palette ── */
  --navy:       #0F1B2D;
  --navy-2:     #0B1422;
  --graphite:   #2A3340;
  --teal:       #19B3A6;
  --teal-soft:  rgba(25,179,166,.12);
  --brass:      #C79A4B;
  --stone:      #EEE9E1;
  --stone-2:    #F6F2EB;
  --emerald:    #10B981;
  --coral:      #EF4444;

  /* ── Semantic colors (dark default) ── */
  --line:       rgba(238,233,225,.10);
  --line-2:     rgba(238,233,225,.18);
  --ink:        #EEE9E1;
  --ink-mute:   rgba(238,233,225,.68);
  --ink-dim:    rgba(238,233,225,.48);

  /* ── Typography ── */
  --f-display:  "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --f-sans:     "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-num:      "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --f-mono:     "IBM Plex Mono", ui-monospace, monospace;

  /* ── Spacing scale (8pt grid) ── */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-30: 120px;

  /* ── Radius ── */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 16px;
  --r-3xl: 18px;
  --r-full: 999px;
}

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

body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 600;
}
h1 { letter-spacing: -.035em; font-weight: 700; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── Utility classes ── */
.num  { font-family: var(--f-num);  font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--teal);
  display: inline-block;
}

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15,27,45,.75);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 18px;
}
.brand .mark {
  width: 26px;
  height: 26px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand .mark svg { display: block; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--ink-mute);
  align-items: center;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--teal);
  color: #042723;
}
.btn-primary:hover { background: #22c8ba; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(238,233,225,.04);
}

.btn-dark {
  background: var(--navy);
  color: var(--ink);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn .arrow {
  display: inline-block;
  transition: transform .2s;
}
.btn:hover .arrow { transform: translateX(2px); }

/* ── Icon button (theme toggle) ── */
.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-mute);
  cursor: pointer;
  transition: all .2s;
}
.icon-btn:hover {
  color: var(--ink);
  border-color: var(--ink-mute);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(25,179,166,.12), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(199,154,75,.06), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(238,233,225,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(238,233,225,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0) 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0) 85%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.02;
  margin: 18px 0 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #2fd7c7, #19B3A6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 560px;
}

.hero .cta-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero .meta {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 13px;
}
.hero .meta strong {
  color: var(--ink);
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 18px;
  display: block;
}

/* ===================== HERO VISUAL: Minimal Console ===================== */
.console {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, rgba(238,233,225,.025), rgba(238,233,225,.01));
  padding: 22px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 40px 80px -30px rgba(0,0,0,.6),
    0 0 0 1px rgba(25,179,166,.05);
}
.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.console-head .title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-mute);
}

/* ── Pulse dot ── */
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(25,179,166,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(25,179,166,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(25,179,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(25,179,166,0); }
}

/* ── Minimal hero stack ── */
.minimal-hero { padding: 28px 28px 30px; }
.minimal-stack { display: grid; gap: 0; }

.m-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.m-row:last-child { border-bottom: none; }

.m-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-family: var(--f-mono);
  border: 1px solid var(--line-2);
}
.m-icon.teal    { color: var(--teal);    background: rgba(25,179,166,.08);  border-color: rgba(25,179,166,.25); }
.m-icon.brass   { color: var(--brass);   background: rgba(199,154,75,.1);   border-color: rgba(199,154,75,.28); }
.m-icon.emerald { color: var(--emerald); background: rgba(16,185,129,.1);   border-color: rgba(16,185,129,.3);  }

.m-k {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
}
.m-v {
  font-size: 12.5px;
  color: var(--ink-mute);
  font-family: var(--f-num);
  margin-top: 2px;
}
.m-row.done .m-k { color: var(--emerald); }

/* ── Floating pipeline chip ── */
.float-chip {
  position: absolute;
  right: -24px;
  top: -24px;
  background: var(--stone);
  color: var(--navy);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  min-width: 220px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  border: 1px solid rgba(0,0,0,.06);
  transform: rotate(2deg);
}
.float-chip .t {
  font-size: 11px;
  font-family: var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 6px;
}
.float-chip .m {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.float-chip .s {
  font-size: 12px;
  color: rgba(42,51,64,.7);
  margin-top: 4px;
  font-family: var(--f-num);
}

/* ===================== BUILT-FOR LINE ===================== */
.built-for {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.built-for p {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: var(--sp-30) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section.light {
  background: var(--stone);
  color: var(--navy);
  border-color: rgba(15,27,45,.08);
}
.section.light .eyebrow       { color: var(--graphite); }
.section.light .eyebrow::before { background: var(--graphite); }
.section.light h2,
.section.light h3              { color: var(--navy); }
.section.light p               { color: rgba(42,51,64,.75); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.05;
  max-width: 720px;
}
.section-head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 520px;
}

/* ===================== PROBLEM REFRAME (Compare) ===================== */
.compare {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(15,27,45,.08);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: #fff;
}
.compare-col { padding: 36px 36px 40px; }
.compare-col.bad { background: #fff; }
.compare-col.good { background: var(--navy); color: var(--ink); }
.compare-col p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(42,51,64,.82);
  margin-top: 12px;
}
.compare-col.good p { color: var(--ink); font-weight: 400; }

.compare-divider {
  background: var(--stone-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--graphite);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border-left: 1px solid rgba(15,27,45,.06);
  border-right: 1px solid rgba(15,27,45,.06);
}

.compare h3 {
  font-size: 13px;
  font-family: var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.compare .big {
  font-family: var(--f-display);
  font-size: 32px;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 18px;
}
.compare .big em { font-style: normal; }
.compare-col.bad .big em  { color: var(--coral); }
.compare-col.good .big em { color: var(--teal);  }

.compare ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.compare li {
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(42,51,64,.78);
}
.compare-col.good li { color: var(--ink-mute); }

.compare li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  margin-top: 8px;
  flex: 0 0 6px;
}
.compare-col.good li::before { background: var(--teal); }

.compare .row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px 0;
  border-top: 1px dashed rgba(15,27,45,.1);
  font-size: 13px;
}
.compare-col.good .row { border-color: rgba(238,233,225,.1); }

.compare .row .k {
  color: rgba(42,51,64,.6);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.compare-col.good .row .k { color: var(--ink-dim); }

.compare .row .v {
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 16px;
}
.compare-col.bad  .v { color: var(--coral); }
.compare-col.good .v { color: var(--emerald); }

/* ===================== THREE PILLARS ===================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar {
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 28px;
  background: linear-gradient(180deg, rgba(238,233,225,.03), rgba(238,233,225,.01));
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.pillar .idx {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--teal);
}
.pillar h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.pillar p {
  color: var(--ink-mute);
  font-size: 14.5px;
  line-height: 1.55;
}

.pillar .viz {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ── Meter bars ── */
.meter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}
.meter .bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(238,233,225,.08);
  overflow: hidden;
  width: 100%;
  grid-column: 1 / 3;
  margin-top: 4px;
}
.meter .bar > i {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
}
.meter .bar.bad > i { background: var(--coral); }
.meter .label {
  color: var(--ink-mute);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.meter .v {
  font-family: var(--f-num);
  font-weight: 600;
}

/* ── Pipeline mini visual ── */
.pipe-mini {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.pipe-mini .node {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-dim);
}
.pipe-mini .node.on {
  background: rgba(25,179,166,.12);
  color: var(--teal);
  border-color: rgba(25,179,166,.3);
}

/* ── Inquiry viz ── */
.inq-list { display: grid; gap: 8px; margin-top: 8px; }
.inq-list .row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(238,233,225,.08);
}
.inq-list .row:last-child { border-bottom: none; }
.inq-list .row .q { color: var(--ink-mute); }
.inq-list .row .a {
  color: var(--emerald);
  font-family: var(--f-mono);
  font-size: 11px;
}

/* ===================== WORKFLOW / PIPELINE ===================== */
.pipeline-shell {
  border-radius: var(--r-3xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(238,233,225,.03), rgba(238,233,225,.01));
  padding: var(--sp-8);
}

.process {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}
.p-step {
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 22px 20px 24px;
  background: rgba(238,233,225,.02);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.p-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--teal);
}
.p-name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.p-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin-top: 4px;
}
.p-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  font-size: 18px;
  font-family: var(--f-mono);
}

.process-note {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  font-family: var(--f-mono);
  letter-spacing: .04em;
}

/* ===================== DEMO / PROOF ===================== */
.demo-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: stretch;
}

.player {
  border: 1px solid rgba(15,27,45,.1);
  border-radius: var(--r-3xl);
  padding: 28px;
  background: #fff;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.player .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--graphite);
}
.player h3 {
  font-size: 26px;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--navy);
}
.player .controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--stone-2);
  border: 1px solid rgba(15,27,45,.06);
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--navy);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  transition: background .2s;
}
.play-btn:hover { background: var(--graphite); }

.wave-static {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 28px;
  flex: 1;
}
.wave-static span {
  display: block;
  width: 2px;
  background: rgba(15,27,45,.25);
  border-radius: 1px;
}

.time {
  font-family: var(--f-num);
  font-size: 13px;
  color: var(--graphite);
  min-width: 86px;
  text-align: right;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-family: var(--f-mono);
  letter-spacing: .06em;
  background: rgba(25,179,166,.12);
  color: var(--teal);
  margin-left: 6px;
}
.tag.brass { background: rgba(199,154,75,.14); color: var(--brass); }

/* Demo transcript */
.demo-transcript {
  border: 1px solid var(--line-2);
  border-radius: var(--r-3xl);
  padding: 28px;
  background: var(--navy-2);
}
.demo-transcript h4 {
  font-size: 13px;
  font-family: var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.demo-transcript .t-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
}
.demo-transcript .t-row:last-child { border-bottom: none; }
.demo-transcript .who {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 4px;
}
.demo-transcript .who.vv { color: var(--teal); }
.demo-transcript .msg    { color: var(--ink);  }

/* Proof row */
.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 36px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.proof-item {
  padding: 24px;
  border-right: 1px solid var(--line-2);
}
.proof-item:last-child { border-right: none; }
.proof-item .v {
  font-family: var(--f-num);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.proof-item .v .u {
  font-size: 18px;
  color: var(--ink-dim);
  margin-left: 2px;
}
.proof-item .l {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 6px;
  line-height: 1.4;
}

/* ===================== MULTI-LOCATION ===================== */
.multi-simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.ms-item {
  padding: 28px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: rgba(238,233,225,.02);
  display: flex;
  flex-direction: column;
}
.ms-item h3 { text-wrap: balance; }
.ms-item p  { color: var(--ink-mute); font-size: 14.5px; }

/* ===================== DASHBOARD PREVIEW ===================== */
.dash {
  border: 1px solid rgba(15,27,45,.08);
  border-radius: var(--r-3xl);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(15,27,45,.3);
}
.dash-top {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(15,27,45,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--stone-2);
}
.dash-top .tabs    { display: flex; gap: 20px; }
.dash-top .tabs a  { font-size: 13px; color: rgba(42,51,64,.6); padding: 6px 0; }
.dash-top .tabs a.active {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 2px solid var(--navy);
}
.dash-top .window  { display: flex; gap: 6px; }
.dash-top .window i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15,27,45,.15);
}

.dash-body {
  padding: 28px;
  background: #fff;
  color: var(--navy);
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi {
  padding: 18px;
  border: 1px solid rgba(15,27,45,.08);
  border-radius: var(--r-lg);
}
.kpi .l {
  font-size: 11px;
  font-family: var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(42,51,64,.55);
  margin-bottom: 10px;
}
.kpi .v {
  font-family: var(--f-num);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--navy);
}
.kpi .v .u {
  font-size: 16px;
  color: rgba(42,51,64,.5);
  margin-left: 3px;
}
.kpi .d {
  font-size: 12px;
  color: var(--emerald);
  margin-top: 6px;
  font-family: var(--f-num);
  font-weight: 500;
}
.kpi.accent {
  background: var(--navy);
  color: var(--ink);
  border-color: var(--navy);
}
.kpi.accent .l { color: rgba(238,233,225,.55); }
.kpi.accent .v { color: var(--teal); }
.kpi.accent .d { color: var(--emerald); }

.dash-lower {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 20px;
}
/* Chart */
.chart {
  border: 1px solid rgba(15,27,45,.08);
  border-radius: var(--r-lg);
  padding: 20px;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.chart-head h4 {
  font-size: 15px;
  color: var(--navy);
  letter-spacing: -.01em;
}
.chart-head .legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: rgba(42,51,64,.6);
  font-family: var(--f-mono);
  letter-spacing: .06em;
}
.chart-head .legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chart-head .legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.chart-plot {
  height: 160px;
  display: flex;
  align-items: end;
  gap: 6px;
  padding-top: 4px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: stretch;
  height: 100%;
  justify-content: end;
}
.bar-col i {
  display: block;
  border-radius: 3px 3px 0 0;
}
.bar-col i.a { background: var(--navy); }
.bar-col i.b { background: var(--teal); }

.chart-x {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(42,51,64,.45);
  text-transform: uppercase;
}
.chart-x span { flex: 1; text-align: center; }

/* Activity feed */
.activity {
  border: 1px solid rgba(15,27,45,.08);
  border-radius: var(--r-lg);
  padding: 20px;
}
.activity h4 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.act-row {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(15,27,45,.1);
  font-size: 13px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.act-row:last-child { border-bottom: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.t { background: var(--teal);    }
.dot.e { background: var(--emerald); }
.dot.b { background: var(--brass);   }
.dot.c { background: var(--coral);   }
.act-row .msg  { color: var(--navy); }
.act-row .time {
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(42,51,64,.45);
}

/* ===================== FINAL CTA ===================== */
.final-cta {
  padding: var(--sp-30) 0;
  background:
    radial-gradient(900px 500px at 50% 120%, rgba(25,179,166,.15), transparent 60%),
    var(--navy-2);
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(238,233,225,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(238,233,225,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(600px 400px at 50% 50%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(600px 400px at 50% 50%, #000 10%, transparent 70%);
  pointer-events: none;
}
.final-cta h2 {
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.05;
  margin: 18px auto 18px;
  max-width: 900px;
}
.final-cta p {
  color: var(--ink-mute);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 30px;
}
.final-cta .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================== FOOTER ===================== */
footer {
  padding: 56px 0 40px;
  background: var(--navy-2);
  color: var(--ink-mute);
  font-size: 13px;
}
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.foot-top h5 {
  color: var(--ink);
  font-size: 12px;
  font-family: var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.foot-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.foot-top a:hover { color: var(--ink); }
.footer-brand { color: var(--ink); }

.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-dim);
  font-family: var(--f-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ===================== SCROLL ANIMATIONS ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .compare { grid-template-columns: 1fr; }
  .compare-divider {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 10px;
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(15,27,45,.06);
    border-bottom: 1px solid rgba(15,27,45,.06);
  }
  .pillars { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .p-arrow { transform: rotate(90deg); padding: 4px 0; }
  .multi-simple { grid-template-columns: 1fr; gap: 16px; }
  .demo-grid { grid-template-columns: 1fr; }
  .proof-row { grid-template-columns: repeat(2, 1fr); }
  .proof-item { border-right: none; border-bottom: 1px solid var(--line-2); }
  .proof-item:nth-child(even) { border-right: none; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-lower { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 24px; }
  .float-chip { right: 8px; top: -10px; min-width: 180px; }
  .nav-cta .icon-btn { display: none; }

  /* Mobile hamburger */
  .mobile-menu-btn { display: flex; }
}

@media (min-width: 961px) {
  .mobile-menu-btn { display: none; }
}

/* ===================== THEME: DAYLIGHT ===================== */
/* Fixed contrast values from prototype — text is darker for better readability */
body.theme-day {
  background: var(--stone);
  color: var(--navy);
}

body.theme-day .nav {
  background: rgba(246,242,235,.85);
  border-color: rgba(15,27,45,.08);
}
body.theme-day .nav-links      { color: rgba(42,51,64,.82); }
body.theme-day .nav-links a:hover { color: var(--navy); }

body.theme-day .icon-btn {
  color: rgba(42,51,64,.7);
  border-color: rgba(15,27,45,.12);
}
body.theme-day .icon-btn:hover {
  color: var(--navy);
  border-color: rgba(15,27,45,.25);
}
body.theme-day .icon-btn .icon-moon { display: none !important; }
body.theme-day .icon-btn .icon-sun  { display: block !important; }

body.theme-day .hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(25,179,166,.12), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(199,154,75,.1), transparent 70%),
    var(--stone);
  color: var(--navy);
  border-color: rgba(15,27,45,.08);
}
body.theme-day .hero::before {
  background-image:
    linear-gradient(to right, rgba(15,27,45,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,27,45,.05) 1px, transparent 1px);
}
body.theme-day .hero .eyebrow { color: var(--teal); }
body.theme-day .hero .eyebrow::before { background: var(--teal); }
body.theme-day .hero p.sub       { color: rgba(42,51,64,.78); }
body.theme-day .hero .meta       { color: rgba(42,51,64,.6); border-color: rgba(15,27,45,.08); }
body.theme-day .hero .meta strong { color: var(--navy); }
body.theme-day .hero h1 em {
  background: linear-gradient(180deg, #19B3A6, #0F7E75);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Console */
body.theme-day .console {
  background: #fff;
  border-color: rgba(15,27,45,.08);
  box-shadow: 0 30px 60px -30px rgba(15,27,45,.3);
}
body.theme-day .console-head .title { color: rgba(42,51,64,.7); }
body.theme-day .m-k          { color: var(--navy); }
body.theme-day .m-v          { color: rgba(42,51,64,.65); }
body.theme-day .m-row        { border-color: rgba(15,27,45,.08); }

/* Built-for */
body.theme-day .built-for   { border-color: rgba(15,27,45,.08); }
body.theme-day .built-for p { color: rgba(42,51,64,.65); }

/* Generic section overrides */
body.theme-day .section          { border-color: rgba(15,27,45,.08); }
body.theme-day .section:not(.light) {
  background: var(--stone);
  color: var(--navy);
}
body.theme-day .section h2       { color: var(--navy); }
body.theme-day .section p        { color: rgba(42,51,64,.75); }
body.theme-day .section-head p   { color: rgba(42,51,64,.75); }
body.theme-day .section.light    { background: #fff; }

/* Eyebrow in day non-light sections */
body.theme-day .section:not(.light) .eyebrow { color: var(--teal); }
body.theme-day .section:not(.light) .eyebrow::before { background: var(--teal); }

/* Compare (light section — already has dark text) */
body.theme-day .compare-col.good p,
body.theme-day .compare-col.good h3 { color: #EEE9E1; }

/* Pillars */
body.theme-day .pillar     { background: #fff; border-color: rgba(15,27,45,.08); }
body.theme-day .pillar p   { color: rgba(42,51,64,.72); }
body.theme-day .pillar .viz { border-color: rgba(15,27,45,.08); }
body.theme-day .pillar .idx { color: var(--teal); }
body.theme-day .meter .label { color: rgba(42,51,64,.6); }
body.theme-day .meter .bar   { background: rgba(15,27,45,.08); }
body.theme-day .meter .v     { color: var(--navy); }
body.theme-day .inq-list .q  { color: rgba(42,51,64,.75); }
body.theme-day .inq-list .row { border-color: rgba(15,27,45,.08); }
body.theme-day .pipe-mini .node { border-color: rgba(15,27,45,.1); color: rgba(42,51,64,.5); }
body.theme-day .pipe-mini .node.on { background: rgba(25,179,166,.1); color: var(--teal); border-color: rgba(25,179,166,.3); }

/* Pipeline / process */
body.theme-day .pipeline-shell { background: #fff; border-color: rgba(15,27,45,.08); }
body.theme-day .p-step  { background: var(--stone-2); border-color: rgba(15,27,45,.08); }
body.theme-day .p-name  { color: var(--navy); }
body.theme-day .p-desc  { color: rgba(42,51,64,.75); }
body.theme-day .p-arrow { color: rgba(42,51,64,.55); }
body.theme-day .process-note { color: rgba(42,51,64,.65); border-color: rgba(15,27,45,.08); }

/* Multi-location */
body.theme-day .ms-item   { background: #fff; border-color: rgba(15,27,45,.08); }
body.theme-day .ms-item h3 { color: var(--navy); }
body.theme-day .ms-item p  { color: rgba(42,51,64,.72); }

/* Final CTA */
body.theme-day .final-cta   { background: var(--stone-2); }
body.theme-day .final-cta h2 { color: var(--navy); }
body.theme-day .final-cta p  { color: rgba(42,51,64,.72); }
body.theme-day .final-cta .eyebrow { color: var(--teal); }
body.theme-day .final-cta .eyebrow::before { background: var(--teal); }
body.theme-day .final-cta .btn-ghost {
  color: var(--navy);
  border-color: rgba(15,27,45,.15);
}

/* Footer */
body.theme-day footer       { background: var(--stone-2); color: rgba(42,51,64,.72); }
body.theme-day footer h5    { color: var(--navy); }
body.theme-day .footer-brand { color: var(--navy); }
body.theme-day .foot-bottom { border-color: rgba(15,27,45,.08); color: rgba(42,51,64,.6); }
body.theme-day footer a:hover { color: var(--navy); }

/* Buttons in day mode */
body.theme-day .btn-ghost {
  color: var(--navy);
  border-color: rgba(15,27,45,.15);
}
body.theme-day .btn-ghost:hover {
  border-color: rgba(15,27,45,.35);
  background: rgba(15,27,45,.04);
}

/* ===================== THEME TRANSITION ===================== */
body,
.nav,
.hero,
.console,
.section,
.pillar,
.pipeline-shell,
.p-step,
.ms-item,
.built-for,
.final-cta,
footer {
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
