/* ===== Track Start — shared design tokens ===== */
:root {
  /* Color tokens — warm cream / near-black, violet accent */
  --bg: #fbfaf6;
  --bg-2: #f3f1ea;
  --bg-3: #ecead9;
  --surface: #ffffff;
  --ink: #14130f;
  --ink-2: #2b2a26;
  --muted: #6b6862;
  --muted-2: #98948a;
  --line: rgba(20, 19, 15, 0.08);
  --line-strong: rgba(20, 19, 15, 0.16);
  --accent: #8b5cf6;
  --accent-ink: #5b21b6;
  --accent-soft: #ede9ff;
  --accent-2: #c4b5fd;
  --warn: #f59e0b;
  --ok: #10b981;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20,19,15,0.05), 0 1px 0 rgba(20,19,15,0.02);
  --shadow: 0 1px 2px rgba(20,19,15,0.04), 0 8px 24px -10px rgba(20,19,15,0.10);
  --shadow-lg: 0 4px 12px rgba(20,19,15,0.06), 0 24px 60px -20px rgba(20,19,15,0.18);

  --container: 1200px;
  --gutter: 28px;

  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* Subtle paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(20,19,15,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.6;
  mix-blend-mode: multiply;
}
main, header, footer { position: relative; z-index: 1; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 96px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 22px; line-height: 1.2; }
p { color: var(--ink-2); line-height: 1.55; margin: 0; }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); background: #000; box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { transform: translateY(-1px); border-color: var(--ink); }
.btn-ghost { color: var(--ink); padding: 0 14px; }
.btn-ghost:hover { background: var(--bg-2); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-hover-lift:hover { transform: translateY(-3px); }

/* Chips & badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  letter-spacing: 0.02em;
}
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }

/* Inputs */
.input, .textarea, .select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit; color: var(--ink);
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}
.textarea { resize: vertical; min-height: 96px; }
label.field-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-family: var(--font-mono); letter-spacing: 0.03em; text-transform: uppercase; }

/* Divider line */
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Utility */
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, 0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 14px; color: var(--ink-2);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-link:hover { background: var(--bg-2); color: var(--ink); }
.nav-link.active { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.01em; }
.brand-name { font-size: 16px; }
.brand-name em { font-style: normal; color: var(--accent-ink); }

/* Lang switcher — single pill + dropdown */
.lang-switch { position: relative; }
.lang-switch-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  transition: border-color .15s var(--ease);
}
.lang-switch-btn:hover { border-color: var(--ink); }
.lang-switch-btn .globe { width: 14px; height: 14px; color: var(--muted); }
.lang-switch-btn .caret { width: 10px; height: 10px; color: var(--muted); transition: transform .2s var(--ease); }
.lang-switch.open .lang-switch-btn .caret { transform: rotate(180deg); }
.lang-switch-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 200px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; gap: 2px;
  z-index: 60;
}
.lang-switch.open .lang-switch-menu { display: flex; }
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink); text-align: left;
  transition: background .12s var(--ease);
}
.lang-opt:hover { background: var(--bg-2); }
.lang-opt .flag {
  width: 22px; height: 16px; border-radius: 3px; flex-shrink: 0;
  background: var(--bg-2); display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-family: var(--font-mono); color: var(--muted);
  overflow: hidden;
}
.lang-opt .name { flex: 1; }
.lang-opt .sub { font-size: 11.5px; font-family: var(--font-mono); color: var(--muted); }
.lang-opt.active { background: var(--accent-soft); color: var(--accent-ink); }
.lang-opt.active .sub { color: var(--accent-ink); opacity: 0.7; }
.lang-opt.disabled { opacity: 0.5; cursor: not-allowed; }
.lang-opt .check { width: 14px; height: 14px; color: var(--accent-ink); opacity: 0; }
.lang-opt.active .check { opacity: 1; }

/* ===== Footer ===== */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--line); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-col h4 { font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer-col a { display: block; padding: 4px 0; color: var(--ink-2); font-size: 14px; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-family: var(--font-mono); }

/* Mobile */
@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
}
