/* Landing page: tokens, reset, typography, buttons, nav, footer */
:root {
  --brand: #e8590c;
  --brand-2: #f59f00;
  --brand-ring: color-mix(in srgb, var(--brand) 25%, transparent);
  --bg: #fbfaf8;
  --bg-alt: #f3f0eb;
  --card: #ffffff;
  --ink: #17181c;
  --ink-2: #4a4e57;
  --muted: #747985;
  --line: #e7e3dc;
  --shadow: 0 1px 2px rgb(20 20 30 / 6%), 0 12px 32px -8px rgb(20 20 30 / 18%);
  --shadow-lg: 0 2px 6px rgb(20 20 30 / 8%), 0 40px 80px -20px rgb(20 20 30 / 35%);
  --band: #14161b;
  --radius: 18px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0f1115;
  --bg-alt: #161920;
  --card: #1b1f27;
  --ink: #f2f3f5;
  --ink-2: #c3c7d0;
  --muted: #8e94a1;
  --line: #2a2f3a;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -8px rgb(0 0 0 / 60%);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 40%), 0 40px 80px -20px rgb(0 0 0 / 80%);
  --band: #090a0d;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f1115; --bg-alt: #161920; --card: #1b1f27; --ink: #f2f3f5; --ink-2: #c3c7d0; --muted: #8e94a1; --line: #2a2f3a;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -8px rgb(0 0 0 / 60%);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 40%), 0 40px 80px -20px rgb(0 0 0 / 80%);
    --band: #090a0d;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-alt); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 11px 20px; font-weight: 650; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; cursor: pointer; font-size: 15px; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .icon-btn:focus-visible, .tabs button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.btn.primary { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, var(--brand-2))); color: #fff; box-shadow: 0 8px 24px -8px var(--brand); }
.btn.ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn.ghost.on-dark { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 20%); color: #fff; }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn.lg { padding: 14px 26px; font-size: 16px; }

.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -0.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 18px; box-shadow: 0 6px 16px -6px var(--brand); }
.nav-links { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav-links a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 550; }
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-moon { display: none; }
:root[data-theme='dark'] .i-sun { display: none; }
:root[data-theme='dark'] .i-moon { display: block; }
.menu-btn { display: none; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.foot-in > a:last-child { color: var(--brand); font-weight: 650; text-decoration: none; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
}
@media (max-width: 520px) {
  .nav-in { gap: 10px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; font-size: 16px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn.sm { padding: 7px 11px; font-size: 13px; }
  .icon-btn { width: 36px; height: 36px; }
}
