/* ── Colorbolt.net ───────────────────────────────────── */
/* Font: Helvetica Neue. Solid blocks. No decoration.     */
/* Hover: color name appears centered on the cell.        */

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

:root {
  --bg: #000;
  --fg: #fff;
  --fg-dim: rgba(255,255,255,0.4);
  --border: #111;
  --font: 'Helvetica Neue', Helvetica, -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Nav ─────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  transition: background 0.3s ease;
}

.nav--solid { background: rgba(0,0,0,0.92); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav-brand img {
  width: 28px; height: 28px;
  border-radius: 7px;
}

.nav-links { display: flex; gap: 24px; }

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--fg-dim);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--fg); }

/* ── Hero ────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* 6 columns × 5 rows = 30 equal cells, exact app colors */
.hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, 1fr);
}

/* All cells equal — grid handles sizing */

/* Each cell has an info overlay that shows on hover + click */
.hc {
  position: relative;
  cursor: default;
  overflow: hidden;
}

.hc-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.hci-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: inherit;
}

.hci-hex {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0.65;
  color: inherit;
  font-family: 'Menlo', 'Courier New', monospace;
}

.hci-rgb {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.45;
  color: inherit;
  font-family: 'Menlo', 'Courier New', monospace;
}

/* Hover or pinned (click) shows info */
.hc:hover .hc-info,
.hc.pinned .hc-info {
  opacity: 1;
}

/* Darken slightly on hover so text reads better */
.hc:hover,
.hc.pinned {
  filter: brightness(0.88);
}

/* App-style HUD sitting above the CTA strip */
.hero-hud {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 24px;
  pointer-events: none;
}

.hud-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hud-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  mix-blend-mode: difference;
  color: #fff;
}

.hud-hex, .hud-rgb {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  mix-blend-mode: difference;
  color: rgba(255,255,255,0.65);
  font-family: 'Menlo', 'Courier New', monospace;
}

.hud-instr {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  mix-blend-mode: difference;
  color: rgba(255,255,255,0.35);
}

/* CTA strip below the grid */
.hero-copy {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-copy h1 {
  font-size: clamp(28px, 5.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.badge-link img {
  height: 44px;
  display: block;
  transition: opacity 0.15s;
}

.badge-link:hover img { opacity: 0.75; }

/* ── Use Cases — 3×2 grid of equal solid blocks ─────── */

.uses-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.use-cell {
  /* height set by aspect-ratio so all cells are equal */
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 6px;
  border-right: 1px solid rgba(0,0,0,0.12);
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.use-cell:nth-child(3),
.use-cell:nth-child(6) { border-right: none; }

.use-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.use-desc {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
  line-height: 1.45;
}

/* ── Palette picker ──────────────────────────────────── */

.palette-section {
  border-top: 1px solid var(--border);
}

.palette-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--fg-dim);
}

.ptabs { display: flex; }

.ptab {
  background: none;
  border: 1px solid #222;
  color: var(--fg-dim);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.ptab:first-child { border-radius: 6px 0 0 6px; }
.ptab:last-child  { border-radius: 0 6px 6px 0; border-left: none; }
.ptab:not(:first-child):not(:last-child) { border-left: none; }

.ptab.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* 2-column × 5-row picker — same layout as the app */
.picker-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pcell {
  /* Equal cells: 1:1 aspect ratio */
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

/* Hover or click: emphasise name, fade hex */
.pcell:hover,
.pcell.pinned {
  filter: brightness(0.9);
}

.pcell:hover .pcell-name,
.pcell.pinned .pcell-name {
  font-weight: 700;
  letter-spacing: 2px;
}

.pcell:hover .pcell-hex,
.pcell.pinned .pcell-hex {
  opacity: 0.7;
}

.pcell-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.88;
}

.pcell-hex {
  font-size: 11px;
  font-weight: 300;
  opacity: 0.5;
  font-family: 'Menlo', 'Courier New', monospace;
}

/* ── Floaters ───────────────────────────────────────── */
/* Scattered text blurbs — deadpan, editorial, on-brand  */

.floater {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: clamp(18px, 3.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--fg);
}

.floater--right  { text-align: right; }
.floater--center { text-align: center; }
.floater--left   { text-align: left; }

.floater--tilt-neg { transform: rotate(-0.4deg); }
.floater--tilt-pos { transform: rotate(0.4deg); }

.floater--small {
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: 0.5px;
}

.floater--quiet {
  font-size: clamp(15px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--fg-dim);
}

/* ── How it works ────────────────────────────────────── */

.how-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}

.how-color {
  /* Equal to the text column height — just fills with color */
  background: #49B5FF;
  transition: background 1.2s ease;
  min-height: 320px;
}

.how-text {
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
}

.gesture-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gesture-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gesture-row strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.gesture-row span {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-dim);
}

.no-bs {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--fg-dim);
  line-height: 1.8;
}

/* ── Illuminated ─────────────────────────────────────── */

.illuminated-section {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* 2×2 grid of equal solid swatches */
.ill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.ill-grid > div {
  aspect-ratio: 1 / 1;
}

.ill-text {
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.ill-text h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.ill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ill-list li {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-dim);
  padding-left: 16px;
  position: relative;
}

.ill-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--fg-dim);
}

.ill-note {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--fg-dim);
}

/* ── Download ────────────────────────────────────────── */

.download-section {
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  border-top: 1px solid var(--border);
}

.download-section h2 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ── Footer ──────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.footer-brand img {
  width: 24px; height: 24px;
  border-radius: 6px;
}

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  font-size: 12px;
  color: var(--fg-dim);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--fg); }

.footer-copy {
  font-size: 12px;
  color: var(--fg-dim);
}

/* ── Legal pages ─────────────────────────────────────── */

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.legal .last-updated {
  font-size: 13px;
  color: var(--fg-dim);
  margin-bottom: 48px;
  display: block;
}

.legal h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-top: 36px;
  margin-bottom: 10px;
}

.legal p, .legal li {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal ul, .legal ol { padding-left: 20px; margin-bottom: 10px; }
.legal a { color: #fff; text-decoration: underline; opacity: 0.7; }
.legal a:hover { opacity: 1; }

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, 1fr);
  }

  .uses-section {
    grid-template-columns: 1fr 1fr;
  }

  .use-cell:nth-child(3) { border-right: 1px solid rgba(0,0,0,0.12); }
  .use-cell:nth-child(2),
  .use-cell:nth-child(4),
  .use-cell:nth-child(6) { border-right: none; }

  .how-section { grid-template-columns: 1fr; }
  .how-color { min-height: 180px; }
  .how-text { padding: 32px 24px; }

  .illuminated-section { grid-template-columns: 1fr; }
  .ill-grid { min-height: 240px; }
  .ill-grid > div { aspect-ratio: unset; }
  .ill-text { padding: 32px 24px; }

  .footer { flex-direction: column; align-items: flex-start; }

  .palette-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pcell { aspect-ratio: 4 / 3; }
}
