/* Nightly website. Dark only: flat backgrounds, one typeface, values from fixed scales. */
:root {
  --bg: #000000;
  --surface: #181818;
  --surface-2: #1F1F1F;
  --line: #272727;
  --line-2: #313131;
  --text: #FFFFFF;
  --muted: #9B9B9B;
  --subtle: #6F6F6F;
  --accent: #C0D1F5;
  --accent-ink: #101318;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 1rem; line-height: 1.5rem; font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

/* Text styles */
.heading-1 { font-size: 3.75rem; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.02em; }
.heading-5 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.title-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.body-6 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.button-md { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.button-sm { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: var(--s-200); top: var(--s-200); z-index: 100;
  padding: var(--s-75) var(--s-100); background: var(--accent); color: var(--accent-ink);
  border-radius: 8px; transform: translateY(-80px); transition: transform 500ms var(--ease);
}
.skip:focus { transform: translateY(0); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s-300); }
section { padding: var(--s-900) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  min-height: 44px; padding: var(--s-75) var(--s-100); border-radius: 9999px;
  background: var(--accent); color: var(--accent-ink);
  transition: transform 500ms var(--ease), opacity 300ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); cursor: default; }
.btn[aria-disabled="true"]:hover, .btn[aria-disabled="true"]:active { transform: none; }
.btn-lg { padding: var(--s-75) var(--s-300); }
.btn-quiet { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }

/* Navigation */
.nav {
  position: fixed; top: calc(var(--s-200) + env(safe-area-inset-top)); left: 50%; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: rgba(24, 24, 24, 0.72); border: 1px solid var(--line); border-radius: 9999px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-75); min-height: 44px; }
.brand svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: var(--s-50); }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-100);
  color: var(--muted); border-radius: 9999px; transition: opacity 300ms var(--ease), color 300ms var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; border-radius: 9999px; }
.nav-toggle span {
  position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 500ms var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center;
  gap: var(--s-75); padding: var(--s-900) var(--s-300) var(--s-600);
  background: rgba(0, 0, 0, 0.92); -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px);
  opacity: 0; visibility: hidden; transition: opacity 500ms var(--ease), visibility 0s 500ms;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease); }
.menu a {
  display: flex; align-items: center; min-height: 64px;
  opacity: 0; transform: translateY(24px);
  transition: transform 500ms var(--ease), opacity 500ms var(--ease);
}
.menu.open a { opacity: 1; transform: none; }
.menu.open a:nth-child(1) { transition-delay: 60ms; }
.menu.open a:nth-child(2) { transition-delay: 120ms; }
.menu.open a:nth-child(3) { transition-delay: 180ms; }
.menu.open a:nth-child(4) { transition-delay: 240ms; }
.menu.open a:nth-child(5) { transition-delay: 300ms; }

/* Hero */
.hero { padding-top: calc(var(--s-900) + var(--s-800)); padding-bottom: var(--s-700); text-align: center; }
.hero h1, .hero .sub { max-width: 680px; margin-left: auto; margin-right: auto; }
.grad {
  background: linear-gradient(90deg, #FFFFFF, #9B9B9B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: var(--s-50);
}
.hero .sub { margin-top: var(--s-300); font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
.hero .cta { margin-top: var(--s-400); display: flex; flex-direction: column; align-items: center; gap: var(--s-200); }
.proof { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: var(--s-75) var(--s-300); color: var(--muted); }
.proof span { display: inline-flex; align-items: center; gap: var(--s-75); }
.proof i { color: var(--accent); font-size: 1rem; }

/* Interactive phone */
.demo { position: relative; margin: var(--s-800) auto 0; width: 300px; }
.glow {
  position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; border-radius: 9999px;
  background: #C9CFDB; filter: blur(120px); opacity: 0.34;
  transform: translate(-50%, -50%); transition: opacity 800ms var(--ease); pointer-events: none;
}
.demo.dim .glow { opacity: 0.05; }
.phone {
  position: relative; padding: var(--s-75); border-radius: 48px;
  background: var(--surface-2); border: 1px solid var(--line-2);
}
.screen { position: relative; height: 560px; border-radius: 40px; overflow: hidden; background: #A9A9A9; text-align: left; }
.screen .page { position: absolute; inset: 0; padding: var(--s-700) var(--s-300) var(--s-300); color: #1F1F1F; }
.screen .page h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; margin-bottom: var(--s-200); }
.screen .page p { font-size: 0.875rem; line-height: 1.25rem; margin-bottom: var(--s-100); }
.island { position: absolute; top: var(--s-100); left: 50%; width: 88px; height: 24px; border-radius: 9999px; background: #000; transform: translateX(-50%); z-index: 3; }
.shade { position: absolute; inset: 0; background: #1E1408; opacity: 0; transition: opacity 800ms var(--ease); z-index: 2; }
.demo.dim .shade { opacity: 0.86; }
.demo-controls { position: relative; margin-top: var(--s-300); display: flex; flex-direction: column; align-items: center; gap: var(--s-100); }
.demo-state { color: var(--muted); }

/* Tagline reveal */
.tagline { padding: var(--s-900) 0; }
.tagline p { max-width: 880px; margin: 0 auto; text-align: center; }
.tagline .w { opacity: 0.3; transition: opacity 500ms var(--ease); }
.tagline .w.on { opacity: 1; }

/* Sections */
.section-head { max-width: 680px; margin: 0 auto var(--s-700); text-align: center; }
.section-head p { margin-top: var(--s-200); color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-200); }
.card {
  grid-column: span 2; padding: var(--s-400); border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 500ms var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card.wide { grid-column: span 3; }
.card i.ph { font-size: 1.5rem; color: var(--accent); }
.card h3 { margin-top: var(--s-300); }
.card p { margin-top: var(--s-75); color: var(--muted); }
.chips { margin-top: var(--s-300); display: flex; flex-wrap: wrap; gap: var(--s-75); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-100);
  border-radius: 9999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted);
}
.chip b { color: var(--text); font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-200); counter-reset: step; }
.step { padding: var(--s-400); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.step .num {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 9999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--accent);
  font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: var(--s-300); }
.step p { margin-top: var(--s-75); color: var(--muted); }

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-75); }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-200);
  min-height: 64px; padding: var(--s-200) var(--s-300); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--muted); transition: transform 500ms var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-300) var(--s-300); color: var(--muted); }

.final { text-align: center; }
.final .box { padding: var(--s-800) var(--s-300); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.final p { max-width: 680px; margin: var(--s-200) auto var(--s-400); color: var(--muted); }

footer { padding: var(--s-600) 0 calc(var(--s-600) + env(safe-area-inset-bottom)); border-top: 0; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-200); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s-50); }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-100); color: var(--muted); transition: color 300ms var(--ease); }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: var(--text); }
.fine { margin-top: var(--s-300); color: var(--subtle); max-width: 680px; }

/* Legal pages */
.legal { padding-top: calc(var(--s-900) + var(--s-800)); padding-bottom: var(--s-900); }
.legal article { max-width: 720px; margin: 0 auto; }
.legal .back { display: inline-flex; align-items: center; gap: var(--s-75); min-height: 44px; color: var(--muted); margin-bottom: var(--s-300); }
.legal h1 { margin-bottom: var(--s-200); }
.legal .summary { margin: var(--s-400) 0; padding: var(--s-300); border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.legal h2 { margin-top: var(--s-600); margin-bottom: var(--s-100); }
.legal p, .legal li { color: #C9C9C9; margin-bottom: var(--s-100); }
.legal ul { list-style: disc; padding-left: var(--s-300); }
.legal a.link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.todo { color: var(--accent-ink); background: var(--accent); border-radius: 4px; padding: 0 var(--s-50); font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.875rem; }

.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-300); text-align: center; padding: var(--s-300); }

/* Scroll reveal */
/* Hidden only once the script has started, so the page still reads if it never loads. */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
section[id] { scroll-margin-top: var(--s-700); }

@media (max-width: 860px) {
  section { padding: var(--s-800) 0; }
  .heading-1 { font-size: 2.25rem; line-height: 2.5rem; }
  .heading-2 { font-size: 1.875rem; line-height: 2.25rem; }
  .heading-3 { font-size: 1.5rem; line-height: 2rem; }
  .hero { padding-top: calc(var(--s-900) + var(--s-500)); }
  .hero .sub { font-size: 1rem; line-height: 1.5rem; }
  .nav { gap: var(--s-75); width: calc(100% - var(--s-400)); justify-content: space-between; }
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .card, .card.wide { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
  .demo { width: 264px; margin-top: var(--s-700); }
  .screen { height: 500px; }
  .glow { width: 360px; height: 360px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; }
  .tagline .w { opacity: 1; transition: none; }
  .btn:hover, .card:hover { transform: none; }
  .menu a { transform: none; }
  .skip { transition: none; }
  @view-transition { navigation: none; }
}
