/* ============================================================
   Main Street Research — redesign
   Framer-inspired structure + modern dark product site aesthetic
   ============================================================ */

:root {
  --accent-hue: 268;
  --accent: oklch(0.72 0.19 var(--accent-hue));
  --accent-2: oklch(0.78 0.16 calc(var(--accent-hue) + 40));
  --accent-glow: oklch(0.65 0.22 var(--accent-hue) / 0.35);

  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --bg-3: #14141a;
  --fg: #ededf0;
  --fg-dim: #a1a1aa;
  --fg-muted: #6b6b74;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --card: #111115;
  --card-hover: #15151c;

  --font-display: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;

  --container: 1240px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

html[data-theme="light"] {
  --bg: #f7f7f5;
  --bg-2: #ffffff;
  --bg-3: #efefec;
  --fg: #0b0b0d;
  --fg-dim: #52525a;
  --fg-muted: #8a8a92;
  --line: rgba(10,10,15,0.08);
  --line-strong: rgba(10,10,15,0.16);
  --card: #ffffff;
  --card-hover: #fafaf8;
}

html[data-display-font="serif"] .display,
html[data-display-font="serif"] .h-display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

html[data-display-font="mono"] .display,
html[data-display-font="mono"] .h-display {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: all 200ms var(--ease);
  white-space: nowrap;
}
.btn.lg { padding: 14px 22px; font-size: 15px; }
.btn.full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -12px var(--accent-glow); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--card-hover); border-color: var(--fg-dim); }

.btn-ghost-dark {
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  border-color: rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.1); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}
.kicker.on-dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.8); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 24px;
}
.display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.h-display {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 14px 0 0;
  max-width: 22ch;
  text-wrap: balance;
}
.h-display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.section-head { max-width: 780px; margin-bottom: 56px; }
.section-sub { color: var(--fg-dim); font-size: 17px; margin-top: 18px; max-width: 60ch; text-wrap: pretty; }
.section-sub.on-dark { color: rgba(255,255,255,0.7); }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  transition: all 250ms var(--ease);
}
.site-nav.is-scrolled { padding: 8px 0; }
.site-nav.is-scrolled .nav-inner {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 250ms var(--ease);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-name { }
.brand-sub { color: var(--fg-dim); font-weight: 400; }

.nav-pill {
  justify-self: center;
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.nav-pill a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--fg-dim);
  transition: all 180ms var(--ease);
}
.nav-pill a:hover { color: var(--fg); background: var(--card-hover); }

.nav-cta { display: inline-flex; gap: 8px; justify-self: end; }

.nav-burger { display: none; background: transparent; border: 1px solid var(--line-strong); padding: 10px; border-radius: 10px; }
.nav-burger span { display: block; width: 16px; height: 1.5px; background: var(--fg); margin: 3px 0; }
.nav-mobile { display: none; }

@media (max-width: 960px) {
  .nav-pill { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: block; justify-self: end; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-mobile {
    display: flex; flex-direction: column; gap: 4px;
    margin: 8px 16px 0;
    padding: 12px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .nav-mobile a { padding: 12px 10px; border-radius: 8px; color: var(--fg-dim); }
  .nav-mobile a:hover { background: var(--card-hover); color: var(--fg); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 64px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute; inset: -20% -10% 0 -10%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  transition: background 400ms linear;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
  opacity: 0.5;
}
.hero-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg-2) 60%, transparent);
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 99px; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.lede {
  max-width: 60ch;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--fg-dim);
  margin: 8px 0 36px;
  text-wrap: pretty;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }

.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero-meta > div { display: flex; flex-direction: column; }
.hero-meta .num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-meta .num .mini { font-size: 14px; color: var(--fg-dim); margin-left: 2px; }
.hero-meta .lbl { font-size: 12px; color: var(--fg-muted); margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-mono); }
.hero-meta .sep { width: 1px; height: 28px; background: var(--line); }

.hide-sm { }
@media (max-width: 720px) { .hide-sm { display: none; } }

/* Device preview */
.hero-device {
  max-width: var(--container);
  margin: 80px auto 0;
  padding: 0 24px;
  perspective: 1200px;
}
.device {
  border-radius: 18px;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line-strong);
  box-shadow:
    0 40px 80px -40px rgba(0,0,0,0.8),
    0 20px 40px -20px var(--accent-glow);
  overflow: hidden;
  transform: rotateX(6deg);
  transform-origin: 50% 100%;
}
.device-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.device-bar span { width: 9px; height: 9px; border-radius: 99px; background: var(--fg-muted); opacity: 0.45; }
.device-url {
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  padding: 4px 10px;
  background: var(--bg-3);
  border-radius: 6px;
  border: 1px solid var(--line);
}
.device-body { padding: 26px 28px; display: grid; gap: 18px; }
.d-row { display: flex; gap: 8px; }
.d-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0b;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.d-tag.ghost { background: var(--bg-3); color: var(--fg-dim); border: 1px solid var(--line); }
.d-headline {
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
}
.d-chart { height: 120px; border-radius: 10px; background: var(--bg-3); padding: 8px; }
.d-chart svg { width: 100%; height: 100%; display: block; }
.d-legend { display: flex; gap: 18px; font-size: 12px; color: var(--fg-dim); align-items: center; }
.d-legend .sw { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.d-legend .spacer { flex: 1; }
.d-legend .delta.up { color: var(--accent); font-family: var(--font-mono); font-weight: 500; }
.d-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.d-cell { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; background: var(--bg-2); }
.d-cell .k { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.d-cell .v { font-size: 16px; font-weight: 500; }

/* ============================================================
   LOGOS
   ============================================================ */
.logos { padding: 100px 0 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.logos-label { text-align: center; color: var(--fg-muted); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-mono); margin-bottom: 40px; }

.fb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.fb-card {
  margin: 0;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 260ms var(--ease);
}
.fb-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--card-hover);
}
.fb-mark {
  width: 26px; height: 26px;
  color: var(--accent);
  opacity: 0.85;
}
.fb-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: pretty;
  flex: 1;
}
.fb-card figcaption {
  display: flex; flex-direction: column; gap: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.fb-a { font-size: 14px; font-weight: 500; color: var(--fg); }
.fb-c { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 760px) { .fb-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 140px 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.svc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 260ms var(--ease);
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-glow), transparent 50%);
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
  z-index: 0;
}
.svc-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--card-hover); }
.svc-card:hover::before { opacity: 1; }
.svc-card > * { position: relative; z-index: 1; }

.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-k { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); letter-spacing: 0.08em; }
.svc-glyph { color: var(--accent); }
.svc-card h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; margin: 8px 0 0; line-height: 1.15; }
.svc-card p { color: var(--fg-dim); font-size: 15px; margin: 0; flex: 1; }
.svc-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; transition: gap 180ms; }
.svc-link:hover { gap: 10px; color: var(--accent); }

@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }

/* ============================================================
   METHOD
   ============================================================ */
.method { padding: 140px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 36px;
}
.method-tab {
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--fg-dim);
  border-radius: 999px;
  font-size: 14px;
  transition: all 220ms var(--ease);
}
.method-tab:hover { color: var(--fg); }
.method-tab.active { background: var(--fg); color: var(--bg); }

.method-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 420px;
}
.mp-copy h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.08; max-width: 18ch; }
.mp-copy p { color: var(--fg-dim); margin: 0 0 22px; font-size: 16px; max-width: 48ch; }
.mp-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mp-copy li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-dim); }
.mp-copy li svg { color: var(--accent); flex-shrink: 0; }

.mp-visual { }
.viz {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.viz-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 16px;
}

.viz-panels { }
.viz-panels .dot {
  position: absolute;
  width: 10px; height: 10px; border-radius: 99px;
  background: var(--accent);
  opacity: 0.8;
  animation: panel-pulse 3s ease-in-out infinite;
}
.viz-panels .dot:nth-child(3n) { background: var(--fg); opacity: 0.4; }
.viz-panels .dot:nth-child(5n) { background: var(--accent-2); }
.viz-panels .dot:nth-child(1) { top: 18%; left: 10%; }
.viz-panels .dot:nth-child(2) { top: 25%; left: 22%; }
.viz-panels .dot:nth-child(3) { top: 40%; left: 15%; }
.viz-panels .dot:nth-child(4) { top: 60%; left: 8%; }
.viz-panels .dot:nth-child(5) { top: 72%; left: 22%; }
.viz-panels .dot:nth-child(6) { top: 30%; left: 38%; }
.viz-panels .dot:nth-child(7) { top: 48%; left: 32%; }
.viz-panels .dot:nth-child(8) { top: 65%; left: 40%; }
.viz-panels .dot:nth-child(9) { top: 20%; left: 52%; }
.viz-panels .dot:nth-child(10) { top: 38%; left: 55%; }
.viz-panels .dot:nth-child(11) { top: 55%; left: 50%; }
.viz-panels .dot:nth-child(12) { top: 74%; left: 58%; }
.viz-panels .dot:nth-child(13) { top: 22%; left: 70%; }
.viz-panels .dot:nth-child(14) { top: 42%; left: 72%; }
.viz-panels .dot:nth-child(15) { top: 60%; left: 68%; }
.viz-panels .dot:nth-child(16) { top: 78%; left: 75%; }
.viz-panels .dot:nth-child(17) { top: 30%; left: 85%; }
.viz-panels .dot:nth-child(18) { top: 50%; left: 88%; }
.viz-panels .dot:nth-child(19) { top: 68%; left: 90%; }
.viz-panels .dot:nth-child(20) { top: 15%; left: 40%; }
.viz-panels .dot:nth-child(21) { top: 85%; left: 30%; }
.viz-panels .dot:nth-child(22) { top: 12%; left: 78%; }
.viz-panels .dot:nth-child(23) { top: 88%; left: 60%; }
.viz-panels .dot:nth-child(24) { top: 35%; left: 62%; }
.viz-panels .dot:nth-child(25) { top: 80%; left: 48%; }
.viz-panels .dot:nth-child(26) { top: 58%; left: 80%; }
.viz-panels .dot:nth-child(27) { top: 45%; left: 45%; }
.viz-panels .dot:nth-child(28) { top: 28%; left: 62%; }
@keyframes panel-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 12px var(--accent); }
}

.viz-tracking .rows { display: grid; gap: 10px; }
.viz-tracking .row { display: grid; grid-template-columns: 100px 1fr 56px; gap: 12px; align-items: center; font-size: 13px; }
.viz-tracking .rk { color: var(--fg-dim); font-family: var(--font-mono); font-size: 11.5px; }
.viz-tracking .bar { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.viz-tracking .fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { width: 0 !important; } }
.viz-tracking .delta { font-family: var(--font-mono); font-size: 12px; color: var(--accent); text-align: right; }

.viz-teardown .td-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.viz-teardown .cell {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 14px 12px; border-radius: 10px;
  display: flex; flex-direction: column; gap: 4px;
  transition: all 220ms;
}
.viz-teardown .cell:hover { border-color: var(--accent); background: var(--card-hover); }
.viz-teardown .ck { font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); }
.viz-teardown .cv { font-size: 13px; font-weight: 500; }

.viz-synthesis .doc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 10px; }
.viz-synthesis .doc-h { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.viz-synthesis .doc-line { height: 6px; background: var(--line-strong); border-radius: 99px; }
.viz-synthesis .doc-chip {
  font-family: var(--font-mono); font-size: 11px;
  padding: 6px 10px;
  background: var(--accent); color: #0a0a0b;
  border-radius: 6px; align-self: start; margin: 6px 0;
  width: max-content;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .method-panel { grid-template-columns: 1fr; padding: 24px; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 100px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  padding: 32px 0;
  border-top: 1px solid var(--line-strong);
}
.stat-n {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.stat-n .suf { font-size: 0.5em; color: var(--fg-dim); font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.stat-l { font-size: 13px; color: var(--fg-dim); margin-top: 14px; max-width: 24ch; text-wrap: pretty; }

@media (max-width: 880px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   QUOTE / TESTIMONIAL
   ============================================================ */
.quote { padding: 120px 0; }
.q-wrap {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  padding: 60px 20px;
}
.q-mark {
  width: 46px; height: 46px; color: var(--accent);
  margin-bottom: 24px; opacity: 0.9;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  text-wrap: balance;
  color: var(--fg);
}
.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.q-attr { color: var(--fg-dim); font-size: 14px; }
.q-dots { display: flex; gap: 8px; }
.q-dots button {
  width: 28px; height: 4px; border-radius: 99px;
  background: var(--line-strong); border: none;
  transition: all 200ms;
}
.q-dots button.on { background: var(--accent); width: 44px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 140px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: flex-start; }
.faq-left .h-display { margin-top: 14px; }
.faq-left .btn { margin-top: 32px; }

.faq-right { display: grid; gap: 6px; }
.faq-item {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 220ms;
}
.faq-item.open { border-color: var(--line-strong); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 22px;
  background: transparent; border: none; color: var(--fg);
  font-size: 16px; font-weight: 500;
  text-align: left;
  transition: color 180ms;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { display: inline-flex; transition: transform 220ms var(--ease); color: var(--fg-dim); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  max-height: 0; opacity: 0;
  transition: max-height 280ms var(--ease), opacity 180ms;
  overflow: hidden;
}
.faq-item.open .faq-a { max-height: 240px; opacity: 1; }
.faq-a p { padding: 0 22px 22px; margin: 0; color: var(--fg-dim); font-size: 15px; max-width: 56ch; }

@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 120px 0; }
.cta-card {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 30% 0%, color-mix(in oklab, var(--accent) 35%, transparent), transparent 60%),
    linear-gradient(180deg, #111 0%, #050506 100%);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  color: #fff;
}
.cta-glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 80% 100%, var(--accent-glow), transparent 70%);
}
.cta-card .h-display { color: #fff; }
.cta-card .h-display em { color: var(--accent); }
.cta-row { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot { padding: 80px 0 0; border-top: 1px solid var(--line); background: var(--bg); position: relative; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.foot-brand .brand { margin-bottom: 18px; }
.foot-tag { color: var(--fg-dim); max-width: 30ch; font-size: 14px; }
.foot-newsletter { display: flex; gap: 8px; margin-top: 24px; max-width: 340px; }
.foot-newsletter input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.foot-newsletter input:focus { border-color: var(--accent); }

.foot-col h4 { font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); margin: 0 0 18px; font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--fg-dim); font-size: 14px; transition: color 180ms; }
.foot-col a:hover { color: var(--fg); }

.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-muted);
}
.foot-legal { display: flex; gap: 20px; }

.foot-mega {
  font-family: var(--font-display);
  font-size: clamp(60px, 18vw, 280px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  margin: 20px 0 -20px;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 900px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .foot-top { grid-template-columns: 1fr; }
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 100;
  width: 280px;
  background: color-mix(in oklab, var(--bg-2) 92%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  font-size: 13px;
}
.tw-head { display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-dim); }
.tw-head button { background: transparent; border: none; color: var(--fg-dim); font-size: 18px; cursor: pointer; line-height: 1; padding: 0 6px; }
.tw-head button:hover { color: var(--fg); }

.tw-row { display: grid; gap: 8px; }
.tw-row label { color: var(--fg-dim); font-size: 12px; display: flex; justify-content: space-between; }
.tw-val { color: var(--fg); font-family: var(--font-mono); }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px; }
.seg button {
  flex: 1;
  padding: 6px 10px;
  border: none; background: transparent;
  color: var(--fg-dim);
  font-size: 12px;
  border-radius: 999px;
  text-transform: capitalize;
}
.seg button.on { background: var(--fg); color: var(--bg); }
.tw-row input[type=range] {
  width: 100%;
  accent-color: var(--accent);
}
.tw-swatch {
  width: 100%; height: 8px;
  border-radius: 99px;
  border: 1px solid var(--line);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .hero { padding: 40px 0 80px; }
  .services, .method, .faq { padding: 80px 0; }
  .quote { padding: 80px 0; }
  .cta { padding: 80px 0; }
  .hero-meta { gap: 14px; }
  .hero-meta .sep { display: none; }
}
