:root {
  color-scheme: dark;
  --ink: #f7f1df;
  --muted: #aaa8b7;
  --night: #090a13;
  --panel: #121424;
  --violet: #9f7cff;
  --gold: #f1c16b;
  --line: rgba(255,255,255,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sky { position: absolute; inset: 0 0 auto; height: 850px; overflow: hidden; pointer-events: none; background: radial-gradient(circle at 70% 32%, rgba(91,62,160,.22), transparent 30%), radial-gradient(circle at 17% 12%, rgba(40,96,117,.13), transparent 28%); }
.sky::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.62) 0 1px, transparent 1.5px); background-size: 93px 93px; mask-image: linear-gradient(to bottom, black, transparent 90%); opacity: .24; }
.star { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: white; box-shadow: 0 0 16px 4px rgba(200,185,255,.45); }
.star-a { top: 18%; left: 8%; }.star-b { top: 38%; right: 9%; }.star-c { top: 11%; right: 32%; }.star-d { top: 61%; left: 42%; }
.orbit { position: absolute; border: 1px solid rgba(174,154,238,.13); border-radius: 50%; transform: rotate(-18deg); }
.orbit-a { width: 700px; height: 260px; right: -140px; top: 130px; }.orbit-b { width: 520px; height: 900px; left: -300px; top: -250px; }

.nav { height: 88px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; font-size: .84rem; letter-spacing: .19em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(240,218,153,.55); color: var(--gold); transform: rotate(45deg); }
.brand-mark::first-letter { transform: rotate(-45deg); }
nav { display: flex; align-items: center; gap: 30px; }
nav a { color: #c6c2d0; text-decoration: none; font-size: .77rem; font-weight: 700; letter-spacing: .09em; }
nav a:hover { color: white; }
.nav-cta { border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; }

.hero { min-height: 720px; position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 48px; padding-bottom: 60px; }
.eyebrow { color: var(--gold); font-size: .71rem; font-weight: 800; letter-spacing: .24em; margin: 0 0 18px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(3.6rem, 7.4vw, 6.9rem); letter-spacing: -.065em; }
h1 span { color: #bca6ff; }
h2 { font-size: clamp(2.6rem, 5vw, 4.9rem); letter-spacing: -.045em; }
.lede { color: #bab6c5; max-width: 590px; font-size: 1.11rem; margin: 30px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 23px; border-radius: 3px; text-decoration: none; font-weight: 800; font-size: .78rem; letter-spacing: .06em; }
.button-primary { color: #12101a; background: linear-gradient(135deg, #efd08a, #f2b75e); box-shadow: 0 12px 45px rgba(220,164,80,.17); }
.button-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button-quiet { border: 1px solid var(--line); color: #d4d0dc; }
.platform-line { display: flex; flex-wrap: wrap; gap: 22px; padding: 0; margin: 32px 0 0; color: #777584; list-style: none; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.platform-line li + li::before { content: "·"; margin-right: 22px; color: #4c4b58; }

.hero-art { display: grid; place-items: center; min-height: 520px; perspective: 1000px; }
.astrolabe { width: min(450px, 78vw); aspect-ratio: 1; position: relative; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(207,188,255,.19); background: radial-gradient(circle, rgba(131,92,255,.25) 0 3%, rgba(37,25,69,.3) 4% 27%, transparent 28%), conic-gradient(from 30deg, transparent, rgba(170,136,255,.09), transparent 30%, rgba(240,187,95,.08), transparent 70%); box-shadow: inset 0 0 90px rgba(95,63,170,.14), 0 0 100px rgba(58,34,116,.12); transform: rotateX(56deg) rotateZ(-18deg); animation: drift 8s ease-in-out infinite; }
.astrolabe::before, .astrolabe::after { content: ""; position: absolute; inset: 12%; border: 1px dashed rgba(244,215,151,.26); border-radius: 50%; }
.astrolabe::after { inset: 31%; border-style: solid; }
.ring { position: absolute; border: 1px solid rgba(179,155,245,.36); border-radius: 50%; }
.ring-one { inset: 20% -5%; }.ring-two { inset: -5% 20%; }
.core { font-size: 4.4rem; color: var(--gold); text-shadow: 0 0 35px #ae70ff; transform: rotateZ(18deg) rotateX(-56deg); }
.sigil { position: absolute; width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 800; background: #0d0e1b; transform: rotateZ(18deg) rotateX(-56deg); box-shadow: 0 0 28px color-mix(in srgb, currentColor 25%, transparent); }
.sigil-cinder { color: #ff8063; left: 4%; top: 17%; }.sigil-rime { color: #82d8ff; right: 3%; top: 24%; }.sigil-storm { color: #c79aff; right: 20%; bottom: 0; }.sigil-grove { color: #8de09b; left: 15%; bottom: 5%; }
@keyframes drift { 0%,100% { translate: 0 -5px; } 50% { translate: 0 11px; } }

.promise { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(141,101,237,.08), rgba(202,157,72,.06)); }
.promise-grid { min-height: 355px; display: grid; grid-template-columns: .7fr 1.2fr 1fr; gap: 60px; align-items: center; }
.promise .eyebrow { margin: 0; }.promise h2 { font-size: clamp(2.2rem, 4vw, 4rem); }.promise-grid > p:last-child { color: #aaa7b4; font-size: 1.02rem; }

.section { padding-block: 120px; }
.section-heading { max-width: 760px; margin-bottom: 55px; }.section-heading > p:last-child { max-width: 600px; color: var(--muted); }
.mage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mage-card { min-height: 355px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); position: relative; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.mage-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, currentColor 50%, transparent); }
.mage-card::after { content: ""; width: 180px; height: 180px; position: absolute; right: -75px; top: -65px; border-radius: 50%; background: currentColor; filter: blur(70px); opacity: .12; }
.mage-number { color: #6b6976; font-size: .68rem; letter-spacing: .15em; }.mage-glyph { font-family: Georgia, serif; font-size: 3.5rem; line-height: 1; margin: 45px 0 25px; }
.mage-card h3 { font-size: 1.65rem; }.mage-card p { color: #a7a4b0; font-size: .91rem; }.mage-card small { margin-top: auto; letter-spacing: .12em; font-size: .62rem; font-weight: 800; }
.cinder { color: #ff8063; }.rime { color: #82d8ff; }.storm { color: #c79aff; }.grove { color: #8de09b; }

.observatory { background: #0e101d; border-block: 1px solid var(--line); }
.observatory-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: center; }
.stage-list { list-style: none; padding: 0; margin: 0; }
.stage-list li { display: grid; grid-template-columns: 55px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.stage-list li > span { color: var(--gold); font-family: Georgia, serif; font-size: 1.7rem; }.stage-list strong { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }.stage-list p { margin: 6px 0 0; color: var(--muted); }

.download { padding-bottom: 90px; }
.download-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; padding: clamp(32px, 6vw, 75px); border: 1px solid rgba(224,198,126,.25); background: radial-gradient(circle at 15% 5%, rgba(191,142,61,.14), transparent 30%), radial-gradient(circle at 95% 90%, rgba(125,80,221,.15), transparent 35%), #111321; }
.build-note { color: #8e8b99; margin-top: 25px; }.download-actions { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.download-button { min-height: 76px; display: flex; align-items: center; gap: 18px; padding: 14px 20px; color: #16131d; background: #f1c873; text-decoration: none; font-size: 1rem; font-weight: 800; }
.download-button:nth-child(2) { color: #efedf5; background: #29273a; border: 1px solid rgba(255,255,255,.11); }.download-button:hover { filter: brightness(1.08); }
.download-button small { display: block; font-size: .56rem; letter-spacing: .15em; opacity: .62; }.download-icon { font-size: 1.8rem; }
.download-actions > p { margin: 5px 0 0; color: #777583; font-size: .72rem; }
.release-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }
.release-links a { color: #d4cced; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-underline-offset: 4px; }
.release-links a:hover { color: white; }

.guide { min-height: calc(100vh - 190px); padding-block: 90px 120px; position: relative; z-index: 1; }
.guide-copy { max-width: 780px; }
.guide-copy h1 { font-size: clamp(3rem, 7vw, 6rem); }
.guide-copy > p { color: var(--muted); max-width: 650px; font-size: 1.05rem; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 52px; }
.guide-card { padding: 32px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.guide-card h2 { font-size: 2rem; margin-bottom: 20px; }
.guide-card ol { margin: 0; padding-left: 1.2rem; color: #aaa7b4; }
.guide-card li + li { margin-top: 12px; }
.verify-box { margin-top: 16px; padding: 24px 28px; border: 1px solid rgba(241,193,107,.3); background: rgba(241,193,107,.05); color: #bbb5c6; }
.verify-box code { color: var(--gold); overflow-wrap: anywhere; }

footer { min-height: 100px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: #666471; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 900px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }.hero-art { min-height: 430px; }
  .promise-grid { grid-template-columns: 1fr; gap: 20px; padding-block: 70px; }
  .mage-grid { grid-template-columns: repeat(2, 1fr); }
  .observatory-grid, .download-panel { grid-template-columns: 1fr; gap: 55px; }
  .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .shell { width: min(100% - 28px, 1160px); }.nav { height: 72px; }.nav-cta { padding: 8px 12px; }
  .hero { min-height: auto; padding-top: 80px; }.hero-art { min-height: 350px; overflow: hidden; }.astrolabe { width: 70vw; }.sigil { width: 52px; height: 52px; font-size: 1.25rem; }
  .platform-line { justify-content: center; gap: 10px; }.platform-line li + li::before { margin-right: 10px; }
  .section { padding-block: 80px; }.mage-grid { grid-template-columns: 1fr; }.mage-card { min-height: 300px; }
  .download-panel { padding: 28px 20px; }.download-button { min-height: 68px; }
  footer { flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
}

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