/* Dwn — site styles. Same language as the app: near-black surfaces, hairline
   strokes, white primary actions and one lime accent. */

:root {
  --bg: #0b0b0c;
  --sidebar: #101012;
  --card: #17171a;
  --raised: #212125;
  --stroke: rgba(255, 255, 255, 0.075);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.94);
  --text2: rgba(255, 255, 255, 0.58);
  --text3: rgba(255, 255, 255, 0.38);
  --accent: #ccff4d;
  --accent-ink: #0b0b0c;
  --radius: 20px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ------------------------------------------------------------- wordmark */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.06em;
  font: 900 24px/1 var(--display);
  letter-spacing: -0.055em;
  color: var(--text);
}
.wordmark svg { width: 0.36em; height: 0.56em; fill: var(--accent); flex: none; }

/* ------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(11, 11, 12, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--stroke); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; font-size: 14.5px; color: var(--text2); }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-link {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  color: var(--text2); transition: background 0.15s, color 0.15s;
}
.icon-link:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.icon-link svg { width: 19px; height: 19px; }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 13px;
  font: 600 15px/1 var(--font); white-space: nowrap; cursor: pointer; border: 0;
  transition: transform 0.12s ease, background 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.985); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: rgba(255, 255, 255, 0.95); color: #000; }
.btn-primary:hover { background: #fff; }
.btn-quiet { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.btn-quiet:hover { background: rgba(255, 255, 255, 0.11); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 15px; }
.btn .sub { font-weight: 500; opacity: 0.55; }

/* ------------------------------------------------------------- hero */

.hero { position: relative; padding: 84px 0 40px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 340px at 50% 30%, rgba(204, 255, 77, 0.10), transparent 70%),
    radial-gradient(900px 500px at 50% 0%, rgba(255, 255, 255, 0.045), transparent 70%);
}

.pill {
  display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px 0 10px;
  border-radius: 999px; border: 1px solid var(--stroke-strong); background: rgba(255, 255, 255, 0.035);
  font-size: 13px; font-weight: 500; color: var(--text2);
}
.pill b { color: var(--text); font-weight: 600; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.pill:hover { border-color: rgba(255, 255, 255, 0.24); }

.hero-mark { display: flex; width: max-content; margin: 34px auto 26px; font-size: clamp(64px, 11vw, 112px); }
.hero-mark .ch, .hero-mark svg { display: inline-block; opacity: 0; }
.ready .hero-mark .ch { animation: rise 0.7s cubic-bezier(.2, .9, .25, 1.05) forwards; }
.ready .hero-mark .ch:nth-child(2) { animation-delay: 0.09s; }
.ready .hero-mark .ch:nth-child(3) { animation-delay: 0.18s; }
.ready .hero-mark svg { transform-origin: bottom; animation: drop 0.62s cubic-bezier(.3, 1.45, .5, 1) 0.42s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-1.1em) scaleY(1.35); } to { opacity: 1; transform: none; } }

h1 {
  margin: 0 auto; max-width: 15ch;
  font: 800 clamp(40px, 6.4vw, 76px)/1.02 var(--display); letter-spacing: -0.035em;
}
h1 .soft { color: var(--text3); }
.lede { margin: 22px auto 0; max-width: 620px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text2); }

.cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.meta { margin-top: 16px; font-size: 13px; color: var(--text3); }
.meta a { color: var(--text2); border-bottom: 1px solid var(--stroke-strong); }
.meta a:hover { color: var(--text); }

/* App window */
.showcase { margin-top: 64px; }
.switch {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.05);
  margin-bottom: 22px; position: relative;
}
.switch button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent;
  color: var(--text3); font: 600 13.5px/1 var(--font); cursor: pointer; transition: color 0.2s;
}
.switch button svg { width: 14px; height: 14px; }
.switch button[aria-selected="true"] { color: var(--text); }
.switch .thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 0.35s cubic-bezier(.3, 1.2, .5, 1), width 0.35s;
}

.window {
  position: relative; margin: 0 auto; max-width: 1100px; aspect-ratio: 2200 / 1520;
  border-radius: 14px; background: var(--sidebar);
  box-shadow: 0 0 0 1px var(--stroke-strong), 0 40px 120px -20px rgba(0, 0, 0, 0.9), 0 0 140px -30px rgba(204, 255, 77, 0.16);
  overflow: hidden;
}
.window img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.35s ease; }
.window img[hidden] { display: block; opacity: 0; pointer-events: none; }
.caption { margin-top: 16px; font-size: 13.5px; color: var(--text3); }

/* ------------------------------------------------------------- sites strip */

.sites { padding: 54px 0 20px; text-align: center; }
.sites p { margin: 0 0 18px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text3); font-weight: 600; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .row { display: flex; gap: 10px; width: max-content; animation: slide 40s linear infinite; }
.marquee span {
  height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 11px;
  background: var(--card); border: 1px solid var(--stroke); color: var(--text2); font-size: 14px; font-weight: 500;
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .row { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

/* ------------------------------------------------------------- sections */

section.block { padding: 110px 0 0; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
h2 { margin: 12px 0 0; font: 800 clamp(32px, 4.4vw, 52px)/1.06 var(--display); letter-spacing: -0.03em; max-width: 18ch; }
h2 .accent { color: var(--accent); }
.section-lede { margin: 18px 0 0; max-width: 560px; font-size: 18px; color: var(--text2); }

/* Bento */
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--stroke); overflow: hidden;
}
.card h3 { margin: 16px 0 6px; font: 650 19px/1.25 var(--display); letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text2); font-size: 15px; }
.card .ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); color: var(--text);
}
.card .ico svg { width: 18px; height: 18px; }
.card .ico.lime { background: var(--accent); color: var(--accent-ink); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: 1 / -1; }

.chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 28px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 8px;
  background: rgba(255, 255, 255, 0.06); font-size: 12.5px; font-weight: 600; color: var(--text2);
}
.chip.on { background: rgba(255, 255, 255, 0.92); color: #000; }

.keys { margin-top: 20px; display: flex; gap: 6px; align-items: center; }
.key {
  min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px;
  background: var(--raised); border: 1px solid var(--stroke-strong); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
  font: 600 17px/1 var(--font); color: var(--text);
}

/* Trim timeline illustration */
.timeline { margin-top: 22px; position: relative; height: 54px; border-radius: 10px; overflow: hidden; display: flex; gap: 2px; }
.timeline i { flex: 1; background: linear-gradient(180deg, #2a2f3a, #1b1e25); }
.timeline i:nth-child(3n) { background: linear-gradient(180deg, #34303c, #1e1c24); }
.timeline i:nth-child(4n) { background: linear-gradient(180deg, #2c3a33, #1a221e); }
.timeline .sel {
  position: absolute; top: 0; bottom: 0; left: 28%; width: 38%; border: 2px solid var(--accent); border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(11, 11, 12, 0.55);
}
.timeline .sel::before, .timeline .sel::after {
  content: ""; position: absolute; top: 50%; width: 4px; height: 20px; margin-top: -10px; border-radius: 2px; background: var(--accent);
}
.timeline .sel::before { left: -3px; } .timeline .sel::after { right: -3px; }

.mini-progress { margin-top: 22px; display: grid; gap: 10px; }
.mini-progress div { height: 34px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); position: relative; overflow: hidden; display: flex; align-items: center; padding: 0 12px; font-size: 13px; color: var(--text2); }
.mini-progress div::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w); background: var(--accent); border-radius: 2px; }

.list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text2); font-size: 15px; }
.list li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--accent); }

/* Cloud spotlight */
.split { margin-top: 48px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center; }
.split .window { aspect-ratio: auto; border-radius: 12px; }
.split .window img { position: static; }
.services { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.service { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 6px; border-radius: 11px; background: var(--card); border: 1px solid var(--stroke); font-size: 14px; font-weight: 600; }
.service i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; }
.service i svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linejoin: round; }

.versus { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.versus div { padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--stroke); font-size: 13.5px; color: var(--text2); }
.versus b { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text3); }
.versus code { font: 500 12.5px/1.7 ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); display: block; }
.versus .bad code { color: var(--text3); text-decoration: line-through; text-decoration-color: rgba(255, 120, 110, 0.6); }
.versus .good { border-color: rgba(204, 255, 77, 0.28); }

/* Privacy trio */
.trio { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trio .card { padding: 30px; }
.trio .big { font: 800 40px/1 var(--display); letter-spacing: -0.03em; }
.trio .big span { color: var(--accent); }

/* Download */
.download { padding: 120px 0 0; }
.download-box {
  position: relative; padding: 64px 40px; border-radius: 28px; text-align: center; overflow: hidden;
  background: radial-gradient(500px 260px at 50% 0%, rgba(204, 255, 77, 0.12), transparent 70%), var(--sidebar);
  border: 1px solid var(--stroke);
}
.download-box h2 { margin-inline: auto; }
.platforms { margin: 40px auto 0; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.platform { min-width: 0; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 14px; }
.platform.current { border-color: rgba(204, 255, 77, 0.35); }
.platform header { display: flex; align-items: center; gap: 12px; }
.platform header svg { width: 26px; height: 26px; }
.platform h3 { margin: 0; font: 650 18px/1.2 var(--display); }
.platform small { display: block; color: var(--text3); font-size: 13px; margin-top: 2px; }
.platform .btn { width: 100%; }
.platform .note { margin: 0; font-size: 13px; color: var(--text3); }
.platform .note b { color: var(--text2); font-weight: 600; }

/* Footer */
footer { margin-top: 120px; padding: 40px 0 56px; border-top: 1px solid var(--stroke); color: var(--text3); font-size: 13.5px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer nav a:hover { color: var(--text); }
footer .fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 12.5px; }
footer .fine a { border-bottom: 1px solid var(--stroke-strong); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-mark .ch, .hero-mark svg { opacity: 1; animation: none !important; }
}

/* ------------------------------------------------------------- legal pages */

.doc { padding: 72px 0 0; }
.doc .wrap { max-width: 760px; }
.doc .back { display: inline-flex; align-items: center; gap: 7px; color: var(--text3); font-size: 14px; }
.doc .back:hover { color: var(--text); }
.doc .back svg { width: 15px; height: 15px; }
.prose { margin-top: 26px; }
.prose h1 { margin: 0; max-width: none; text-align: left; font-size: clamp(36px, 5vw, 52px); }
.prose h2 { margin: 48px 0 0; font-size: 24px; max-width: none; letter-spacing: -0.02em; }
.prose h3 { margin: 30px 0 0; font: 650 18px/1.3 var(--display); }
.prose p, .prose li { color: var(--text2); font-size: 16.5px; line-height: 1.7; }
.prose p { margin: 14px 0 0; }
.prose ul { margin: 14px 0 0; padding-left: 20px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--text3); }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text3); font-style: normal; font-size: 14px; }
.prose a { color: var(--text); border-bottom: 1px solid rgba(204, 255, 77, 0.55); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose code { font: 500 0.88em ui-monospace, "SF Mono", Menlo, monospace; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--text); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .list.cols { columns: 1 !important; }
  .bento .wide { grid-column: span 2; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .trio { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding-top: 56px; }
  .showcase { margin-top: 48px; }
  .window { border-radius: 10px; }
  section.block { padding-top: 84px; }
  .bento { grid-template-columns: 1fr; }
  .bento .wide { grid-column: span 1; }
  .card { padding: 22px; }
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .platform { padding: 18px; }
  .platform .btn .sub { display: none; }
  .versus { grid-template-columns: 1fr; }
  .download-box { padding: 44px 18px; border-radius: 22px; }
  footer .wrap { grid-template-columns: 1fr; }
  .btn-lg { height: 50px; padding: 0 22px; }
}
