:root {
  color-scheme: dark;
  --bg: #02080f;
  --panel: rgba(3, 10, 17, 0.88);
  --panel-strong: rgba(4, 15, 25, 0.94);
  --text: #eefbff;
  --muted: #91adba;
  --line: rgba(0, 231, 255, 0.28);
  --accent: #00e7ff;
  --accent-strong: #4df8ff;
  --accent-rgb: 0, 231, 255;
  --brand-blue-rgb: 17, 109, 255;
  --warm: #ffd17d;
  --ink: #02080f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(var(--accent-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--brand-blue-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #02080f 0%, #06151e 48%, #090b13 100%);
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--text);
}

a { color: inherit; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.88rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(2, 8, 15, 0.78);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: grid;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.brand-mark span {
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark strong {
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.4rem);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--accent-strong); }

.hero-section {
  position: relative;
  min-height: 94vh;
  padding: 6.8rem clamp(1rem, 4vw, 3rem) 4rem;
  overflow: hidden;
}

.signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(20rem, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1180px, 100%);
  min-height: calc(94vh - 11.2rem);
  margin: 0 auto;
}

.hero-copy { max-width: 44rem; }

.eyebrow,
.summary-kicker,
.plan-label {
  display: block;
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1.15rem;
  color: #f8fbff;
  font-size: clamp(2.9rem, 6.1vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h1 span { display: block; }

h2 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 4.6vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 { margin-bottom: 0.6rem; }

.hero-lede,
.section-heading p,
.feature-card p,
.summary-grid p,
.price-card p,
.download-copy p,
.paid-download-card p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-lede {
  max-width: 39rem;
  color: #d7eef5;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions,
.pricing-grid,
.download-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  min-width: 9.4rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  font-weight: 850;
  line-height: 1.1;
}

.button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.button:hover,
.download-row:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(var(--accent-rgb), 0.52);
  background: linear-gradient(135deg, rgba(0, 137, 177, 0.92), rgba(var(--brand-blue-rgb), 0.72));
  color: #f8fbff;
  box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.12);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(5, 18, 27, 0.82);
  color: var(--text);
}

.product-stage {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 8px;
  background: rgba(3, 10, 17, 0.88);
  box-shadow: 0 30px 88px rgba(0, 0, 0, 0.42);
}

.stage-toolbar,
.preview-readout {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.82rem 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.stage-toolbar { border-bottom: 1px solid var(--line); }
.preview-readout { border-top: 1px solid var(--line); }

.product-stage img {
  display: block;
  width: 100%;
  height: auto;
}

.intro-band,
.content-section,
.pricing-band {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
}

.summary-grid,
.feature-grid,
.controller-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--line);
}

.feature-grid,
.controller-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-grid > div,
.feature-card,
.controller-grid article,
.price-card,
.download-copy,
.paid-download-card {
  min-width: 0;
  background: rgba(3, 10, 17, 0.88);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.summary-grid strong,
.price-card strong,
.paid-download-card strong {
  display: block;
  font-size: clamp(1.35rem, 2.8vw, 2.3rem);
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 2rem;
}

.controller-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, 100%);
  margin: 0 auto 1rem;
}

.controller-tools label {
  color: var(--muted);
  font-weight: 800;
}

.controller-tools input,
.form-field input {
  width: min(100%, 22rem);
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(3, 10, 17, 0.88);
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.9rem;
}

.controller-grid article span {
  display: block;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.controller-grid article strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.12rem;
}

.pricing-band {
  border-block: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(0, 231, 255, 0.035);
}

.pricing-grid {
  width: min(880px, 100%);
  margin: 0 auto;
}

.price-card {
  flex: 1 1 18rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.featured-price {
  border-color: rgba(var(--accent-rgb), 0.58);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.18);
}

.purchase-helper {
  display: block;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1px;
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  color: var(--muted);
  border-top: 1px solid rgba(var(--accent-rgb), 0.16);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.checkout-result {
  padding-top: 6rem;
  min-height: 78vh;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: min(880px, 100%);
  background: var(--line);
}

.download-row {
  display: grid;
  gap: 0.35rem;
  min-height: 8rem;
  padding: 1.4rem;
  background: rgba(3, 10, 17, 0.88);
  color: var(--text);
  text-decoration: none;
}

.download-row span { color: var(--muted); }
.download-row strong { font-size: 1.4rem; }
.download-row[aria-disabled="true"] { opacity: 0.46; }

.recovery-form {
  display: grid;
  gap: 1rem;
  width: min(30rem, 100%);
}

.form-field {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 800;
}

.status-note { min-height: 1.5rem; }

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-shell,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .summary-grid,
  .controller-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  h2 {
    max-width: 100%;
  }

  .controller-tools,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
