/* Veribreak — Tokens & global styles */
:root, [data-theme="light"] {
  /* Light theme (default) */
  --bg: #FAFAFA;
  --surface-1: #FFFFFF;
  --surface-2: #F5F5F7;
  --surface-3: #EEEEF1;
  --surface-deep: #F0F0F3;
  --border: #E5E5EA;
  --border-2: #D0D0D8;
  --text: #0A0A0B;
  --text-strong: #0A0A0B;
  --text-soft: #2A2A30;
  --muted: #5C5C66;
  --muted-2: #8A8A95;
  --code-bg: #F2F2F5;
  --code-text: #0A0A0B;

  --red: #E63946;
  --red-deep: #8A1F28;
  --red-glow: rgba(230, 57, 70, 0.16);
  --indigo-glow: rgba(80, 90, 180, 0.10);

  --shadow-1: 0 1px 0 rgba(0,0,0,0.02) inset, 0 6px 20px rgba(0,0,0,0.06);
  --shadow-red: 0 0 0 1px rgba(230,57,70,0.30), 0 6px 28px rgba(230,57,70,0.14);

  /* Hero canvas tokens */
  --canvas-stroke: #C5C5CD;
  --canvas-stroke-deep: #A0A0AB;
  --canvas-particle: 80,80,100;
  --canvas-v: #1F1F23;
  --canvas-bg-glow: rgba(120,130,200,0.06);
  --nav-scrolled-bg: rgba(255,255,255,0.78);
  --btn-ghost-bg: rgba(0,0,0,0.02);
  --btn-ghost-hover-bg: rgba(230,57,70,0.06);
  --slider-thumb-border: var(--surface-1);
  --chip-on-text: var(--red-deep);

  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --font-display: 'Geist', 'Inter', sans-serif;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --maxw: 1320px;
}

[data-theme="dark"] {
  --bg: #0A0A0B;
  --surface-1: #111114;
  --surface-2: #16161B;
  --surface-3: #1C1C24;
  --surface-deep: #07070A;
  --border: #22222A;
  --border-2: #2D2D38;
  --text: #F2F2F4;
  --text-strong: #FFFFFF;
  --text-soft: #C8C8D0;
  --muted: #9A9AA8;
  --muted-2: #6C6C7A;
  --code-bg: #0E0E12;
  --code-text: #C8C8D0;

  --red-glow: rgba(230, 57, 70, 0.18);
  --indigo-glow: rgba(14, 18, 48, 0.5);

  --shadow-1: 0 1px 0 rgba(255,255,255,0.03) inset, 0 6px 20px rgba(0,0,0,0.35);
  --shadow-red: 0 0 0 1px rgba(230,57,70,0.35), 0 6px 28px rgba(230,57,70,0.18);

  --canvas-stroke: #3a3a48;
  --canvas-stroke-deep: #2a2a35;
  --canvas-particle: 154,154,168;
  --canvas-v: #9A9AA8;
  --canvas-bg-glow: rgba(20,24,60,0.18);
  --nav-scrolled-bg: rgba(10,10,11,0.78);
  --btn-ghost-bg: rgba(255,255,255,0.02);
  --btn-ghost-hover-bg: rgba(230,57,70,0.10);
  --slider-thumb-border: #1a1a22;
  --chip-on-text: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }

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

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 720px) { .section { padding: 80px 0; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--red);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
p { color: var(--muted); }
.lead { color: var(--text-soft); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.55; max-width: 64ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}
.btn .arr { transition: transform 200ms ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 24px rgba(230,57,70,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { background: #f04250; transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--border-2);
  color: var(--text);
  background: var(--btn-ghost-bg);
}
.btn-ghost:hover { border-color: var(--red); color: var(--text); background: var(--btn-ghost-hover-bg); }
.btn-link {
  color: var(--muted);
  padding: 0;
  font-size: 13px;
}
.btn-link:hover { color: var(--text); }

/* Cards */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-raised {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
}

/* Mono / chips */
.mono { font-family: var(--font-mono); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-1);
  letter-spacing: 0.04em;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* Section dividers (fracture) */
.fracture-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: visible;
}
.fracture-divider svg {
  position: absolute;
  inset: -8px 0;
  width: 100%;
  height: 17px;
}

/* Native cursor — no custom replacement */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); filter: brightness(0.85); }
