/* ═══════════════════════════════════════════════════════════
   BeyondMaddy — design system
   Palette: night sky + sunrise horizon (ember → sun → sky)
   ═══════════════════════════════════════════════════════════ */

@font-face { font-family: 'Bricolage'; src: url(/fonts/bricolage.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(/fonts/instrument-serif-italic.woff2) format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --bg: #08080b;
  --bg-2: #0d0d12;
  --card: #101016;
  --card-2: #15151d;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f5f3ef;
  --muted: #a6a4ae;
  --dim: #6f6d79;
  --ember: #ff6a3d;
  --sun: #ffb547;
  --cream: #ffd9a8;
  --sky: #8be9ff;
  --ok: #4ade80;
  --g1: var(--ember);
  --g2: var(--sun);
  --b1: #ff7a45;
  --b2: #ffc061;
  --display: 'Bricolage', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* ─── reset ─── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::after { /* film grain */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
img { height: auto; } /* keep aspect ratio when width/height attributes are set */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--ember); color: #160803; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.82em; letter-spacing: -0.01em; }
.i { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 200; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ─── type ─── */
h1, h2, h3 { font-family: var(--display); font-weight: 680; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 em, h2 em, .wordmark em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: 0.06em;
  background: linear-gradient(95deg, var(--g1), var(--g2) 70%, var(--cream));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--g2);
}
.kicker::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.65; max-width: 62ch; text-wrap: pretty; }

/* ─── buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 550 15px/1 var(--body);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, filter 0.25s;
}
.btn-sm { height: 38px; padding: 0 15px; font-size: 14px; gap: 7px; }
.btn-sm .i { width: 16px; height: 16px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-accent {
  color: #160a03;
  background: linear-gradient(135deg, var(--b1), var(--b2));
  box-shadow: 0 10px 34px -10px color-mix(in oklab, var(--b1) 75%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.07) saturate(1.05); }
.btn-accent.is-pending {
  color: var(--text);
  background: color-mix(in oklab, var(--b1) 12%, transparent);
  border: 1px dashed color-mix(in oklab, var(--b1) 55%, transparent);
  box-shadow: none;
  cursor: default;
}
.btn-accent.is-pending:hover { transform: none; filter: none; }
.btn-accent.is-pending .i { color: var(--b1); }
.btn-coffee {
  color: #2a1700;
  font-weight: 650;
  background: linear-gradient(135deg, #ffe58a, #ffb31f);
  box-shadow: 0 10px 30px -10px rgba(255, 179, 31, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-coffee:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-coffee .i { stroke-width: 2; }
.coffee-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 20px;
  padding: 22px 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 196, 77, 0.22);
  background: linear-gradient(100deg, rgba(255, 196, 77, 0.09), rgba(255, 196, 77, 0.02) 60%), var(--card);
}
.coffee-card > div { flex: 1 1 300px; }
.coffee-card h3 { font-size: 20px; letter-spacing: -0.02em; }
.coffee-card p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.coffee-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; color: #ffc44d; background: rgba(255, 196, 77, 0.12); border: 1px solid rgba(255, 196, 77, 0.28); }
.coffee-ic .i { width: 22px; height: 22px; }
@media (max-width: 520px) { .coffee-card .btn-coffee { width: 100%; } }
.btn-light { background: var(--text); color: #0b0b0f; }
.btn-light:hover { transform: translateY(-2px); background: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.035); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.075); border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost .i:last-child { transition: transform 0.25s var(--ease); }
.btn-ghost:hover .i:last-child { transform: translateX(2px); }

/* ─── pills ─── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border-radius: 99px;
  font: 550 12px/1 var(--body);
  border: 1px solid;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-live { color: var(--ok); background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.25); }
.pill-live i { box-shadow: 0 0 0 0 currentColor; animation: ping 2.2s infinite; }
.pill-review { color: var(--sun); background: rgba(255, 181, 71, 0.08); border-color: rgba(255, 181, 71, 0.28); }
.pill-soon { color: var(--muted); background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }

/* ─── nav ─── */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled, .nav.open { background: rgba(8, 8, 11, 0.74); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-color: var(--line); }
.nav-in { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.mark { width: 32px; height: 32px; }
.wordmark { font: 700 19px/1 var(--display); letter-spacing: -0.03em; }
.wordmark em { font-size: 1.12em; }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
.menu-btn .i-close { display: none; }
.nav.open .menu-btn .i-close { display: block; }
.nav.open .menu-btn .i-open { display: none; }

@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    inset: 70px 0 auto;
    height: calc(100dvh - 70px);
    flex-direction: column;
    gap: 6px;
    padding: 28px var(--gutter);
    background: rgba(8, 8, 11, 0.97);
    font: 600 30px/1.2 var(--display);
    letter-spacing: -0.03em;
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none; }
}
@media (max-width: 420px) { .nav-cta .btn-light { display: none; } }

/* ─── hero ─── */
.hero { position: relative; padding: clamp(120px, 16vh, 168px) 0 0; overflow: clip; text-align: center; }
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.stars {
  position: absolute;
  inset: 0 0 30%;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, #ffe6c4 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 14%, #cfefff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 46%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 50%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 20% 80%, #fff 50%, transparent 51%);
  background-size: 640px 520px;
  mask-image: linear-gradient(#000 30%, transparent);
  -webkit-mask-image: linear-gradient(#000 30%, transparent);
  animation: drift 120s linear infinite;
}
@keyframes drift { to { background-position: 640px 0; } }
.hero-in { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13.5px;
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s;
}
.eyebrow:hover { border-color: rgba(255, 181, 71, 0.45); color: var(--text); }
.eyebrow > i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2.2s infinite; }
.eyebrow .i { width: 14px; height: 14px; }
.hero h1 {
  margin: 26px auto 0;
  font-size: clamp(46px, 8.6vw, 112px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.96;
}
.hero h1 em { letter-spacing: -0.02em; }
.hero-sub { margin: 26px auto 0; max-width: 640px; color: var(--muted); font-size: clamp(16.5px, 1.8vw, 19.5px); line-height: 1.6; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 28px; font-size: 14px; color: var(--dim); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .i { width: 16px; height: 16px; color: var(--sun); opacity: 0.85; }

/* horizon behind the demo */
.hero-demo { position: relative; margin-top: clamp(56px, 8vw, 88px); padding-bottom: clamp(70px, 9vw, 120px); }
.horizon-wrap { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute;
  left: 50%;
  top: 22%;
  width: min(1100px, 150vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 150, 80, 0.42) 0%, rgba(255, 106, 61, 0.16) 30%, rgba(255, 106, 61, 0.05) 48%, transparent 66%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.78; transform: translate(-50%, -50%) scale(1.04); } }
.horizon {
  position: absolute;
  left: 50%;
  top: 24%;
  width: max(2600px, 260vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 222, 180, 0.75),
    inset 0 18px 60px -30px rgba(255, 150, 80, 0.4),
    0 -1px 22px rgba(255, 170, 100, 0.5),
    0 -30px 120px rgba(255, 106, 61, 0.28);
}

/* ─── demo (animated product mock) ─── */
.demo {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  margin: 0 auto;
  text-align: left;
  border-radius: 20px;
  background: linear-gradient(180deg, #13131a, #0c0c11);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 140px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.02), 0 -20px 80px -40px rgba(255, 140, 70, 0.5);
}
.demo-bar { height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.demo-url {
  flex: 1;
  max-width: 380px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  font: 12px var(--mono);
  color: var(--dim);
}
.demo-url .i { width: 12px; height: 12px; }
.demo-ext { color: var(--sun); }
.demo-ext .i { width: 18px; height: 18px; }
.demo-body { display: grid; grid-template-columns: 1fr 350px; }
.demo-canvas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; align-content: space-between; }
.dc-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; font: 600 13.5px var(--display); letter-spacing: -0.01em; }
.dc-head .mono { color: var(--dim); font-weight: 400; font-size: 11px; }
.dc-prompt { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; margin-top: 6px; padding: 0 6px 0 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); color: var(--muted); }
.dc-prompt .mono { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-go { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, var(--b1), var(--b2)); color: #160a03; }
.dc-go .i { width: 15px; height: 15px; }
.tile {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  transition: border-color 0.4s;
}
.tile-art {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
  background: linear-gradient(170deg, var(--t1), var(--t2) 60%, var(--t3));
}
.tile-sun { position: absolute; width: 26%; aspect-ratio: 1; border-radius: 50%; left: var(--sx, 60%); top: var(--sy, 26%); background: var(--ts); filter: blur(0.5px); box-shadow: 0 0 24px var(--ts); }
.tile-hill { position: absolute; left: -10%; right: -10%; bottom: -38%; height: 70%; border-radius: 50%; background: var(--th); }
.a1 { --t1: #ffb27a; --t2: #ff6f7d; --t3: #3d2a6e; --ts: #fff1c9; --th: #1d3b6b; --sx: 58%; --sy: 30%; }
.a2 { --t1: #8af0d8; --t2: #239a86; --t3: #0d2e2b; --ts: #ffe9a8; --th: #10443a; --sx: 18%; --sy: 18%; }
.a3 { --t1: #d6e2ea; --t2: #6f8f8e; --t3: #1d2e2b; --ts: #fff4dc; --th: #22382f; --sx: 44%; --sy: 40%; }
.a4 { --t1: #7aa6ff; --t2: #2c3e72; --t3: #0e1426; --ts: #cfe0ff; --th: #0b1530; --sx: 70%; --sy: 16%; }
.a5 { --t1: #f3c58f; --t2: #8a5530; --t3: #2a160c; --ts: #fff0d6; --th: #3a1f10; --sx: 30%; --sy: 34%; }
.a6 { --t1: #ffd577; --t2: #e8643c; --t3: #5a2350; --ts: #fff7d6; --th: #6b2a2a; --sx: 64%; --sy: 22%; }
.tile-shimmer {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 181, 71, 0.14) 45%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.tile-pct { position: absolute; left: 10px; bottom: 8px; color: var(--sun); opacity: 0; font-size: 11px; }
.tile-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: 0.5s var(--ease) 0.2s;
}
.tile-play .i { width: 12px; height: 12px; fill: currentColor; }
.tile-dur { position: absolute; right: 8px; bottom: 7px; font-size: 10px; padding: 2px 6px; border-radius: 5px; background: rgba(0, 0, 0, 0.45); color: #fff; opacity: 0; transition: opacity 0.4s 0.3s; }
.tile[data-state='gen'] { border-color: rgba(255, 181, 71, 0.4); border-style: solid; }
.tile[data-state='gen'] .tile-shimmer, .tile[data-state='gen'] .tile-pct { opacity: 1; }
.tile[data-state='done'] { border-color: transparent; border-style: solid; }
.tile[data-state='done'] .tile-art { opacity: 1; transform: none; }
.tile[data-state='done'] .tile-play { opacity: 1; transform: none; }
.tile[data-state='done'] .tile-dur { opacity: 1; }

.demo-panel { border-left: 1px solid var(--line); padding: 18px; background: rgba(255, 255, 255, 0.012); border-radius: 0 0 20px 0; }
.dp-head { display: flex; align-items: center; justify-content: space-between; }
.dp-title { display: inline-flex; align-items: center; gap: 8px; font: 650 14.5px/1 var(--display); letter-spacing: -0.01em; }
.dp-title .i { width: 16px; height: 16px; color: var(--sun); }
.dp-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; border: 1px solid rgba(255, 181, 71, 0.3); color: var(--sun); font-size: 11px; }
.dp-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.dp-state.is-done { color: var(--ok); border-color: rgba(74, 222, 128, 0.3); }
.dp-state.is-done i { animation: none; }
@keyframes blink { 50% { opacity: 0.25; } }
.dp-progress { height: 4px; margin-top: 16px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.dp-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ember), var(--sun)); transition: width 0.5s var(--ease); }
.dp-count { margin-top: 9px; color: var(--dim); font-size: 11px; }
.dp-list { margin-top: 12px; display: grid; gap: 2px; }
.dp-list li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  column-gap: 8px;
  padding: 8px 8px;
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--muted);
  transition: background 0.3s;
}
.dp-n { color: var(--dim); font-size: 10.5px; }
.dp-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-chip { font-size: 10.5px; color: var(--dim); }
.dp-file { grid-column: 2 / -1; display: none; align-items: center; gap: 5px; margin-top: 4px; font-size: 10.5px; color: var(--sky); white-space: nowrap; overflow: hidden; }
.dp-file .i { width: 11px; height: 11px; }
.dp-list li[data-state='gen'] { background: rgba(255, 181, 71, 0.06); color: var(--text); }
.dp-list li[data-state='gen'] .dp-chip { color: var(--sun); }
.dp-list li[data-state='done'] .dp-chip { color: var(--ok); }
.dp-list li[data-state='done'] .dp-file { display: flex; animation: fadeUp 0.5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } }

.demo-toasts { position: absolute; right: -18px; bottom: 26px; display: grid; gap: 8px; z-index: 3; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 13px;
  background: rgba(22, 22, 30, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  font-size: 12.5px;
  animation: toastIn 0.5s var(--ease) both;
}
.toast.out { animation: toastOut 0.4s var(--ease) forwards; }
.toast b { display: block; font-weight: 600; font-size: 12px; }
.toast span { display: block; color: var(--dim); font: 11px var(--mono); }
.toast-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(74, 222, 128, 0.12); color: var(--ok); }
.toast-ic .i { width: 15px; height: 15px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px) scale(0.96); } }

@media (max-width: 860px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-panel { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; }
  .demo-canvas { padding: 14px; gap: 8px; }
  .demo-toasts { right: 10px; bottom: auto; top: 54px; }
  .dp-list li:nth-child(n + 5) { display: none; }
}
@media (max-width: 520px) {
  .demo-url { font-size: 11px; }
  .dots { display: none; }
  .tile-dur { display: none; }
}

/* ─── stats band ─── */
.band { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent); }
.band-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  font: 700 clamp(40px, 5vw, 60px)/1 var(--display);
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff, #a9a7b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.45; max-width: 22ch; }
@media (max-width: 760px) {
  .band-in { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 18px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ─── sections ─── */
.section { position: relative; padding-block: clamp(72px, 8.5vw, 116px); }
.section[style], .xhero { --g1: var(--a1); --g2: var(--a2); --b1: var(--a1); --b2: var(--a2); }
.section[style] .kicker, .xhero .kicker { color: var(--a1); }
.s-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.s-head h2 { margin-top: 18px; font-size: clamp(36px, 5vw, 64px); }
.s-head .lede { margin-top: 18px; }

/* ─── extension cards ─── */
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); gap: 20px; }
.xcard {
  --b1: var(--a1, var(--ember));
  --b2: var(--a2, var(--sun));
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.xcard:hover {
  transform: translateY(-5px);
  border-color: color-mix(in oklab, var(--a1) 40%, var(--line));
  box-shadow: 0 30px 80px -40px color-mix(in oklab, var(--a1) 60%, transparent);
}
.xcard-visual { position: relative; height: 230px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #0b0b10; }
.xcard-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 15% 0%, color-mix(in oklab, var(--a1) 50%, transparent), transparent 62%),
    radial-gradient(60% 90% at 100% 100%, color-mix(in oklab, var(--a2) 45%, transparent), transparent 62%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, rgba(0, 0, 0, 0.55) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, rgba(0, 0, 0, 0.55) 80%);
  transition: transform 1.2s var(--ease);
}
.xcard:hover .xcard-mesh { transform: scale(1.06); }
.xcard-icon {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  box-shadow: 0 20px 50px -10px color-mix(in oklab, var(--a1) 70%, transparent), 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-7px); } }
.xcard-chips li {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: float 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.7s);
}
.xcard-chips .i { width: 13px; height: 13px; color: var(--a1); }
.xcard-chips li:nth-child(1) { top: 18px; left: 18px; }
.xcard-chips li:nth-child(2) { top: 30px; right: 18px; }
.xcard-chips li:nth-child(3) { bottom: 30px; left: 22px; }
.xcard-chips li:nth-child(4) { bottom: 16px; right: 20px; }
.xcard-body { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px 26px 26px; flex: 1; }
.xcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--dim); }
.xcard h3 { font-size: 28px; }
.xcard h3 a::after { content: ''; position: absolute; inset: 0; z-index: 0; } /* whole-card link */
.xcard-body > p { color: var(--muted); font-size: 15.5px; }
.ticks { display: grid; gap: 8px; }
.ticks li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--muted); }
.ticks .i { width: 16px; height: 16px; margin-top: 3px; color: var(--a1); }
.xcard-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
@media (max-width: 520px) {
  .xcard-chips li:nth-child(2), .xcard-chips li:nth-child(4) { display: none; }
  .hero h1 br { display: none; }
  .eyebrow .more { display: none; }
}

.xcard-soon { background: transparent; border: 1px dashed var(--line-2); }
.xcard-soon:hover { border-color: rgba(255, 181, 71, 0.4); box-shadow: none; }
.soon-in { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; height: 100%; min-height: 340px; padding: 32px; }
.soon-plus { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; border: 1px dashed var(--line-2); color: var(--sun); margin-bottom: 10px; }
.soon-plus .i { width: 22px; height: 22px; }
.xcard-soon h3 { font-size: 26px; }
.xcard-soon p:not(.kicker) { color: var(--muted); font-size: 15px; max-width: 34ch; }

/* spotlight hover */
[data-spot]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.055), transparent 45%);
}
[data-spot]:hover::before { opacity: 1; }

/* ─── how it works ─── */
.how { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015) 30%, transparent); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.step-n { color: var(--sun); font-size: 12.5px; }
.step h3 { font-size: 23px; margin-top: 22px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.step-vis { position: relative; height: 128px; margin-top: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.vis-paste { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 22px; }
.vis-paste span { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); transform-origin: left; animation: type 4.5s var(--ease) infinite; }
.vis-paste span:nth-child(1) { width: 82%; }
.vis-paste span:nth-child(2) { width: 64%; animation-delay: 0.35s; }
.vis-paste span:nth-child(3) { width: 90%; animation-delay: 0.7s; }
.vis-paste span:nth-child(4) { width: 48%; animation-delay: 1.05s; }
.vis-paste .caret { position: absolute; right: 22px; bottom: 18px; width: 2px; height: 16px; background: var(--sun); animation: blink 1s steps(1) infinite; }
@keyframes type { 0% { transform: scaleX(0); } 25%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.vis-run { display: grid; place-items: center; }
.run { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 12px; font: 600 14px var(--body); color: #160a03; background: linear-gradient(135deg, var(--b1), var(--b2)); }
.run .i { width: 14px; height: 14px; fill: currentColor; }
.run::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--sun); animation: ring 2s var(--ease) infinite; }
@keyframes ring { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(1.35, 1.7); } }
.vis-files { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 0 16px; }
.vis-files span { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); font: 11.5px var(--mono); color: var(--muted); animation: slideIn 4.5s var(--ease) infinite both; }
.vis-files span:nth-child(2) { animation-delay: 0.4s; }
.vis-files span:nth-child(3) { animation-delay: 0.8s; }
.vis-files .i { width: 13px; height: 13px; color: var(--ok); }
@keyframes slideIn { 0% { opacity: 0; transform: translateX(-12px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ─── bento ─── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 20px; }
.b { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.b h3 { font-size: 22px; }
.b p { color: var(--muted); font-size: 15px; }
.b-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 10px; color: var(--g2); background: color-mix(in oklab, var(--g2) 12%, transparent); border: 1px solid color-mix(in oklab, var(--g2) 25%, transparent); }
.b-icon .i { width: 22px; height: 22px; }
.b-privacy { grid-column: span 2; grid-row: span 2; background: radial-gradient(90% 70% at 100% 0%, rgba(74, 222, 128, 0.09), transparent 60%), var(--card); }
.b-privacy h3 { font-size: clamp(28px, 3vw, 38px); }
.b-privacy p { font-size: 16.5px; max-width: 46ch; }
.b-privacy .b-icon { color: var(--ok); background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.25); }
.readout { display: grid; grid-template-columns: 1fr auto; margin-top: auto; padding-top: 22px; font-size: 12.5px; color: var(--muted); }
.readout span, .readout b { padding: 12px 0; border-top: 1px dashed var(--line-2); }
.readout span { display: flex; align-items: center; gap: 10px; }
.readout b { color: var(--ok); font-weight: 600; text-align: right; }
.readout .ok { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.b-free { grid-row: span 2; justify-content: flex-end; background: radial-gradient(100% 60% at 50% 0%, rgba(255, 106, 61, 0.18), transparent 70%), var(--card); }
.big-num {
  font: 700 clamp(84px, 10vw, 140px)/0.85 var(--display) !important;
  letter-spacing: -0.06em;
  margin-bottom: auto;
  padding-top: 6px;
  background: linear-gradient(180deg, var(--cream), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.b-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; flex-wrap: wrap; }
.b-wide .b-icon { margin: 0; }
.b-wide > div:nth-child(2) { flex: 1 1 320px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 340px; justify-content: flex-end; }
.langs li { padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; }
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .b-privacy { grid-column: 1 / -1; grid-row: auto; }
  .b-free { grid-row: auto; }
  .langs { justify-content: flex-start; }
}
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }

/* ─── roadmap ─── */
.road { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.road::before { content: ''; position: absolute; left: 9px; right: 0; top: 9px; height: 1px; background: linear-gradient(90deg, var(--ok), var(--sun) 25%, var(--line-2) 50%, transparent); }
.road li { position: relative; padding-top: 40px; }
.road-dot { position: absolute; top: 0; left: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line-2); }
.road-live .road-dot { border-color: var(--ok); background: radial-gradient(circle, var(--ok) 40%, var(--bg) 45%); animation: ping 2.2s infinite; }
.road-next .road-dot { border-color: var(--sun); background: radial-gradient(circle, var(--sun) 25%, var(--bg) 30%); }
.road-tag { display: block; color: var(--dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; }
.road-live .road-tag { color: var(--ok); }
.road-next .road-tag { color: var(--sun); }
.road b { display: block; margin-top: 8px; font: 650 clamp(18px, 1.8vw, 22px)/1.2 var(--display); letter-spacing: -0.025em; }
.road-planned b { color: var(--muted); }
@media (max-width: 860px) {
  .road { grid-template-columns: 1fr; gap: 0; }
  .road::before { left: 9px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--ok), var(--sun) 25%, var(--line-2) 60%, transparent); }
  .road li { padding: 0 0 30px 42px; }
}

/* ─── contact ─── */
.contact { padding-top: 0; }
.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 64px);
  border-radius: 34px;
  background: var(--card);
  border: 1px solid var(--line);
}
.contact-glow {
  position: absolute;
  inset: auto -10% 0 -10%;
  height: 90%;
  z-index: -1;
  background: radial-gradient(55% 70% at 50% 100%, rgba(255, 106, 61, 0.3), rgba(255, 181, 71, 0.1) 45%, transparent 75%);
}
.contact-card::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cream), transparent); opacity: 0.6; }
.contact-card h2 { margin-top: 20px; font-size: clamp(34px, 5.4vw, 68px); }
.contact-card .lede { margin: 20px auto 0; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.contact-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 34px; color: var(--dim); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); transition: 0.25s; }
.socials a:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.socials .i { width: 17px; height: 17px; }
@media (max-width: 520px) { .contact-actions .btn { width: 100%; } .contact-actions .btn span { overflow: hidden; text-overflow: ellipsis; } }

/* ─── footer ─── */
.footer { position: relative; border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand { max-width: 340px; }
.footer-brand p { margin: 18px 0 20px; color: var(--muted); font-size: 15px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 80px); }
.footer h3 { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 18px; }
.footer-cols ul { display: grid; gap: 11px; font-size: 14.5px; color: var(--muted); }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.fine { font-size: 12.5px; color: var(--dim); max-width: 70ch; }
.footer-word {
  font: italic 400 clamp(120px, 30vw, 420px)/1.05 var(--serif);
  letter-spacing: -0.04em;
  text-align: center;
  margin-top: -0.12em;
  padding: 0.2em 0.1em 0;
  margin-bottom: -0.28em;
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.16), rgba(255, 106, 61, 0.02) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* ─── extension page ─── */
.xhero { position: relative; padding: 118px 0 40px; overflow: clip; }
.xhero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 900px;
  height: 900px;
  pointer-events: none;
  background:
    radial-gradient(closest-side, color-mix(in oklab, var(--a1) 28%, transparent), transparent 70%) 0 0 / 70% 70% no-repeat,
    radial-gradient(closest-side, color-mix(in oklab, var(--a2) 22%, transparent), transparent 70%) 100% 60% / 70% 70% no-repeat;
  filter: blur(10px);
}
.crumbs { position: relative; display: flex; gap: 10px; color: var(--dim); font-size: 12.5px; }
.crumbs a:hover { color: var(--text); }
.xhero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; margin-top: 36px; }
.xhero-id { display: flex; align-items: center; gap: 16px; }
.xhero-id img { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 16px 40px -10px color-mix(in oklab, var(--a1) 70%, transparent), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.xhero-id p { margin-top: 6px; color: var(--dim); }
.xhero h1 { margin-top: 26px; font-size: clamp(46px, 6.4vw, 86px); letter-spacing: -0.05em; }
.xhero-tag { margin-top: 16px; font: 500 clamp(19px, 2vw, 24px)/1.35 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.xhero-sum { margin-top: 14px; color: var(--muted); font-size: 16.5px; max-width: 56ch; text-wrap: pretty; }
.xhero .hero-ctas { justify-content: flex-start; margin-top: 28px; }
.xmeta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 36px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.xmeta dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); }
.xmeta dd { margin-top: 5px; font-size: 14.5px; }
.xmeta a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.xh-shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 30px 80px -50px color-mix(in oklab, var(--a1) 80%, transparent); transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform 0.8s var(--ease); }
.xh-shot:hover { transform: none; }
.xh-brand { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 1 / 0.9; border-radius: 30px; background: #0b0b10; border: 1px solid var(--line-2); }
.xh-brand img { position: relative; width: 52%; filter: drop-shadow(0 30px 60px color-mix(in oklab, var(--a1) 45%, transparent)); animation: float 7s ease-in-out infinite; }
.xstats { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: clamp(56px, 7vw, 88px); border-block: 1px solid var(--line); }
.xstats div { padding: 26px 24px; border-left: 1px solid var(--line); }
.xstats div:first-child { border-left: 0; padding-left: 0; }
.xstats b { display: block; font: 700 clamp(36px, 4vw, 52px)/1 var(--display); letter-spacing: -0.05em; background: linear-gradient(95deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xstats span { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; }
@media (max-width: 920px) {
  .xhero-grid { grid-template-columns: 1fr; }
  .xh-shot { transform: none; }
  .xmeta { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 560px) {
  .xstats { grid-template-columns: 1fr 1fr; }
  .xstats div { padding: 20px 0; border-left: 0; }
  .xstats div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 18px; }
  .xstats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 16px; }
.mcard { position: relative; isolation: isolate; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: border-color 0.35s, transform 0.35s var(--ease); }
.mcard:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--a1) 35%, var(--line)); }
.m-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--a1); background: color-mix(in oklab, var(--a1) 13%, transparent); border: 1px solid color-mix(in oklab, var(--a1) 28%, transparent); }
.m-icon .i { width: 21px; height: 21px; }
.mcard h3 { margin-top: 18px; font-size: 20px; letter-spacing: -0.025em; }
.mcard p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

.gallery-sec .s-head { margin-bottom: 36px; }
.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))) 20px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.gallery figure { flex: 0 0 min(84vw, 780px); scroll-snap-align: start; }
.gallery img { border-radius: 16px; border: 1px solid var(--line-2); }
.gallery figcaption { margin-top: 12px; font: 12.5px var(--mono); color: var(--dim); }

.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
.fitem { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.f-icon { color: var(--a1); padding-top: 2px; }
.f-icon .i { width: 22px; height: 22px; }
.fitem h3 { font-size: 19px; letter-spacing: -0.02em; }
.fitem p { margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.usesteps { display: grid; gap: 0; }
.usesteps li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.usesteps .mono { color: var(--a1); font-size: 13px; padding-top: 3px; }
.usesteps p { font-size: 16.5px; }
.changelog { position: sticky; top: 100px; padding: 30px; border-radius: 24px; background: linear-gradient(160deg, color-mix(in oklab, var(--a1) 10%, var(--card)), var(--card) 60%); border: 1px solid var(--line); }
.changelog ul { display: grid; gap: 14px; margin-top: 20px; }
.changelog li { display: flex; gap: 12px; font-size: 15px; color: var(--muted); }
.changelog .i { width: 17px; height: 17px; margin-top: 3px; color: var(--a1); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .changelog { position: static; } }

.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 550 17.5px/1.35 var(--display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--a1); transition: transform 0.3s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .s-head { margin-bottom: 8px; } }

.privacy-cta { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 28px; padding: clamp(26px, 4vw, 40px); border-radius: 26px; background: radial-gradient(80% 140% at 0% 0%, rgba(74, 222, 128, 0.08), transparent 60%), var(--card); border: 1px solid var(--line); }
.privacy-cta .b-icon { margin: 0; color: var(--ok); background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.25); }
.privacy-cta > div { flex: 1 1 320px; }
.privacy-cta h2 { font-size: clamp(24px, 2.6vw, 32px); }
.privacy-cta p { margin-top: 6px; color: var(--muted); }

/* ─── legal ─── */
.legal { padding: 120px 0 100px; }
.legal-in { max-width: 780px; }
.legal .kicker { margin-top: 36px; }
.legal h1 { margin-top: 16px; font-size: clamp(38px, 5vw, 60px); }
.legal-date { margin-top: 14px; color: var(--dim); }
.prose { margin-top: 40px; }
.prose h2 { margin: 44px 0 12px; font-size: 23px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose p + p { margin-top: 12px; }
.prose ul { display: grid; gap: 8px; margin-top: 12px; }
.prose ul li { padding-left: 18px; position: relative; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; }
.prose .fine { margin-top: 40px; }
.prose h2 { display: flex; align-items: baseline; gap: 14px; scroll-margin-top: 96px; }
.prose h2 .mono { font-size: 13px; color: var(--sun); letter-spacing: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font: 0.86em var(--mono); padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--cream); word-break: break-word; }
.legal-summary { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 32px; padding: 20px 22px; border-radius: 18px; background: rgba(74, 222, 128, 0.06); border: 1px solid rgba(74, 222, 128, 0.22); }
.legal-summary .i { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--ok); }
.legal-summary p { color: var(--text) !important; }
.legal-summary strong { color: var(--ok); }
.perm { margin-top: 12px; }
.perm div { display: grid; grid-template-columns: 210px 1fr; gap: 6px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.perm dt { color: var(--sun); }
.perm dd { color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .perm div { grid-template-columns: 1fr; } }

/* ─── contact page ─── */
.chero { position: relative; padding: 120px 0 20px; overflow: clip; }
.chero-glow { position: absolute; left: 50%; top: -380px; width: 1100px; height: 760px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(closest-side, rgba(255, 140, 70, 0.2), rgba(255, 106, 61, 0.06) 55%, transparent 75%); }
.chero-in { position: relative; }
.chero .kicker { margin-top: 36px; }
.chero h1 { margin-top: 16px; font-size: clamp(54px, 9vw, 120px); letter-spacing: -0.055em; }
.chero .lede { margin-top: 20px; }
.email-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 40px;
  padding: 22px 24px;
  border-radius: 26px;
  background: linear-gradient(110deg, rgba(255, 140, 70, 0.1), transparent 55%), var(--card);
  border: 1px solid var(--line-2);
}
.email-hero-ic { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 17px; color: var(--sun); background: rgba(255, 181, 71, 0.12); border: 1px solid rgba(255, 181, 71, 0.3); }
.email-hero-ic .i { width: 26px; height: 26px; }
.email-hero-txt { flex: 1 1 260px; min-width: 0; }
.email-hero-txt .mono { display: block; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }
.email-hero-txt a { display: block; margin-top: 4px; font: 650 clamp(22px, 3.2vw, 34px)/1.15 var(--display); letter-spacing: -0.03em; overflow-wrap: anywhere; transition: color 0.2s; }
.email-hero-txt a:hover { color: var(--cream); }
.email-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.chero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; font-size: 14px; color: var(--dim); }
.chero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.chero-meta .i { width: 16px; height: 16px; color: var(--sun); }
@media (max-width: 560px) { .email-hero-actions, .email-hero-actions .btn { width: 100%; } .email-hero-actions .btn { flex: 1; } }

.csec { padding-block: clamp(56px, 7vw, 96px); }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 16px; }
.topic { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: transform 0.35s var(--ease), border-color 0.35s; }
.topic:hover { transform: translateY(-3px); border-color: rgba(255, 181, 71, 0.3); }
.topic .b-icon { margin-bottom: 6px; }
.topic h3 { font-size: 21px; letter-spacing: -0.025em; }
.topic p { color: var(--muted); font-size: 14.5px; flex: 1; }
.topic .btn { margin-top: 8px; }

.cwrite { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.cform-card { padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.cform-card h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 44px); }
.cform-note { margin-top: 10px; color: var(--muted); font-size: 15px; }
.cform { display: grid; gap: 16px; margin-top: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13.5px; font-weight: 550; color: var(--text); }
.field > span i { font-style: normal; color: var(--dim); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font: 400 15px/1.5 var(--body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6a4ae' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.field select option { background: #15151c; color: var(--text); }
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(255, 181, 71, 0.6); box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.12); }
.field-error { color: #ff8a7a; font-size: 14px; }
.cform-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.cform-to { color: var(--dim); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .cform-actions .btn { width: 100%; } }

.ctips { display: grid; gap: 20px; }
.ctip-card { padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.ctip-card h3 { margin-top: 12px; font-size: 22px; }
.ctip-card ol { margin-top: 16px; display: grid; gap: 12px; counter-reset: t; }
.ctip-card ol li { position: relative; padding-left: 34px; color: var(--muted); font-size: 14.5px; counter-increment: t; }
.ctip-card ol li::before { content: counter(t); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; font: 600 11.5px var(--mono); color: var(--sun); background: rgba(255, 181, 71, 0.1); border: 1px solid rgba(255, 181, 71, 0.25); }
.ctip-card b { color: var(--text); font-weight: 600; }
.ctip-card code { font: 0.86em var(--mono); padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: var(--cream); }
.ctip-links ul { margin-top: 14px; display: grid; gap: 4px; }
.ctip-links a { display: flex; align-items: center; gap: 12px; padding: 10px; margin-inline: -10px; border-radius: 12px; transition: background 0.2s; }
.ctip-links a:hover { background: rgba(255, 255, 255, 0.04); }
.ctip-links img { width: 28px; height: 28px; border-radius: 8px; }
.ctip-links a > span:not(.ql-ic) { flex: 1; font-size: 15px; }
.ctip-links .ql-ic { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--ok); background: rgba(74, 222, 128, 0.1); }
.ctip-links .ql-ic .i { width: 15px; height: 15px; }
.ctip-links a > .i { width: 15px; height: 15px; color: var(--dim); }
.ctip-card .socials { margin-top: 14px; }
@media (max-width: 900px) { .cwrite { grid-template-columns: 1fr; } }

/* ─── 404 ─── */
.nf { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; overflow: clip; }
.nf .sun { top: 78%; }
.nf .horizon { top: 80%; }
.nf-in { position: relative; z-index: 2; padding-block: 120px 200px; }
.nf h1 { margin-top: 18px; font-size: clamp(42px, 7vw, 92px); }
.nf .lede { margin: 20px auto 0; }

/* ─── reveal on scroll ─── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .vis-paste span, .vis-files span { animation: none; }
}
