/* ============ Sidekit — sidekit.app landing ============ */

:root {
  --accent: #1e9e52;
  --accent-bright: #34c759;
  --rec: #ff453a;

  --bg: #eef0f4;
  --ink: #1c1d20;
  --ink-2: #55585f;
  --ink-3: #8e9197;
  --hairline: rgba(28, 29, 32, 0.08);

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 1px 2px rgba(20, 22, 28, 0.05), 0 12px 40px rgba(20, 22, 28, 0.10);

  --deep-bg: #101216;
  --deep-ink: #f0f1f4;
  --deep-ink-2: #9aa0ab;
  --deep-glass: rgba(255, 255, 255, 0.06);
  --deep-hairline: rgba(255, 255, 255, 0.10);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, monospace;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --wave-scale: 1;
}

html[data-theme="dark"] {
  --bg: #0c0d10;
  --ink: #f0f1f4;
  --ink-2: #a6aab2;
  --ink-3: #6e727b;
  --hairline: rgba(240, 241, 244, 0.09);
  --glass: rgba(30, 32, 38, 0.55);
  --glass-strong: rgba(36, 38, 45, 0.75);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.45);
  --deep-bg: #07080a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* ---------- ambient backdrop the glass blurs ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.backdrop::before,
.backdrop::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.backdrop::before {
  width: 56vw; height: 56vw;
  top: -18vw; right: -12vw;
  background: radial-gradient(circle at 40% 40%, color-mix(in oklch, var(--accent) 55%, transparent), transparent 70%);
}
.backdrop::after {
  width: 48vw; height: 48vw;
  top: 30vh; left: -16vw;
  background: radial-gradient(circle at 60% 50%, rgba(120, 150, 220, 0.45), transparent 70%);
}
html[data-theme="dark"] .backdrop::before,
html[data-theme="dark"] .backdrop::after { opacity: 0.28; }

/* ---------- shared ---------- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 700;
  margin: 0 0 14px;
  text-wrap: balance;
}

.section-sub {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}

section { padding: 110px 0; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: breathe 3.2s ease-in-out infinite;
}
.nav-links {
  display: flex;
  gap: 20px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  padding: 9px 18px;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-hero {
  background: var(--ink);
  color: var(--bg);
  font-size: 17px;
  padding: 15px 28px;
  box-shadow: 0 8px 24px rgba(20, 22, 28, 0.18);
}
.btn-hero:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  font-size: 15px;
  padding: 15px 10px;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  padding: 170px 0 90px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 auto 34px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.hero-note {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0 0 70px;
}

/* ---------- hero demo ---------- */
.demo {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  text-align: left;
  position: relative;
}
.demo-field {
  background: var(--glass-strong);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  min-height: 96px;
  padding: 18px 20px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}
.demo-field .caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}
.demo-raw {
  min-height: 24px;
  margin: 14px 2px 18px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.demo-raw .word { opacity: 0; }
.demo-raw .word.on { opacity: 1; transition: opacity 0.25s ease; }

/* the pill */
.pill-stage {
  display: flex;
  justify-content: center;
}
.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 24px rgba(20, 22, 28, 0.16);
  transition: width 0.45s cubic-bezier(0.32, 1.25, 0.5, 1), padding 0.45s cubic-bezier(0.32, 1.25, 0.5, 1);
  overflow: hidden;
  white-space: nowrap;
}
.pill[data-state="idle"] {
  width: 44px;
  padding: 0;
  justify-content: center;
}
.pill-idle-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: breathe 3.2s ease-in-out infinite;
}
.pill-rec-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rec);
  flex: none;
  animation: breathe 1.4s ease-in-out infinite;
}
.pill-wave {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 26px;
  flex: none;
}
.pill-wave i {
  width: 2.5px;
  border-radius: 2px;
  background: var(--ink-2);
  height: 4px;
  transition: height 0.09s linear;
}
.pill-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  flex: none;
}
.pill-spinner {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid var(--hairline);
  border-top-color: var(--ink-2);
  animation: spin 0.8s linear infinite;
  flex: none;
}
.pill-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-bright);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex: none;
  animation: pop 0.35s cubic-bezier(0.32, 1.6, 0.5, 1);
}
.pill [data-when] { display: none; }
.pill[data-state="idle"]   [data-when~="idle"],
.pill[data-state="rec"]    [data-when~="rec"],
.pill[data-state="busy"]   [data-when~="busy"],
.pill[data-state="done"]   [data-when~="done"] { display: flex; }

.demo-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 14px 0 0;
}
kbd {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: var(--glass-strong);
  color: var(--ink-2);
}

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 54px;
}
.feature-card {
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feature-visual {
  height: 170px;
  border-radius: var(--radius-md);
  background: var(--glass-strong);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.feature-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.feature-card h3 small {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}
.feature-card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.feature-card .fine {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: auto;
}

/* speaktype visual */
.fv-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 56px;
}
.fv-wave i {
  width: 4px;
  border-radius: 3px;
  background: var(--accent);
  animation: wavebob 1.3s ease-in-out infinite;
}
.fv-wave i:nth-child(2n) { animation-delay: -0.45s; opacity: 0.75; }
.fv-wave i:nth-child(3n) { animation-delay: -0.85s; opacity: 0.55; }
.fv-wave i:nth-child(5n) { animation-delay: -0.2s; }

/* shelf visual */
.fv-shelf {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 78%;
}
.file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: 0 2px 8px rgba(20, 22, 28, 0.06);
}
.file-chip .doc {
  width: 16px; height: 20px;
  border-radius: 3px;
  background: var(--ink-3);
  position: relative;
  flex: none;
  opacity: 0.85;
}
.file-chip .doc::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  border-style: solid;
  border-width: 0 6px 6px 0;
  border-color: transparent var(--glass-strong) transparent transparent;
}
.file-chip.fading { opacity: 0.45; }
.file-chip .auto {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-3);
}

/* mirror visual */
.fv-mirror {
  width: 120px; height: 120px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), transparent 50%),
    linear-gradient(155deg, #b9c6d8, #8d9bb0 55%, #6e7d93);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 8px 24px rgba(20, 22, 28, 0.14);
  position: relative;
}
.fv-mirror .live {
  position: absolute;
  top: 9px; left: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
}
.fv-mirror .live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: breathe 2s ease-in-out infinite;
}

/* ---------- on-device (deep section) ---------- */
.deep {
  background: var(--deep-bg);
  color: var(--deep-ink);
}
.deep .eyebrow { color: var(--accent-bright); }
.deep .section-sub { color: var(--deep-ink-2); }

.pipeline {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pipe-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  font-family: var(--mono);
}
.pipe-step {
  background: var(--deep-glass);
  border: 1px solid var(--deep-hairline);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.pipe-step strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--deep-ink);
}
.pipe-step span {
  font-size: 12.5px;
  color: var(--deep-ink-2);
}
.pipe-arrow {
  align-self: center;
  color: var(--deep-ink-2);
  font-size: 13px;
  line-height: 1;
  padding: 5px 0;
}
.pipe-result {
  border-color: color-mix(in oklch, var(--accent-bright) 45%, transparent);
  background: color-mix(in oklch, var(--accent-bright) 10%, transparent);
}
.pipe-result strong { color: var(--accent-bright); }
.pipe-result span { color: var(--deep-ink); font-size: 14px; }

.pipe-copy h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.pipe-copy p {
  color: var(--deep-ink-2);
  font-size: 16px;
  margin: 0 0 16px;
  text-wrap: pretty;
}

.layers {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.layer {
  border: 1px solid var(--deep-hairline);
  background: var(--deep-glass);
  border-radius: var(--radius-md);
  padding: 22px;
}
.layer .verb {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.layer p {
  font-size: 14.5px;
  color: var(--deep-ink-2);
  margin: 0;
  text-wrap: pretty;
}
.tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-shipped { background: color-mix(in oklch, var(--accent-bright) 18%, transparent); color: var(--accent-bright); }
.tag-lab { background: rgba(255, 195, 70, 0.14); color: #f0b43c; }
.tag-vision { background: rgba(110, 150, 255, 0.14); color: #8aabff; }

.deep-claim {
  margin-top: 64px;
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.deep-claim .accent { color: var(--accent-bright); }

/* ---------- Sidekit Intelligence (named layer inside on-device) ---------- */
.si-intro { margin-top: 64px; }
.si-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.si-lead {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--deep-ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.si-intro + .layers { margin-top: 22px; }
.si-commit {
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--deep-ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.si-commit strong { color: var(--accent-bright); font-weight: 700; }

/* ---------- agents ---------- */
.handoff {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}
.handoff-node {
  text-align: center;
}
.handoff-node .who {
  font-size: 16px;
  font-weight: 700;
  margin: 12px 0 4px;
}
.handoff-node .what {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0;
}
.avatar {
  width: 58px; height: 58px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}
.avatar.agent {
  border-radius: 16px;
  font-family: var(--mono);
  color: var(--accent);
}
.handoff-shelf {
  width: 230px;
  border-radius: var(--radius-md);
  background: var(--glass-strong);
  border: 1px solid var(--hairline);
  box-shadow: var(--glass-shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.handoff-shelf .shelf-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 2px;
}
.handoff-arrows {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 10px;
}

/* ---------- roadmap ---------- */
.roadmap-list {
  margin-top: 54px;
  display: flex;
  flex-direction: column;
}
.road-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid var(--hairline);
}
.road-item:last-child { border-bottom: none; }
.road-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  align-self: center;
  justify-self: center;
}
.road-dot.shipped { background: var(--accent-bright); }
.road-dot.lab { background: #f0b43c; }
.road-dot.vision { background: transparent; border: 2px solid var(--ink-3); }
.road-item h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.road-item h4 span {
  font-weight: 400;
  color: var(--ink-2);
}
.road-status {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.road-status.now { color: var(--accent); }

/* ---------- principles strip ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 54px;
}
.principle {
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.principle h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.principle p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- footer cta ---------- */
.cta-final {
  text-align: center;
  padding: 130px 0 120px;
}
.cta-card {
  border-radius: 32px;
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}
.cta-card h2 { margin-bottom: 10px; }
.cta-card .section-sub { margin: 0 auto 32px; }
.cta-pill-hint {
  display: inline-flex;
  margin-bottom: 28px;
}
.footer {
  padding: 0 0 48px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
}
.footer .wrap {
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0s);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- keyframes ---------- */
@keyframes breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes wavebob {
  0%, 100% { height: 10px; }
  50% { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .fv-wave i { height: 26px !important; animation: none; }
  .logo-dot, .pill-idle-dot, .pill-rec-dot, .fv-mirror .live i { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .feature-grid, .layers, .principles { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; gap: 36px; }
  .handoff { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
  .nav-links { display: none; }
  section { padding: 80px 0; }
  .hgly { display: none; }
}

/* ============ funk layer ============ */

/* drifting backdrop */
@media (prefers-reduced-motion: no-preference) {
  .backdrop::before { animation: drift-a 26s ease-in-out infinite alternate; }
  .backdrop::after { animation: drift-b 34s ease-in-out infinite alternate; }
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6vw, 7vh) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(7vw, -6vh) scale(0.92); }
}

/* headline glyph chips */
.hgly {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.045em;
  width: 0.62em;
  height: 0.62em;
  border-radius: 24%;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  vertical-align: 0.0em;
  margin: 0 0.22em 0 0.1em;
  rotate: -7deg;
  transition: rotate 0.3s cubic-bezier(0.32, 1.4, 0.5, 1);
}
.hgly:hover { rotate: 4deg; }
h1 .hgly:nth-of-type(2) { rotate: 5deg; }
h1 .hgly:nth-of-type(2):hover { rotate: -4deg; }
.hg-wave i {
  width: 0.05em;
  height: 0.14em;
  border-radius: 99px;
  background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .hg-wave i { animation: hg-bob 1.1s ease-in-out infinite; }
  .hg-wave i:nth-child(2) { animation-delay: -0.36s; }
  .hg-wave i:nth-child(3) { animation-delay: -0.72s; }
}
@keyframes hg-bob {
  0%, 100% { height: 0.12em; }
  50% { height: 0.32em; }
}
.hg-doc .doc {
  width: 0.2em;
  height: 0.27em;
  border-radius: 0.04em;
  background: var(--ink-2);
  position: relative;
  opacity: 0.85;
}
.hg-check {
  background: var(--accent-bright);
  border-color: transparent;
}
.hg-check::after {
  content: "✓";
  color: #fff;
  font-size: 0.42em;
  font-weight: 800;
  line-height: 0;
  display: block;
}

/* squiggle underline */
.squiggle {
  position: relative;
  white-space: nowrap;
}
.squiggle::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.06em;
  bottom: -0.12em;
  height: 0.15em;
  background: var(--accent);
  opacity: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 6'%3E%3Cpath d='M0 3 Q5 0 10 3 T20 3' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 6'%3E%3Cpath d='M0 3 Q5 0 10 3 T20 3' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") repeat-x;
  -webkit-mask-size: 0.55em 0.165em;
  mask-size: 0.55em 0.165em;
}
@media (prefers-reduced-motion: no-preference) {
  .squiggle::after { animation: squig 7s linear infinite; }
}
@keyframes squig {
  to { -webkit-mask-position: 5.5em 0; mask-position: 5.5em 0; }
}

/* ticker strip */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 15px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 44px;
  width: max-content;
}
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 30s linear infinite; }
}
.ticker-track span {
  display: flex;
  align-items: center;
  gap: 44px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.ticker-track i {
  font-style: normal;
  color: var(--accent);
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* tilted visuals, straighten on hover */
.demo { rotate: -1deg; transition: rotate 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.demo:hover { rotate: 0deg; }
.feature-card:nth-child(1) .feature-visual { rotate: -2deg; }
.feature-card:nth-child(2) .feature-visual { rotate: 1.6deg; }
.feature-card:nth-child(3) .feature-visual { rotate: -1.4deg; }
.feature-visual { transition: rotate 0.35s cubic-bezier(0.32, 1.4, 0.5, 1); }
.feature-card:hover .feature-visual { rotate: 0deg; }
.feature-card { transition: translate 0.3s ease; }
.feature-card:hover { translate: 0 -4px; }
.handoff-shelf { rotate: -1.6deg; transition: rotate 0.35s cubic-bezier(0.32, 1.4, 0.5, 1); }
.handoff:hover .handoff-shelf { rotate: 0deg; }

/* recording glow + button squash */
.pill[data-state="rec"] {
  box-shadow: 0 6px 24px rgba(255, 69, 58, 0.22), 0 0 0 5px color-mix(in oklch, var(--rec) 10%, transparent);
}
.btn:active { transform: scale(0.96); }

/* shipped roadmap dot pulses */
@media (prefers-reduced-motion: no-preference) {
  .road-dot.shipped { animation: ring 2.6s ease-out infinite; }
}
@keyframes ring {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent-bright) 45%, transparent); }
  60%, 100% { box-shadow: 0 0 0 9px transparent; }
}
