/* Hashmark — hand-written, no framework. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-card: #ffffff;
  --text: #1d1d1f;
  --text-2: #5e5e63;
  --text-3: #6e6e73;
  --line: rgba(0, 0, 0, .1);
  --navy: #15294b;
  --accent: #15294b;          /* fills */
  --accent-text: #15294b;     /* text on bg */
  --accent-hover: #213d6d;
  --grad-a: #15294b;
  --grad-b: #3b63a8;
  --soon-bg: #e8e8ed;
  --soon-text: #4d4d52;
  --code-bg: #1d1d1f;
  --shadow: 0 0 0 1px rgba(0,0,0,.06), 0 2px 6px rgba(21,41,75,.06), 0 30px 70px -18px rgba(21,41,75,.34);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "JetBrains Mono", Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101012;
    --bg-card: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #98989d;
    --line: rgba(255, 255, 255, .14);
    --accent: #2f5aa3;
    --accent-text: #9dbaf0;
    --accent-hover: #3a68b8;
    --grad-a: #c9d9fa;
    --grad-b: #7f9fe0;
    --soon-bg: #2c2c2e;
    --soon-text: #b8b8bd;
    --code-bg: #1c1c1e;
    --shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 80px -20px rgba(0,0,0,.9);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #4d8cf5; outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(59, 99, 168, .25); }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; text-align: center; }
section { scroll-margin-top: 52px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 52px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.nav ul { display: flex; gap: 28px; }
.nav li a { color: var(--text); opacity: .8; font-size: 13px; letter-spacing: -0.01em; }
.nav li a:hover { opacity: 1; text-decoration: none; }

/* ---------- Type ---------- */
.kicker { color: var(--text-3); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
h2 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.07; letter-spacing: -0.035em; }
.sub { margin-top: 20px; font-size: clamp(19px, 2.1vw, 21px); line-height: 1.45; color: var(--text-2); letter-spacing: -0.015em; text-wrap: pretty; }
.fine { margin-top: 18px; font-size: 14px; color: var(--text-3); letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.1;
}
.btn-primary { background: var(--accent); color: #fff; transition: background-color .2s; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-soon { flex-direction: column; gap: 1px; background: var(--soon-bg); color: var(--soon-text); cursor: default; user-select: none; }
.btn-soon small { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: .95; }

/* ---------- Screenshots ---------- */
.shot { margin: 0; }
.shot img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; height: auto; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 120px 20px 40px; overflow: hidden; }
.hero-icon { margin: 0 auto 26px; filter: drop-shadow(0 14px 24px rgba(21,41,75,.16)); }
.hero h1 { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.eyebrow { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.02em; color: var(--accent-text); }
.promise {
  font-size: clamp(40px, 7.2vw, 80px); line-height: 1.04; letter-spacing: -0.045em; max-width: 13em;
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 72%, var(--grad-b)) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 24px auto 0; max-width: 30em; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--text-2); letter-spacing: -0.02em; }
.hero-shot { max-width: 1080px; margin: 72px auto 0; position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: 8% -12% -20%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--grad-b) 22%, transparent), transparent);
  filter: blur(10px);
}

/* ---------- Why ---------- */
.why { padding: 140px 0 120px; }
.why h2 { max-width: 14em; }
.why-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-grid li { background: var(--bg-alt); border-radius: var(--radius); padding: 32px 28px 34px; }
.big {
  font-size: 52px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.big span { font-size: 26px; letter-spacing: -0.02em; }
.why-grid h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; }
.why-grid p:not(.big) { color: var(--text-2); font-size: 16px; line-height: 1.47; }

/* ---------- Stories ---------- */
.story { padding: 120px 0 130px; }
.story.alt { background: var(--bg-alt); }
.story .shot.wide { max-width: 1080px; margin: 64px auto 0; padding: 0 20px; }

.story-stat { margin-top: 56px; font-size: 26px; font-weight: 600; color: var(--text-2); letter-spacing: -0.02em; }
.story-stat b {
  font-size: clamp(88px, 12vw, 140px); font-weight: 700; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.story-stat-note { margin-top: 8px; font-size: 15px; color: var(--text-3); }
.duo { margin-top: 64px; display: flex; justify-content: center; align-items: flex-end; gap: 56px; }
.duo figure { text-align: center; }
.duo img { border-radius: 12px; box-shadow: var(--shadow); }
.duo-thumb { width: 260px; flex: none; }
.duo-thumb img { border-radius: 6px; }
.duo-ql { width: 520px; max-width: 100%; }
.duo figcaption { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: -0.01em; }

.chips { margin-top: 48px; max-width: 820px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chips li { padding: 10px 18px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }

/* ---------- Features ---------- */
.features { padding: 130px 0 120px; }
.feature-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.feature-grid li { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.feature-grid h3 { font-size: 19px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.feature-grid p { color: var(--text-2); font-size: 16px; line-height: 1.5; }
kbd {
  font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0;
  display: inline-block; padding: 2px 7px; border-radius: 6px; vertical-align: 1px;
  color: var(--text-2); background: var(--bg-alt); border: 1px solid var(--line);
  white-space: nowrap;
}

/* ---------- Safety ---------- */
.safe { padding: 130px 0 120px; background: var(--navy); color: #fff; }
.safe .kicker { color: #a9bde0; }
.safe .sub { color: #c8d3e8; }
.safe-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.safe-grid li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px; }
.safe-grid h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 8px; }
.safe-grid p { color: #c8d3e8; font-size: 16px; line-height: 1.5; }
.safe .more { text-align: center; margin-top: 40px; font-size: 17px; }
.safe .more a { color: #b9cdf3; }
@media (prefers-color-scheme: dark) { .safe { background: #0b1527; } }

/* ---------- Speed ---------- */
.speed { padding: 130px 0 120px; }
.speed .sub { max-width: 34em; }
.stats { margin: 60px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats > div { border-top: 2px solid var(--text); padding-top: 18px; }
.stats dt { font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.stats dd { margin: 0; }
.stats dd:not(.note) { font-size: 24px; font-weight: 600; color: var(--text-2); margin-top: 6px; letter-spacing: -0.02em; }
.stats dd b {
  font-size: clamp(56px, 6.4vw, 80px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats .note { font-size: 14px; color: var(--text-3); margin-top: 6px; }
.stats-size { margin-top: 48px; }
.stats-size > div { grid-column: span 2; }
.method { margin-top: 48px; font-size: 13px; line-height: 1.55; color: var(--text-3); max-width: 52em; letter-spacing: -0.005em; }
.method code { font-size: 12px; }

/* ---------- CLI ---------- */
.cli { padding: 130px 0; background: var(--bg-alt); }
.cli-grid { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; text-align: center; }
.cli-grid > * { min-width: 0; }
.code { text-align: left; margin-top: 44px; background: var(--code-bg); color: #f5f5f7; border-radius: var(--radius); padding: 22px 24px 24px; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset; }
.code-title { font-size: 13px; font-weight: 600; color: #a1a1a6; letter-spacing: 0; text-transform: uppercase; letter-spacing: .06em; }
.code-step { margin-top: 10px; font-size: 15px; color: #d2d2d7; }
.code-step b { color: #fff; font-weight: 600; }
.code pre { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); overflow-x: auto; font-size: 13.5px; line-height: 1.65; letter-spacing: 0; }
.code pre code { user-select: all; -webkit-user-select: all; }
.code .c { color: #8e8e93; user-select: none; -webkit-user-select: none; }
.cli-shot { max-width: 600px; margin: 56px auto 0; }
.cli-shot img { border-radius: 14px; }
.cli h2 { font-size: clamp(34px, 4.4vw, 48px); }

/* ---------- Open source ---------- */
.open { padding: 140px 0 150px; }
.open-icon { margin: 0 auto 28px; filter: drop-shadow(0 12px 20px rgba(21,41,75,.16)); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 13px; color: var(--text-3); letter-spacing: -0.005em; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
.footer-links a { color: var(--text-2); }
.legal { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 0 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .cli-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .stats-size > div { grid-column: span 1; }
  .cli-shot { max-width: 600px; margin: 0 auto; }
}
@media (max-width: 734px) {
  body { font-size: 16px; }
  .nav .opt { display: none; }
  .hero { padding-top: 56px; }
  .hero-icon { width: 104px; height: 104px; margin-bottom: 20px; }
  .hero-shot { margin-top: 52px; }
  .why, .features, .speed, .safe, .story, .cli { padding: 88px 0; }
  .open { padding: 96px 0 104px; }
  .why-grid, .feature-grid, .safe-grid { grid-template-columns: 1fr; }
  .why-grid { gap: 14px; margin-top: 40px; }
  .feature-grid { margin-top: 32px; }
  .safe-grid { margin-top: 40px; gap: 14px; }
  .stats { gap: 32px 18px; margin-top: 44px; }
  .stats dd:not(.note) { font-size: 18px; }
  .stats dd b { font-size: 48px; }
  .story .shot.wide { margin-top: 44px; }
  .duo { flex-direction: column; align-items: center; gap: 40px; margin-top: 44px; }
  .duo-thumb { width: 200px; }
  .story-stat { margin-top: 36px; }
  .ctas { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .code { padding: 18px 18px 20px; }
  .code pre { font-size: 12.5px; white-space: pre-wrap; }
}
