/* Cealum Studios — Roblox Game Development
   Dark, spacious layout in the spirit of the studio banner: near-black
   ground, a single sweeping light arc, glass surfaces and the blue-to-cyan
   accent taken from the logo. */

:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-raise: #08090d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --muted-dim: #6e7075;
  --blue: #0a84ff;
  --blue-bright: #4fb4ff;
  --cyan: #7fe3ff;
  --gradient: linear-gradient(135deg, #0a84ff 0%, #4fb4ff 55%, #7fe3ff 100%);
  --radius: 24px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 30;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}

.skip-link:focus-visible {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

/* ── Background ─────────────────────────────────────────────── */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(10, 132, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 70% 50% at 90% 15%, rgba(127, 227, 255, 0.08), transparent 70%),
    var(--bg);
}

/* the sweeping light arc from the banner */
.arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: arcBreathe 11s ease-in-out infinite;
}

.arc-glow {
  filter: blur(14px);
  opacity: 0.55;
}

.arc-line.two {
  opacity: 0.4;
}

.glow {
  position: absolute;
  width: clamp(320px, 46vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(30px);
}

.glow.one {
  top: 24vh;
  left: -16vw;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.16), transparent 68%);
}

.glow.two {
  bottom: -18vh;
  right: -10vw;
  background: radial-gradient(circle, rgba(79, 180, 255, 0.12), transparent 68%);
}

/* pixel squares, the small motif under the logo */
.pixel {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  opacity: 0.5;
  background: var(--gradient);
  animation: drift 18s ease-in-out infinite;
}

.pixel.one {
  top: 30vh;
  left: 6vw;
}

.pixel.two {
  top: 37vh;
  left: 9vw;
  width: 9px;
  height: 9px;
  opacity: 0.36;
  animation-delay: -6s;
}

.pixel.three {
  top: 68vh;
  left: 4vw;
  width: 11px;
  height: 11px;
  opacity: 0.3;
  animation-delay: -11s;
}

.pixel.four {
  bottom: 18vh;
  right: 9vw;
  width: 12px;
  height: 12px;
  opacity: 0.32;
  animation-delay: -14s;
}

/* ── Navigation ─────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 12px clamp(18px, 4vw, 32px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 52px;
  height: 36px;
  object-fit: contain;
  /* lifts the dark brackets of the PNG off the black bar */
  filter: drop-shadow(0 0 10px rgba(79, 180, 255, 0.35));
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.logo-text strong {
  font-weight: 600;
}

.logo-text span {
  color: var(--blue-bright);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 14px);
}

.nav-menu a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-menu .nav-cta {
  padding: 8px 18px;
  color: #fff;
  background: var(--blue);
  font-weight: 600;
}

.nav-menu .nav-cta:hover {
  background: #2b95ff;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: relative;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 4.5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ── Layout ─────────────────────────────────────────────────── */

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px) clamp(40px, 6vw, 72px);
}

.section {
  display: grid;
  justify-items: center;
  padding: clamp(72px, 12vw, 150px) 0 0;
}

.section-head {
  width: min(760px, 100%);
  margin-bottom: clamp(28px, 5vw, 52px);
  text-align: center;
}

.section-eyebrow {
  margin: 0 0 12px;
  color: var(--blue-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.section-lead {
  max-width: 580px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.55;
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  display: grid;
  justify-items: center;
  padding: clamp(80px, 16vh, 180px) 0 clamp(30px, 6vw, 60px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(3rem, 11vw, 7.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 30%, #9fb6cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* the slogan, tracked out like on the banner */
.tagline {
  margin: 26px 0 0;
  color: rgba(245, 245, 247, 0.9);
  font-size: clamp(0.82rem, 2.1vw, 1.06rem);
  font-weight: 300;
  letter-spacing: clamp(0.18em, 0.6vw, 0.34em);
  text-transform: uppercase;
}

.subtitle {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.2vw, 1.24rem);
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.btn-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 40px rgba(10, 132, 255, 0.35);
}

.btn-primary:hover {
  background: #2b95ff;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  transform: translateY(-1px);
}

/* ── Constellation ──────────────────────────────────────────── */

.sky-map {
  position: relative;
  width: min(760px, 100%);
  min-height: 200px;
  margin-top: clamp(56px, 9vw, 96px);
}

.line {
  position: absolute;
  top: 50%;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.node {
  position: absolute;
  display: grid;
  width: 96px;
  aspect-ratio: 1;
  place-items: center;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
}

.node.main {
  top: 34px;
  left: 50%;
  width: 126px;
  border-color: transparent;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 0 60px rgba(10, 132, 255, 0.45);
  font-weight: 600;
  transform: translateX(-50%);
}

.node.one {
  top: 72px;
  left: 2%;
}

.node.two {
  top: 122px;
  left: 26%;
}

.node.three {
  top: 118px;
  right: 24%;
}

.node.four {
  top: 72px;
  right: 2%;
}

/* ── Panel & cards ──────────────────────────────────────────── */

.panel {
  display: grid;
  gap: 10px;
  width: min(760px, 100%);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.panel-title {
  margin: 4px 0 2px;
  color: var(--muted-dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.panel-note {
  margin: 20px 0 0;
  color: var(--muted-dim);
  font-size: 0.9rem;
}

.card {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

a.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.card.soon {
  cursor: default;
}

.card-icon {
  display: grid;
  width: 52px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 26px rgba(10, 132, 255, 0.3);
  font-size: 0.92rem;
  font-weight: 600;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-body strong {
  display: block;
  font-size: 1.04rem;
  font-weight: 600;
}

.card-body strong em {
  color: var(--muted-dim);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 400;
}

.card-body > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag.live {
  border-color: rgba(127, 227, 255, 0.3);
  color: var(--cyan);
  background: rgba(127, 227, 255, 0.1);
}

.tag.proto {
  border-color: rgba(10, 132, 255, 0.4);
  color: var(--blue-bright);
  background: rgba(10, 132, 255, 0.12);
}

.tag.idea {
  color: var(--muted);
}

.card-arrow {
  color: var(--muted-dim);
  font-weight: 600;
}

a.card:hover .card-arrow {
  color: var(--blue-bright);
}

/* ── Roadmap ────────────────────────────────────────────────── */

.roadmap {
  width: min(760px, 100%);
  margin-top: 16px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.roadmap-title {
  margin: 0 0 26px;
  color: var(--muted-dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.roadmap-rail {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

/* the line the stages sit on */
.roadmap-rail::before {
  position: absolute;
  top: 6px;
  left: 12%;
  width: 76%;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    var(--blue) 0%,
    var(--blue-bright) 30%,
    rgba(255, 255, 255, 0.12) 42%,
    rgba(255, 255, 255, 0.12) 100%
  );
}

.stage {
  position: relative;
  padding-top: 26px;
  text-align: center;
}

.stage-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: #0b0d12;
  transform: translateX(-50%);
}

.stage.done .stage-dot {
  border-color: transparent;
  background: var(--gradient);
}

.stage.active .stage-dot {
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.16);
  animation: stagePulse 2.4s ease-in-out infinite;
}

.stage strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
}

.stage span {
  display: block;
  margin-top: 5px;
  color: var(--muted-dim);
  font-size: 0.84rem;
  line-height: 1.45;
}

.stage.done strong,
.stage.active strong {
  color: var(--text);
}

.stage:not(.done):not(.active) strong {
  color: var(--muted);
}

.stage em {
  display: inline-block;
  margin-top: 9px;
  padding: 3px 10px;
  border: 1px solid rgba(10, 132, 255, 0.4);
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: var(--blue-bright);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roadmap-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.roadmap-note a {
  color: var(--blue-bright);
  text-decoration: none;
}

.roadmap-note a:hover {
  text-decoration: underline;
}

@keyframes stagePulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.16);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(10, 132, 255, 0.04);
  }
}

/* ── Craft grid ─────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 16px;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.tile {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.tile:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.tile-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 13px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 26px rgba(10, 132, 255, 0.28);
}

.tile-icon svg {
  width: 22px;
  height: 22px;
}

.tile h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ── Process ────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  list-style: none;
}

.step {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-num {
  display: block;
  margin-bottom: 14px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.58;
}

/* ── Studio ─────────────────────────────────────────────────── */

.studio-card {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  width: 100%;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid var(--border);
  border-radius: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(10, 132, 255, 0.1), transparent 70%),
    var(--surface);
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
}

.studio-text h2 {
  margin: 0 0 18px;
}

.studio-text p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.62;
}

.studio-text .chips {
  justify-content: flex-start;
  margin-top: 24px;
}

.facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.facts strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
}

.facts span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Contact ────────────────────────────────────────────────── */

.cta-card {
  width: min(680px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--border);
  border-radius: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(10, 132, 255, 0.14), transparent 70%),
    var(--surface);
  text-align: center;
}

.pill {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 14px;
  border: 1px solid rgba(10, 132, 255, 0.35);
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cta-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.cta-card > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.cta-form {
  display: grid;
  gap: 10px;
}

.field {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color 0.15s, background 0.15s;
}

input.field {
  border-radius: 999px;
}

.field::placeholder {
  color: var(--muted-dim);
}

.field:focus {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.07);
}

.form-note {
  margin: 16px 0 0;
  min-height: 1.3em;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-note[data-type="success"] {
  color: #5fd8a4;
}

.form-note[data-type="error"] {
  color: #ff6b6b;
}

.cta-alt {
  margin: 22px 0 0;
  color: var(--muted-dim);
  font-size: 0.92rem;
}

.cta-alt a {
  color: var(--blue-bright);
  font-weight: 500;
  text-decoration: none;
}

.cta-alt a:hover {
  text-decoration: underline;
}

.cta-alt strong {
  color: var(--muted);
  font-weight: 500;
}

/* ── Legal pages ────────────────────────────────────────────── */

.legal {
  width: min(760px, 100%);
  margin: clamp(48px, 9vw, 110px) auto 0;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: clamp(24px, 3vw, 34px);
  background: var(--surface);
}

.legal h1 {
  max-width: none;
  margin: 0 0 24px;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.06;
  background: none;
  color: var(--text);
}

.legal h2 {
  margin: 34px 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.legal ul {
  margin: 0;
  padding-left: 20px;
}

.legal a {
  color: var(--blue-bright);
}

.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  color: var(--blue-bright);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.legal .todo {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 214, 10, 0.14);
  color: #ffd60a;
  font-weight: 500;
}

/* ── 404 ────────────────────────────────────────────────────── */

.nf {
  position: relative;
  display: grid;
  justify-items: center;
  padding: clamp(70px, 15vh, 150px) 0 clamp(40px, 8vw, 90px);
  text-align: center;
}

/* cubes drifting behind the number, nudged by the pointer */
.nf-field {
  position: absolute;
  inset: -6% -4% 10%;
  pointer-events: none;
}

.nf-cube {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--gradient);
  box-shadow: 0 12px 40px rgba(10, 132, 255, 0.35);
  opacity: 0.5;
  animation: cubeFloat 9s ease-in-out infinite;
}

.nf-cube:nth-child(1) {
  top: 6%;
  left: 12%;
}

.nf-cube:nth-child(2) {
  top: 24%;
  right: 14%;
  width: 16px;
  height: 16px;
  opacity: 0.4;
  animation-delay: -1.6s;
}

.nf-cube:nth-child(3) {
  top: 58%;
  left: 6%;
  width: 18px;
  height: 18px;
  opacity: 0.35;
  animation-delay: -3.2s;
}

.nf-cube:nth-child(4) {
  bottom: 8%;
  right: 9%;
  width: 22px;
  height: 22px;
  opacity: 0.45;
  animation-delay: -4.8s;
}

.nf-cube:nth-child(5) {
  top: 44%;
  right: 4%;
  width: 12px;
  height: 12px;
  opacity: 0.3;
  animation-delay: -6.4s;
}

.nf-cube:nth-child(6) {
  bottom: 22%;
  left: 20%;
  width: 14px;
  height: 14px;
  opacity: 0.32;
  animation-delay: -8s;
}

.nf-eyebrow {
  margin: 0 0 18px;
  color: var(--muted-dim);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nf-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.6vw, 18px);
  line-height: 0.9;
  transition: transform 0.25s ease-out;
}

.nf-digit {
  font-size: clamp(6rem, 22vw, 14rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #ffffff 26%, #7d93ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: digitFloat 6s ease-in-out infinite;
}

.nf-digit:last-of-type {
  animation-delay: -3s;
}

/* the zero: an orbiting ring in the logo colours */
.nf-orb {
  position: relative;
  display: block;
  width: clamp(4.4rem, 16vw, 10.2rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0 42%, rgba(10, 132, 255, 0.9) 62%, #7fe3ff 82%, transparent 92%);
  -webkit-mask: radial-gradient(circle, transparent 0 56%, #000 58%);
  mask: radial-gradient(circle, transparent 0 56%, #000 58%);
  filter: drop-shadow(0 0 26px rgba(10, 132, 255, 0.55));
  animation: orbSpin 4.2s linear infinite;
}

.nf-orb-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 18px rgba(127, 227, 255, 0.9);
  transform: translateX(-50%);
}

.nf-title {
  max-width: 18ch;
  margin: clamp(20px, 4vw, 34px) 0 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  background: none;
}

.nf-text {
  max-width: 46ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.55;
}

.nf-console {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 0;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: clamp(0.76rem, 1.9vw, 0.9rem);
  color: var(--muted);
}

.nf-str {
  color: #ff9f6b;
}

.nf-console-out {
  color: var(--blue-bright);
}

.nf-caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--blue-bright);
  animation: caretBlink 1.1s steps(1) infinite;
}

.nf .hero-actions {
  margin-top: 36px;
}

@keyframes cubeFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }

  50% {
    transform: translate3d(10px, -26px, 0) rotate(10deg);
  }
}

@keyframes digitFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes orbSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes caretBlink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* ── Footer ─────────────────────────────────────────────────── */

.footer {
  margin-top: clamp(64px, 10vw, 130px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-dim);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted-dim);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Reveal ─────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Animations ─────────────────────────────────────────────── */

@keyframes arcBreathe {
  0%,
  100% {
    opacity: 0.75;
  }

  50% {
    opacity: 1;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-6deg);
  }

  50% {
    transform: translate3d(12px, -22px, 0) rotate(8deg);
  }
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .studio-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 0.98rem;
    text-align: center;
  }

  .hero {
    padding: 68px 0 24px;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
    line-height: 1.02;
  }

  .sky-map {
    display: grid;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .line {
    display: none;
  }

  .node,
  .node.main,
  .node.one,
  .node.two,
  .node.three,
  .node.four {
    position: static;
    width: 100%;
    min-height: 72px;
    aspect-ratio: auto;
    border-radius: 999px;
    transform: none;
  }

  .node.main {
    grid-column: 1 / -1;
  }

  .card {
    grid-template-columns: 46px 1fr;
    grid-template-areas:
      "icon body"
      "tag  tag";
    gap: 12px;
    padding: 14px;
  }

  .card-icon {
    grid-area: icon;
    width: 46px;
  }

  .card-body {
    grid-area: body;
  }

  .tag {
    grid-area: tag;
    justify-self: start;
  }

  .card-arrow {
    display: none;
  }

  /* roadmap turns into a vertical timeline */
  .roadmap-rail {
    gap: 22px;
    grid-template-columns: minmax(0, 1fr);
  }

  .roadmap-rail::before {
    top: 6px;
    bottom: 12px;
    left: 6px;
    width: 1px;
    height: auto;
    background: linear-gradient(
      180deg,
      var(--blue) 0%,
      var(--blue-bright) 22%,
      rgba(255, 255, 255, 0.12) 34%,
      rgba(255, 255, 255, 0.12) 100%
    );
  }

  .stage {
    padding: 0 0 0 28px;
    text-align: left;
  }

  .stage-dot {
    left: 0;
    transform: none;
  }

  .arc {
    top: -40vh;
    right: -80vw;
    width: 190vw;
  }

  .arc.two {
    display: none;
  }

  .pixel.two,
  .pixel.four {
    display: none;
  }

  .pixel.one {
    top: 24vh;
    left: -6px;
  }

  .pixel.three {
    top: 76vh;
    left: -4px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
