/* ─────────────────────────────────────────────
   Carbotura Brand Site — Design Tokens
   CRBT-BRAND-2025
   ───────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --bg:        #0A0C10;
  --surface:   #121418;
  --surface2:  #1A1D24;

  /* Text */
  --text:      #F8FAFC;
  --muted:     #94A3B8;
  --muted2:    #64748B;

  /* Borders */
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.15);

  /* Identity */
  --logo:      #F8FAFC;
  --nav-bg:    rgba(10,12,16,0.92);

  /* Alphas */
  --w5:  rgba(255,255,255,0.05);
  --w10: rgba(255,255,255,0.10);
  --w20: rgba(255,255,255,0.20);

  /* Brand palette */
  --magenta:   #FF007F;
  --magenta-l: #FF4D9F;
  --magenta-d: #CC0066;

  --blue:      #007FFF;
  --blue-l:    #4D9FFF;
  --blue-d:    #005CB2;

  --violet:    #7C3AED;
  --violet-l:  #A78BFA;
  --violet-d:  #5B21B6;

  --emerald:   #059669;
  --emerald-l: #34D399;
  --emerald-d: #065F46;

  --mustard:   #CA8A04;
  --mustard-l: #EAB308;
  --mustard-d: #854D0E;

  --steel:     #475569;
  --steel-l:   #94A3B8;
  --steel-d:   #334155;

  --chrome:    #CBD5E1;
  --chrome-l:  #F1F5F9;
  --chrome-d:  #94A3B8;

  --lime:      #A3E635;
  --lime-l:    #BEF264;
  --lime-d:    #65A30D;

  --anthracite: #121418;
  --anth-l:    #1E293B;
}

[data-theme="light"] {
  --bg:        #F8FAFC;
  --surface:   #FFFFFF;
  --surface2:  #F1F5F9;
  --text:      #0F172A;
  --muted:     #334155;
  --muted2:    #64748B;
  --border:    rgba(15,23,42,0.10);
  --border2:   rgba(15,23,42,0.18);
  --logo:      #0F172A;
  --nav-bg:    rgba(248,250,252,0.95);
  --w5:  rgba(15,23,42,0.05);
  --w10: rgba(15,23,42,0.10);
  --w20: rgba(15,23,42,0.16);
  --mustard:   #854D0E;
  --mustard-l: #CA8A04;
  --mustard-d: #451A03;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Utilities ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.font-audiowide { font-family: 'Audiowide', sans-serif; }
.font-mono      { font-family: 'JetBrains Mono', monospace; }

/* ── Section ── */
.section { padding: 7rem 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: none; }

/* ── Section heading ── */
.section-head { margin-bottom: 3.5rem; }
.section-eye  { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.eye-rule { height: 3px; width: 2.5rem; border-radius: 2px; }
.eye-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.35em;
  color: var(--muted);
}
.section-title {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 400; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.05; color: var(--text);
}
.section-lead {
  font-size: 15px; font-weight: 300; color: var(--muted);
  max-width: 50rem; line-height: 1.75; margin-top: 1rem;
}

/* ── Principle callout ── */
.principle {
  background: var(--surface);
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 14px; line-height: 1.75; color: var(--text);
}
.principle strong { color: var(--blue); font-weight: 700; }
.principle.violet { border-left-color: var(--violet); }
.principle.violet strong { color: var(--violet-l); }
.principle.emerald { border-left-color: var(--emerald); }
.principle.emerald strong { color: var(--emerald-l); }
.principle.muted { border-left-color: var(--muted2); }
.principle.muted strong { color: var(--muted); }

/* ── Nav ── */
.site-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 1.5rem 0;
  transition: padding 0.4s, background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  padding: 0.75rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--text);
}
.logo-wrap { position: relative; }
.logo-glow {
  position: absolute; inset: -4px;
  background: var(--blue); border-radius: 2px;
  filter: blur(6px); opacity: 0.15;
  transition: opacity 0.4s;
}
.nav-logo:hover .logo-glow { opacity: 0.5; }
.logo-box {
  position: relative; border: 1px solid var(--border);
  padding: 4px; border-radius: 2px; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.logo-box svg { color: var(--logo); }
.nav-brand {
  font-family: 'Audiowide', sans-serif;
  font-size: 1.3rem; font-weight: 400; letter-spacing: -0.04em;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--text); opacity: 0.55;
  text-decoration: none; transition: color 0.2s, opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); opacity: 1; }
@media (max-width: 900px) { .nav-links { display: none; } }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.theme-btn {
  padding: 0.4rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.3s;
}
.theme-btn:hover { transform: scale(1.1); }
.theme-btn:active { transform: scale(0.95); }

/* ── Footer ── */
.site-footer {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 2rem; opacity: 0.4;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo-box {
  padding: 4px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-box svg { color: var(--logo); }
.footer-brand-text {
  font-size: 11px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--text);
}
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }
.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted2);
  text-align: right; line-height: 1.6;
}

/* ── Print ── */
@media print {
  :root, [data-theme="dark"], [data-theme="light"] {
    --bg: #fff !important; --surface: #f8f8f8 !important;
    --text: #0F172A !important; --muted: #334155 !important;
    --border: rgba(15,23,42,0.15) !important; --logo: #0F172A !important;
    --w5: rgba(15,23,42,0.04) !important;
    --w10: rgba(15,23,42,0.08) !important;
    --w20: rgba(15,23,42,0.12) !important;
  }
  .site-nav, .theme-btn, .logo-glow { display: none !important; }
  .section { padding: 2.5rem 0 !important; }
  .footer-inner { opacity: 1 !important; }
  @page { margin: 1.5cm; }
}
