/* ============================================================
   CamDeck — "Control Room"
   Broadcast console: near-black blue ground, tally red,
   amber program-bus accent, mono utility type.
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #0a0e14;
  --bg2: #0d1218;
  --panel: #11161d;
  --line: #232b36;
  --text: #eef1f5;
  --muted: #8b95a3;
  --tally: #ff3b3b;
  --amber: #f4b740;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(244, 183, 64, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 30%);
  color: var(--text);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

/* ---------- top rail ---------- */
.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(12px);
}
.tally { display: inline-flex; align-items: center; gap: 10px; color: var(--tally); font-weight: 600; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tally);
  box-shadow: 0 0 10px var(--tally);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 3px; height: 100%; background: var(--tally); transform-origin: bottom; animation: bars 1.1s ease-in-out infinite; }
.bars i:nth-child(1) { animation-delay: 0s; }
.bars i:nth-child(2) { animation-delay: 0.15s; }
.bars i:nth-child(3) { animation-delay: 0.3s; }
.bars i:nth-child(4) { animation-delay: 0.45s; }
@keyframes bars { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.rail-mid { font-variant-numeric: tabular-nums; }
.rail-links { display: flex; align-items: center; gap: 20px; }
.rail-links a { text-decoration: none; color: var(--muted); transition: color 140ms ease; }
.rail-links a:hover { color: var(--text); }
.rail-links .rail-dl {
  color: #181104;
  background: var(--amber);
  padding: 7px 14px;
  border-radius: 4px;
  font-weight: 700;
}
.rail-links .rail-dl:hover { color: #181104; filter: brightness(1.08); }

/* ---------- typography ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 16ch;
  text-wrap: balance;
}
h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 22ch;
  text-wrap: balance;
}
.lede, .lead {
  margin: 20px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}
.lede a, .lead a, .story a, .compat a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(244, 183, 64, 0.5); text-underline-offset: 3px; }
.lede a:hover, .lead a:hover, .story a:hover, .compat a:hover { text-decoration-color: var(--amber); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  height: 52px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #181104; box-shadow: 0 8px 30px rgba(244, 183, 64, 0.22); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #181104; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg2);
}
.badge svg { width: 14px; height: 14px; stroke: var(--amber); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- monitor ---------- */
.monitor {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #000;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--amber); opacity: 0.85; z-index: 2; }
.corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.bezel-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  padding: 0 6px 8px;
  letter-spacing: 0.06em;
}
.screen { position: relative; border-radius: 2px; overflow: hidden; background: #000; }
.screen img { width: 100%; filter: saturate(1.02) contrast(1.03); }
.lowerthird {
  position: absolute;
  left: 5%; right: 5%; bottom: 8%;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.92), rgba(10, 14, 20, 0.97));
  border: 1px solid rgba(244, 183, 64, 0.35);
  border-radius: 3px;
  padding: 12px 18px;
}
.lt-title { font-weight: 800; font-size: clamp(0.95rem, 1.5vw, 1.35rem); letter-spacing: -0.01em; color: #fff; margin: 0; }
.lt-sub { font-family: var(--mono); font-size: 0.7rem; color: var(--amber); letter-spacing: 0.1em; text-transform: uppercase; margin: 4px 0 0; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: var(--bg2);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  animation: ticker 45s linear infinite;
}
.marquee-track span { margin-right: 56px; }
.marquee-track b { color: var(--amber); font-weight: 700; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 96px 0 0; }
.section-head { margin-bottom: 36px; }

/* ---------- feature channels ---------- */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cell {
  background: var(--panel);
  padding: 26px 22px;
  transition: background 160ms ease, transform 160ms ease;
}
.cell:hover { background: #151b23; transform: translateY(-2px); }
.cell .num { font-family: var(--mono); color: var(--amber); font-size: 11px; letter-spacing: 0.1em; margin-bottom: 16px; }
.cell .icon {
  width: 36px; height: 36px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg2);
  display: grid;
  place-items: center;
  color: var(--amber);
  margin-bottom: 16px;
}
.cell .icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cell h3 { margin: 0 0 8px; font-size: 1.04rem; letter-spacing: -0.01em; }
.cell p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }
.cell p a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(244, 183, 64, 0.5); text-underline-offset: 3px; }
.cell strong { color: var(--text); }
.cell-shot {
  width: 100%;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* ---------- effects wall ---------- */
.fx-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.fx {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 5px;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}
.fx:hover { border-color: var(--amber); transform: translateY(-2px); }
.fx::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  transition: opacity 160ms ease;
}
.fx:hover::after { opacity: 0.12; }
.fx-ch {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--tally);
  letter-spacing: 0.12em;
}
.fx h3 { margin: 10px 0 6px; font-size: 0.98rem; letter-spacing: -0.01em; }
.fx p { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.55; }

.fx-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.fx-proof {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #000;
  padding: 10px;
}
.fx-proof img { width: 100%; border-radius: 2px; }
.fx-proof figcaption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  padding: 10px 6px 2px;
  letter-spacing: 0.04em;
}

/* ---------- screenshot reel ---------- */
.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 10px;
  overflow: hidden;
}
.shot.large { grid-column: span 3; }
.shot:not(.large) { grid-column: span 2; }
.shot img { width: 100%; border-radius: 3px; }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; padding: 0 4px 4px; }

/* ---------- install ---------- */
.install-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 40px;
}
.steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; max-width: 56ch; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}
.steps li strong { color: var(--text); }
.steps li a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(244, 183, 64, 0.5); text-underline-offset: 3px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 8px;
  background: var(--bg2);
}
.compat {
  border-left: 1px solid var(--line);
  padding-left: 36px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.compat h3 { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.compat p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.7; }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 860px; }
.faq-item { background: var(--panel); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 22px; font-weight: 700;
  font-size: 1.02rem; letter-spacing: -0.01em; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.2rem; color: var(--amber);
  flex: none; transition: transform 160ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--amber); }
.faq-item p { margin: 0; padding: 0 22px 22px; color: var(--muted); line-height: 1.7; font-size: 0.96rem; max-width: 68ch; }

/* ---------- story ---------- */
.story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.story p { color: var(--muted); line-height: 1.75; font-size: 1.02rem; margin: 18px 0 0; max-width: 60ch; }
.pullquote {
  margin: 0;
  border-left: 2px solid var(--amber);
  padding: 8px 0 8px 24px;
}
.pullquote p { margin: 0; font-family: var(--mono); font-size: 1rem; line-height: 1.75; color: var(--amber); }

/* ---------- support / footer ---------- */
.support-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  border: 1px solid rgba(244, 183, 64, 0.3);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(244, 183, 64, 0.07), rgba(244, 183, 64, 0.02));
  padding: 36px 40px;
}
.support-panel p { color: var(--muted); line-height: 1.7; margin: 12px 0 0; max-width: 54ch; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 40px 4px 48px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .fx-grid { grid-template-columns: repeat(3, 1fr); }
  .install-panel { grid-template-columns: 1fr; }
  .compat { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 28px; }
  .story { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .rail { padding: 12px 16px; }
  .rail-mid { display: none; }
  .hero { padding: 48px 0 40px; }
  .grid4 { grid-template-columns: 1fr; }
  .fx-grid { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr; }
  .shot.large, .shot:not(.large) { grid-column: span 1; }
  .fx-proof-grid { grid-template-columns: 1fr; }
  .section { padding-top: 72px; }
  .install-panel, .support-panel { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .dot, .bars i { animation: none; }
  .marquee-track { animation: none; }
  .btn:hover, .cell:hover, .fx:hover { transform: none; }
}
