@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --fg: #111318;
  --muted: #5b6070;
  --line: #e3e5ea;
  --accent: #2563eb;
  --accent-soft: #e6eefe;
  --accent-fg: #ffffff;
  --shadow: 0 24px 60px -24px rgb(30 58 138 / 0.28);
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f14;
    --surface: #151821;
    --fg: #eceef3;
    --muted: #9aa0ae;
    --line: #252935;
    --accent: #4f86f7;
    --accent-soft: #17213a;
    --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 650; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Buttons: full pill everywhere, cards are 16px. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.2s, box-shadow 0.3s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: 0 10px 24px -10px rgb(37 99 235 / 0.7); }
.btn-primary:hover { box-shadow: 0 16px 30px -10px rgb(37 99 235 / 0.75); }
.btn-ghost { color: var(--fg); border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
  min-height: calc(100dvh - 68px);
  padding-top: 40px;
  padding-bottom: 56px;
}
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 700; line-height: 1.04; }
.hero h1 em { font-style: italic; color: var(--accent); padding-right: 0.06em; }
.lede { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 44ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; padding-top: 32px; }
}

/* Hero demo */
.demo {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
  padding: clamp(14px, 3vw, 30px);
  box-shadow: var(--shadow);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 12px;
  background: #f1f3f6;
  border-radius: 10px 10px 0 0;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #cfd4dc; }
.url { flex: 1; max-width: 260px; margin: 0 auto; font-size: 11.5px; color: #6b7280; background: #fff; border-radius: 6px; padding: 3px 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0 0 10px 10px; background: #fff; }
.demo-page {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 22% 1fr;
  transform-origin: 0 0;
  will-change: transform;
  color: #1f2430;
  font-size: clamp(9px, 1.15vw, 13px);
}
.dp-side { background: #f4f5f8; padding: 8% 10%; display: flex; flex-direction: column; gap: 9%; }
.dp-side b { display: block; height: 10%; width: 60%; border-radius: 6px; background: #2563eb; }
.dp-side span { display: block; height: 6%; border-radius: 4px; background: #dfe3ea; }
.dp-side span.on { background: #c7d6fb; }
.dp-main { padding: 5% 6%; display: flex; flex-direction: column; gap: 5%; }
.dp-head { display: flex; justify-content: space-between; align-items: center; }
.dp-title { font-weight: 650; font-size: 1.35em; }
.dp-avatar { width: 2.2em; height: 2.2em; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #ef4444); }
.dp-row { display: flex; justify-content: space-between; align-items: center; padding: 2.5% 0; border-bottom: 1px solid #edf0f4; }
.dp-toggle { width: 2.8em; height: 1.6em; border-radius: 1em; background: #d5dae2; position: relative; transition: background 0.25s; }
.dp-toggle i { position: absolute; top: 0.2em; left: 0.2em; width: 1.2em; height: 1.2em; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: transform 0.25s var(--ease); }
.dp-toggle.on { background: #2563eb; }
.dp-toggle.on i { transform: translateX(1.2em); }
.dp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; margin-top: 2%; }
.dp-card, .dp-drop { border-radius: 10px; padding: 9% 8%; font-weight: 600; }
.dp-card { background: #fff; border: 1px solid #e3e7ee; box-shadow: 0 6px 14px -8px rgb(15 23 42 / 0.3); position: relative; z-index: 1; transition: box-shadow 0.2s; }
.dp-card.lifted { box-shadow: 0 18px 30px -12px rgb(15 23 42 / 0.45); }
.dp-drop { border: 1.5px dashed #c3cad6; color: #8a93a3; font-weight: 500; transition: background 0.25s, border-color 0.25s; }
.dp-drop.hot { background: #eef3ff; border-color: #2563eb; color: #2563eb; }
.dp-foot { margin-top: auto; display: flex; justify-content: flex-end; }
.dp-save { background: #111827; color: #fff; padding: 0.7em 1.2em; border-radius: 0.6em; font-weight: 600; transition: background 0.25s; }
.dp-save.done { background: #16a34a; }
.demo-cursor { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.3)); }
.demo-cursor path { fill: #111; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.demo-ripple { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgb(37 99 235 / 0.35); border: 2.5px solid #fff; opacity: 0; pointer-events: none; }
.demo-state {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13.5px;
  font-weight: 550;
  white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.3);
  transition: opacity 0.3s;
}

/* How it works */
.how { padding-top: 120px; padding-bottom: 40px; }
.steps { position: relative; list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.steps-line { position: absolute; top: 9px; left: 9px; right: 0; width: calc(100% - 9px); height: 4px; overflow: visible; }
.steps-line line { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1000; stroke-dashoffset: 1000; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 1.6s var(--ease) 0.2s; }
.steps.drawn .steps-line line { stroke-dashoffset: 0; }
.steps li { position: relative; }
.step-dot { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); margin-bottom: 26px; position: relative; z-index: 1; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); max-width: 34ch; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps-line { display: none; }
}

/* Features bento */
.features { padding-top: 110px; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
}
.cell p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.cell-shots { grid-column: span 4; }
.cell-drag { grid-column: span 2; background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); }
.cell-cursor { grid-column: span 2; background: #111318; border-color: #111318; color: #f2f4f8; }
.cell-cursor p { color: #a6acb9; }
.cell-bg { grid-column: span 2; }
.cell-local { grid-column: span 2; background:
  radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%), var(--surface); }
@media (max-width: 980px) {
  .cell-shots { grid-column: span 6; }
  .cell-drag, .cell-cursor, .cell-bg, .cell-local { grid-column: span 3; }
  .cell-local { grid-column: span 6; min-height: 0; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .cell-shots, .cell-drag, .cell-cursor, .cell-bg, .cell-local { grid-column: auto; }
  .cell { padding: 24px; }
}

.shots-viz { margin-top: auto; padding-top: 34px; }
.lane { position: relative; height: 64px; border-radius: 12px; background: color-mix(in srgb, var(--line) 55%, transparent); }
.lane .bar { position: absolute; top: 12px; bottom: 12px; left: var(--l); width: var(--w); border-radius: 8px; background: color-mix(in srgb, var(--accent) 30%, transparent); transform-origin: left; transform: scaleX(0); transition: transform 0.9s var(--ease); }
.lane i { position: absolute; top: 50%; left: var(--l); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.4s var(--ease); }
.lane .head { position: absolute; top: 4px; bottom: 4px; left: 0; width: 100%; pointer-events: none; }
.lane .head::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; border-radius: 2px; background: var(--fg); }
.in .lane .head { animation: sweep 6s linear 1s infinite; }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(100%); } }
.in .lane .bar { transform: scaleX(1); }
.in .lane .bar:nth-child(2) { transition-delay: 0.15s; }
.in .lane .bar:nth-child(3) { transition-delay: 0.3s; }
.in .lane i { transform: scale(1); }
.in .lane i:nth-of-type(2) { transition-delay: 0.1s; }
.in .lane i:nth-of-type(3) { transition-delay: 0.2s; }
.in .lane i:nth-of-type(4) { transition-delay: 0.3s; }
.in .lane i:nth-of-type(5) { transition-delay: 0.4s; }

.drag-viz { position: relative; height: 130px; margin-bottom: 14px; display: grid; place-items: center; }
.drag-viz .frame { position: absolute; width: 70%; height: 100%; border: 2px solid var(--accent); border-radius: 12px; animation: frame-breathe 4s var(--ease) infinite; }
.drag-viz .chip { width: 46px; height: 30px; border-radius: 8px; background: var(--accent); animation: chip-drag 4s var(--ease) infinite; }
@keyframes frame-breathe { 0%, 20% { transform: scale(0.55); } 45%, 75% { transform: scale(1); } 100% { transform: scale(0.55); } }
@keyframes chip-drag { 0%, 25% { transform: translateX(-60%); } 70%, 80% { transform: translateX(160%); } 100% { transform: translateX(-60%); } }

.cursor-viz { position: relative; height: 130px; margin-bottom: 14px; display: grid; place-items: center; }
.cursor-viz svg { position: relative; transform: translate(12px, 14px); }
.cursor-viz path { fill: #fff; stroke: #111318; stroke-width: 1.4; stroke-linejoin: round; }
.cursor-viz .ring { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid #fff; background: rgb(79 134 247 / 0.4); animation: ripple 2.2s var(--ease) infinite; }
@keyframes ripple { 0% { transform: scale(0.2); opacity: 1; } 60%, 100% { transform: scale(1.7); opacity: 0; } }

.bg-viz { height: 130px; margin-bottom: 14px; border-radius: 12px; background: linear-gradient(120deg, #1e3a8a, #0ea5e9, #34d399, #f97316, #db2777, #1e3a8a); background-size: 300% 300%; animation: bg-pan 9s linear infinite; display: grid; place-items: center; }
.bg-viz span { width: 62%; height: 64%; border-radius: 8px; background: #fff; box-shadow: 0 14px 28px -10px rgb(0 0 0 / 0.45); }
@keyframes bg-pan { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

.how-more { margin-top: 44px; color: var(--muted); }

.keys-viz { display: flex; gap: 8px; margin-bottom: 18px; }
.keys-viz kbd { min-width: 46px; height: 46px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--surface); font: 600 15px/1 "Geist", system-ui, sans-serif; color: var(--fg); }
.in .keys-viz kbd { animation: keypress 3.2s var(--ease) infinite; }
.in .keys-viz kbd:nth-child(2) { animation-delay: 0.12s; }
.in .keys-viz kbd:nth-child(3) { animation-delay: 0.24s; }
@keyframes keypress { 0%, 70%, 100% { transform: none; border-bottom-width: 3px; } 76% { transform: translateY(2px); border-bottom-width: 1px; } }

/* Fully local */
.local { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 140px; }
.local-copy h2 { max-width: 16ch; }
.local-copy p { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 44ch; }
.local-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.local-list li { position: relative; padding: 20px 22px 20px 64px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.local-list li::before { content: ""; position: absolute; left: 20px; top: 21px; width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, #16a34a 16%, transparent); }
.local-list li::after { content: ""; position: absolute; left: 31px; top: 27px; width: 6px; height: 11px; border: solid #16a34a; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.local-list b { display: block; font-weight: 600; }
.local-list span { display: block; color: var(--muted); font-size: 15.5px; margin-top: 2px; }
@media (max-width: 900px) { .local { grid-template-columns: 1fr; gap: 32px; padding-top: 100px; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center; padding-top: 140px; }
.price-copy p { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 40ch; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.price { display: flex; align-items: baseline; gap: 4px; }
.currency { font-size: 30px; font-weight: 600; color: var(--muted); }
.amount { font-size: 76px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.per { margin-left: 10px; color: var(--muted); font-size: 16px; }
.includes { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.includes li { position: relative; padding-left: 30px; }
.includes li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.includes li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.btn-soon { cursor: default; opacity: 0.9; }
.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3); opacity: 0; } }
.buy-note { margin-top: 16px; font-size: 15px; background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; }
.fine { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; gap: 32px; padding-top: 100px; } }

/* FAQ */
.faq { padding-top: 130px; padding-bottom: 120px; max-width: 860px; }
.faq-list { margin-top: 36px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { color: var(--muted); padding: 0 0 22px; max-width: 62ch; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot-links a:hover { color: var(--fg); }

/* Entrance + scroll reveals (skipped entirely for reduced motion). */
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 80ms); }
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lane .bar, .lane i { transform: none; }
  .steps-line line { stroke-dashoffset: 0; }
}

[hidden] { display: none !important; }
