/* Self-hosted from Google Fonts (SIL Open Font License). Latin subset only. */
/* Barlow 500 latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-500.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Barlow 600 latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-600.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Barlow 700 latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-700.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Big Shoulders Display 800 latin */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/big-shoulders-display-800.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Big Shoulders Display 900 latin */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/big-shoulders-display-800.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono 500 latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-500.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono 700 latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-500.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk 400 latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-grotesk-400.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk 500 latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-400.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk 700 latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-400.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #07070b;
  --bg-2: #0e0e15;
  --ink: #f4f3ef;
  --muted: #9a99a6;
  --line: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.035);

  --red: #e52029;
  --orange: #f88f0f;
  --yellow: #fdd305;
  --green: #4dae43;
  --blue: #2f8fd8;
  --purple: #c30161;

  --spectrum: linear-gradient(95deg, var(--purple), var(--red), var(--orange), var(--yellow), #bce436, var(--green));
  --radius: 22px;
  --gutter: clamp(18px, 5vw, 64px);
  --max: 1180px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--yellow); color: #111; }

/* ---------- Background layers ---------- */
#shards {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(247, 197, 49, 0.08), transparent 60%),
    radial-gradient(900px circle at 10% 0%, rgba(142, 79, 196, 0.16), transparent 60%),
    radial-gradient(900px circle at 100% 100%, rgba(47, 143, 216, 0.12), transparent 60%);
}
body::after { /* film grain */
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, .nav, .footer { position: relative; z-index: 2; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(7, 7, 11, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7, 7, 11, 0.8); }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
}
.brand img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a {
  position: relative; text-decoration: none; font-size: 15px; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav nav a.active, .nav nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.08); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--spectrum); border-radius: 2px; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(44px, 9vw, 124px); font-weight: 700; }
h2 { font-size: clamp(34px, 5.4vw, 68px); font-weight: 700; }
h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 640px; }
.grad {
  background: var(--spectrum); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shift 8s ease-in-out infinite alternate;
}
@keyframes shift { to { background-position: 100% 0; } }

section { padding: clamp(80px, 12vw, 150px) var(--gutter); max-width: var(--max); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none; font-weight: 500;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--ink); color: #0a0a0f; }
.btn.primary:hover { box-shadow: 0 10px 40px -10px rgba(247, 197, 49, .6); }
.btn.ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 70px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 40px; position: relative;
}
.hero h1 { margin-bottom: 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.scroll-hint {
  position: absolute; bottom: 30px; left: var(--gutter);
  width: 24px; height: 38px; border: 2px solid var(--line); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--ink); animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.prose p { font-size: clamp(18px, 1.8vw, 21px); color: #cfcdd6; margin: 0 0 20px; }
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: clamp(60px, 8vw, 100px);
}
.pillar, .promise {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); overflow: hidden;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .4s;
}
.pillar::before, .promise::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--px, 50%) var(--py, 0%), color-mix(in srgb, var(--c) 22%, transparent), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.pillar:hover, .promise:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.pillar:hover::before, .promise:hover::before { opacity: 1; }
.pillar > *, .promise > * { position: relative; }
.pillar .num { font-family: var(--mono); font-size: 13px; color: var(--c); display: block; margin-bottom: 50px; }
.pillar h3, .promise h3 { margin-bottom: 10px; }
.pillar p, .promise p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- Why ---------- */
.why-inner {
  padding: clamp(32px, 6vw, 80px); border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.why-inner::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--spectrum);
}
.why h2 { max-width: 900px; margin-bottom: 26px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.compare .col { padding: 26px; border-radius: 18px; border: 1px solid var(--line); }
.compare h3 { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.compare .then { color: var(--muted); }
.compare .then li::before { content: "✕"; color: var(--red); font-size: 13px; }
.compare .then li { text-decoration: line-through; text-decoration-color: rgba(232, 64, 58, .5); }
.compare .now { background: rgba(61, 184, 107, .06); border-color: rgba(61, 184, 107, .3); }
.compare .now li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ---------- Apps ---------- */
.section-head { margin-bottom: clamp(40px, 6vw, 70px); }
.section-head h2 { max-width: 800px; }
.section-head .lede { margin-top: 18px; }
.app-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center;
  padding: clamp(28px, 5vw, 60px); border-radius: calc(var(--radius) + 10px);
  background:
    radial-gradient(600px circle at 100% 0%, rgba(201, 38, 56, .28), transparent 60%),
    radial-gradient(600px circle at 70% 110%, rgba(35, 80, 214, .3), transparent 60%),
    linear-gradient(160deg, #15121a, #0b0a10);
  border: 1px solid rgba(232, 64, 58, .25);
  box-shadow: 0 40px 120px -40px rgba(232, 64, 58, .35);
}
.app-title { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.app-icon { width: 72px; height: 72px; border-radius: 17px; flex-shrink: 0; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .8); }
.app-title h3 { font-size: clamp(34px, 4vw, 48px); }
.tag { margin: 6px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.app-info > p { color: #cfcdd6; font-size: 18px; margin: 0 0 22px; }
.chips { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  padding: 10px 22px 10px 18px; border-radius: 14px;
  transition: transform .25s, box-shadow .25s;
}
.store-btn svg { width: 26px; }
.store-btn span { display: flex; flex-direction: column; font-size: 22px; font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
.store-btn small { font-size: 12px; font-weight: 400; letter-spacing: .01em; }
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -10px rgba(255, 255, 255, .35); }
.store-btn.is-soon { cursor: default; opacity: .8; }
.store-btn.is-soon:hover { transform: none; box-shadow: none; }

.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.app-phone {
  justify-self: center; display: block; width: min(100%, 290px); aspect-ratio: 886 / 1920;
  border-radius: 42px; padding: 9px; transform: rotate(3deg);
  background: linear-gradient(145deg, #2a2d33, #0c0d10);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 50px 100px -30px #000, 0 0 90px -30px rgba(226, 58, 74, .6);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.app-phone:hover { transform: rotate(0deg) scale(1.02); }
.app-phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; display: block; background: #000; }

.upcoming { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.soon {
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 30px; border-radius: var(--radius); border: 1px dashed rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .015);
}
.soon h3 { margin: 16px 0 8px; }
.soon p { color: var(--muted); margin: 0 0 10px; }
.soon a { color: var(--yellow); text-underline-offset: 4px; }
.soon-badge { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Legal summary ---------- */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promise { border-top: 2px solid var(--c); }
.legal-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- Legal document page ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: clamp(50px, 8vw, 100px) var(--gutter) 60px; }
.doc-head h1 { font-size: clamp(40px, 7vw, 76px); margin-bottom: 16px; }
.doc-head .amp { color: var(--muted); font-weight: 400; }
.updated { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a {
  text-decoration: none; font-size: 14px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: background .2s;
}
.toc a:hover { background: rgba(255, 255, 255, .09); }
.tldr {
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  margin: 44px 0 20px; padding: 28px 30px; border-radius: var(--radius);
  background: rgba(61, 184, 107, .06); border: 1px solid rgba(61, 184, 107, .3);
}
.tldr h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 12px; }
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin: 8px 0; color: #d6d4dc; }
.tldr li::marker { color: var(--green); }
.doc-body section { padding: 50px 0 0; max-width: none; }
.doc-body h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.doc-body h3 { font-size: 19px; margin: 32px 0 10px; }
.doc-body p, .doc-body li { color: #c9c7d1; font-size: 16.5px; }
.doc-body ul { padding-left: 22px; }
.doc-body li { margin: 8px 0; }
.doc-body a, .legal a:not(.btn) { color: var(--yellow); text-underline-offset: 3px; }
.doc-body strong { color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max); margin: 0 auto;
  padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
.footer p { margin: 0; }
.footer .brand { color: var(--ink); }
.footer nav { display: flex; gap: 18px; }
.footer nav a { text-decoration: none; display: inline-block; padding: 12px 4px; }
.footer nav a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
/* Only hide content when JS is running, so crawlers and no-JS readers always see it */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pillars, .promises { grid-template-columns: 1fr 1fr; }
  .app-card { grid-template-columns: 1fr; }
  .app-phone { order: -1; width: min(70%, 250px); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .nav nav a { padding: 8px 10px; font-size: 14px; }
  .split, .compare, .upcoming, .pillars, .promises { grid-template-columns: 1fr; }
  .pillar .num { margin-bottom: 24px; }
  .scroll-hint { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
