:root {
  --bg: #07111f;
  --bg2: #0b1728;
  --card: rgba(15, 23, 42, 0.72);
  --card2: rgba(15, 23, 42, 0.45);
  --border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.28), transparent 36%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.16), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #020617 100%);
  min-height: 100vh;
}

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

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.32);
  font-weight: 950;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a:hover { color: var(--text); }

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 52px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1 {
  margin: 12px 0 16px;
  font-size: clamp(46px, 8vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.lead {
  max-width: 650px;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  border: 1px solid var(--border);
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-color: rgba(125, 211, 252, 0.3);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.34);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.62);
  color: #dbeafe;
}

.risk-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.terminal-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.82));
  box-shadow: 0 30px 100px rgba(2, 6, 23, 0.52);
  padding: 18px;
  min-height: 430px;
  overflow: hidden;
}

.terminal-top {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
}

.badge.good {
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.14);
}

.badge.paper {
  color: #bae6fd;
  border-color: rgba(14, 165, 233, 0.35);
  background: rgba(14, 165, 233, 0.14);
}

.badge.warn {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.14);
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mock-grid div {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.58);
}

small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

strong {
  font-size: 17px;
}

.green { color: #86efac; }

.chart-lines {
  margin-top: 28px;
  height: 165px;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.chart-lines span {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  transform: rotate(-8deg);
}

.chart-lines span:nth-child(1) { width: 75%; top: 45px; left: 20px; }
.chart-lines span:nth-child(2) { width: 52%; top: 82px; left: 80px; opacity: .75; }
.chart-lines span:nth-child(3) { width: 66%; top: 116px; left: 34px; opacity: .55; }
.chart-lines span:nth-child(4) { width: 40%; top: 140px; left: 145px; opacity: .35; }

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 110px auto 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  background: var(--card2);
}

.feature-card p, .split-section p, .cta p, .content-page p, .content-page li {
  color: #cbd5e1;
  line-height: 1.7;
}

.split-section {
  width: min(1180px, calc(100% - 32px));
  margin: 90px auto 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  background: rgba(15, 23, 42, 0.42);
}

.cta {
  width: min(1180px, calc(100% - 32px));
  margin: 90px auto 0;
  border: 1px solid rgba(96,165,250,0.24);
  border-radius: 30px;
  padding: 42px;
  background:
    radial-gradient(circle at 20% 30%, rgba(37,99,235,0.22), transparent 34%),
    rgba(15,23,42,0.46);
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 80px auto 0;
  padding: 28px 0 38px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.content-page {
  width: min(860px, calc(100% - 32px));
  margin: 64px auto 0;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  background: rgba(15, 23, 42, 0.52);
}

.content-page h1 {
  font-size: clamp(38px, 6vw, 62px);
}

.notice {
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
  border-radius: 18px;
  padding: 16px;
  line-height: 1.6;
}

.download-card {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.download-row {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(2, 6, 23, 0.25);
}

.disabled {
  opacity: .62;
  pointer-events: none;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero, .split-section {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .terminal-card {
    min-height: auto;
  }

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