:root {
  color-scheme: dark;
  --bg: #05070d;
  --ink: #eef7ff;
  --muted: rgba(238, 247, 255, 0.68);
  --faint: rgba(238, 247, 255, 0.42);
  --line: rgba(142, 245, 255, 0.22);
  --cyan: #71f6ff;
  --violet: #9b6bff;
  --acid: #d7ff6b;
  --panel: rgba(9, 16, 30, 0.52);
  --glass: rgba(255, 255, 255, 0.065);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 18%, rgba(113, 246, 255, 0.18), transparent 27vw),
    radial-gradient(circle at 78% 30%, rgba(155, 107, 255, 0.2), transparent 32vw),
    radial-gradient(circle at 50% 110%, rgba(215, 255, 107, 0.08), transparent 38vw),
    linear-gradient(135deg, #03040a 0%, #08101d 48%, #03040a 100%);
}

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

#starfield,
.noise,
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#starfield { z-index: 0; opacity: 0.86; }

.noise {
  z-index: 4;
  opacity: 0.14;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.scanline {
  z-index: 3;
  opacity: 0.24;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.05) 0 1px, transparent 1px 6px);
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}

.stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1440px);
  height: 100dvh;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 38px);
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand-mark {
  width: 19px;
  height: 19px;
  border: 1px solid rgba(113, 246, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(113, 246, 255, 0.72), inset 0 0 12px rgba(113, 246, 255, 0.46);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: var(--acid);
  filter: blur(0.4px);
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(18px, 5vw, 84px);
  min-height: 0;
}

.copy-panel {
  position: relative;
  max-width: 700px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(113, 246, 255, 0.16);
  border-radius: clamp(22px, 3vw, 38px);
  background: linear-gradient(145deg, rgba(8, 13, 26, 0.72), rgba(8, 13, 26, 0.34));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(28px) saturate(125%);
  overflow: hidden;
}

.copy-panel::before,
.copy-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.copy-panel::before {
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 0 18%, rgba(113,246,255,0.26), transparent 44% 100%);
  opacity: 0.44;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px;
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.copy-panel::after {
  width: 260px;
  height: 260px;
  right: -120px;
  top: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(113,246,255,0.24), transparent 68%);
  filter: blur(4px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 8.4vw, 124px);
  line-height: 0.86;
  letter-spacing: -0.085em;
  text-wrap: balance;
  text-shadow: 0 0 42px rgba(113, 246, 255, 0.18);
}

.lede {
  max-width: 560px;
  margin: clamp(20px, 3vh, 32px) 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.58;
  text-wrap: pretty;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: clamp(24px, 4vh, 38px);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.primary {
  color: #031016;
  background: linear-gradient(135deg, var(--cyan), var(--acid));
  box-shadow: 0 0 32px rgba(113, 246, 255, 0.28), 0 14px 34px rgba(0,0,0,0.34);
  transition: transform 180ms ease, filter 180ms ease;
}

.primary:hover,
.primary:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.ghost {
  color: var(--faint);
  border: 1px solid rgba(238, 247, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.artifact {
  position: relative;
  width: min(45vw, 570px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 64px rgba(113, 246, 255, 0.18));
}

.ring,
.core,
.node {
  position: absolute;
}

.ring {
  inset: 7%;
  border: 1px solid rgba(113, 246, 255, 0.34);
  border-radius: 50%;
  background:
    conic-gradient(from 40deg, transparent 0 10%, rgba(113,246,255,0.62) 12%, transparent 15% 42%, rgba(155,107,255,0.58) 45%, transparent 49% 100%);
  mask: radial-gradient(circle, transparent 0 61%, #000 62% 64%, transparent 65%);
  -webkit-mask: radial-gradient(circle, transparent 0 61%, #000 62% 64%, transparent 65%);
  animation: rotate 18s linear infinite;
}

.ring-two {
  inset: 19%;
  animation-duration: 11s;
  animation-direction: reverse;
  opacity: 0.74;
}

.core {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(238,247,255,0.16);
  background:
    radial-gradient(circle at 50% 45%, rgba(113, 246, 255, 0.7), transparent 10%),
    radial-gradient(circle at 50% 55%, rgba(155, 107, 255, 0.24), transparent 43%),
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: inset 0 0 40px rgba(113,246,255,0.18), 0 0 90px rgba(113,246,255,0.22);
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: breathe 4.8s ease-in-out infinite;
}

.core::before {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(215, 255, 107, 0.42);
  border-radius: 42% 58% 50% 50%;
  transform: rotate(24deg);
}

.core-line {
  position: absolute;
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238,247,255,0.62), transparent);
  animation: sweep 3.3s ease-in-out infinite;
}

.core-line:nth-child(2) { transform: rotate(60deg); animation-delay: -0.9s; }
.core-line:nth-child(3) { transform: rotate(-60deg); animation-delay: -1.8s; }

.node {
  min-width: 92px;
  padding: 10px 13px;
  border: 1px solid rgba(113, 246, 255, 0.22);
  border-radius: 999px;
  color: rgba(238,247,255,0.7);
  background: rgba(3, 7, 15, 0.54);
  backdrop-filter: blur(16px);
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}

.node-a { top: 17%; left: 4%; animation: float 5.5s ease-in-out infinite; }
.node-b { top: 9%; right: 6%; animation: float 6.2s ease-in-out infinite -1.2s; }
.node-c { bottom: 18%; right: 0; animation: float 5.8s ease-in-out infinite -2s; }
.node-d { bottom: 8%; left: 13%; animation: float 6.7s ease-in-out infinite -0.5s; }

.footer {
  padding-bottom: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.coordinates { color: rgba(113, 246, 255, 0.56); }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .52; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.22); } }
@keyframes breathe { 0%, 100% { transform: scale(.98); } 50% { transform: scale(1.03); } }
@keyframes sweep { 0%, 100% { opacity: .14; width: 46%; } 50% { opacity: .82; width: 86%; } }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -14px, 0); } }

@media (max-width: 860px) {
  .stage { padding: 18px; }
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 12px;
  }
  .copy-panel {
    padding: 26px;
  }
  h1 { font-size: clamp(48px, 15.5vw, 78px); }
  .lede { font-size: 15px; line-height: 1.45; }
  .artifact {
    position: absolute;
    right: -104px;
    bottom: 46px;
    width: 280px;
    opacity: 0.78;
    z-index: -1;
  }
  .node { display: none; }
  .signal { display: none; }
  .footer { font-size: 10px; letter-spacing: .1em; }
}

@media (max-height: 700px) {
  .copy-panel { padding-block: 22px; }
  .eyebrow { margin-bottom: 12px; }
  .lede { margin-top: 16px; line-height: 1.42; }
  .actions { margin-top: 20px; }
  h1 { font-size: clamp(44px, 7vw, 86px); }
  .artifact { width: min(39vw, 450px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
