:root {
  color-scheme: dark;
  --text: #eff7ff;
  --muted: #9cb4c5;
  --aqua: #7ce8ff;
  --mint: #91ffc7;
  --gold: #f4ce7a;
  --panel: rgba(10, 22, 33, 0.56);
  --line: rgba(165, 214, 255, 0.15);
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
  --hero-font: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --display-font: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --reveal-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--hero-font);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(18, 92, 125, 0.38), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(17, 142, 103, 0.26), transparent 22%),
    radial-gradient(circle at 50% 60%, rgba(17, 53, 92, 0.22), transparent 45%),
    linear-gradient(180deg, #08131d 0%, #04080d 100%);
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

.scroll-space {
  height: 220vh;
}

.flow-canvas,
.noise,
.aurora,
.stage {
  position: fixed;
  inset: 0;
}

.flow-canvas,
.noise,
.aurora {
  pointer-events: none;
}

.flow-canvas {
  opacity: 0.85;
}

.noise {
  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: 80px 80px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
  opacity: 0.12;
}

.aurora {
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}

.aurora-left {
  top: 12%;
  left: -8%;
  width: 32rem;
  height: 32rem;
  background: radial-gradient(circle, rgba(77, 195, 255, 0.55), transparent 65%);
}

.aurora-right {
  right: -10%;
  bottom: 10%;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(104, 255, 193, 0.36), transparent 62%);
  animation-duration: 22s;
}

.stage {
  z-index: 1;
}

.topbar,
.intro,
.reveal {
  position: absolute;
  left: 50%;
  width: min(1280px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.topbar {
  top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  opacity: calc(var(--reveal-progress) * 1.15);
  transform: translateX(-50%) translateY(calc((1 - var(--reveal-progress)) * -14px));
  pointer-events: none;
  transition: opacity 180ms ease;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-mark {
  position: relative;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(124, 232, 255, 0.28);
  border-radius: 16px;
  background: rgba(7, 18, 28, 0.65);
  box-shadow: inset 0 0 30px rgba(124, 232, 255, 0.08);
}

.brand-mark span {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--aqua), rgba(145, 255, 199, 0.9));
}

.brand-mark span:nth-child(1) {
  top: 11px;
  left: 12px;
  width: 10px;
  height: 10px;
}

.brand-mark span:nth-child(2) {
  top: 21px;
  left: 23px;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 7px rgba(124, 232, 255, 0.08);
}

.brand-mark span:nth-child(3) {
  right: 11px;
  bottom: 12px;
  width: 12px;
  height: 12px;
}

.topbar h1,
.intro-copy h2,
.node-title,
.hero-copy h3 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 600;
}

.topbar h1 {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.status-pill,
.node-subtitle,
.scroll-cue-label,
.eyebrow,
.signal-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--gold);
}

.status-pill {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(124, 232, 255, 0.24);
  border-radius: 999px;
  background: rgba(7, 18, 28, 0.7);
  color: var(--muted);
}

.intro {
  top: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  transform:
    translateX(-50%)
    translateY(calc(-50% - var(--reveal-progress) * 36vh))
    scale(calc(1 - var(--reveal-progress) * 0.22));
  transform-origin: center center;
  opacity: max(0, calc(1 - var(--reveal-progress) * 1.5));
  visibility: visible;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.intro-copy {
  display: grid;
  gap: 1rem;
}

.intro-copy h2 {
  font-size: clamp(4rem, 11vw, 8.4rem);
  line-height: 0.94;
  letter-spacing: 0.015em;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.scroll-cue {
  position: static;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  border: 0;
  padding: 0;
  margin-top: 2.5rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: calc(1 - var(--reveal-progress) * 1.6);
  transition: opacity 180ms ease;
}

.scroll-cue-line {
  position: relative;
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, rgba(124, 232, 255, 0), rgba(124, 232, 255, 0.75), rgba(124, 232, 255, 0));
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(124, 232, 255, 0.8);
  border-bottom: 1px solid rgba(124, 232, 255, 0.8);
  transform: translateX(-50%) rotate(45deg);
  animation: cuePulse 2s ease-in-out infinite;
}

.reveal {
  top: 50%;
  transform:
    translateX(-50%)
    translateY(calc(-50% + (1 - var(--reveal-progress)) * 8vh));
  opacity: calc((var(--reveal-progress) - 0.08) * 1.2);
  transition: opacity 180ms ease;
  pointer-events: none;
}

.reveal-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.02fr) minmax(360px, 0.98fr);
  gap: 24px;
  align-items: stretch;
}

.panel {
  border: 1px solid rgba(165, 214, 255, 0.15);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(15, 31, 46, 0.72), rgba(7, 18, 28, 0.64)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: 42px;
  transform:
    translateY(calc((1 - var(--reveal-progress)) * 34px))
    scale(calc(0.97 + var(--reveal-progress) * 0.03));
}

.hero-copy h3 {
  max-width: none;
  font-size: clamp(1.95rem, 3vw, 3.25rem);
  line-height: 1;
}

.lede {
  max-width: 38rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 2.1rem;
}

.signal-card,
.visual-node {
  border: 1px solid rgba(165, 214, 255, 0.14);
  background: rgba(7, 18, 28, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.signal-card {
  min-height: 146px;
  padding: 1rem;
  border-radius: 20px;
}

.signal-card strong {
  display: block;
  margin: 0.45rem 0 0.55rem;
  font-size: 1.1rem;
}

.signal-card small {
  color: var(--muted);
  line-height: 1.55;
}

.hero-visual {
  width: min(920px, 100%);
  min-height: min(72vh, 760px);
  padding: 22px;
  transform:
    translateY(calc((1 - var(--reveal-progress)) * 50px))
    scale(calc(0.94 + var(--reveal-progress) * 0.06));
}

.visual-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(57, 124, 162, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(11, 26, 39, 0.92), rgba(6, 14, 22, 0.98));
}

.radar-ring {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(124, 232, 255, 0.12);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 260px;
  height: 260px;
}

.ring-2 {
  width: 430px;
  height: 430px;
}

.ring-3 {
  width: 620px;
  height: 620px;
}

.visual-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.visual-links path {
  fill: none;
  stroke: rgba(124, 232, 255, 0.4);
  stroke-width: 2;
  stroke-dasharray: 8 14;
  animation: dash 10s linear infinite;
}

.visual-node {
  position: absolute;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(165, 214, 255, 0.14);
  background: rgba(7, 18, 28, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.node-core {
  top: 42%;
  left: 50%;
  min-width: 180px;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(124, 232, 255, 0.18), rgba(145, 255, 199, 0.15));
  box-shadow:
    0 0 0 1px rgba(124, 232, 255, 0.24),
    0 0 60px rgba(124, 232, 255, 0.12);
}

.node-ingest {
  top: 12%;
  left: 8%;
  width: 220px;
}

.node-execute {
  top: 12%;
  right: 8%;
  width: 220px;
}

.node-output {
  left: 50%;
  bottom: 12%;
  width: 220px;
  transform: translateX(-50%);
}

.node-title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
  color: var(--text);
}

.node-subtitle {
  color: #a9c8d8;
  line-height: 1.55;
}

@keyframes dash {
  to {
    stroke-dashoffset: -88;
  }
}

@keyframes cuePulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(45deg);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) translateY(8px) rotate(45deg);
    opacity: 1;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -4%, 0) scale(1.08);
  }
}

@media (max-width: 900px) {
  .topbar {
    width: min(100vw - 24px, 1280px);
  }

  .status-pill {
    display: none;
  }

  .hero-visual {
    min-height: min(66vh, 700px);
  }

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

  .hero-copy h3 {
    max-width: none;
  }

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

@media (max-width: 720px) {
  .scroll-space {
    height: 200vh;
  }

  .topbar,
  .intro,
  .reveal {
    width: calc(100vw - 20px);
  }

  .topbar {
    top: 12px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .topbar h1 {
    font-size: 1.1rem;
  }

  .intro-copy h2 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .tagline {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 620px;
    padding: 16px;
  }

  .visual-frame {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 18px;
  }

  .node-core,
  .node-ingest,
  .node-execute,
  .node-output {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin-bottom: 14px;
    transform: none;
  }

  .ring-2,
  .ring-3,
  .visual-links {
    display: none;
  }

  .ring-1 {
    width: 220px;
    height: 220px;
  }
}
