:root {
  color-scheme: dark;
  --bg: #020713;
  --bg-deep: #01030b;
  --panel: rgba(5, 16, 35, 0.72);
  --panel-strong: rgba(6, 19, 42, 0.92);
  --line: rgba(61, 225, 255, 0.22);
  --line-bright: rgba(61, 225, 255, 0.7);
  --cyan: #3de1ff;
  --violet: #a66cff;
  --magenta: #ff4eea;
  --text: #eefaff;
  --muted: #a3b8cb;
  --dim: #71879e;
  --max-width: 1240px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.landing-shell main a:not(.button):not(.landing-button),
.page-shell main a:not(.button):not(.landing-button),
.cookie-banner a {
  color: var(--cyan);
  text-underline-offset: 4px;
}

.landing-shell main a:not(.button):not(.landing-button):hover,
.page-shell main a:not(.button):not(.landing-button):hover,
.cookie-banner a:hover {
  color: #fff;
}

.landing-shell,
.page-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: center;
  padding: 78px 0 74px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-weight: 800;
}

h1 {
  max-width: 620px;
  margin-bottom: 25px;
  font-size: clamp(3.5rem, 7vw, 6.9rem);
  letter-spacing: -0.075em;
  line-height: 0.9;
  text-shadow: 0 0 38px rgba(61, 225, 255, 0.13);
}

h1 span {
  display: block;
  color: var(--magenta);
  text-shadow: 0 0 30px rgba(255, 78, 234, 0.25);
}

.lede {
  max-width: 540px;
  margin-bottom: 30px;
  color: #c7d9e9;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

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

.button-primary {
  background: var(--cyan);
  color: #001018;
  box-shadow: 0 0 25px rgba(61, 225, 255, 0.22);
}

.button-primary:hover {
  background: #fff;
  color: #001018;
  box-shadow: 0 0 32px rgba(61, 225, 255, 0.48);
}

.button-quiet {
  border-color: var(--line-bright);
  background: rgba(4, 18, 38, 0.62);
  color: var(--text);
}

.button-quiet:hover {
  background: rgba(61, 225, 255, 0.1);
  color: var(--cyan);
}

.hero-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 26px 0 0;
  color: var(--dim);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-note i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 9px var(--magenta);
}

.hero-art {
  min-width: 0;
  margin: 0;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: #01030b;
  box-shadow: 0 0 35px rgba(0, 190, 255, 0.08), inset 0 0 36px rgba(45, 36, 145, 0.15);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
}

.image-frame::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(61, 225, 255, 0.18);
  content: "";
  pointer-events: none;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.image-frame-hero {
  box-shadow: 0 0 42px rgba(166, 108, 255, 0.2), 0 0 95px rgba(0, 200, 255, 0.08);
}

.hero-art figcaption,
.showcase-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}

.hero-art figcaption strong,
.showcase-card figcaption strong {
  color: var(--text);
  font-size: 0.83rem;
  letter-spacing: 0.05em;
}

.hero-art figcaption span,
.showcase-card figcaption span {
  color: var(--dim);
  font-size: 0.75rem;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.signal-strip > div {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 20px 25px;
  border-right: 1px solid var(--line);
}

.signal-strip > div:first-child {
  padding-left: 0;
}

.signal-strip > div:last-child {
  border-right: 0;
}

.signal-label {
  color: var(--magenta);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal-strip strong {
  font-size: 1.03rem;
  letter-spacing: -0.02em;
}

.intro-section,
.showcase-section,
.loop-section {
  padding: 104px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 650px;
}

.section-heading-wide {
  max-width: 760px;
}

.section-heading h2,
.cta-section h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.6vw, 4.35rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-heading > p:last-child,
.cta-section > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.feature-rail,
.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 58px;
}

.feature-rail article,
.loop-grid article {
  min-height: 220px;
  padding: 25px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(61, 225, 255, 0.065), transparent 62%),
    var(--panel);
}

.feature-rail article:nth-child(2),
.loop-grid article:nth-child(2) {
  border-color: rgba(166, 108, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(166, 108, 255, 0.09), transparent 62%),
    var(--panel);
}

.feature-number,
.loop-number {
  display: block;
  margin-bottom: 35px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.feature-rail article:nth-child(2) .feature-number,
.loop-grid article:nth-child(2) .loop-number {
  color: var(--magenta);
}

.feature-rail h3,
.loop-grid h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.feature-rail p,
.loop-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 18px;
  margin-top: 58px;
}

.showcase-card {
  min-width: 0;
  margin: 0;
}

.showcase-card-wide {
  grid-column: 1 / -1;
}

.showcase-card .image-frame {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.showcase-card:hover .image-frame {
  transform: translateY(-4px);
  box-shadow: 0 0 42px rgba(61, 225, 255, 0.16), inset 0 0 36px rgba(45, 36, 145, 0.15);
}

.showcase-card:nth-child(2n) .image-frame {
  border-color: rgba(166, 108, 255, 0.7);
}

.showcase-card:nth-child(2n) .image-frame::after {
  border-color: rgba(255, 78, 234, 0.18);
}

.loop-grid {
  margin-top: 62px;
}

.loop-grid article {
  min-height: 190px;
}

.loop-number {
  margin-bottom: 22px;
}

.cta-section {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 0;
  background:
    radial-gradient(circle at 78% 48%, rgba(61, 225, 255, 0.13), transparent 22rem),
    radial-gradient(circle at 50% 110%, rgba(255, 78, 234, 0.12), transparent 26rem);
}

.cta-section h2 {
  max-width: 760px;
}

.cta-section .button {
  margin-top: 20px;
}

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

  .hero-copy {
    max-width: 720px;
  }

  .hero-art {
    max-width: 820px;
    margin-left: auto;
  }

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

  .feature-rail article,
  .loop-grid article {
    min-height: 0;
  }

  .feature-number {
    margin-bottom: 20px;
  }
}

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

  .hero {
    padding: 58px 0 52px;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 5.25rem);
  }

  .lede {
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip > div,
  .signal-strip > div:first-child {
    min-height: 0;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip > div:last-child {
    border-bottom: 0;
  }

  .intro-section,
  .showcase-section,
  .loop-section {
    padding: 76px 0;
  }

  .section-heading h2,
  .cta-section h2 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .showcase-card-wide {
    grid-column: auto;
  }
}

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

  .button,
  .showcase-card .image-frame {
    transition: none;
  }
}
