/* Maachu Labs — AI automation agency site
 * Original system. Dark editorial-tech.
 */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* canvas */
  --bg: oklch(0.09 0.022 262);
  --bg-2: oklch(0.11 0.025 262);
  --surface: oklch(0.12 0.024 260);
  --surface-2: oklch(0.15 0.028 260);
  --line: oklch(0.45 0.045 260 / 0.40);
  --line-soft: oklch(0.45 0.045 260 / 0.18);

  /* text */
  --fg: oklch(0.98 0.004 250);
  --fg-dim: oklch(0.88 0.010 250);
  --fg-mute: oklch(0.72 0.015 250);
  --fg-faint: oklch(0.58 0.018 250);

  /* accents */
  --blue: oklch(0.72 0.18 245);
  --blue-bright: oklch(0.78 0.20 240);
  --violet: oklch(0.66 0.22 295);
  --teal: oklch(0.78 0.12 195);
  --warn: oklch(0.78 0.16 70);

  /* type */
  --sans: 'Geist', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', 'Times New Roman', serif;

  /* grid */
  --container: 1280px;
  --gutter: 28px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

/* Global animated background canvas — sits behind everything */
.bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Ensure every direct page block sits above the canvas */
.nav, .hero, .trust, .section, .cta, .foot {
  position: relative;
  z-index: 1;
}
.nav { z-index: 80; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* --- Selection --- */
::selection { background: oklch(0.72 0.18 245 / 0.35); color: white; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(0.30 0.02 250 / 0.5); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: oklch(0.40 0.02 250 / 0.7); }

/* --- Layout primitives --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: 72px 0;
  position: relative;
}
.section--tight { padding: 48px 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--fg-mute);
}
.eyebrow.no-rule::before { display: none; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
h2.section-title {
  font-size: clamp(36px, 4.5vw, 64px);
  margin-top: 18px;
  max-width: 22ch;
  text-wrap: balance;
}
h2.section-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--fg-dim);
}
.section-sub {
  color: var(--fg-dim);
  font-size: 18px;
  margin-top: 16px;
  max-width: 62ch;
  text-wrap: pretty;
}
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 72px;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 80px 0; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 99px;
  font-weight: 500;
  font-size: 14px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  position: relative;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--fg);
  color: oklch(0.18 0.012 250);
  border: 1px solid var(--fg);
}
.btn-primary:hover { background: white; box-shadow: 0 8px 30px -8px oklch(0.85 0.08 245 / 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--fg-dim); background: oklch(0.25 0.015 250 / 0.4); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* --- Nav --- */
.nav {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: calc(100% - 32px);
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 20px;
  border-radius: 99px;
  background: oklch(0.16 0.025 260 / 0.80);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fg);
}
.brand .mark {
  width: 32px; height: 32px;
  position: relative;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--fg-dim);
  padding: 8px 14px;
  border-radius: 99px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg); background: oklch(0.25 0.015 250 / 0.5); }
.nav-cta { display: inline-flex; gap: 8px; align-items: center; }
.nav-cta .btn { height: 36px; padding: 0 16px; font-size: 13px; }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* --- HERO --- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(0.30 0.02 250 / 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.30 0.02 250 / 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 14px 0 6px;
  border-radius: 99px;
  background: oklch(0.19 0.028 260 / 0.84);
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
}
.hero-badge .pill {
  background: oklch(0.30 0.08 245 / 0.4);
  color: var(--blue-bright);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.hero h1 {
  font-size: clamp(48px, 6.5vw, 92px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-top: 22px;
  max-width: 14ch;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--blue-bright), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.05em;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-dim);
  margin-top: 24px;
  max-width: 52ch;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Hero side panel: live AI suggester */
.suggester {
  background: oklch(0.15 0.022 260 / 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.suggester::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 20% -10%, oklch(0.55 0.20 245 / 0.18), transparent 60%);
  pointer-events: none;
}
.suggester-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
}
.suggester-head .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.suggester-head .dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--blue-bright);
  box-shadow: 0 0 0 4px oklch(0.55 0.20 245 / 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px oklch(0.55 0.20 245 / 0.10); }
  50% { box-shadow: 0 0 0 8px oklch(0.55 0.20 245 / 0.22); }
}
.suggester-prompt {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 14px;
}
.suggester-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: oklch(0.13 0.022 260 / 0.90);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 6px 6px 18px;
  transition: border-color .25s;
}
.suggester-input:focus-within { border-color: var(--blue); }
.suggester-input input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--fg);
  font: 400 15px var(--sans);
  height: 36px;
}
.suggester-input input::placeholder { color: var(--fg-mute); }
.suggester-input button {
  height: 36px;
  padding: 0 16px;
  border-radius: 99px;
  background: var(--fg);
  color: oklch(0.15 0.01 250);
  font-weight: 500;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.suggester-output {
  margin-top: 14px;
  min-height: 96px;
  display: grid;
  gap: 8px;
}
.sugg-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: oklch(0.18 0.026 260 / 0.82);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  font-size: 14px;
  color: var(--fg-dim);
  opacity: 0;
  transform: translateY(6px);
  animation: chipIn .5s ease forwards;
}
.sugg-chip:hover { border-color: var(--blue); background: oklch(0.20 0.030 260 / 0.86); }
.sugg-chip .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--blue-bright);
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  background: oklch(0.30 0.08 245 / 0.3);
}
.sugg-chip:nth-child(1) { animation-delay: 0.05s; }
.sugg-chip:nth-child(2) { animation-delay: 0.18s; }
.sugg-chip:nth-child(3) { animation-delay: 0.3s; }
@keyframes chipIn {
  to { opacity: 1; transform: translateY(0); }
}
.thinking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 12px 14px;
}
.thinking .bar {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--violet));
  background-size: 200% 100%;
  animation: thinkBar 1.4s linear infinite;
}
@keyframes thinkBar {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Trust strip --- */
.trust {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: oklch(0.15 0.024 260 / 0.76);
}
.trust-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
  padding: 28px 0;
}
@media (max-width: 780px) { .trust-row { grid-template-columns: 1fr; gap: 16px; } }
.trust-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--fg-mute);
  text-transform: uppercase;
  max-width: 16ch;
}
.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logo-track {
  display: flex;
  gap: 56px;
  animation: scroll 38s linear infinite;
  width: max-content;
}
.logo-track .logo {
  font-family: var(--mono);
  letter-spacing: 0.02em;
  font-size: 18px;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  opacity: 0.85;
}
.logo-track .logo svg { opacity: 0.85; }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* --- Metrics --- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: oklch(0.15 0.024 260 / 0.78);
  overflow: hidden;
}
.metric {
  padding: 36px 28px;
  border-right: 1px solid var(--line-soft);
  position: relative;
}
.metric:last-child { border-right: none; }
.metric .v {
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: 'tnum' 1;
}
.metric .v .unit { color: var(--fg-mute); font-size: 28px; margin-left: 4px; }
.metric .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 14px;
}
@media (max-width: 880px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--line-soft); }
  .metric:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .metric:nth-child(even) { border-right: none; }
}

/* --- Testimonials --- */
.tests {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 980px) { .tests { grid-template-columns: 1fr; } }
.test {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  background: oklch(0.16 0.025 260 / 0.78);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.test p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg);
  text-wrap: pretty;
}
.test p em { font-family: var(--serif); font-style: italic; color: var(--blue-bright); font-size: 1.05em; }
.test footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 99px;
  background: linear-gradient(135deg, oklch(0.40 0.10 245), oklch(0.50 0.15 290));
  font-family: var(--mono);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.test footer .name { font-weight: 500; font-size: 14px; }
.test footer .role { font-size: 12px; color: var(--fg-mute); font-family: var(--mono); }

/* --- Problems flip cards --- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) { .problems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .problems-grid { grid-template-columns: 1fr; } }
.prob {
  position: relative;
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
}
.prob-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform .8s cubic-bezier(.7,.0,.3,1);
  transform-style: preserve-3d;
}
.prob:hover .prob-inner, .prob.flipped .prob-inner { transform: rotateY(180deg); }
.prob-face {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
  backface-visibility: hidden;
  background: oklch(0.16 0.025 260 / 0.82);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.prob-front .glyph {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
}
.prob-front h4 {
  font-size: 20px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.prob-front .small {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.prob-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, oklch(0.22 0.04 245), oklch(0.18 0.05 290));
  border-color: var(--blue);
}
.prob-back h4 {
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 10px;
}
.prob-back p { font-size: 13px; color: var(--fg-dim); }
.prob-back .ai-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

/* --- Services bento --- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.cell {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
  background: oklch(0.16 0.025 260 / 0.80);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .3s, transform .3s, background .3s;
}
.cell:hover { border-color: var(--blue); transform: translateY(-2px); background: oklch(0.20 0.018 250 / 0.7); }
.cell h3 { font-size: 20px; letter-spacing: -0.01em; }
.cell .desc { color: var(--fg-mute); font-size: 13px; margin-top: 6px; max-width: 30ch; }
.cell .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
}
.cell .visual {
  margin-top: 14px;
  flex: 1;
  position: relative;
}
.cell.large { grid-column: span 2; grid-row: span 2; }
.cell.wide { grid-column: span 2; }
.cell.tall { grid-row: span 2; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .cell { min-height: 200px; }
  .cell.large { grid-column: span 2; grid-row: span 1; min-height: 260px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .cell { min-height: 160px; padding: 18px; }
  .cell h3 { font-size: 16px; }
  .cell .desc { font-size: 12px; }
  .cell.large { grid-column: span 2; grid-row: span 1; min-height: 200px; }
  .cell.wide { grid-column: span 2; }
  .cell.tall { grid-row: span 1; }
}

/* Animated SVG visuals in cells */
.viz-pulse circle { animation: vizPulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.viz-pulse circle:nth-child(2) { animation-delay: 0.3s; }
.viz-pulse circle:nth-child(3) { animation-delay: 0.6s; }
@keyframes vizPulse { 0%,100% { opacity: 0.4; r: 4; } 50% { opacity: 1; r: 6; } }

.viz-flow line {
  stroke-dasharray: 4 6;
  animation: dashFlow 1.5s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -20; } }

/* --- AI Audit stepper --- */
.audit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 980px) { .audit { grid-template-columns: 1fr; } }
.audit-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: oklch(0.15 0.024 260 / 0.82);
  min-height: 480px;
}
.audit-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.audit-steps .pip {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  position: relative;
}
.audit-steps .pip.active { background: var(--blue-bright); box-shadow: 0 0 12px oklch(0.65 0.20 245 / 0.6); }
.audit-steps .pip.done { background: var(--blue); }
.audit-q {
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
  text-wrap: balance;
}
.audit-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.audit-opt {
  border: 1px solid var(--line);
  background: oklch(0.18 0.026 260 / 0.78);
  padding: 10px 16px;
  border-radius: 99px;
  font-size: 14px;
  color: var(--fg-dim);
  transition: all .25s;
  cursor: pointer;
}
.audit-opt:hover { border-color: var(--fg-dim); color: var(--fg); }
.audit-opt.selected {
  border-color: var(--blue);
  background: oklch(0.30 0.08 245 / 0.3);
  color: var(--blue-bright);
}
.audit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}
.audit-counter { font-family: var(--mono); font-size: 12px; color: var(--fg-mute); }

.audit-report {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: linear-gradient(180deg, oklch(0.16 0.024 260 / 0.82), oklch(0.14 0.024 260 / 0.70));
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.audit-report::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, oklch(0.50 0.18 245 / 0.4), transparent 50%);
  border-radius: var(--radius-lg);
  pointer-events: none;
  mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
  -webkit-mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.report-id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.report-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue-bright);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.report-status .dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--blue-bright);
  animation: pulse 2s ease-in-out infinite;
}
.report-h {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.report-h em { font-family: var(--serif); font-style: italic; color: var(--blue-bright); }
.report-rows { display: grid; gap: 10px; }
.report-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.report-row:last-child { border-bottom: none; }
.report-row .name { font-size: 14px; }
.report-row .name .sub { display: block; font-family: var(--mono); font-size: 11px; color: var(--fg-mute); margin-top: 4px; letter-spacing: 0.04em; }
.report-row .impact {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue-bright);
  text-align: right;
}
.report-row .impact .big { display: block; font-size: 18px; color: var(--fg); margin-bottom: 2px; }
.report-cta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: oklch(0.14 0.022 260 / 0.82);
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* --- Workflow viz --- */
.flow-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: oklch(0.14 0.022 260 / 0.78);
  position: relative;
  overflow: hidden;
}
.flow-toggle {
  display: inline-flex;
  background: oklch(0.18 0.026 260 / 0.86);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px;
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 24px;
}
.flow-toggle button {
  padding: 8px 18px;
  border-radius: 99px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all .3s;
}
.flow-toggle button.active {
  background: var(--fg);
  color: var(--bg);
}
.flow-stage { position: relative; height: 380px; }
.flow-svg { width: 100%; height: 100%; }
.flow-node {
  fill: oklch(0.18 0.025 260);
  stroke: var(--line);
  stroke-width: 1;
  transition: all .8s cubic-bezier(.7,0,.3,1);
}
.flow-node.ai {
  fill: oklch(0.30 0.10 245);
  stroke: var(--blue-bright);
  filter: drop-shadow(0 0 14px oklch(0.65 0.20 245 / 0.6));
}
.flow-label {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--fg-dim);
  letter-spacing: 0.04em;
  text-anchor: middle;
  text-transform: uppercase;
}
.flow-edge {
  stroke: oklch(0.40 0.02 250 / 0.5);
  stroke-width: 1;
  fill: none;
  transition: all .8s;
}
.flow-edge.live {
  stroke: var(--blue-bright);
  stroke-dasharray: 4 6;
  animation: dashFlow 1.6s linear infinite;
}

/* --- Case studies --- */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .cases { grid-template-columns: 1fr; } }
.case {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: oklch(0.16 0.025 260 / 0.80);
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 380px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.case:hover { border-color: var(--blue); }
.case .industry {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.case h3 {
  font-size: 24px;
  letter-spacing: -0.01em;
  max-width: 22ch;
  text-wrap: balance;
}
.case h3 em { font-family: var(--serif); font-style: italic; color: var(--blue-bright); }
.case-problem {
  font-size: 14px;
  color: var(--fg-dim);
}
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}
.case-metric .v {
  font-size: 30px;
  letter-spacing: -0.02em;
  font-weight: 400;
  font-feature-settings: 'tnum' 1;
}
.case-metric .v .unit { font-size: 16px; color: var(--fg-mute); }
.case-metric .l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 6px;
}

/* --- Live AI demo --- */
.demo {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 980px) { .demo { grid-template-columns: 1fr; } }
.demo-side h3 {
  font-size: 36px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.demo-side h3 em { font-family: var(--serif); font-style: italic; color: var(--blue-bright); }
.demo-side p { color: var(--fg-dim); margin-top: 18px; font-size: 16px; max-width: 38ch; }
.demo-side .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.demo-chip {
  padding: 10px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: oklch(0.18 0.026 260 / 0.78);
  font-size: 13px;
  color: var(--fg-dim);
  cursor: pointer;
  transition: all .25s;
}
.demo-chip:hover { border-color: var(--blue); color: var(--fg); }

.chat {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: oklch(0.13 0.022 260 / 0.85);
  display: flex;
  flex-direction: column;
  min-height: 540px;
  max-height: 540px;
  overflow: hidden;
}
.chat-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chat-head .lights { display: inline-flex; gap: 5px; }
.chat-head .lights span { width: 8px; height: 8px; border-radius: 99px; background: oklch(0.32 0.02 250); }
.chat-head .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-bright);
}
.chat-head .live .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--blue-bright); animation: pulse 2s infinite; }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.msg {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.msg.user {
  align-self: flex-end;
  background: oklch(0.30 0.08 245 / 0.4);
  border: 1px solid oklch(0.45 0.12 245 / 0.4);
}
.msg.ai {
  align-self: flex-start;
  background: oklch(0.18 0.026 260 / 0.86);
  border: 1px solid var(--line-soft);
  border-bottom-left-radius: 4px;
}
.msg.ai .typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--blue-bright);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.chat-input {
  border-top: 1px solid var(--line-soft);
  padding: 14px;
  display: flex;
  gap: 10px;
}
.chat-input input {
  flex: 1;
  background: oklch(0.16 0.025 260 / 0.82);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0 18px;
  height: 42px;
  color: var(--fg);
  font: 400 14px var(--sans);
  outline: 0;
}
.chat-input input:focus { border-color: var(--blue); }
.chat-input button {
  height: 42px;
  padding: 0 20px;
  border-radius: 99px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  font-size: 13px;
}
.chat-input button:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Industries --- */
.industries {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: oklch(0.15 0.024 260 / 0.74);
}
.ind {
  padding: 32px 24px;
  border-right: 1px solid var(--line-soft);
  position: relative;
  cursor: pointer;
  transition: background .3s;
  min-height: 200px;
}
.ind:hover { background: oklch(0.20 0.030 260 / 0.84); }
.ind:last-child { border-right: none; }
.ind .num { font-family: var(--mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.08em; }
.ind h4 { font-size: 18px; margin-top: 60px; }
.ind .topic { font-family: var(--mono); font-size: 11px; color: var(--blue-bright); margin-top: 8px; opacity: 0; transition: opacity .3s; }
.ind:hover .topic { opacity: 1; }
@media (max-width: 1100px) { .industries { grid-template-columns: repeat(3, 1fr); } .ind { border-bottom: 1px solid var(--line-soft); } .ind:nth-child(n+4) { border-bottom: none; } }
@media (max-width: 640px) { .industries { grid-template-columns: repeat(2, 1fr); } .ind { border-bottom: 1px solid var(--line-soft); } .ind:nth-last-child(-n+2) { border-bottom: none; } .ind:nth-child(even) { border-right: none; } }

/* --- Pricing --- */
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }
.price {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: oklch(0.16 0.025 260 / 0.78);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 540px;
  position: relative;
}
.price.featured {
  border-color: var(--blue);
  background: linear-gradient(180deg, oklch(0.22 0.04 250 / 0.6), oklch(0.18 0.018 250 / 0.7));
  box-shadow: 0 30px 80px -30px oklch(0.50 0.18 245 / 0.35);
}
.price.featured::before {
  content: 'Most popular';
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--blue);
  color: var(--bg);
}
.price .tier { font-family: var(--mono); font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--fg-mute); }
.price .amount {
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price .amount .unit { color: var(--fg-mute); font-size: 16px; margin-left: 6px; font-family: var(--mono); }
.price .blurb { color: var(--fg-dim); font-size: 14px; max-width: 30ch; }
.price ul { list-style: none; display: grid; gap: 12px; font-size: 14px; color: var(--fg-dim); margin-top: 8px; }
.price ul li { display: flex; gap: 10px; align-items: baseline; }
.price ul li::before { content: '+'; color: var(--blue-bright); font-family: var(--mono); }
.price .btn { margin-top: auto; justify-content: center; }

/* --- About --- */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) { .about { grid-template-columns: 1fr; gap: 40px; } }
.about-lede {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.about-lede em { font-family: var(--serif); font-style: italic; color: var(--blue-bright); }
.about-list {
  display: grid;
  gap: 14px;
}
.about-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
}
.about-row:last-child { border-bottom: 1px solid var(--line-soft); }
.about-row .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); padding-top: 4px; }
.about-row .v { font-size: 15px; color: var(--fg); }
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.stack-grid .chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  background: oklch(0.19 0.028 260 / 0.84);
  border: 1px solid var(--line-soft);
  color: var(--fg-dim);
}

/* --- Final CTA --- */
.cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, oklch(0.40 0.18 250 / 0.30), transparent 70%);
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(48px, 6vw, 96px);
  letter-spacing: -0.03em;
  line-height: 1;
  position: relative;
  text-wrap: balance;
}
.cta h2 em {
  font-family: var(--serif);
  font-style: italic;
  background: linear-gradient(120deg, var(--blue-bright), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta p {
  margin: 24px auto 0;
  max-width: 50ch;
  color: var(--fg-dim);
  font-size: 18px;
  position: relative;
}
.cta-actions {
  display: inline-flex;
  gap: 12px;
  margin-top: 40px;
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Footer --- */
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 80px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }
.foot h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 18px;
}
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot ul a { color: var(--fg-dim); font-size: 14px; }
.foot ul a:hover { color: var(--fg); }
.foot-brand .brand { font-size: 20px; }
.foot-brand p { color: var(--fg-mute); font-size: 13px; margin-top: 16px; max-width: 32ch; }
.foot-news input {
  width: 100%;
  background: oklch(0.16 0.025 260 / 0.82);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0 16px;
  height: 40px;
  color: var(--fg);
  font: 400 13px var(--sans);
  outline: 0;
  margin-bottom: 10px;
}
.foot-news input:focus { border-color: var(--blue); }
.foot-news button {
  width: 100%;
  height: 40px;
  border-radius: 99px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  font-size: 13px;
}
.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 12px;
}
.foot-socials { display: flex; gap: 18px; }
.foot-socials a { color: var(--fg-mute); transition: color .2s; }
.foot-socials a:hover { color: var(--fg); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
 * Premium upgrades — flashlight, glass 2.0, kinetics, magnetics
 * ============================================================ */

/* Hero cursor flashlight + revealed grid */
.hero {
  --mx: 50%;
  --my: 30%;
}
.hero-flashlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(360px circle at var(--mx) var(--my),
      oklch(0.65 0.18 245 / 0.22),
      oklch(0.55 0.16 270 / 0.10) 35%,
      transparent 65%);
  mix-blend-mode: screen;
}
/* The geometric grid only fully reveals where the cursor "shines" */
.hero-grid {
  background-image:
    linear-gradient(to right, oklch(0.65 0.10 250 / 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.65 0.10 250 / 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(380px circle at var(--mx) var(--my), black 10%, transparent 70%);
          mask-image: radial-gradient(380px circle at var(--mx) var(--my), black 10%, transparent 70%);
  opacity: 0.9;
  transition: opacity .25s;
}

/* Floating physics — hero copy + suggester drift on Y at different speeds */
@keyframes floatA {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}
@keyframes floatB {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -16px, 0); }
}
.hero-inner > div:first-child { animation: floatA 8s ease-in-out infinite; will-change: transform; }
.suggester                     { animation: floatB 11s ease-in-out infinite; will-change: transform; }

/* Kinetic typography — shimmer running across the italic accent word */
.hero h1 em {
  background-size: 220% 100%;
  animation: shimmerSlide 6.5s linear infinite;
}
@keyframes shimmerSlide {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Glassmorphism 2.0 — gradient borders (translucent white → electric blue) */
.cell, .suggester {
  border-color: transparent !important;
}
.cell::after, .suggester::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    oklch(0.96 0.02 250 / 0.35),
    oklch(0.78 0.20 240 / 0.35) 40%,
    oklch(0.66 0.22 295 / 0.10) 70%,
    oklch(0.45 0.05 260 / 0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: background .35s ease;
  z-index: 2;
}
.cell:hover::after {
  background: linear-gradient(135deg,
    oklch(0.96 0.04 250 / 0.7),
    oklch(0.78 0.22 240 / 0.85) 35%,
    oklch(0.66 0.22 295 / 0.55) 70%,
    oklch(0.55 0.18 250 / 0.10) 100%);
}
.suggester { box-shadow: 0 30px 80px -40px oklch(0.50 0.20 250 / 0.45); }

/* Bento cells lift smoother with depth */
.cell {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s, box-shadow .35s;
  background-clip: padding-box;
}
.cell:hover {
  transform: translate3d(0, -6px, 0);
  box-shadow: 0 30px 60px -30px oklch(0.40 0.18 250 / 0.35);
}
.cell h3 { transition: color .3s; }
.cell:hover h3 { color: oklch(0.95 0.10 245); }

/* Magnetic button base — JS overrides --mxb, --myb */
.btn {
  --mxb: 0px;
  --myb: 0px;
  transform: translate3d(var(--mxb), var(--myb), 0);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translate3d(var(--mxb), calc(var(--myb) - 1px), 0); }

/* Suggester gets "thinking" glow when user is typing */
.suggester.is-typing {
  box-shadow:
    0 0 0 1px oklch(0.78 0.20 245 / 0.45),
    0 30px 100px -30px oklch(0.65 0.22 245 / 0.55);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-inner > div:first-child,
  .suggester,
  .hero h1 em {
    animation: none !important;
  }
}

/* ── Contact modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: #0e1220;
  border: 1px solid rgba(120, 140, 200, 0.18);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px 36px 36px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.22s ease;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}
.modal-head { margin-bottom: 28px; }
.modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #f0f2f8;
  letter-spacing: -0.02em;
}
.modal-sub {
  font-size: 12px;
  font-family: var(--mono);
  color: rgba(255,255,255,0.35);
  margin-top: 7px;
  letter-spacing: 0.04em;
}
.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.modal-field { margin-bottom: 14px; }
.modal-field input[type="text"],
.modal-field input[type="email"],
.modal-field input[type="tel"] {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 11px 14px;
  color: #e8eaf4;
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.modal-field input[type="text"]:focus,
.modal-field input[type="email"]:focus,
.modal-field input[type="tel"]:focus {
  border-color: rgba(80, 160, 255, 0.6);
  background: rgba(255,255,255,0.06);
}
.modal-field input::placeholder { color: rgba(255,255,255,0.28); }
.modal-label {
  font-size: 11px;
  font-family: var(--mono);
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 11px;
}
.modal-checks,
.modal-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-checks label,
.modal-radios label {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  user-select: none;
}
.modal-checks label.checked,
.modal-radios label.checked {
  border-color: rgba(80, 160, 255, 0.7);
  color: #d0e8ff;
  background: rgba(50, 120, 220, 0.18);
}
.modal-checks input,
.modal-radios input { display: none; }
.modal-other-input {
  display: none;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 11px 14px;
  color: #e8eaf4;
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
  margin-top: 10px;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.modal-other-input:focus {
  border-color: rgba(80, 160, 255, 0.6);
  background: rgba(255,255,255,0.06);
}
.modal-other-input::placeholder { color: rgba(255,255,255,0.28); }
.modal-error {
  font-size: 12px;
  color: #f87171;
  min-height: 18px;
  margin-bottom: 6px;
  font-family: var(--mono);
}
.modal-submit {
  width: 100%;
  margin-top: 6px;
  justify-content: center;
  padding: 13px 20px;
  font-size: 15px;
}
.modal-success {
  display: none;
  text-align: center;
  padding: 32px 0 16px;
}
.modal-success-icon {
  font-size: 44px;
  margin-bottom: 18px;
  line-height: 1;
}
.modal-success-title {
  font-size: 22px;
  font-weight: 600;
  color: #f0f2f8;
  margin-bottom: 10px;
}
.modal-success p {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  font-family: var(--mono);
}

/* ── Audit AI report text ──────────────────────────────────── */
.report-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--fg-dim);
  padding: 4px 0 16px;
}
.report-generating {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  animation: pulse 1.4s ease-in-out infinite;
}

/* ── Nav scroll-spy active ─────────────────────────────────── */
.nav-links a.nav-active { color: var(--fg); }

/* ── Section dock (fixed left rail) ───────────────────────── */
.section-dock {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}
.dock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.dock-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.0);
  white-space: nowrap;
  transition: color 0.2s, opacity 0.2s;
  pointer-events: none;
}
.dock-item:hover .dock-dot,
.dock-item.active .dock-dot {
  background: oklch(0.78 0.20 240);
  border-color: oklch(0.78 0.20 240);
  transform: scale(1.5);
}
.dock-item:hover .dock-label {
  color: rgba(255,255,255,0.55);
}
.dock-item.active .dock-dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 8px oklch(0.78 0.20 240 / 0.7);
}
.dock-item.active .dock-label {
  color: rgba(255,255,255,0.7);
}
@media (max-width: 1100px) { .section-dock { display: none; } }

@media (max-width: 600px) {
  .modal-row { grid-template-columns: 1fr; }
  .modal-box { padding: 28px 20px 24px; }
}

/* ── Mobile (≤ 640px) ─────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --gutter: 16px; }

  /* Nav */
  .nav { top: 10px; width: calc(100% - 20px); padding: 8px 10px 8px 14px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand .mark { width: 26px; height: 26px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn { height: 34px; padding: 0 14px; font-size: 12px; }

  /* Hero */
  .hero { padding: 108px 0 56px; }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); margin-top: 16px; }
  .hero-sub { font-size: 15px; margin-top: 18px; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Section titles */
  h2.section-title { font-size: clamp(28px, 8vw, 40px); }
  .section-sub { font-size: 15px; }
  .section { padding: 56px 0; }
  .section-head { gap: 20px; }

  /* Suggester */
  .suggester-prompt { font-size: 16px; }

  /* Metrics */
  .metric { padding: 20px 16px; }
  .metric .n { font-size: 40px; }

  /* Demo / Chat */
  .demo-side h3 { font-size: 26px; }
  .demo-side p { font-size: 15px; }
  .demo-chip { font-size: 12px; padding: 8px 12px; }
  .chat { min-height: 380px; max-height: 420px; }

  /* Audit */
  .audit-panel { padding: 20px; min-height: auto; }

  /* Bento */
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 8px; }
  .cell { min-height: 160px; padding: 16px; }
  .cell h3 { font-size: 16px; }
  .cell .desc { font-size: 12px; }
  .cell.large { grid-column: span 2; min-height: 200px; }
  .cell.wide { grid-column: span 2; }
  .cell.tall { grid-row: span 1; }

  /* Cases */
  .case { padding: 24px 20px; }

  /* Pricing */
  .price { padding: 28px 20px; }

  /* About */
  .about-media { height: 240px; }

  /* Footer */
  .foot { padding: 56px 0 32px; }
  .foot-brand .brand { font-size: 16px; }
}
