@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #06070a;
  --text: #f3f5f8;
  --muted: #8a93a3;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap { position: relative; width: 100%; max-width: 72rem; margin: 0 auto; padding-inline: clamp(16px, 6vw, 64px); }

/* ---------- Background (decorative, fixed behind the content) ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.aurora { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.a1 {
  width: 70vmax; height: 70vmax; top: -32vmax; left: -22vmax;
  background: radial-gradient(circle, rgb(59 130 246 / 0.42), transparent 62%);
  animation: drift-1 28s ease-in-out infinite alternate;
}
.a2 {
  width: 64vmax; height: 64vmax; bottom: -34vmax; right: -24vmax;
  background: radial-gradient(circle, rgb(139 92 246 / 0.36), transparent 62%);
  animation: drift-2 34s ease-in-out infinite alternate;
}
.a3 {
  width: 42vmax; height: 42vmax; top: 22%; left: 38%;
  background: radial-gradient(circle, rgb(34 211 238 / 0.16), transparent 62%);
  animation: drift-3 24s ease-in-out infinite alternate;
}
@keyframes drift-1 { to { transform: translate(16vmax, 10vmax) scale(1.12); } }
@keyframes drift-2 { to { transform: translate(-14vmax, -8vmax) scale(1.08); } }
@keyframes drift-3 { to { transform: translate(-18vmax, 10vmax) scale(1.2); } }

.grid {
  position: absolute; inset: -64px;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 40% 45%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 65% at 40% 45%, #000 15%, transparent 72%);
  animation: pan 30s linear infinite;
}
@keyframes pan { to { transform: translate(64px, 64px); } }

/* anchored to the page centre so the radar clears the headline on wide and ultra-wide screens */
.orbits {
  position: absolute; top: 50%; left: calc(50% + 18rem);
  width: min(82vmin, 760px); aspect-ratio: 1;
  transform: translateY(-50%);
}
.ring { position: absolute; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.08); animation: spin 60s linear infinite; }
.r1 { inset: 0; }
.r2 { inset: 14%; border-style: dashed; border-color: rgb(255 255 255 / 0.07); animation-duration: 45s; animation-direction: reverse; }
.r3 { inset: 30%; border-color: rgb(96 165 250 / 0.16); animation-duration: 26s; }
.ring::before {
  content: ""; position: absolute; top: -3px; left: calc(50% - 3px);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 14px 3px rgb(34 211 238 / 0.65);
}
.r2::before { background: var(--violet); box-shadow: 0 0 14px 3px rgb(167 139 250 / 0.6); }
.r3::before { background: var(--blue); box-shadow: 0 0 14px 3px rgb(96 165 250 / 0.6); }
.sweep {
  position: absolute; inset: 30%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgb(34 211 238 / 0.22), transparent 22%);
  animation: spin 7s linear infinite;
}
.core {
  position: absolute; inset: calc(50% - 5px); border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 24px 6px rgb(34 211 238 / 0.45);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.8); } }

.grain { position: absolute; inset: 0; background: url("/grain.svg"); opacity: 0.07; mix-blend-mode: overlay; }

/* ---------- Content ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 96px;
}
h1 {
  margin: 0 0 20px;
  max-width: 22ch;
  font-size: clamp(2.75rem, 7.5vw, 6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 30%, #aeb7c6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent {
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--cyan), var(--blue));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 10s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
.lede {
  margin: 0 0 40px;
  max-width: 36ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* Entrance: content rises and sharpens in sequence */
.reveal { opacity: 0; animation: rise 1s var(--ease) forwards; }
h1.reveal { animation-delay: 0.1s; }
.lede.reveal { animation-delay: 0.3s; }
.button.reveal { animation-delay: 0.5s; }
footer.reveal { animation-delay: 0.8s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Button ---------- */
.button {
  position: relative;
  display: inline-block;
  overflow: hidden;
  isolation: isolate;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #dde3ec);
  color: #07080b;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.14),
    0 10px 30px -10px rgb(96 165 250 / 0.6),
    inset 0 1px 0 rgb(255 255 255 / 0.9);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Shine that sweeps across on hover */
.button::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgb(96 165 250 / 0.35) 50%, transparent 65%);
  transform: translateX(-110%);
}
/* Ripple from the centre while pressed */
.button::before {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: -1;
  width: 12px; height: 12px; margin: -6px; border-radius: 50%;
  background: rgb(96 165 250 / 0.35);
  opacity: 0; transform: scale(0);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.24),
    0 16px 44px -10px rgb(96 165 250 / 0.85),
    0 0 60px -12px rgb(167 139 250 / 0.7),
    inset 0 1px 0 rgb(255 255 255 / 0.9);
}
.button:hover::after { transform: translateX(110%); transition: transform 0.8s var(--ease); }
.button:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.button:active::before { opacity: 1; transform: scale(40); transition: transform 0.45s var(--ease), opacity 0s; }
/* inline (not inline-block) so the no-break space keeps the arrow beside the last word */
.arrow { position: relative; left: 0; margin-left: 0.2em; transition: left 0.3s var(--ease); }
.button:hover .arrow { left: 5px; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }

/* ---------- Footer ---------- */
footer { padding-bottom: 28px; color: var(--muted); font-size: 0.875rem; }
footer p {
  margin: 0; padding-top: 28px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.02)) 1;
}

/* ---------- Small screens: orbits sit lower and fainter behind the text ---------- */
@media (max-width: 700px) {
  .orbits { top: auto; bottom: -22vmin; left: auto; right: -30vmin; width: 110vmin; transform: none; opacity: 0.6; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; }
}
@media (forced-colors: active) {
  h1, .accent { background: none; color: CanvasText; }
  .bg { display: none; }
}
