/* ═══════════════════════════════════════════════════════════
   COLAB — base.css
   Global tokens · Reset · Fonts · Typography
   Section variants · Buttons · Utilities
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --bg: #0a0705;
  --surface: #1a1008;
  --orange: #f97316;
  --white: #ffffff;
  --muted: #a0a0a0;
  --green: #4ade80;
  --red: #ef4444;
  --purple: #a78bfa;

  --light-bg: #faf5ef;
  --light-surface: #ffffff;
  --light-text: #1a1008;
  --light-muted: #5a4a3a;
  --light-border: rgba(249, 115, 22, 0.18);

  --mid-bg: #1a1008;
  --mid-muted: #b8a898;

  --glow-text: 0 0 20px rgba(249, 115, 22, 0.65);
  --glow-btn: 0 0 28px rgba(249, 115, 22, 0.45);
  --glow-border: 0 0 14px rgba(249, 115, 22, 0.25);

  --t-fast: 120ms;
  --t-base: 240ms;
  --t-slow: 480ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --max-w: 1200px;
  --max-w-text: 680px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(249,115,22,0.28); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,115,22,0.52); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

p {
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 58ch;
  line-height: 1.7;
}

.accent {
  color: var(--orange);
  text-shadow: var(--glow-text);
}

.section-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: var(--glow-text);
  margin-bottom: var(--space-sm);
}

.eyebrow {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: var(--glow-text);
  margin-bottom: var(--space-sm);
}

.rule {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--orange);
  box-shadow: var(--glow-border);
  margin: var(--space-sm) 0;
}

.rule--center {
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition:
    background-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--orange);
  color: var(--white);
  box-shadow: var(--glow-btn);
}

.btn--primary:hover, .btn--primary:focus-visible {
  background-color: #fb923c;
  box-shadow: 0 0 42px rgba(249,115,22,0.70);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.22);
}

.btn--outline:hover, .btn--outline:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: var(--glow-border);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover {
  color: var(--white);
}

.btn--install {
  background: transparent;
  color: var(--orange);
  border-color: rgba(249,115,22,0.30);
  box-shadow: none;
  font-size: 0.8rem;
  padding: 0.6rem 1.25rem;
}

.btn--install:hover {
  background: rgba(249,115,22,0.08);
  border-color: var(--orange);
  box-shadow: var(--glow-border);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

section {
  position: relative;
  padding: var(--space-xl) var(--space-md);
  width: 100%;
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.section--light {
  background-color: var(--light-bg);
  position: relative;
}

.section--light h1, .section--light h2, .section--light h3, .section--light h4 {
  color: var(--light-text);
}

.section--light p, .section--light li, .section--light span:not(.accent):not(.section-label):not(.eyebrow):not(.price):not(.btn) {
  color: var(--light-muted);
}

.section--light [class*="card"], .section--light .tool-card, .section--light .service-card, .section--light .proof-card, .section--light .learn-card, .section--light .cap-card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  box-shadow: 0 4px 24px rgba(26, 16, 8, 0.07);
}

.section--light [class*="card"]:hover, .section--light .tool-card:hover, .section--light .service-card:hover, .section--light .learn-card:hover, .section--light .cap-card:hover {
  box-shadow: 0 8px 36px rgba(26, 16, 8, 0.12), 0 0 22px rgba(249, 115, 22, 0.18);
}

.section--light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(249, 115, 22, 0.35) 35%, rgba(249, 115, 22, 0.35) 65%, transparent 100%);
  pointer-events: none;
}

.section--light::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(249, 115, 22, 0.18) 35%, rgba(249, 115, 22, 0.18) 65%, transparent 100%);
  pointer-events: none;
}

.section--mid {
  background-color: var(--mid-bg);
  position: relative;
}

.section--mid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(249, 115, 22, 0.045) 0%, transparent 70%);
  pointer-events: none;
}

.section--mid p, .section--mid li {
  color: var(--mid-muted);
}

.section-header {
  text-align: left;
}

.section-header.centered {
  text-align: center;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(249,115,22,0.12);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 20px rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.28);
}

.card--flat {
  background: transparent;
  border: 1px solid rgba(249,115,22,0.08);
}

.card--flat:hover {
  background: rgba(249,115,22,0.03);
}

.price {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  color: var(--green);
}

.price--note {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-orange { color: var(--orange); text-shadow: var(--glow-text); }
.text-green { color: var(--green); }
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-left { text-align: left; }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

#toast-root {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  pointer-events: none;
}

#modal-root {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

#modal-root:not(:empty) {
  pointer-events: all;
}

@media (max-width: 768px) {
  section { padding: var(--space-lg) var(--space-sm); }
  p { font-size: 0.875rem; }
}

@media (max-width: 480px) {
  section { padding: var(--space-md) var(--space-sm); }
}