/* ---------- TrendHUD marketing site ---------- */
:root {
  --blue-50:  #EEF3FF;
  --blue-100: #DBE5FE;
  --blue-300: #7FA0F2;
  --blue-500: #2152D4;
  --blue-600: #1B45B8;
  --blue-700: #163A9C;
  --blue-900: #0B1C56;

  --green-400: #34D399;
  --green-500: #10B981;
  --green-700: #047857;
  --green-band: rgba(16, 185, 129, 0.18);

  --red-400: #F87171;
  --red-500: #EF4444;

  --bg-dark: #0A0E1A;
  --bg-dark-2: #0F1426;
  --bg-light: #FFFFFF;
  --bg-light-2: #F6F8FC;
  --hairline-dark: rgba(255,255,255,0.08);
  --hairline-light: rgba(15, 23, 42, 0.08);

  --text-dark-1: #F8FAFC;
  --text-dark-2: #B8C2D6;
  --text-dark-3: #6E7A93;
  --text-light-1: #0B1220;
  --text-light-2: #475569;
  --text-light-3: #94A3B8;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Geist', 'Inter Display', 'Inter', sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text-dark-1);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  font-variant-numeric: tabular-nums;
  scroll-behavior: smooth;
}
body.no-scroll-smooth { scroll-behavior: auto; }

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.4vw, 78px); font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.028em; }
h3 { font-size: clamp(22px, 1.9vw, 26px); font-weight: 600; }
h4 { font-size: 16px; font-weight: 500; letter-spacing: 0; }
p  { margin: 0; text-wrap: pretty; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-300);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section-light .eyebrow { color: var(--blue-600); }

/* ---------- layout ---------- */
.section { position: relative; padding: 120px 0; }
.section.section-clip { overflow: hidden; }
.section-dark  { background: var(--bg-dark);  color: var(--text-dark-1); }
.section-light { background: var(--bg-light); color: var(--text-light-1); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 2; }
.hairline { border: 0; height: 1px; width: 100%; background: var(--hairline-dark); margin: 0; }
.section-light .hairline { background: var(--hairline-light); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline-dark);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-light {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: var(--hairline-light);
  color: var(--text-light-1);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.nav-brand .logo-mark {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--blue-500), var(--green-500));
  border-radius: 6px;
  position: relative;
  box-shadow: 0 4px 14px rgba(33, 82, 212, 0.4);
}
.nav-brand .logo-mark::after {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 3px;
  background:
    linear-gradient(135deg, transparent 49%, rgba(255,255,255,0.7) 50%, transparent 51%);
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px;
  color: var(--text-dark-2);
}
.nav.is-light .nav-links { color: var(--text-light-2); }
.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--text-dark-1); }
.nav.is-light .nav-links a:hover { color: var(--text-light-1); }

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-500);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px -8px rgba(33, 82, 212, 0.6);
}
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-dark-1);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.32); }
.nav.is-light .btn-ghost { color: var(--text-light-1); border-color: rgba(15, 23, 42, 0.16); }
.nav.is-light .btn-ghost:hover { background: rgba(15, 23, 42, 0.04); }
.btn-arrow::after { content: '→'; transition: transform 0.2s var(--ease); }
.btn-arrow:hover::after { transform: translateX(2px); }

/* ---------- HERO — journey entry ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--bg-dark);
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-canvas-wrap canvas { width: 100% !important; height: 100% !important; }
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, transparent 0%, rgba(10, 14, 26, 0.7) 90%),
    linear-gradient(to top, rgba(10, 14, 26, 1) 0%, transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 140px var(--pad) 80px;
  text-align: left;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--blue-300);
  margin-bottom: 36px;
  padding: 6px 14px;
  border: 1px solid rgba(127, 160, 242, 0.25);
  border-radius: 999px;
  background: rgba(33, 82, 212, 0.08);
  backdrop-filter: blur(6px);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 8px var(--green-400);
}

.hero h1 {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 600;
  max-width: 16ch;
}
.hero h1 .beat {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.0s var(--ease), transform 1.0s var(--ease);
}
.hero h1 .beat.is-in { opacity: 1; transform: translateY(0); }
.hero h1 .beat-1 { transition-delay: 0.10s; }
.hero h1 .beat-2 { transition-delay: 0.45s; color: var(--blue-300); }
.hero h1 .beat-3 { transition-delay: 0.80s; color: var(--green-400); }
.hero-sub {
  margin-top: 32px;
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--text-dark-2);
  max-width: 56ch;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.hero-ctas {
  margin-top: 44px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

.hero-meta {
  position: absolute;
  left: 0; right: 0;
  bottom: 32px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--pad);
  color: var(--text-dark-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .blip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 12px var(--green-400);
  animation: blip 2s var(--ease) infinite;
}
@keyframes blip {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@media (max-width: 720px) {
  .hero-meta { font-size: 10px; gap: 12px; }
  .hero-meta .hide-sm { display: none; }
}

/* ---------- PROBLEM ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-top: 64px;
}
@media (max-width: 880px) {
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
}
.problem-copy { max-width: 760px; }
.problem-copy h2 { margin-bottom: 18px; }
.problem-copy p { color: var(--text-light-2); font-size: 18px; max-width: 56ch; }
.problem-tag {
  display: inline-flex; gap: 8px; align-items: center;
  margin-top: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.problem-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-500);
}

/* visual: paper stack vs. trend chart */
.problem-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: linear-gradient(135deg, #F1F4FA, #E6ECF6);
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  box-shadow: 0 30px 80px -30px rgba(11, 18, 32, 0.25);
}
.problem-visual .pane-left,
.problem-visual .pane-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  padding: 26px;
}
.problem-visual .pane-left { left: 0; opacity: 0.7; }
.problem-visual .pane-right {
  right: 0;
  background: white;
  border-left: 1px solid var(--hairline-light);
  box-shadow: -20px 0 40px -20px rgba(11, 18, 32, 0.12);
}
.paper {
  position: absolute;
  background: white;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(15,23,42,0.06);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-light-3);
  line-height: 1.5;
  overflow: hidden;
}
.paper .row {
  display: flex; justify-content: space-between;
  border-bottom: 1px dashed rgba(15,23,42,0.08);
  padding: 2px 0;
}
.paper .row span:last-child { color: var(--text-light-1); }
.paper-1 { top: 8%; left: 6%; width: 62%; height: 36%; transform: rotate(-4deg); }
.paper-2 { top: 28%; left: 18%; width: 60%; height: 38%; transform: rotate(2deg); }
.paper-3 { top: 50%; left: 8%; width: 64%; height: 36%; transform: rotate(-1.5deg); }
.paper-stamp {
  position: absolute;
  top: 6px; right: 6px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--red-500);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 1px 4px;
  text-transform: uppercase;
  opacity: 0.6;
}

.mini-chart {
  width: 100%; height: 100%;
  position: relative;
}
.mini-chart svg { width: 100%; height: 100%; }
.mini-chart .legend {
  position: absolute;
  top: 8px; left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-light-2);
}
.mini-chart .legend strong { color: var(--text-light-1); font-weight: 600; }
.mini-chart .ref {
  position: absolute;
  bottom: 8px; right: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green-700);
  background: var(--green-band);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ---------- HOW IT WORKS (scroll-driven) ---------- */
.how {
  background: var(--bg-dark);
  position: relative;
}
.how-intro {
  text-align: center;
  padding: 0 var(--pad);
  margin: 0 auto 32px;
  max-width: 720px;
}
.how-intro h2 { margin-bottom: 14px; }
.how-intro p { color: var(--text-dark-2); }

.how-pin {
  position: relative;
  height: 360vh; /* tall scroll runway — handled by ScrollTrigger */
}
.how-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.how-canvas canvas { width: 100% !important; height: 100% !important; }
.how-captions {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  pointer-events: none;
}
.how-caption {
  align-self: end;
  justify-self: start;
  margin: 0 0 80px 0;
  padding: 0 var(--pad);
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  grid-area: 1 / 1;
}
.how-caption.is-active { opacity: 1; transform: translateY(0); }
.how-caption .step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--blue-300);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.how-caption .step .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(127, 160, 242, 0.16);
  border: 1px solid rgba(127, 160, 242, 0.4);
  color: var(--blue-300);
  font-size: 11px;
}
.how-caption h3 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.how-caption p { color: var(--text-dark-2); font-size: 16px; }
.how-progress {
  position: absolute;
  top: 50%; right: var(--pad);
  transform: translateY(-50%);
  z-index: 3;
  display: flex; flex-direction: column; gap: 14px;
}
.how-progress .tick {
  width: 2px; height: 36px;
  background: rgba(255,255,255,0.14);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.how-progress .tick::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-300);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.how-progress .tick.is-active::after { transform: scaleY(1); }

@media (max-width: 720px) {
  .how-pin { height: 280vh; }
  .how-caption { max-width: 80%; margin-bottom: 64px; }
  .how-progress { display: none; }
}

/* ---------- DEMO ---------- */
.demo .demo-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 40px;
}
@media (max-width: 880px) {
  .demo .demo-head { grid-template-columns: 1fr; gap: 24px; }
}
.demo-head h2 { margin-bottom: 16px; }
.demo-head p { color: var(--text-light-2); font-size: 17px; max-width: 48ch; }

.demo-frame {
  position: relative;
  background: linear-gradient(180deg, #F7F9FD 0%, #EEF1F8 100%);
  border-radius: 18px;
  border: 1px solid var(--hairline-light);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(11, 18, 32, 0.25);
}
.demo-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--hairline-light);
  background: white;
  flex-wrap: wrap;
  gap: 12px;
}
.demo-toolbar .panel-name {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-light-2);
}
.demo-toolbar .panel-name strong {
  color: var(--text-light-1);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.demo-toolbar .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  border-radius: 7px;
  background: var(--bg-light-2);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light-2);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.chip:hover { background: white; border-color: var(--hairline-light); color: var(--text-light-1); }
.chip.is-active {
  background: var(--blue-500);
  color: white;
  border-color: var(--blue-500);
}
.chip .swatch {
  width: 8px; height: 8px; border-radius: 2px;
}

.demo-canvas-wrap {
  position: relative;
  height: 540px;
}
.demo-canvas-wrap canvas {
  width: 100% !important; height: 100% !important;
  cursor: grab;
}
.demo-canvas-wrap canvas:active { cursor: grabbing; }
.demo-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(11, 18, 32, 0.95);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  transform: translate(-50%, calc(-100% - 14px));
  opacity: 0;
  transition: opacity 0.12s var(--ease);
  box-shadow: 0 12px 30px -12px rgba(11,18,32,0.4);
  min-width: 180px;
  z-index: 5;
}
.demo-tooltip.is-on { opacity: 1; }
.demo-tooltip .t-row {
  display: flex; justify-content: space-between; gap: 14px;
  font-family: var(--font-mono);
}
.demo-tooltip .t-row + .t-row { margin-top: 4px; }
.demo-tooltip .t-flag {
  color: var(--red-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
}
.demo-tooltip .t-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}
.demo-hint {
  position: absolute;
  bottom: 14px; left: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-3);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-light);
  border-radius: 999px;
  padding: 6px 12px;
  z-index: 4;
}
.demo-hint .kbd {
  display: inline-flex; align-items: center; justify-content: center;
  height: 18px; min-width: 22px; padding: 0 4px;
  border-radius: 4px;
  background: white;
  border: 1px solid var(--hairline-light);
  font-size: 10px;
  color: var(--text-light-1);
  letter-spacing: 0;
}
.demo-footnote {
  margin-top: 22px;
  color: var(--text-light-2);
  font-size: 14px;
  text-align: center;
  max-width: 56ch;
  margin-left: auto; margin-right: auto;
}

/* ---------- SPECIALTIES ---------- */
.spec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .spec-head { grid-template-columns: 1fr; } }
.spec-head p { color: var(--text-light-2); max-width: 48ch; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .spec-grid { grid-template-columns: 1fr; } }

.spec-card {
  position: relative;
  padding: 32px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--hairline-light);
  transform-style: preserve-3d;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  overflow: hidden;
  isolation: isolate;
  min-height: 360px;
  display: flex; flex-direction: column;
}
.spec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%),
      rgba(33, 82, 212, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.spec-card:hover { box-shadow: 0 30px 60px -25px rgba(11, 18, 32, 0.25); border-color: rgba(33,82,212,0.25); }
.spec-card:hover::before { opacity: 1; }
.spec-card .glyph {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--bg-light-2);
  border: 1px solid var(--hairline-light);
  display: grid; place-items: center;
  margin-bottom: 22px;
  transform: translateZ(20px);
  position: relative;
  z-index: 1;
}
.spec-card .glyph svg { width: 28px; height: 28px; color: var(--blue-500); }
.spec-card h3 {
  margin-bottom: 10px;
  transform: translateZ(15px);
  position: relative;
  z-index: 1;
}
.spec-card p {
  color: var(--text-light-2);
  transform: translateZ(10px);
  position: relative;
  z-index: 1;
  font-size: 15px;
}
.spec-card .panels {
  margin-top: auto;
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 6px;
  border-top: 1px dashed var(--hairline-light);
  transform: translateZ(8px);
  position: relative;
  z-index: 1;
}
.spec-card .panels span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light-2);
  background: var(--bg-light-2);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ---------- SECURITY ---------- */
.security {
  background: var(--bg-dark);
  padding: 100px 0;
}
.security-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
  padding: 0 var(--pad);
}
.security-head p { color: var(--text-dark-2); margin-top: 16px; }
.security-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .security-row { grid-template-columns: 1fr; } }
.security-card {
  padding: 28px;
  border: 1px solid var(--hairline-dark);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  display: flex; flex-direction: column;
  gap: 14px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.security-card:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.16); }
.security-card .ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(127, 160, 242, 0.12);
  color: var(--blue-300);
  border: 1px solid rgba(127, 160, 242, 0.2);
}
.security-card h4 { font-size: 17px; font-weight: 600; }
.security-card p { color: var(--text-dark-2); font-size: 14px; line-height: 1.55; }

/* ---------- ACCESS FORM ---------- */
.access {
  background: var(--bg-light);
  padding: 120px 0;
}
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .access-grid { grid-template-columns: 1fr; } }
.access-copy h2 { margin-bottom: 16px; }
.access-copy p { color: var(--text-light-2); font-size: 18px; max-width: 42ch; }
.access-stats {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.access-stats .stat {
  padding: 18px;
  background: var(--bg-light-2);
  border-radius: 12px;
  border: 1px solid var(--hairline-light);
}
.access-stats .stat .v {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-light-1);
  margin-bottom: 2px;
}
.access-stats .stat .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-2);
}

.access-form {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--hairline-light);
  padding: 32px;
  box-shadow: 0 30px 80px -40px rgba(11, 18, 32, 0.2);
  display: grid;
  gap: 14px;
}
.field { display: grid; gap: 7px; }
.field.row-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .field.row-2 { grid-template-columns: 1fr; } }
.field label {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--hairline-light);
  background: var(--bg-light-2);
  font: inherit;
  font-size: 15px;
  color: var(--text-light-1);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  background: white;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(33, 82, 212, 0.12);
}
.field.is-error input,
.field.is-error select,
.field.is-error textarea { border-color: var(--red-500); }
.field .err {
  font-size: 12px;
  color: var(--red-500);
  display: none;
}
.field.is-error .err { display: block; }
.access-form .btn-primary { justify-self: start; margin-top: 6px; padding: 13px 22px; }
.access-form .submitted {
  display: none;
  background: var(--green-band);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green-700);
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
}
.access-form.is-submitted .submitted { display: block; }
.access-form.is-submitted .field,
.access-form.is-submitted .btn-primary { display: none; }

/* ---------- FOOTER ---------- */
.foot {
  background: var(--bg-dark);
  color: var(--text-dark-2);
  padding: 80px 0 40px;
  border-top: 1px solid var(--hairline-dark);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }
.foot h4 {
  color: var(--text-dark-1);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}
.foot a { color: var(--text-dark-2); display: block; padding: 4px 0; transition: color 0.15s var(--ease); }
.foot a:hover { color: var(--text-dark-1); }
.foot .brand-line {
  font-family: var(--font-display);
  color: var(--text-dark-1);
  font-size: 17px;
  margin-bottom: 16px;
}
.foot-logo {
  height: 30px;
  width: auto;
  /* The logo is dark-on-white; invert to render legibly on dark footer */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.foot .copy { font-size: 14px; max-width: 36ch; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-3);
  flex-wrap: wrap;
  gap: 16px;
}
.foot-bottom .lite-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--hairline-dark);
  color: var(--text-dark-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.foot-bottom .lite-toggle:hover { border-color: rgba(255,255,255,0.2); color: var(--text-dark-1); }
.foot-bottom .lite-toggle .pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dark-3);
}
.foot-bottom .lite-toggle.is-on .pip { background: var(--green-400); box-shadow: 0 0 8px var(--green-400); }

/* ---------- LITE MODE ---------- */
body.lite-mode .hero-canvas-wrap,
body.lite-mode .how-canvas {
  display: none;
}
body.lite-mode .hero-bg-glow { opacity: 0.5; }
body.lite-mode .how-pin { height: auto; }
body.lite-mode .how-stage {
  position: relative;
  height: auto;
  padding: 80px var(--pad);
  display: block;
}
body.lite-mode .how-captions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  inset: auto;
}
@media (max-width: 880px) {
  body.lite-mode .how-captions { grid-template-columns: 1fr; }
}
body.lite-mode .how-caption {
  position: relative;
  opacity: 1;
  transform: none;
  margin: 0;
  padding: 24px;
  max-width: none;
  border: 1px solid var(--hairline-dark);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  grid-area: auto;
}
body.lite-mode .how-progress { display: none; }
body.lite-mode .demo-canvas-wrap { height: 360px; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- TWEAKS PANEL ---------- */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background: rgba(15, 20, 38, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 18px;
  width: 280px;
  color: var(--text-dark-1);
  font-size: 13px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
  display: none;
}
.tweaks-panel.is-on { display: block; }
.tweaks-panel .tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.tweaks-panel h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-mono); color: var(--text-dark-2); }
.tweaks-panel .close {
  background: transparent; border: 0; color: var(--text-dark-2); font-size: 18px; padding: 0; line-height: 1;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-3);
  margin-bottom: 6px;
}
.tweak-row input[type="range"] {
  width: 100%;
  accent-color: var(--blue-500);
}
.tweak-row .segmented {
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  padding: 3px;
  border-radius: 8px;
}
.tweak-row .segmented button {
  background: transparent;
  border: 0;
  color: var(--text-dark-2);
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.tweak-row .segmented button.is-on {
  background: var(--blue-500);
  color: white;
}
.tweak-row .swatches { display: flex; gap: 6px; }
.tweak-row .swatches button {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
}
.tweak-row .swatches button.is-on { border-color: rgba(255,255,255,0.7); }

/* =====================================================================
   PRODUCT MOCKUP — faithful 2D recreation of TrendHUD.app
   ===================================================================== */

.demo-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}
@media (max-width: 880px) { .demo-head { grid-template-columns: 1fr; gap: 16px; } }
.demo-head h2 { margin-bottom: 14px; }
.demo-head p { color: var(--text-light-2); max-width: 50ch; }
.demo-cta { text-align: right; }
@media (max-width: 880px) { .demo-cta { text-align: left; } }

.product-screen {
  position: relative;
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 30px 80px -30px rgba(11, 18, 32, 0.25),
    0 60px 120px -40px rgba(33, 82, 212, 0.18);
  font-family: var(--font-sans);
  color: #0F172A;
  font-size: 13px;
}

.lc-app {
  display: flex; flex-direction: column;
  min-height: 720px;
}

/* ========== HEADER ========== */
.lc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 20px 12px;
  border-bottom: 1px solid #E5E7EB;
  gap: 24px;
  flex-wrap: wrap;
}
.lc-header-left { flex: 1; min-width: 320px; }
.lc-title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 4px;
}
.lc-logo-img {
  height: 24px;
  width: auto;
  display: block;
}
.lc-badge {
  background: #FFEDD5;
  color: #C2410C;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.lc-patient {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13px;
  color: #1F2937;
  margin-bottom: 2px;
}
.lc-patient strong { font-weight: 600; }
.lc-demo {
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: #374151;
  cursor: default;
}
.lc-interpret {
  background: #2563EB;
  border: 0;
  color: white;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.5);
}
.lc-interpret:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -2px rgba(37, 99, 235, 0.6);
}
.lc-interpret-emoji {
  width: 10px; height: 10px;
  background: linear-gradient(135deg, #FB7185, #F472B6);
  border-radius: 50%;
  display: inline-block;
}
.lc-condition {
  font-size: 12px;
  color: #6B7280;
  font-style: italic;
}
.lc-header-right { text-align: right; font-size: 12px; color: #4B5563; }
.lc-date-row {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: #4B5563;
  margin-bottom: 2px;
}
.lc-date-row input {
  width: 100px;
  padding: 3px 6px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: white;
  color: #111827;
}
.lc-refresh {
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  width: 22px; height: 22px;
  font-size: 11px;
  cursor: pointer;
  color: #4B5563;
}
.lc-last { font-size: 11px; color: #6B7280; }

/* ========== AGILE BANNER ========== */
.lc-agile {
  background: #FEF9C3;
  border-bottom: 1px solid #FACC15;
  padding: 10px 20px;
  font-size: 12px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px;
  color: #422006;
}
.lc-agile strong { color: #111827; font-weight: 600; }
.lc-criteria { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: #1F2937; }
.lc-ok { color: #059669; font-weight: 700; }
.lc-fail { color: #DC2626; font-weight: 700; }
.lc-bm { color: #6B7280; font-style: italic; }

/* ========== BODY ========== */
.lc-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  flex: 1;
}
@media (max-width: 860px) {
  .lc-body { grid-template-columns: 1fr; }
  .lc-sidebar { display: none; }  /* simplify on mobile */
}

/* ========== SIDEBAR ========== */
.lc-sidebar {
  background: white;
  border-right: 1px solid #E5E7EB;
  padding: 14px 12px;
  font-size: 12px;
  overflow-y: auto;
  max-height: 1000px;
}
.lc-sec-h {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #6B7280;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.lc-tx-list, .lc-cbc-list { list-style: none; padding: 0; margin: 0 0 8px; }
.lc-tx-row, .lc-cbc-row {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 0;
  font-size: 12px;
  color: #1F2937;
}
.lc-tx-row input, .lc-cbc-row input {
  accent-color: #2563EB;
  margin: 0;
}
.lc-tx-swatch {
  width: 12px; height: 12px; border-radius: 3px;
  flex-shrink: 0;
}
.lc-cbc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.lc-tx-label, .lc-cbc-label { flex: 1; line-height: 1.25; }
.lc-cbc-label em { color: #6B7280; font-style: normal; font-size: 11px; }
.lc-tx-band {
  width: 14px; height: 14px;
  background: #F3F4F6;
  border: 1px solid #D1D5DB;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
}
.lc-tx-band:hover { background: #E5E7EB; }
.lc-sidebar-btns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 12px;
}
.lc-sidebar-btns button {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  color: #374151;
  cursor: pointer;
}
.lc-sidebar-btns button:hover { background: white; border-color: #D1D5DB; }
.lc-sec {
  border-top: 1px solid #F3F4F6;
  padding: 8px 0 4px;
  margin-top: 6px;
}
.lc-sec summary {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #6B7280;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
}
.lc-sec summary::-webkit-details-marker { display: none; }
.lc-sec summary::before {
  content: '▸';
  color: #9CA3AF;
  margin-right: 4px;
  font-size: 9px;
  transition: transform 0.2s;
}
.lc-sec[open] summary::before { transform: rotate(90deg); display: inline-block; }
.lc-count { color: #9CA3AF; font-weight: 500; }
.lc-key-events {
  margin-top: 16px;
  padding: 10px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 11px;
}
.lc-key-events strong { display: block; margin-bottom: 6px; color: #111827; }
.lc-key-events ul { margin: 0; padding-left: 14px; color: #4B5563; }
.lc-key-events li { padding: 1px 0; }

/* ========== CHARTS COLUMN ========== */
.lc-charts {
  position: relative;
  padding: 10px 16px 16px;
  background: #FAFBFC;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
}
.lc-panel {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.lc-panel-h {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #E5E7EB;
  background: #FAFBFC;
  position: relative;
}
.lc-panel-h::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent, #2563EB);
}
.lc-panel-h-tl::before { background: #2563EB; }
.lc-panel-title {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px;
  color: #111827;
}
.lc-panel-title strong { font-weight: 600; color: var(--accent, #111827); }
.lc-panel-h-tl .lc-panel-title strong { color: #2563EB; }
.lc-panel-title em { color: #6B7280; font-style: normal; font-size: 12px; }
.lc-chart-svg, .lc-tl-svg {
  display: block;
  width: 100%;
  background: white;
}

/* ========== CROSSHAIR ========== */
.lc-crosshair {
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s var(--ease);
  z-index: 5;
}
.lc-cx-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(15, 23, 42, 0.5);
  transform: translateX(-0.5px);
}
.lc-cx-label {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  background: #0F172A;
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 6;
}
.lc-cx-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.3), 0 2px 6px rgba(15, 23, 42, 0.2);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.12s var(--ease);
  pointer-events: none;
  z-index: 4;
}
.lc-cx-dot.is-on { opacity: 1; }
.lc-cx-tip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 10px));
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transition: opacity 0.12s var(--ease);
  pointer-events: none;
  z-index: 4;
  font-family: var(--font-sans);
  color: #111827;
}
.lc-cx-tip.is-on { opacity: 1; }
.lc-cx-tip strong { font-weight: 700; }

/* ========== FLOATING CONTROLS ========== */
.lc-floating {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex; align-items: center; gap: 8px;
  z-index: 7;
}
.lc-lang {
  display: flex;
  background: #0F172A;
  border-radius: 999px;
  padding: 3px;
}
.lc-lang button {
  background: transparent;
  border: 0;
  color: #94A3B8;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-sans);
}
.lc-lang button.is-on { background: #1E40AF; color: white; font-weight: 600; }
.lc-mic, .lc-gear {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #0F172A;
  border: 0;
  color: white;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}
.lc-mic:hover, .lc-gear:hover { transform: scale(1.06); }
.lc-gear { background: #F3F4F6; color: #4B5563; border: 1px solid #E5E7EB; }

/* =====================================================================
   INTERPRET — AI panel section
   ===================================================================== */
.interpret { padding: 120px 0; }
.interpret-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
  padding: 0 var(--pad);
}
.interpret-head p {
  color: var(--text-dark-2);
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
}
.ip-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #2563EB;
  color: white;
  font-weight: 600;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.95em;
}
.ip-pill-emoji, .ip-brand-emoji {
  width: 8px; height: 8px;
  background: linear-gradient(135deg, #FB7185, #F472B6);
  border-radius: 50%;
  display: inline-block;
}

.interpret-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 980px) { .interpret-grid { grid-template-columns: 1fr; gap: 32px; } }

.interpret-pillars { display: flex; flex-direction: column; gap: 28px; }
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 22px;
  padding-left: 4px;
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--blue-300);
  padding-top: 4px;
  align-self: start;
  font-weight: 500;
}
.pillar h4 {
  grid-column: 2;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-dark-1);
  margin-bottom: 8px;
}
.pillar p {
  grid-column: 2;
  color: var(--text-dark-2);
  font-size: 14px;
  line-height: 1.55;
}

/* AI panel mockup */
.interpret-panel-wrap {
  perspective: 1500px;
  perspective-origin: 50% 30%;
}
.interpret-panel {
  background: linear-gradient(180deg, #0F1A33 0%, #0B142A 100%);
  border: 1px solid rgba(127, 160, 242, 0.22);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(127, 160, 242, 0.1) inset,
    0 -10px 60px -20px rgba(33, 82, 212, 0.3) inset;
  transform: rotateX(2deg) rotateY(-4deg);
  transition: transform 0.6s var(--ease);
}
.interpret-panel:hover {
  transform: rotateX(0deg) rotateY(0deg);
}
.ip-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: rgba(33, 82, 212, 0.08);
  border-bottom: 1px solid rgba(127, 160, 242, 0.15);
}
.ip-head-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ip-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark-1);
}
.ip-brand-emoji {
  width: 12px; height: 12px;
}
.ip-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-dark-3);
  text-transform: uppercase;
}
.ip-pulse {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--blue-300);
  text-transform: uppercase;
}
.ip-pulse span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 8px var(--green-400);
  animation: blip 2s var(--ease) infinite;
}

.ip-body {
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  max-height: 540px;
  overflow-y: auto;
}
.ip-msg {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.ip-msg-agent {
  background: rgba(127, 160, 242, 0.06);
  border: 1px solid rgba(127, 160, 242, 0.18);
  color: var(--text-dark-1);
}
.ip-msg-user {
  background: var(--blue-500);
  color: white;
  align-self: flex-end;
  max-width: 75%;
}
.ip-msg-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ip-msg-tag {
  color: var(--green-400);
  font-weight: 600;
}
.ip-msg-tag-flag { color: #FBBF24; }
.ip-msg-tag-action { color: var(--blue-300); }
.ip-msg-cite { color: var(--text-dark-3); }
.ip-msg p { color: inherit; margin: 0; }
.ip-msg strong { color: white; font-weight: 600; }
.ip-msg a[data-cite] {
  color: var(--blue-300);
  text-decoration: underline;
  text-decoration-color: rgba(127, 160, 242, 0.4);
  text-underline-offset: 2px;
  font-family: var(--font-mono);
  font-size: 0.92em;
}
.ip-msg a[data-cite]:hover { color: var(--text-dark-1); }

.ip-actions {
  display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap;
}
.ip-action {
  background: transparent;
  border: 1px solid rgba(127, 160, 242, 0.25);
  color: var(--text-dark-2);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.ip-action:hover { background: rgba(127, 160, 242, 0.08); border-color: rgba(127, 160, 242, 0.45); color: var(--text-dark-1); }
.ip-action-primary {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: white;
}
.ip-action-primary:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: white;
}

.ip-msg-typing { background: transparent; border: 0; padding: 4px 0; }
.ip-typing-dots { display: flex; gap: 4px; }
.ip-typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-300);
  animation: typing 1.4s var(--ease) infinite;
}
.ip-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ip-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.ip-input {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(127, 160, 242, 0.15);
  background: rgba(33, 82, 212, 0.04);
}
.ip-input-icon {
  font-family: var(--font-mono);
  color: var(--blue-300);
  font-size: 12px;
}
.ip-input input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text-dark-1);
  font: inherit;
  font-size: 14px;
  outline: 0;
}
.ip-input input::placeholder { color: var(--text-dark-3); }
.ip-mic {
  background: var(--blue-500);
  border: 0;
  color: white;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
}
