:root {
  --bg: #080808;
  --panel: #0d0d0d;
  --panel-2: #111;
  --text: #f5f5f5;
  --muted: #a6a6a6;
  --line: #242424;
  --accent: #eb1414;
  --accent-soft: rgba(235, 20, 20, 0.12);
  --ok: #22c55e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", "Space Mono", monospace;
  font-size: 15px;
  line-height: 1.6;
}

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

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

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.12;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(255,255,255,0.05) 4px);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.system-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.nav-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}

.brand img {
  width: 150px;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

nav a:hover,
.start-link:hover,
.secondary-button:hover {
  color: var(--accent);
}

.start-link {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 13px;
  font-size: 12px;
}

.hero {
  min-height: calc(100vh - 210px);
  display: flex;
  align-items: center;
  padding: 46px 0 32px;
  border-bottom: 1px solid var(--line);
}

.hero-grid,
.workflow-grid,
.subscribe-grid,
.metrics-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.terminal-command,
.section-label {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 13px;
}

.section-label {
  color: var(--accent);
}

.ascii {
  color: var(--accent);
  font-size: clamp(7px, 1vw, 12px);
  line-height: 1.05;
  overflow: hidden;
  margin: 0 0 22px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(40px, 5.25vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 20px;
  text-transform: uppercase;
  max-width: 930px;
}

h1 span,
h2 {
  color: var(--accent);
}

h2 {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  margin-bottom: 28px;
  text-transform: uppercase;
}

h3 {
  font-size: 24px;
  line-height: 1.2;
}

.hero-sub,
.body-copy {
  color: var(--muted);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0;
}

.primary-button,
.secondary-button,
.signup-form button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-button,
.signup-form button {
  background: var(--accent);
  color: white;
  padding: 13px 18px;
}

.secondary-button {
  padding: 13px 18px;
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.stats-row div {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.stats-row div:last-child {
  border-right: 0;
}

.stats-row strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.stats-row span {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual,
.image-frame,
.chart-panel,
.comparison {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 0 0 1px #000 inset, 0 0 80px rgba(235,20,20,0.08);
}

.hero-visual {
  padding: 18px;
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.ticker div {
  display: inline-flex;
  gap: 22px;
  padding: 18px 0;
  animation: ticker 28s linear infinite;
}

.ticker b {
  color: var(--accent);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  min-height: 330px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  color: var(--accent);
  margin-bottom: 48px;
  font-size: 13px;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

li {
  margin-bottom: 12px;
}

li span {
  color: var(--accent);
  margin-right: 8px;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-column {
  padding: 26px;
}

.compare-column + .compare-column {
  border-left: 1px solid var(--line);
}

.compare-head {
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.compare-column p {
  color: var(--muted);
  min-height: 58px;
}

.compare-row {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

.compare-column.active {
  background: var(--accent-soft);
}

.chart-panel {
  padding: 28px;
}

.bar-row {
  margin-bottom: 24px;
}

.bar-row span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.bar-row b {
  display: block;
  width: var(--w);
  min-width: 82px;
  background: var(--accent);
  color: white;
  padding: 7px 10px;
  text-align: right;
}

.image-frame {
  padding: 12px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
}

.steps span {
  color: var(--accent);
  font-weight: 800;
}

.steps p {
  margin: 0;
}

.subscribe-section {
  background: #0b0b0b;
}

.signup-form {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
}

.signup-form label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.signup-form input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: #050505;
  color: var(--text);
  padding: 12px;
  font: inherit;
}

.signup-form input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.signup-form button {
  width: 100%;
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--accent);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,0.76);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity 180ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid var(--accent);
  background: var(--panel);
  padding: 30px;
  box-shadow: 0 0 100px rgba(235,20,20,0.2);
}

.modal-panel h2 {
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 14px;
}

.modal-panel p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.modal-form {
  padding: 0;
  border: 0;
}

@media (max-width: 900px) {
  .nav-row,
  .hero-grid,
  .workflow-grid,
  .subscribe-grid,
  .metrics-grid,
  .comparison,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .nav-row {
    gap: 16px;
  }

  nav {
    justify-content: flex-start;
  }

  .start-link {
    width: fit-content;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stats-row div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-row div:last-child {
    border-bottom: 0;
  }

  .compare-column + .compare-column {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .system-line,
  .site-footer {
    flex-direction: column;
  }

  .nav-row {
    padding: 14px 12px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-actions a {
    width: 100%;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .hero {
    padding-top: 30px;
    padding-bottom: 24px;
  }

  .ascii {
    display: none;
  }

  h1 {
    font-size: clamp(38px, 4.2vw, 54px);
  }

  .hero-sub {
    font-size: 14px;
  }

  .primary-button,
  .secondary-button,
  .signup-form button {
    min-height: 42px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .stats-row {
    display: none;
  }
}
