/* ============================================================
   CableBox — base tokens, reset, typography, layout primitives
   ============================================================ */

:root {
  /* Brand surface */
  --bg:        #02021C;   /* deep midnight blue — app signature */
  --bg-raise:  #07072a;   /* slightly lifted panel */
  --bg-card:   #0a0a32;
  --hairline:  rgba(209, 248, 248, 0.10);
  --hairline-strong: rgba(209, 248, 248, 0.18);

  /* Accent palette (the aurora six) */
  --gold:      #fec013;
  --pink:      #f42996;
  --deep:      #2b18aa;
  --lavender:  #cb83f7;
  --cyan:      #d1f8f8;
  --electric:  #4950fa;

  /* Text */
  --ink:       #eef0ff;   /* primary */
  --ink-soft:  #b9bce0;   /* secondary */
  --ink-mute:  #777aa8;   /* tertiary / labels */

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-lg: 26px;

  /* Earth-sleeve green/yellow used for craft details */
  --gy-green: #2fae5a;
  --gy-yellow: #f5d020;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---- Layout primitives ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(80px, 12vw, 150px);
}

/* ---- Type scale ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--electric), transparent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h-section {
  font-size: clamp(30px, 4.6vw, 52px);
  letter-spacing: -0.03em;
}
.h-feature {
  font-size: clamp(23px, 2.6vw, 30px);
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.body-text {
  color: var(--ink-soft);
  text-wrap: pretty;
}

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

/* gradient text accent reused for select words */
.grad-ink {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--lavender) 38%, var(--pink) 70%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Accessibility */
.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;
}

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