/* TVWizard — shared styles */

:root {
  /* Tones — warm-neutral dark */
  --bg-0: #0a0a0c;
  --bg-1: #111114;
  --bg-2: #17171c;
  --bg-3: #1f1f26;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);

  --fg-0: #f5f5f7;
  --fg-1: #d6d6db;
  --fg-2: #9a9aa3;
  --fg-3: #62626c;

  /* Accent — purple → cyan */
  --acc-a: #a78bff;
  --acc-b: #6ee7ff;
  --acc-grad: linear-gradient(100deg, #a78bff 0%, #6ee7ff 100%);
  --acc-grad-soft: linear-gradient(100deg, rgba(167,139,255,0.18), rgba(110,231,255,0.18));

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Type */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Spacing */
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 128px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

/* Global page background — subtle grain + aurora */
.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(167,139,255,0.16), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(110,231,255,0.12), transparent 55%),
    var(--bg-0);
}
.page-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* Layout */
.shell { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc-grad);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg-0);
  margin: 0;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.8vw, 84px); letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.025em; }
h3 { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.015em; }
p { margin: 0; }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--fg-1); max-width: 62ch; line-height: 1.55; text-wrap: pretty; }
.mono { font-family: var(--font-mono); }

.grad-text {
  background: var(--acc-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(10,10,12,0.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--fg-0); letter-spacing: -0.01em; }
.nav-logo .mark {
  width: 28px; height: 28px;
  background: url(/img/logo.svg) center/contain no-repeat;
  /* Subtle glow keeps the hat anchored to the purple-cyan palette. */
  filter: drop-shadow(0 4px 14px rgba(167,139,255,0.35));
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--fg-2); transition: color .2s; }
.nav-links a:hover { color: var(--fg-0); }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px) {
  .nav-links .nav-link-hide { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--fg-0);
  font-size: 14px;
  font-weight: 500;
  transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { border-color: rgba(255,255,255,0.24); background: var(--bg-3); }
.btn-primary {
  background: var(--acc-grad);
  color: #0a0a0c;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset, 0 8px 28px -12px rgba(167,139,255,0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 14px 36px -12px rgba(167,139,255,0.65); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)) , var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fg-2);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc-grad); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  color: var(--fg-2);
  font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px;
}
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--fg-0); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-3);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Utility */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Scroll anchors offset */
section[id] { scroll-margin-top: 80px; }
