/* Kineura — static site styles */

:root {
  --bg: #07090b;
  --bg-elev: #0d1216;
  --bg-elev-2: #121820;
  --surface: #0f151b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e6edf3;
  --text-dim: #9aa7b2;
  --text-muted: #6b7884;
  --accent: #2dd4bf;
  --accent-2: #14b8a6;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --accent-glow: rgba(45, 212, 191, 0.35);
  --danger: #f87171;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --maxw: 1180px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #5eead4; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #001b18;
  padding: 10px 14px;
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(7, 9, 11, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 9, 11, 0.85);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.site-footer .brand-logo { height: 32px; }

@media (max-width: 720px) {
  .header-inner { height: 56px; }
  .brand-logo { height: 28px; }
  .site-footer .brand-logo { height: 28px; }
}

.primary-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-list a {
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 2px;
}
.nav-list a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #001b18 !important;
  padding: 9px 16px !important;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #5eead4; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #001b18;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:hover { background: #5eead4; color: #001b18; }
.btn-secondary {
  background: rgba(7,9,11,0.4);
  color: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: brightness(0.85) contrast(1.05) saturate(1.05);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(7,9,11,0.10) 0%, rgba(7,9,11,0.55) 60%, rgba(7,9,11,0.88) 100%),
    linear-gradient(180deg, rgba(7,9,11,0.30) 0%, rgba(7,9,11,0.22) 40%, rgba(7,9,11,0.86) 100%);
}
.hero-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  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%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
}
.hero-headline {
  font-size: clamp(40px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 22px;
  background: linear-gradient(180deg, #ffffff 0%, #c4d0db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section base */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head.narrow { max-width: 720px; }
.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.section h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 700;
}
.lede { color: var(--text-dim); font-size: 17px; margin: 0; max-width: 640px; }
.muted { color: var(--text-muted); }

/* Problem */
.problem { padding: 100px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(45,212,191,0.025) 50%, transparent); }
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}
.problem-copy { text-align: left; }
.problem-copy .kicker { margin-bottom: 14px; }
.problem-copy h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}
.problem-copy .lede { margin: 0; max-width: 520px; }
.problem-figure {
  margin: 0;
}

/* Sleeve product explainer.
   Stage is a 3-col grid: cards | image | cards.
   Each side column has 2 rows (top, bottom callouts).
   Connector lines span from card inner-edge across the side column to the
   image edge, then a dot on the image marks the component. */
.sleeve-figure { margin: 0; }
.sleeve-stage {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(45,212,191,0.10), transparent 60%),
    linear-gradient(180deg, #0c1216 0%, #070a0d 100%);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.75),
    0 0 0 1px rgba(45,212,191,0.08);
  display: grid;
  grid-template-columns: minmax(140px, 168px) minmax(200px, 280px) minmax(140px, 168px);
  grid-template-rows: 1fr 1fr;
  column-gap: 14px;
  row-gap: 16px;
  justify-content: center;
  align-items: center;
}
.sleeve-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(45,212,191,0.18), transparent 55%);
  opacity: 0.7;
  filter: blur(40px);
  z-index: 0;
  border-radius: inherit;
}
.sleeve-image-wrap {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 2;
  border-radius: 18px;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #0a0e11;
  align-self: center;
  isolation: isolate;
}
.sleeve-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  filter: contrast(1.04) saturate(1.05);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 20px 50px -25px rgba(0,0,0,0.8);
}

/* Dot overlay on image */
.sleeve-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
  overflow: hidden;
}
.sleeve-callout-dot {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 3px rgba(45,212,191,0.28),
    0 0 18px rgba(45,212,191,0.75);
  z-index: 3;
}
.sleeve-callout-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(45,212,191,0.5);
  animation: sleevePulse 2.4s ease-out infinite;
}
@keyframes sleevePulse {
  0% { transform: scale(0.55); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Each callout is a grid cell holding only a card; connector lines are drawn
   in the .sleeve-lines SVG overlay so they can extend all the way to the dot. */
.sleeve-callout {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 2;
}
.sleeve-callout--tl { grid-column: 1; grid-row: 1; justify-content: flex-start; }
.sleeve-callout--bl { grid-column: 1; grid-row: 2; justify-content: flex-start; }
.sleeve-callout--tr { grid-column: 3; grid-row: 1; justify-content: flex-end; }
.sleeve-callout--br { grid-column: 3; grid-row: 2; justify-content: flex-end; }

.sleeve-callout-card {
  flex: 0 1 auto;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  background: rgba(8, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(45,212,191,0.22);
  border-radius: 10px;
  box-shadow:
    0 12px 30px -10px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.02);
  pointer-events: auto;
}
.sleeve-callout-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 3px;
}
.sleeve-callout-card h3.sleeve-callout-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
  color: var(--text);
  line-height: 1.25;
}
.sleeve-callout-text {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-dim);
  margin: 0;
}

/* SVG connector overlay — sits above the image, below the cards.
   JS sets x1/y1/x2/y2 in pixel space, matching the actual DOM rects of
   each card's inner edge and each dot's center. */
.sleeve-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.sleeve-line {
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity 220ms ease;
  filter: drop-shadow(0 0 5px rgba(45,212,191,0.6));
}
.sleeve-lines.is-ready .sleeve-line { opacity: 1; }

/* Fallback feature list (mobile / narrow) */
.sleeve-feature-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: none;
  gap: 14px;
}
.sleeve-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(13, 18, 22, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sleeve-feature-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 4px 8px;
  border: 1px solid rgba(45,212,191,0.25);
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 1;
}
.sleeve-feature h3 {
  margin: 2px 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.sleeve-feature p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* Tighten the callout layout for medium screens. */
@media (max-width: 1180px) {
  .sleeve-stage {
    grid-template-columns: minmax(126px, 150px) minmax(180px, 240px) minmax(126px, 150px);
    column-gap: 10px;
    padding: 22px;
  }
  .sleeve-callout-card { padding: 9px 10px; }
  .sleeve-callout-card h3.sleeve-callout-title { font-size: 12.5px; }
  .sleeve-callout-text { font-size: 11px; }
  .sleeve-callout-line { flex-basis: 12px; }
}
/* Switch to stacked image + list when problem-grid stacks. */
@media (max-width: 980px) {
  .problem-grid { grid-template-columns: 1fr; gap: 36px; }
  .sleeve-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    column-gap: 0;
    row-gap: 0;
    padding: 20px;
  }
  .sleeve-callout { display: none; }
  .sleeve-image-wrap { grid-column: 1; grid-row: 1; max-width: 380px; margin: 0 auto; }
  .sleeve-feature-list { display: grid; }
}
@media (max-width: 520px) {
  .sleeve-stage { padding: 16px; }
  .sleeve-image-wrap { max-width: 100%; }
  .sleeve-feature { padding: 12px 14px; }
}

/* How it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.step:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.step h3 { margin: 14px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* Metrics — WHOOP-style photo card rail */
.metric-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.metric-rail::-webkit-scrollbar { height: 8px; }
.metric-rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.metric-rail::-webkit-scrollbar-track { background: transparent; }

.metric-photo-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  background: #0a0d10;
  isolation: isolate;
  transition: transform 0.35s var(--easing), box-shadow 0.35s var(--easing);
}
.metric-photo-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -25px rgba(0,0,0,0.7); }
.metric-photo-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s var(--easing), filter 0.4s var(--easing);
  filter: saturate(1.05) contrast(1.02);
}
.metric-photo-card:hover img { transform: scale(1.04); }
.metric-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(45,212,191,0.18), transparent 55%),
    radial-gradient(140% 100% at 50% 50%, transparent 50%, rgba(0,0,0,0.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 28%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.metric-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.metric-photo-title {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.metric-photo-tag {
  position: absolute;
  bottom: 84px;
  left: 24px;
  z-index: 2;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.metric-plus {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
  color: #0a0d10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}
.metric-plus svg { width: 20px; height: 20px; }
.metric-plus:hover { background: var(--accent); transform: scale(1.06); }
.metric-photo-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Demo — original mockup iframe, cropped to phone screen only.
   The standalone mockup at pjlim21.github.io/kineura_mockup renders a fixed
   375x812 phone column centered horizontally with ~332px of title chrome
   above and ~48px footer below. We render the iframe at its natural pixel
   size, translate it upward to hide the title, and let the bezel clip the
   footer. A small JS hook scales the iframe to fit the bezel inner width.
*/
.demo-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.demo-frame {
  margin: 0 auto;
  width: 100%;
  max-width: 380px;
}
.demo-frame-bezel {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #1a1f24 0%, #0c1115 100%);
  border-radius: 44px;
  padding: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px #000,
    0 30px 80px -20px rgba(0,0,0,0.85),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}
.demo-frame-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
  pointer-events: none;
}
.demo-frame-viewport {
  position: relative;
  width: 100%;
  /* Match the phone screen aspect ratio (375:812) so the bezel inner area
     hugs the visible phone exactly with no dead space. */
  aspect-ratio: 375 / 812;
  border-radius: 32px;
  overflow: hidden;
  background: #050708;
}
.demo-frame-iframe {
  /* The standalone mockup uses min-h-screen with a vertically-centered flex
     column (title + "LIVE WORKOUT" eyebrow + 375x812 phone + footer text).
     The column is 984px tall total, so at iframe height 1400 the phone lands
     at y=332 with 332px of chrome above (title block) and 256px below (footer
     gap + caption). We translate by -332*scale to hide the title chrome and
     let the bezel (matched to the phone aspect) clip the bottom footer. */
  position: absolute;
  top: 0;
  left: 0;
  width: 375px;
  height: 1400px;
  border: 0;
  background: #050708;
  display: block;
  transform-origin: top left;
  transform: translateY(calc(-332px * var(--demo-scale, 1))) scale(var(--demo-scale, 1));
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.demo-frame-iframe::-webkit-scrollbar { width: 0; height: 0; display: none; }
/* Demo side panel */
.demo-side h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.demo-side p { color: var(--text-dim); margin: 0 0 22px; }
.demo-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-feature-list li {
  position: relative;
  padding: 16px 18px 16px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}
.demo-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.demo-feature-list h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.demo-feature-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}
.badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(45,212,191,0.25);
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Use cases */
.use-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.use-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.use-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.use-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0d10;
}
.use-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--easing);
}
.use-card:hover .use-photo img { transform: scale(1.04); }
.use-card h3 { margin: 18px 22px 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.use-card p { margin: 0 22px 22px; color: var(--text-dim); font-size: 15px; }

/* Science */
.science { padding: 80px 0; }
.science-card {
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.science-card h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 16px; }
.science-card p { color: var(--text-dim); font-size: 17px; margin: 0 auto 12px; max-width: 640px; }

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--text-dim); font-size: 16.5px; }
.about-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-stat {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-stat .num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}
.about-stat .lbl { color: var(--text-dim); font-size: 14.5px; }

/* CTA */
.cta-card {
  background: linear-gradient(135deg, rgba(45,212,191,0.08) 0%, rgba(20,184,166,0.04) 100%);
  border: 1px solid rgba(45,212,191,0.25);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-copy h2 { margin-bottom: 14px; font-size: clamp(26px, 3.4vw, 36px); }
.cta-copy p { color: var(--text-dim); margin: 0; }
.cta-form {
  display: grid;
  gap: 12px;
}
.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cta-form input::placeholder,
.cta-form textarea::placeholder { color: var(--text-muted); }
.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elev);
}
.cta-form textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
/* Honeypot — visually hidden but still in the DOM for bots to find. */
.cta-form-honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.cta-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%239aa7b2' d='M6 8L0 0h12z'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-note { font-size: 12.5px; color: var(--text-muted); margin: 4px 0 0; }
.form-note.success { color: var(--accent); }
.form-note.error { color: var(--danger); }

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-list details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 0.2s ease;
}
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 15.5px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #05070a;
  padding: 64px 0 28px;
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-tag { color: var(--text-dim); margin: 0; font-size: 14px; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-nav h4 {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--text-dim); font-size: 14.5px; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { margin: 0; color: var(--text-muted); font-size: 13px; }
.footer-disclaimer { font-style: italic; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s var(--easing);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  box-shadow: var(--shadow);
  animation: scaleIn 0.25s var(--easing);
}
@keyframes scaleIn { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: rgba(255,255,255,0.08); border-color: var(--line-strong); }
.modal-eyebrow {
  margin: 0 0 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.modal-title {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.modal-tagline {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 15.5px;
}
.modal-section { margin-bottom: 16px; }
.modal-section h4 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}
.modal-section p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
.modal-research {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.modal-research h4 { margin-bottom: 6px; }

body.modal-open { overflow: hidden; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .use-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-card { grid-template-columns: 1fr; padding: 40px; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .demo-wrap { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .hero { padding: 96px 0 80px; min-height: 70vh; }
  .science-card { padding: 36px 24px; }
  .cta-card { padding: 32px 22px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .modal-panel { padding: 28px 22px 24px; }

  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute;
    top: 56px; right: 12px; left: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 12px 14px; border-radius: 10px; }
  .nav-list a:hover { background: rgba(255,255,255,0.04); }
  .nav-list .nav-cta { text-align: center; }
}

@media (max-width: 480px) {
  .steps, .use-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .metric-rail { grid-auto-columns: minmax(260px, 80%); }
  .demo-frame { max-width: 320px; }
}

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

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
