:root {
  color-scheme: dark;
  --bg: #101010;
  --text: #f2f2f0;
  --muted: #9a9a96;
  --faint: #6a6a66;
  --line: rgba(255, 255, 255, 0.08);
  --fill: rgba(255, 255, 255, 0.045);
  --fill-strong: rgba(255, 255, 255, 0.08);
  --green: #3dd68c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
:focus-visible { outline: 2px solid #d8d8d4; outline-offset: 3px; }
section { scroll-margin-top: 80px; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero .reveal { animation: rise 0.7s ease both; }
@supports (animation-timeline: view()) {
  .reveal:not(.in) {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 64px;
  padding: 0 28px;
  background: rgba(16, 16, 16, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }
.word { font-weight: 650; letter-spacing: -0.04em; text-decoration: none; }
.nav-links { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: #f4f4f2;
  color: #161616;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.btn.small { height: 32px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

.hero, .strip, .feature, .close {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
}
.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 24px;
}
.eyebrow, .shot-label, .kicker {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2 { letter-spacing: -0.04em; font-weight: 600; }
h1 { margin: 10px 0 0; font-size: 64px; line-height: 0.98; }
h2 { margin: 8px 0 0; font-size: 40px; line-height: 1.05; }
.lede, .feature p, .strip p, .close p, .note { color: var(--muted); font-size: 17px; line-height: 1.5; }
.lede { margin: 18px 0 0; max-width: 38rem; }
.cta-row { display: flex; gap: 10px; margin-top: 26px; }
.cta-row.center { justify-content: center; }
.mini.span { grid-template-columns: 1fr; }
.note { margin: 14px 0 0; font-size: 13px; }

.shot, .mini, .phone-screen {
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.shot, .mini { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 280px; }
.shot-side { padding: 16px 12px; border-right: 1px solid var(--line); background: #141414; }
.shot-brand { font-weight: 650; letter-spacing: -0.04em; margin-bottom: 16px; }
.shot-host, .file, .grid div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}
.shot-host.on { background: var(--fill-strong); color: var(--text); }
.shot-host b, .shot-top b { font-weight: 600; }
.shot-host small { display: block; color: var(--faint); font-size: 11px; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: #3c3c3c; }
.shot-host.on .dot { background: var(--green); }
.shot-main { padding: 14px; }
.shot-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.shot-top span, .file span { color: var(--muted); }
.file { justify-content: space-between; }
.bar { width: 92px; height: 4px; border-radius: 99px; background: var(--fill-strong); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--text); transition: width 1.2s ease; }
.sql {
  margin: 14px 0;
  min-height: 3.2em;
  color: #d7d7d2;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  white-space: pre-wrap;
}
.caret { display: inline-block; width: 7px; height: 1em; background: var(--text); transform: translateY(2px); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.grid { margin-top: 8px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.grid div { display: grid; grid-template-columns: 1fr 1fr; padding: 6px 8px; }
.grid div:first-child { color: var(--faint); }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 28px 0 10px; }
.strip article { padding: 16px 0; border-top: 1px solid var(--line); }
.strip h3 { margin: 0 0 6px; font-size: 15px; }
.strip p { margin: 0; font-size: 14px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}
.feature.flip { direction: rtl; }
.feature.flip > * { direction: ltr; }
.mini { min-height: 220px; box-shadow: none; }
.phone {
  width: 260px;
  margin-left: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #141414;
}
.phone-screen { box-shadow: none; border-radius: 18px; min-height: 360px; padding: 16px; }
.phone-screen b { display: block; margin-bottom: 12px; }
.close { padding: 24px 0 80px; text-align: center; }
.close h2 { font-size: 52px; }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px 28px;
  color: var(--faint);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.foot a { color: var(--muted); text-decoration: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero, .feature, .feature.flip { grid-template-columns: 1fr; direction: ltr; }
  .hero, .strip, .feature, .close { width: min(1120px, calc(100% - 32px)); }
  .strip { grid-template-columns: 1fr; }
  h1 { font-size: 42px; }
  h2, .close h2 { font-size: 32px; }
  .shot, .mini { grid-template-columns: 1fr; }
  .shot-side { display: none; }
  .phone { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .caret { animation: none; opacity: 1; transform: none; }
  .bar i { transition: none; width: 70%; }
}
@media (scripting: none) {
  .reveal { animation: none; opacity: 1; }
  [data-create] { display: none; }
}
