/* Black mono: pure black, white type, hairlines, one colour dot per account. Same tokens as the app. */
:root {
  --bg: #000;
  --surface: #0b0b0b;
  --raised: #111;
  --line: #1c1c1c;
  --line-2: #2e2e2e;
  --text: #fff;
  --text-2: #8f8f8f;
  --text-3: #5c5c5c;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
code { font: .88em var(--mono); color: var(--text); background: var(--raised); border: 1px solid var(--line); padding: .08em .4em; border-radius: 6px; }
h1, h2 { font-family: var(--display); margin: 0; font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -0.035em; }
p { margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 1180px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-3); }

/* Buttons: white pill for the main action, outlined pill for the rest (same as the app). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 42px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--line-2); color: var(--text); background: transparent;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { border-color: #555; background: var(--surface); }
.btn.primary { background: #fff; color: #000; border-color: #fff; }
.btn.primary:hover { opacity: .88; background: #fff; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 15px; font-size: 14px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.nav.scrolled { background: rgba(0, 0, 0, .8); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand img { margin: -2px 0; }
.brand.small { font-size: 14px; gap: 8px; color: var(--text-2); }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav nav a:not(.btn) { color: var(--text-2); transition: color .15s; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero { padding: 84px 0 40px; text-align: center; }
.services { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--text-2); }
.services li { display: inline-flex; align-items: center; gap: 8px; }
.services i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.hero h1 { font-size: clamp(48px, 8.4vw, 100px); line-height: .98; letter-spacing: -0.055em; margin-top: 30px; }
.dim { color: var(--text-3); }
.lead { max-width: 560px; margin: 26px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--text-2); line-height: 1.5; }
.lead.left { margin: 18px 0 0; }
.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.meta { margin-top: 18px; font-size: 13px; color: var(--text-3); }

.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg); }
.hero-shot { margin-top: 72px; box-shadow: 0 40px 140px -40px rgba(255, 255, 255, .12); }

/* Features: the same key/value rows the app uses */
.features { padding: 120px 0 60px; }
.rows { margin-top: 36px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.row .k { color: var(--text-2); }
.row .v { color: var(--text); }

/* Gallery */
.gallery { padding: 60px 0 40px; }
.trio { display: grid; grid-template-columns: 0.8fr 1.1fr 0.9fr; gap: 18px; align-items: start; }
figcaption { padding: 12px 16px; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); }

/* How */
.how { padding: 120px 0; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.code { border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.code-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }
.code-bar b { margin-left: 8px; font: 500 12px var(--mono); color: var(--text-3); }
.code pre { margin: 0; padding: 20px 22px 24px; font: 13.5px/1.8 var(--mono); color: #d4d4d4; overflow-x: auto; }
.code .c { color: var(--text-2); }

/* FAQ */
.faq { padding: 60px 0 100px; }
.faq h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-size: 17px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 17px; font-size: 22px; font-weight: 300; color: var(--text-3); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--text-2); padding: 0 0 22px; font-size: 16px; }

/* Final */
.final { padding: 80px 0 120px; border-top: 1px solid var(--line); }
.final img { margin: 0 auto 26px; }
.final h2 { margin-bottom: 30px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 13.5px; color: var(--text-2); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.links { display: flex; gap: 22px; }
.links a:hover { color: var(--text); }

/* Scroll reveal (only when JavaScript runs, so nothing stays hidden) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio .shot:nth-child(2) { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .nav nav { gap: 16px; }
  .hero { padding-top: 52px; }
  .hero-shot { margin-top: 48px; }
  .features, .how { padding: 80px 0 40px; }
  .row { grid-template-columns: 1fr; gap: 4px; font-size: 16px; padding: 18px 0; }
  .trio { grid-template-columns: 1fr; }
  .code pre { font-size: 11.5px; padding: 16px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
