/* =========================================================
   CaosBlitz product page — design tokens & global styles
   Two style modes (cyberpunk | enterprise) × two themes (dark | light)
   ========================================================= */

:root {
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

/* ---------- Cyberpunk DARK (default) ---------- */
[data-style="cyberpunk"][data-theme="dark"] {
  --bg: #07090f;
  --bg-elev: #0c111c;
  --surface: rgba(15, 22, 38, 0.72);
  --surface-solid: #0f1626;
  --on-accent: #04141a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f5fb;
  --text-dim: #8b9cb3;
  --text-faint: #5a6a82;
  --accent: #00f0ff;
  --accent-glow: 0 0 24px rgba(0, 240, 255, 0.35);
  --accent-2: #ff2e88;
  --accent-2-glow: 0 0 24px rgba(255, 46, 136, 0.35);
  --accent-3: #00ff9d;
  --warn: #f59e0b;
  --danger: #ff3366;
  --grid-line: rgba(255, 255, 255, 0.03);
  --grid-line-strong: rgba(0, 240, 255, 0.06);
  --noise-opacity: 0.06;
  --shadow-card: 0 24px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
  --shadow-elev: 0 30px 80px -20px rgba(0, 240, 255, 0.18);
  --heading-font: var(--font-mono);
  --heading-weight: 700;
  --heading-tracking: -0.01em;
  --heading-case: none;
  --eyebrow-font: var(--font-mono);
  --radius: 4px;
  --radius-lg: 8px;
}

/* ---------- Cyberpunk LIGHT ---------- */
[data-style="cyberpunk"][data-theme="light"] {
  --bg: #f4f7fb;
  --bg-elev: #ffffff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --on-accent: #ffffff;
  --border: rgba(11, 18, 32, 0.10);
  --border-strong: rgba(11, 18, 32, 0.20);
  --text: #0a0e17;
  --text-dim: #475569;
  --text-faint: #94a3b8;
  --accent: #0891b2;
  --accent-glow: 0 0 24px rgba(8, 145, 178, 0.20);
  --accent-2: #db2777;
  --accent-2-glow: 0 0 24px rgba(219, 39, 119, 0.20);
  --accent-3: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --grid-line: rgba(11, 18, 32, 0.05);
  --grid-line-strong: rgba(8, 145, 178, 0.10);
  --noise-opacity: 0;
  --shadow-card: 0 12px 32px -12px rgba(11, 18, 32, 0.12), 0 0 0 1px var(--border);
  --shadow-elev: 0 24px 56px -16px rgba(8, 145, 178, 0.20);
  --heading-font: var(--font-mono);
  --heading-weight: 700;
  --heading-tracking: -0.01em;
  --heading-case: none;
  --eyebrow-font: var(--font-mono);
  --radius: 4px;
  --radius-lg: 8px;
}

/* ---------- Enterprise DARK ---------- */
[data-style="enterprise"][data-theme="dark"] {
  --bg: #0a0f1d;
  --bg-elev: #111729;
  --surface: rgba(20, 27, 47, 0.85);
  --surface-solid: #141b2f;
  --on-accent: #051018;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --accent: #38bdf8;
  --accent-glow: 0 6px 18px -6px rgba(56, 189, 248, 0.30);
  --accent-2: #f472b6;
  --accent-2-glow: 0 6px 18px -6px rgba(244, 114, 182, 0.30);
  --accent-3: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --grid-line: transparent;
  --grid-line-strong: transparent;
  --noise-opacity: 0;
  --shadow-card: 0 8px 24px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  --shadow-elev: 0 18px 50px -16px rgba(0, 0, 0, 0.5);
  --heading-font: var(--font-display);
  --heading-weight: 600;
  --heading-tracking: -0.02em;
  --heading-case: none;
  --eyebrow-font: var(--font-body);
  --radius: 10px;
  --radius-lg: 16px;
}

/* ---------- Enterprise LIGHT ---------- */
[data-style="enterprise"][data-theme="light"] {
  --bg: #f6f8fb;
  --bg-elev: #ffffff;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-solid: #ffffff;
  --on-accent: #ffffff;
  --border: rgba(11, 18, 32, 0.10);
  --border-strong: rgba(11, 18, 32, 0.18);
  --text: #0b1220;
  --text-dim: #475569;
  --text-faint: #94a3b8;
  --accent: #0e7490;
  --accent-glow: 0 6px 18px -6px rgba(14, 116, 144, 0.25);
  --accent-2: #be185d;
  --accent-2-glow: 0 6px 18px -6px rgba(190, 24, 93, 0.25);
  --accent-3: #047857;
  --warn: #b45309;
  --danger: #b91c1c;
  --grid-line: transparent;
  --grid-line-strong: transparent;
  --noise-opacity: 0;
  --shadow-card: 0 6px 20px -8px rgba(11, 18, 32, 0.10), 0 0 0 1px var(--border);
  --shadow-elev: 0 18px 40px -12px rgba(11, 18, 32, 0.12);
  --heading-font: var(--font-display);
  --heading-weight: 600;
  --heading-tracking: -0.02em;
  --heading-case: none;
  --eyebrow-font: var(--font-body);
  --radius: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(ellipse 80% 60% at 15% 0%, var(--grid-line-strong) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(255, 46, 136, 0.05) 0%, transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  background-attachment: fixed;
}

/* Enterprise mode: turn off the radial bleeds */
[data-style="enterprise"] body {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ============ layout helpers ============ */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.shell-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .shell, .shell-wide { padding: 0 20px; } }

/* ============ typography ============ */
h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  text-transform: var(--heading-case);
  color: var(--text);
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.4vw, 88px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }
p { margin: 0; color: var(--text-dim); text-wrap: pretty; }

.eyebrow {
  font-family: var(--eyebrow-font);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
[data-style="cyberpunk"] .eyebrow::before {
  content: "";
  width: 24px; height: 1px; background: currentColor;
}

.mono { font-family: var(--font-mono); }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 0 36px rgba(0, 240, 255, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

[data-style="cyberpunk"] .btn {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12.5px;
}

[data-style="cyberpunk"] .btn-primary {
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 80%, #000) 100%);
}

/* ============ cards / surfaces ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  position: relative;
}
[data-style="cyberpunk"] .card {
  border-radius: 4px;
}
[data-style="cyberpunk"] .card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 1.5px solid var(--accent);
  border-left: 1.5px solid var(--accent);
  pointer-events: none;
}
[data-style="cyberpunk"] .card::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  pointer-events: none;
}

/* ============ nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 16px;
  color: var(--text);
}
.nav-logo-mark {
  width: 28px; height: 28px;
  background: url(assets/caosblitz-logo.png) center/contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}
[data-theme="light"] .nav-logo-mark { filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }

@media (max-width: 880px) { .nav-links { display: none; } }

/* ============ section spacing ============ */
section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
  margin-bottom: 56px;
}

/* ============ status pill / chip ============ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ============ glow & scanlines (cyberpunk only) ============ */
.scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.015) 3px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none;
  opacity: 0.6;
}
[data-style="enterprise"] .scanlines::after { display: none; }

/* small util */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 0;
}
.fade-up { opacity: 1; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
