/* Chaos Screen Recorder — support site
   Palette: charcoal ground, rec-red live accent, premium-amber accent
   Type: Space Grotesk (display/HUD) + Inter (body) + JetBrains Mono (data/labels) */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1e222b;
  --line: #2a2f3a;
  --text: #edeef0;
  --text-muted: #8a8f98;
  --rec: #ff3b3b;
  --premium: #ffb020;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

a { color: inherit; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
nav {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.brand .brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
}
nav a.navlink { text-decoration: none; }
nav a.navlink:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 88px 0 64px;
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 760px) {
  .hero { padding: 48px 0 36px; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .hero-inner .eyebrow { justify-content: center; }
  .hero-inner p.lede { margin-left: auto; margin-right: auto; }
  .hero-inner .cta-row { justify-content: center; }
  .hero-inner h1 { font-size: 34px; }
  .overlay-mock { margin-top: 8px; }
}
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--rec);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rec);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero h1 {
  font-size: 42px;
  line-height: 1.12;
  font-weight: 700;
}
.hero p.lede {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 46ch;
  margin: 18px 0 28px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  border: 1px solid transparent;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-muted); }

/* Overlay mock — the signature element */
.overlay-mock {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 280px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 30% 20%, #23283350, transparent 55%),
    linear-gradient(180deg, #14161c, #0c0d10);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.overlay-mock .statusbar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}
.overlay-mock .cluster {
  position: absolute;
  right: 16px;
  top: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(23,26,33,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 8px;
}
.overlay-mock .cluster .rec-dot-big {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rec);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: #1a0505;
  box-shadow: 0 0 0 6px rgba(255,59,59,0.12);
}
.overlay-mock .cluster .mini-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.overlay-mock .timer {
  position: absolute;
  left: 16px;
  top: 82px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--rec);
  background: rgba(23,26,33,0.85);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
}
.overlay-mock .caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* Feature grid */
.features {
  padding: 40px 0 70px;
  border-top: 1px solid var(--line);
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
}
.card {
  background: var(--surface);
  padding: 26px 24px;
}
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 13px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer a { text-decoration: none; color: var(--text-muted); }
footer a:hover { color: var(--text); }

/* Premium comparison page */
.page-header { padding: 64px 0 8px; }
.page-header .eyebrow { color: var(--premium); }
.page-header .eyebrow::before { background: var(--premium); }
.page-header p.lede { color: var(--text-muted); max-width: 56ch; }

.compare {
  padding: 40px 0 70px;
}
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
table.compare-table th, table.compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
table.compare-table thead th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface);
  font-weight: 700;
}
table.compare-table tbody tr:last-child td { border-bottom: none; }
table.compare-table td:first-child {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}
td.yes { color: var(--premium); font-weight: 600; }
td.no { color: var(--text-muted); }
th.col-premium { color: var(--premium); }

.tier-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
