:root {
  --red: #b60000;
  --red-bright: #e21818;
  --bg: #08080a;
  --bg-elev: #0f0f13;
  --bg-elev-2: #17171d;
  --border: #26262e;
  --text: #f4f4f6;
  --text-dim: #a5a5b2;
  --text-faint: #6b6b78;
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red-bright);
  margin: 0 0 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(214, 20, 20, 0.65);
}
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(214, 20, 20, 0.8); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-small { padding: 9px 18px; font-size: 0.88rem; }
.btn-large { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 34px; width: auto; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-right: auto;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.nav-links a { text-decoration: none; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(182, 0, 0, 0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; }
.hero-sub {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--text-dim);
  max-width: 560px;
}
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-footnote { margin-top: 18px; font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Hero visual: mock windows ---------- */
.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: start;
}
.mock-window {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #131318;
  border-bottom: 1px solid var(--border);
}
.mock-titlebar.dark { background: #0c0c0f; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #3a3a44; }
.mock-title {
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--text-faint);
}
.mock-body {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr 0.95fr;
  gap: 10px;
  padding: 12px;
}
.mock-rundown {
  background: var(--bg-elev-2);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mock-master {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(182, 0, 0, 0.28);
  border: 1px solid rgba(214, 20, 20, 0.4);
  border-radius: 5px;
  padding: 6px 7px;
  margin-bottom: 3px;
}
.mock-seg {
  font-size: 0.62rem;
  color: var(--text-dim);
  padding: 6px 7px;
  border-radius: 5px;
}
.mock-seg-active { background: rgba(182, 0, 0, 0.22); color: var(--text); }
.mock-editor {
  background: var(--bg-elev-2);
  border-radius: 8px;
  padding: 8px;
}
.mock-toolbar { display: flex; gap: 5px; margin-bottom: 10px; }
.mock-toolbar span {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #2a2a33;
}
.mock-toolbar-gap { flex: 1; background: transparent !important; }
.mock-lines { display: flex; flex-direction: column; gap: 8px; }
.mock-line { height: 6px; border-radius: 3px; background: #2a2a33; }
.mock-line.accent { background: rgba(214, 20, 20, 0.55); }
.mock-line.w-90 { width: 92%; }
.mock-line.w-80 { width: 80%; }
.mock-line.w-85 { width: 86%; }
.mock-line.w-70 { width: 68%; }
.mock-line.w-60 { width: 58%; }
.mock-controls {
  background: var(--bg-elev-2);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-live {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
}
.mock-live-label {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.mock-live-speed { font-size: 0.68rem; font-weight: 700; color: var(--text); }
.mock-btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.mock-btn-grid span { height: 14px; border-radius: 4px; background: #2a2a33; }

.mock-prompter { align-self: stretch; }
.mock-prompter-body {
  background: #000;
  padding: 20px 16px;
  min-height: 240px;
  position: relative;
  font-size: 0.78rem;
  overflow: hidden;
}
.mock-prompter-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: mockPrompterScroll 13s linear infinite;
}
@keyframes mockPrompterScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.mock-reading-line {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 1;
}
.mock-prompter-body p { color: var(--text); margin: 0; }
.mock-prompter-body p.ghost { color: #35353d; }
.mock-prompter-body p.bright { color: #fff; font-weight: 600; }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  font-size: 0.88rem;
  color: var(--text-dim);
  text-align: center;
}
.strip-item strong { color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: 92px 24px; }
.section.alt { background: var(--bg-elev); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; text-align: center; }
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 1.02rem;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { border-color: rgba(214, 20, 20, 0.5); transform: translateY(-2px); }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(182, 0, 0, 0.16);
  color: var(--red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Workflow ---------- */
.workflow-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.workflow-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.workflow-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--red-bright);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.workflow-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.workflow-step p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Control spotlight ---------- */
.control-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.control-copy h2 { text-align: left; margin-bottom: 18px; }
.control-copy p { color: var(--text-dim); font-size: 1rem; }
.control-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.control-list li {
  padding-left: 26px;
  position: relative;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.control-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
}
.control-list strong { color: var(--text); }

.control-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dial {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dial:hover {
  border-color: rgba(214, 20, 20, 0.5);
  box-shadow: 0 0 0 8px rgba(182, 0, 0, 0.08);
}
.dial-track {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 2px dashed var(--border);
}
.dial-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 82px;
  background: linear-gradient(180deg, var(--red-bright), transparent);
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(0deg);
  border-radius: 2px;
  transition: transform 0.12s ease-out;
}
.dial-center {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 96px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dial-readout { display: flex; align-items: baseline; gap: 4px; }
.dial-arrow {
  font-size: 0.85rem;
  color: var(--red-bright);
  display: inline-block;
}
.dial-speed { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dial-unit { font-size: 0.7rem; color: var(--text-faint); }
.dial-caption { font-size: 0.85rem; color: var(--text-faint); transition: color 0.15s ease; }
.dial-caption.running { color: #4ade80; }
.dial-hint {
  font-size: 0.76rem;
  color: var(--text-faint);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.dial-hint.hidden { opacity: 0; }

/* ---------- Platform ---------- */
.platform-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.platform-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: var(--bg-elev);
}
.platform-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--red-bright); }
.platform-card p { color: var(--text-dim); font-size: 0.93rem; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 0 24px 80px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(160deg, #1a0505, #0c0c0f 60%);
  border: 1px solid rgba(214, 20, 20, 0.3);
  border-radius: 24px;
  padding: 72px 24px;
  text-align: center;
}
.cta-inner { max-width: 520px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.cta-band p { color: var(--text-dim); margin-top: 14px; font-size: 1.02rem; }
.cta-band .btn { margin-top: 28px; }
.cta-footnote { margin-top: 14px; font-size: 0.82rem; color: var(--text-faint); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 32px 24px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer-logo { height: 24px; width: auto; opacity: 0.85; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-visual { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr 1fr; }
  .mock-rundown { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .control-inner { grid-template-columns: 1fr; }
  .control-copy h2 { text-align: center; }
  .control-copy { text-align: center; }
  .control-list { text-align: left; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .btn-small { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; text-align: center; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-controls { display: none; }
}

@media (max-width: 720px) {
  .nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
}
