/* Web22 design tokens — Stripe/Linear-inspired, technical, light */
:root {
  /* Surfaces */
  --bg: #fafaf7;
  --bg-elev: #ffffff;
  --bg-soft: #f3f3ee;
  --bg-grid: #ececdf;
  --line: #e6e6dc;
  --line-strong: #d6d6c8;

  /* Ink */
  --ink: #0e0f0c;
  --ink-2: #2a2c27;
  --ink-3: #5a5d54;
  --ink-4: #8b8e83;
  --ink-5: #b4b6ab;

  /* Accents — single ink-blue for tech feel */
  --accent: #1e3aff;            /* electric ink */
  --accent-ink: #0b1a99;
  --accent-soft: #e7ebff;
  --signal: #16a34a;            /* success / live */
  --warn: #d97706;
  --danger: #dc2626;

  /* Type */
  --font-sans: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Radii */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-1: 0 1px 0 rgba(14,15,12,.04), 0 1px 2px rgba(14,15,12,.04);
  --shadow-2: 0 1px 0 rgba(14,15,12,.04), 0 8px 24px -8px rgba(14,15,12,.10);
  --shadow-3: 0 1px 0 rgba(14,15,12,.04), 0 24px 60px -20px rgba(14,15,12,.18);

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 3vw, 40px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

/* Type system */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  display: inline-block;
  border-radius: 1px;
}

.h-display {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.02;
  color: var(--ink);
}
.h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.028em;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
}
.h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.022em;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
}
.h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.012em;
  font-size: 20px;
  line-height: 1.25;
}
.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 60ch;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.row { display: flex; }
.col { display: flex; flex-direction: column; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--bg-soft); box-shadow: none; }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-ink); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 6px; }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }

.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-4);
}
.chip.live .dot { background: var(--signal); box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.chip.accent { color: var(--accent-ink); background: var(--accent-soft); border-color: rgba(30,58,255,.18); }
.chip.accent .dot { background: var(--accent); }

/* Cards */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}

/* Mono numerals */
.num {
  font-family: var(--font-mono);
  font-feature-settings: "tnum", "zero";
  letter-spacing: -0.01em;
}

/* Grid background util */
.grid-bg {
  background-image:
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}
.dot-bg {
  background-image: radial-gradient(var(--bg-grid) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Section */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

.divider { height: 1px; background: var(--line); width: 100%; }

/* Tag */
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-elev);
  color: var(--ink-3);
}

/* Link arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.link-arrow:hover { color: var(--accent-ink); border-color: var(--accent); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Reveal on load */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .6s ease both; }
.rise.d1 { animation-delay: .05s; }
.rise.d2 { animation-delay: .12s; }
.rise.d3 { animation-delay: .2s; }
.rise.d4 { animation-delay: .28s; }
.rise.d5 { animation-delay: .36s; }

/* Marquee */
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
