:root {
  --bg: #08101f;
  --panel: rgba(9, 16, 31, 0.74);
  --panel-strong: rgba(13, 24, 45, 0.94);
  --text: #e7eefc;
  --muted: #9eb1cf;
  --accent: #8bf1c8;
  --accent-2: #ffb86c;
  --line: rgba(158, 177, 207, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(32, 88, 255, 0.24), transparent 28%),
    radial-gradient(circle at right, rgba(139, 241, 200, 0.12), transparent 24%),
    linear-gradient(180deg, #07101e 0%, #091526 42%, #050a13 100%);
  overflow-x: hidden;
}

.grid,
.orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grid {
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 85%);
}

.orb {
  filter: blur(60px);
  opacity: 0.45;
}

.orb-a {
  background: rgba(53, 106, 255, 0.26);
  transform: translate(-24%, -36%);
}

.orb-b {
  background: rgba(255, 184, 108, 0.12);
  transform: translate(68%, 18%);
}

.page-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.88fr;
  gap: 28px;
  padding: 28px;
  min-height: 70vh;
  align-items: stretch;
}

.hero-copy {
  padding: 26px 10px 26px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.kicker,
.card-topline,
.issue-date,
.subhead,
.hero-metrics span,
.process-list span,
legend {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.kicker,
.card-topline,
.issue-date,
.subhead,
legend {
  color: var(--accent);
  font-size: 0.76rem;
}

h1,
h2,
h3,
h4,
strong {
  font-weight: 700;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.92;
  margin: 12px 0 18px;
  max-width: 9ch;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 60ch;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.hero-metrics div,
.score-chip,
.resource-tile {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.signup-card {
  background: linear-gradient(180deg, rgba(10, 19, 35, 0.95), rgba(9, 18, 33, 0.78));
  border: 1px solid rgba(139, 241, 200, 0.24);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signup-form,
.signup-form fieldset,
.process-list,
.preview-columns,
.value-grid {
  display: grid;
}

.signup-form {
  gap: 16px;
  margin-top: 12px;
}

.signup-form label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.signup-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 16px;
  padding: 16px 18px;
  font: inherit;
}

.signup-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  gap: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.segmented-3 {
  grid-template-columns: repeat(3, 1fr);
}

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: block;
  padding: 13px 14px;
  border-radius: 999px;
  text-align: center;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  transition: 180ms ease;
}

.segmented input:checked + span {
  color: #07101e;
  background: var(--accent);
  border-color: transparent;
  transform: translateY(-1px);
}

button {
  font: inherit;
  cursor: pointer;
}

.signup-form button,
.view-switch button {
  border: 0;
}

.signup-form button {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #5de6ff);
  color: #051018;
  font-weight: 700;
}

.form-status {
  margin: 0;
  color: var(--muted);
  min-height: 1.4em;
}

.value-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.feature-card {
  padding: 24px;
}

.feature-card h2 {
  margin: 10px 0;
  font-size: 1.6rem;
}

.feature-card p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.accent-card {
  background: linear-gradient(160deg, rgba(255, 184, 108, 0.18), rgba(255, 255, 255, 0.02));
}

.preview-section,
.process-section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-head h2,
.process-section h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.view-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.view-switch button {
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
}

.view-switch button.is-active {
  background: #f8fafc;
  color: #07101e;
}

.preview-card {
  padding: 26px;
}

.preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.preview-topline h3 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 14ch;
}

.hero-stat {
  min-width: 180px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(139, 241, 200, 0.14), rgba(93, 230, 255, 0.08));
  border: 1px solid rgba(139, 241, 200, 0.24);
}

.hero-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
}

.issue-summary,
.dek,
.process-list p,
blockquote {
  color: var(--muted);
  line-height: 1.72;
}

.score-row,
.resource-strip,
.verification-grid {
  display: grid;
  gap: 12px;
}

.score-row {
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0 26px;
}

.score-chip strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
}

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

.preview-columns section {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}

.preview-columns h4 {
  font-size: 1.75rem;
  margin: 10px 0 8px;
}

.preview-columns ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.preview-columns li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.subsection {
  margin-top: 20px;
}

blockquote {
  margin: 20px 0 0;
  padding-left: 16px;
  border-left: 3px solid rgba(255,184,108,0.5);
}

pre {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255,255,255,0.06);
  color: #d8e6ff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
  overflow: auto;
  white-space: pre-wrap;
}

.resource-strip {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.verification-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.resource-tile strong {
  display: block;
  margin-bottom: 8px;
}

.verification-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.verification-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.verification-card li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.verification-card a {
  color: var(--accent);
}

.process-section {
  padding: 28px;
}

.process-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.process-list div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.process-list span {
  color: var(--accent-2);
}

.process-list h3 {
  margin: 12px 0 8px;
  font-size: 1.2rem;
}

.is-hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 700ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 120ms;
}

.reveal:nth-child(3) {
  animation-delay: 220ms;
}

.reveal:nth-child(4) {
  animation-delay: 320ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .value-grid,
  .process-list,
  .resource-strip,
  .verification-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section-head,
  .preview-topline {
    flex-direction: column;
    align-items: start;
  }

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

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 14px 64px;
  }

  .hero,
  .preview-card,
  .process-section,
  .feature-card,
  .signup-card {
    padding: 20px;
  }

  .hero-copy,
  .signup-card {
    padding: 0;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-metrics,
  .segmented,
  .segmented-3 {
    grid-template-columns: 1fr;
  }
}
