/* === SIONIC design tokens === */
:root {
  --bg: #fafaf8;
  --bg-warm: #f5f4ef;
  --surface: #ffffff;
  --ink: #0c0c0a;
  --ink-2: #1f1d18;
  --muted: #6b6760;
  --muted-2: #8a8579;
  --line: #e8e5dd;
  --line-2: #d8d4c8;
  --accent: #c6f24a;         /* lime — bright, energetic */
  --accent-deep: #84cc16;
  --accent-soft: #eaf9b3;
  --dark: #0d0e0a;
  --dark-2: #16170f;
  --warn: #d97706;
  --shadow-sm: 0 1px 0 rgba(12,12,10,.04), 0 1px 2px rgba(12,12,10,.04);
  --shadow-md: 0 6px 24px -8px rgba(12,12,10,.08), 0 2px 6px -2px rgba(12,12,10,.04);
  --shadow-lg: 0 24px 64px -24px rgba(12,12,10,.18), 0 8px 24px -8px rgba(12,12,10,.08);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Manrope", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* === Layout === */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 1100px) {
  .container { padding: 0 20px; }
}
@media (max-width: 720px) {
  .container { padding: 0 14px; }
}
.section {
  padding: 120px 0;
  position: relative;
}
.section--tight { padding: 80px 0; }
.section--first { padding-top: 32px; }

/* === Typography === */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent-deep);
  border-radius: 50%;
  display: inline-block;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(48px, 6.4vw, 96px);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.02;
  font-size: clamp(36px, 4.2vw, 60px);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h-card {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: 22px;
  margin: 0;
}
.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
  max-width: 56ch;
}
.tag-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent-deep);
}
.btn--accent:hover { background: #d6ff5b; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }

.btn .arrow {
  width: 16px; height: 16px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.btn:hover .arrow { transform: translateX(3px); }

/* === Cards === */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}
.card--dark {
  background: var(--dark);
  color: #efece2;
  border-color: rgba(255,255,255,.06);
}

/* === Chips === */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.chip--accent {
  background: var(--accent-soft);
  border-color: rgba(132,204,22,.35);
  color: #4d6b08;
}

/* === Reveal animations === */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }

/* === Marquee === */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee { overflow: hidden; }
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 42s linear infinite;
}

/* === Grid bg pattern === */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(12,12,10,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12,12,10,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.dot-bg {
  background-image: radial-gradient(rgba(12,12,10,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* === Custom selection === */
::selection { background: var(--accent); color: var(--ink); }

/* === Accordion chevron === */
details[open] .acc-chev { transform: rotate(180deg); }
details > summary::-webkit-details-marker { display: none; }
details > summary { user-select: none; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* Tiny pulse */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,.16);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
