:root {
  --ink: #08080b;
  --paper: #f4f4f6;
  --violet: #6c5cff;
  --violet-light: #a99bff;
  --teal: #00d1b2;
  --font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad-x: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--violet); color: #fff; }

a { color: var(--teal); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--violet-light); }

/* ---------- stage ---------- */

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 42%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 42%, #000 40%, transparent 100%);
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.glow--violet {
  top: 38%; left: 50%;
  width: 820px; height: 820px;
  background: radial-gradient(circle, rgba(108, 92, 255, .55) 0%, rgba(108, 92, 255, 0) 62%);
  filter: blur(30px);
  animation: segGlow 11s ease-in-out infinite;
}
.glow--teal {
  top: 36%; left: 56%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(0, 209, 178, .32) 0%, rgba(0, 209, 178, 0) 60%);
  filter: blur(26px);
  animation: segGlow2 13s ease-in-out infinite;
}

/* ---------- header ---------- */

.header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px var(--pad-x);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 30% 22%, #241a52 0%, #120e2e 45%, #08060f 100%);
  box-shadow: 0 4px 18px rgba(108, 92, 255, .45);
}
.brand__word { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(244, 244, 246, .6);
}
.status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px var(--pad-x) 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 100px;
  background: rgba(255, 255, 255, .03);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244, 244, 246, .72);
}

.hero__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.035em;
  text-wrap: pretty;
}
.hero__accent {
  color: transparent;
  background: linear-gradient(115deg, var(--violet-light), var(--violet) 45%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__lede {
  margin: 28px 0 0;
  max-width: 56ch;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.6;
  color: rgba(244, 244, 246, .66);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 42px;
}

.btn {
  font-family: inherit;
  font-size: 15px;
  border-radius: 11px;
  cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 3px; }

.btn--primary {
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: none;
  padding: 14px 26px;
  box-shadow: 0 8px 30px rgba(244, 244, 246, .12);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(244, 244, 246, .22);
}

.btn--ghost {
  font-weight: 500;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 14px 24px;
  transition: background .18s ease, border-color .18s ease;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .3);
}

.ticker {
  margin-top: 56px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(244, 244, 246, .4);
}
.ticker__caret {
  display: inline-block;
  width: 8px; height: 15px;
  margin-left: 8px;
  background: var(--teal);
  transform: translateY(2px);
  animation: segBlink 1.1s step-end infinite;
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px var(--pad-x);
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(244, 244, 246, .45);
}
.footer a { color: inherit; }
.footer a:hover { color: var(--paper); }

/* ---------- motion ---------- */

@keyframes segGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .55; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: .8; }
}
@keyframes segGlow2 {
  0%, 100% { transform: translate(-50%, -50%) scale(1.1); opacity: .4; }
  50% { transform: translate(-50%, -50%) scale(.9); opacity: .6; }
}
@keyframes segRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes segBlink {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.rise {
  opacity: 0;
  animation: segRise .8s cubic-bezier(.2, .7, .2, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .rise, .glow, .ticker__caret { animation: none; }
  .rise { opacity: 1; }
  .btn--primary:hover { transform: none; }
}
