:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0d1b2d;
  --panel: rgba(10, 21, 37, 0.76);
  --panel-strong: rgba(10, 21, 37, 0.92);
  --line: rgba(138, 177, 255, 0.16);
  --text: #eef4ff;
  --muted: #99abc8;
  --teal: #7ee7d7;
  --aqua: #7ea9ff;
  --amber: #ffd38a;
  --danger: #ff8c8c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --radius-sm: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(126, 231, 215, 0.16), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(126, 169, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 211, 138, 0.12), transparent 30%),
    linear-gradient(180deg, #050c17 0%, #091321 42%, #07111f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  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: 72px 72px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 88%);
  pointer-events: none;
  opacity: 0.45;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 0.8px, transparent 1px),
    radial-gradient(circle at 70% 45%, rgba(255, 255, 255, 0.65) 0.8px, transparent 1px),
    radial-gradient(circle at 40% 75%, rgba(255, 255, 255, 0.55) 0.8px, transparent 1px);
  background-size: 160px 160px;
}

.site-header,
.section,
.signal-strip,
.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(5, 12, 23, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
}

.brand-lockup,
.brand,
.site-nav,
.hero-actions,
.hero-points,
.metric-rail {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 14px;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(126, 231, 215, 0.22), rgba(126, 169, 255, 0.32));
  border: 1px solid rgba(126, 231, 215, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.status-pill,
.eyebrow,
.panel-label,
.feature-index,
.step-number,
.list-kicker {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(126, 231, 215, 0.1);
  border: 1px solid rgba(126, 231, 215, 0.16);
  font-size: 0.7rem;
}

.site-nav {
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #04131c;
  background: linear-gradient(135deg, var(--teal), #c4ffca);
  box-shadow: 0 12px 32px rgba(126, 231, 215, 0.18);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.button-block {
  width: 100%;
}

.section {
  padding: 42px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 40px;
  padding-top: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--teal);
  font-size: 0.72rem;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 7vw, 6.7rem);
}

.hero-text,
.section-heading p,
.feature-card p,
.workflow-step p,
.outcome-card p,
.alpha-copy p,
.alpha-list p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 60ch;
  margin: 26px 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-points {
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #d7e0f3;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.halo {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.75;
}

.halo-one {
  top: 16px;
  right: 30px;
  width: 180px;
  height: 180px;
  background: rgba(126, 231, 215, 0.16);
}

.halo-two {
  left: 30px;
  bottom: 28px;
  width: 220px;
  height: 220px;
  background: rgba(126, 169, 255, 0.16);
}

.editor-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transform: perspective(1400px) rotateX(7deg) rotateY(-7deg);
  transform-style: preserve-3d;
}

.editor-topbar {
  display: flex;
  gap: 8px;
}

.editor-topbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.editor-topbar span:first-child {
  background: #f27b72;
}

.editor-topbar span:nth-child(2) {
  background: #f6c056;
}

.editor-topbar span:nth-child(3) {
  background: #61d095;
}

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

.code-panel,
.feature-card,
.workflow-step,
.outcome-card,
.alpha-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.code-panel {
  padding: 18px;
  border-radius: 22px;
}

.code-panel pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #d6e3ff;
}

.panel-label,
.feature-index,
.step-number,
.list-kicker {
  display: inline-block;
  color: var(--teal);
  font-size: 0.72rem;
}

.code-before .panel-label {
  color: var(--danger);
}

.code-after .panel-label {
  color: #92ffbf;
}

.metric-rail {
  gap: 14px;
  flex-wrap: wrap;
}

.metric-card {
  flex: 1 1 140px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.metric-value {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.signal-strip span:first-child {
  color: var(--text);
}

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

.section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 13ch;
}

.section-heading p {
  margin-top: 18px;
}

.feature-grid,
.workflow-grid,
.outcome-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.feature-card,
.workflow-step,
.outcome-card,
.alpha-card {
  padding: 24px;
  border-radius: 24px;
}

.feature-card h3,
.workflow-step h3,
.outcome-card h3,
.alpha-copy h2,
.alpha-card p {
  margin: 14px 0 0;
}

.feature-card h3,
.workflow-step h3,
.outcome-card h3,
.alpha-copy h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.split-section {
  display: grid;
  gap: 28px;
}

.workflow-step,
.outcome-card {
  min-height: 220px;
}

.alpha-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.alpha-section .alpha-copy {
  padding: 8px 0;
}

.alpha-card {
  display: grid;
  gap: 20px;
}

.alpha-list {
  display: grid;
  gap: 16px;
}

.alpha-list p {
  margin: 8px 0 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 34px;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .editor-card {
    transform: none;
  }

  .workflow-grid,
  .outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alpha-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    margin-top: 0;
    width: min(calc(100% - 24px), var(--max-width));
    border-radius: 28px;
    padding: 16px;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .site-header > .button {
    display: none;
  }

  .site-header,
  .section,
  .signal-strip,
  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .section {
    padding: 28px 0;
  }

  .hero {
    padding-top: 28px;
    gap: 28px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .editor-grid,
  .feature-grid,
  .workflow-grid,
  .outcome-grid,
  .alpha-section {
    grid-template-columns: 1fr;
  }

  .metric-rail,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .signal-strip {
    border-radius: 26px;
  }

  .feature-card,
  .workflow-step,
  .outcome-card,
  .alpha-card,
  .code-panel,
  .editor-card {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .reveal,
  .editor-card {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
