:root {
  color-scheme: dark;
  --bg: #090b10;
  --bg-soft: #0f131a;
  --panel: rgba(20, 24, 32, 0.84);
  --panel-strong: rgba(17, 20, 28, 0.96);
  --panel-muted: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f7fb;
  --muted: #a3afbf;
  --soft: #cfd6e1;
  --accent: #f4f7ff;
  --accent-cool: #8aa7ff;
  --accent-glow: rgba(138, 167, 255, 0.32);
  --max-width: 1180px;
  --shadow: 0 28px 84px rgba(0, 0, 0, 0.34);
  --display-font: "Avenir Next Condensed", "Avenir Next", "Helvetica Neue", sans-serif;
  --body-font: "Avenir Next", "Helvetica Neue", sans-serif;
  --mono-font: "SF Mono", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(138, 167, 255, 0.16), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.08), transparent 16%),
    linear-gradient(180deg, #0a0d12 0%, #08090d 45%, #06070a 100%);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.5;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 82%);
}

body::after {
  background:
    radial-gradient(circle at 25% 26%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 82% 64%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 12% 74%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px);
  opacity: 0.8;
}

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

a {
  color: inherit;
}

button,
a {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-cool);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  text-decoration: none;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 4rem;
}

.section {
  margin-top: 4.75rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0 0.95rem;
}

.topbar.is-scrolled {
  backdrop-filter: blur(18px);
}

.brand {
  flex: 0 1 16rem;
  min-width: 9rem;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.nav a {
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 1.6rem;
  align-items: stretch;
  min-height: clamp(28rem, 72vh, 42rem);
}

.hero-copy,
.orbital-panel,
.capability-card,
.mode-panel,
.step-card,
.difference-card,
.faq-list details,
.footer {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.96), rgba(10, 12, 17, 0.94));
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto auto -5rem -2rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 167, 255, 0.22), transparent 70%);
  filter: blur(10px);
}

.eyebrow,
.mode-kicker,
.transcript-label,
.step-index,
.status-pill,
.status-meta {
  margin: 0;
  font-family: var(--mono-font);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent-cool);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display-font);
  letter-spacing: -0.025em;
  line-height: 0.96;
}

h1 {
  margin-top: 1rem;
  max-width: 9ch;
  font-size: clamp(3.3rem, 7.8vw, 6.2rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin: 0;
  color: var(--soft);
}

.hero-dek {
  margin-top: 1.35rem;
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border-strong);
}

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

.button-primary {
  background: linear-gradient(180deg, rgba(245, 247, 251, 0.98), rgba(222, 230, 244, 0.92));
  color: #090b10;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.trust-strip span {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--soft);
  font-size: 0.92rem;
}

.hero-stage {
  min-width: 0;
}

.orbital-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  height: 100%;
  border-radius: 2rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  overflow: hidden;
}

.orbital-panel::before {
  content: "";
  position: absolute;
  inset: -12% auto auto 58%;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 70%);
  filter: blur(20px);
}

.panel-header,
.signal-grid,
.mode-metrics,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.panel-header {
  justify-content: space-between;
  align-items: center;
}

.status-pill,
.status-meta {
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
}

.status-pill {
  color: var(--accent-cool);
}

.wavefield {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.85rem;
  min-height: 15rem;
  padding: 1.5rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 18%, rgba(138, 167, 255, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.wavefield span {
  width: clamp(1.05rem, 2vw, 1.45rem);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 247, 251, 0.98), rgba(138, 167, 255, 0.32));
  box-shadow: 0 0 24px rgba(138, 167, 255, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}

.wavefield span:nth-child(1),
.wavefield span:nth-child(7) {
  height: 4.4rem;
}

.wavefield span:nth-child(2),
.wavefield span:nth-child(6) {
  height: 7rem;
  animation-delay: 0.25s;
}

.wavefield span:nth-child(3),
.wavefield span:nth-child(5) {
  height: 10.4rem;
  animation-delay: 0.5s;
}

.wavefield span:nth-child(4) {
  height: 13rem;
  animation-delay: 0.75s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scaleY(0.88);
    opacity: 0.8;
  }

  50% {
    transform: scaleY(1.05);
    opacity: 1;
  }
}

.transcript-card {
  padding: 1rem 1rem 1.05rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.transcript-card-muted {
  background: rgba(138, 167, 255, 0.08);
}

.transcript-label,
.step-index {
  color: var(--accent-cool);
}

.signal-grid {
  margin: 0;
  padding: 0;
}

.signal-grid > div,
.mode-metrics > div {
  min-width: 11rem;
  flex: 1 1 10rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.signal-grid dt,
.mode-metrics span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.signal-grid dd,
.mode-metrics strong {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  max-width: 44rem;
}

.capability-grid,
.difference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.capability-card,
.difference-card {
  border-radius: 1.5rem;
  padding: 1.4rem;
}

.capability-card p,
.difference-card p,
.step-card p,
.mode-copy p {
  margin-top: 0.8rem;
}

.mode-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.mode-button {
  padding: 0.95rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  font: inherit;
  cursor: pointer;
}

.mode-button.is-active,
.mode-button:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.mode-panels {
  margin-top: 1.2rem;
}

.mode-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
  border-radius: 1.75rem;
  padding: 1.4rem;
}

.mode-panel[hidden] {
  display: none;
}

.mode-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--soft);
}

.mode-list li + li {
  margin-top: 0.55rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.step-card {
  border-radius: 1.45rem;
  padding: 1.4rem;
}

.step-card h3 {
  margin-top: 0.85rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.faq-list details {
  border-radius: 1.2rem;
  padding: 1rem 1.05rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq-list p {
  margin-top: 0.75rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1.8rem;
  margin-top: 4.75rem;
  padding: 1.15rem 1.25rem;
}

.footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer img {
  width: 3.25rem;
  height: 3.25rem;
}

.footer-copy {
  color: var(--muted);
}

.footer-meta {
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .hero,
  .mode-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(var(--max-width), calc(100% - 1rem));
  }

  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav,
  .footer-meta {
    justify-content: flex-start;
  }

  .hero-copy,
  .orbital-panel,
  .capability-card,
  .mode-panel,
  .step-card,
  .difference-card,
  .faq-list details,
  .footer {
    border-radius: 1.4rem;
  }

  h1 {
    font-size: clamp(2.9rem, 16vw, 4.8rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .capability-grid,
  .workflow-grid,
  .difference-grid {
    grid-template-columns: 1fr;
  }

  .wavefield {
    min-height: 12rem;
    gap: 0.55rem;
  }

  .wavefield span {
    width: 0.82rem;
  }

  .signal-grid > div,
  .mode-metrics > div {
    min-width: 0;
  }

  .hero-actions,
  .mode-switcher {
    flex-direction: column;
  }

  .button,
  .mode-button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
