:root {
  color-scheme: dark;
  --ink: #f4f3ff;
  --muted: #aaa8c3;
  --night: #070713;
  --night-2: #0c0b1b;
  --panel: rgba(18, 17, 38, 0.76);
  --violet: #8b5cff;
  --violet-2: #5a2ddd;
  --cyan: #26d9ff;
  --line: rgba(166, 153, 255, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(74, 34, 155, 0.16), transparent 28rem),
    var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-200%);
  background: white;
  color: #090814;
  padding: .75rem 1rem;
  border-radius: .3rem;
}
.skip-link:focus { transform: none; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.2rem, 4vw, 5rem);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(to bottom, rgba(6,6,17,.94), rgba(6,6,17,.72));
  backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; width: fit-content; font: 700 .92rem/1 var(--serif); letter-spacing: .22em; }
.brand-gem {
  width: 20px;
  height: 20px;
  display: inline-block;
  transform: rotate(45deg);
  border: 1px solid #c9c4ff;
  background: radial-gradient(circle at 35% 30%, white 0 6%, #47ceff 7% 22%, #6b35ff 48%, #160b42 72%);
  box-shadow: 0 0 18px rgba(85, 92, 255, .8), inset 0 0 0 3px rgba(255,255,255,.12);
}
.desktop-nav { display: flex; gap: 2rem; align-items: center; color: #c7c4dc; font-size: .86rem; }
.desktop-nav a { position: relative; padding: 1.7rem .15rem; }
.desktop-nav a::after { content: ""; position: absolute; inset: auto 50% 0; height: 1px; background: var(--cyan); transition: inset .25s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { inset-inline: 0; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 1rem; }
.realm-pill { display: flex; align-items: center; gap: .55rem; color: #c9c7dc; font-size: .78rem; letter-spacing: .04em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #53f1a3; box-shadow: 0 0 0 4px rgba(83,241,163,.09), 0 0 12px #53f1a3; }
.menu-button, .mobile-nav { display: none; }

.button {
  min-height: 52px;
  padding: .85rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 1px solid transparent;
  color: white;
  font-weight: 700;
  font-size: .83rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.button-primary {
  position: relative;
  background: linear-gradient(120deg, #4c27c6, #8151ff 55%, #267dd9);
  border-color: rgba(207,196,255,.46);
  box-shadow: inset 0 0 18px rgba(255,255,255,.08), 0 10px 35px rgba(62,28,183,.28);
}
.button-primary::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255,255,255,.12); pointer-events: none; }
.button-primary:hover { box-shadow: inset 0 0 18px rgba(255,255,255,.12), 0 14px 42px rgba(89,48,221,.48); }
.button-ghost { border-color: rgba(207,201,255,.22); background: rgba(8,8,24,.36); }
.button-compact { min-height: 40px; padding: .55rem 1.1rem; font-size: .75rem; }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: 1rem;
  padding: 9rem clamp(1.5rem, 7vw, 8rem) 6rem;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -5;
  opacity: .42;
  background-image: linear-gradient(rgba(125,111,203,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(125,111,203,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 74% 48%, black, transparent 68%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -3;
  width: 50vw;
  aspect-ratio: 1;
  right: -4vw;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(107,79,242,.28);
  box-shadow: inset 0 0 120px rgba(71,37,178,.24), 0 0 90px rgba(40,21,114,.22);
}
.hero-content { position: relative; z-index: 4; max-width: 670px; }
.eyebrow, .section-kicker { color: #a79aff; font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.25rem; }
.eyebrow span { width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; }
h1 { margin-bottom: 1.4rem; font-size: clamp(3.7rem, 7.2vw, 7.6rem); line-height: .84; text-shadow: 0 8px 32px rgba(0,0,0,.5); }
h1 em, h2 em { color: #a88bff; font-weight: 400; }
.hero-copy { max-width: 590px; color: #b6b3ca; font-size: clamp(1rem, 1.25vw, 1.16rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.quick-stats { display: flex; gap: 0; margin: 3rem 0 0; }
.quick-stats div { padding: 0 2rem; border-left: 1px solid var(--line); }
.quick-stats div:first-child { padding-left: 0; border-left: 0; }
.quick-stats dt { color: #76738b; font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; }
.quick-stats dd { margin: .2rem 0 0; font-family: var(--serif); color: #edeaff; font-size: 1rem; }

.hero-emblem { position: relative; z-index: 2; display: grid; place-items: center; width: min(59vw, 920px); justify-self: end; }
.hero-emblem img {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  mix-blend-mode: screen;
  filter: saturate(1.18) contrast(1.12) brightness(.82) drop-shadow(0 35px 45px rgba(0,0,0,.72));

}
.emblem-glow { position: absolute; z-index: -1; width: 68%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(55,208,255,.34), rgba(88,52,255,.34) 35%, transparent 70%); filter: blur(22px); animation: breathe 5s ease-in-out infinite; }
.emblem-base { position: absolute; z-index: 4; bottom: 2%; display: flex; align-items: center; gap: .4rem; }
.emblem-base i { width: 85px; height: 1px; background: linear-gradient(90deg, transparent, #768cff); }
.emblem-base i:last-child { transform: scaleX(-1); }
.emblem-base span { width: 11px; height: 11px; transform: rotate(45deg); border: 1px solid #9ddfff; background: #4b39d7; box-shadow: 0 0 16px var(--cyan); }
.rune-ring { position: absolute; right: 5.5vw; top: 50%; width: min(46vw, 700px); aspect-ratio: 1; transform: translateY(-50%); border: 1px solid rgba(123,98,255,.12); border-radius: 50%; animation: spin 36s linear infinite; }
.rune-ring span { position: absolute; left: 50%; top: 50%; color: rgba(146,121,255,.25); font-family: var(--serif); font-size: 1.2rem; transform: rotate(calc(var(--i) * 45deg)) translateY(-23vw); }
.rune-ring span:nth-child(1) { --i: 0; }.rune-ring span:nth-child(2) { --i: 1; }.rune-ring span:nth-child(3) { --i: 2; }.rune-ring span:nth-child(4) { --i: 3; }
.rune-ring span:nth-child(5) { --i: 4; }.rune-ring span:nth-child(6) { --i: 5; }.rune-ring span:nth-child(7) { --i: 6; }.rune-ring span:nth-child(8) { --i: 7; }
.aurora { position: absolute; z-index: -4; border-radius: 50%; filter: blur(90px); opacity: .28; }
.aurora-one { width: 35vw; height: 18vw; right: 16%; top: 18%; background: #214eff; transform: rotate(-20deg); }
.aurora-two { width: 26vw; height: 23vw; right: 2%; bottom: 10%; background: #7c21ff; }
.scroll-cue { position: absolute; z-index: 6; bottom: 1.8rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; color: #858198; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue i { height: 34px; width: 1px; margin-top: .6rem; background: linear-gradient(var(--violet), transparent); }

.section { position: relative; padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 7vw, 8rem); }
.realm-section { background: linear-gradient(180deg, #080714, #0b091a 50%, #080714); }
.realm-section::after { content: "W"; position: absolute; right: 4vw; top: 0; color: rgba(139,92,255,.025); font: 34rem/.9 var(--serif); pointer-events: none; }
.realm-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 9rem); align-items: center; max-width: 1400px; margin: 2rem auto 0; }
h2 { font-size: clamp(2.8rem, 5vw, 5.6rem); line-height: .98; margin-bottom: 1.7rem; }
.realm-copy > p, .section-heading > p { color: var(--muted); max-width: 580px; line-height: 1.85; }
.text-link { display: inline-flex; gap: .8rem; align-items: center; margin-top: 1rem; color: #d7d2ff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.text-link span { color: var(--cyan); transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.realm-card { position: relative; padding: clamp(1.4rem, 3vw, 2.6rem); border: 1px solid rgba(150,128,255,.25); background: linear-gradient(140deg, rgba(25,21,54,.9), rgba(10,9,24,.78)); box-shadow: 0 24px 80px rgba(0,0,0,.32), inset 0 0 80px rgba(70,40,160,.07); }
.realm-card::before, .join-panel::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.045); pointer-events: none; }
.card-topline { display: flex; justify-content: space-between; color: #706d84; font-size: .67rem; letter-spacing: .17em; }
.live { color: #68e8b0; }.live i { display: inline-block; width: 6px; height: 6px; margin-right: .4rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.realm-core { display: flex; align-items: center; gap: 1.6rem; padding: 3rem 0; }
.realm-core small { color: #8179aa; font-size: .66rem; letter-spacing: .15em; }
.realm-core strong { display: block; margin: .2rem 0; font: 500 clamp(2rem, 4vw, 3.2rem)/1 var(--serif); }
.realm-core p { margin: 0; color: #918da7; font-size: .83rem; }
.mini-orbit { flex: 0 0 auto; width: 94px; aspect-ratio: 1; position: relative; border: 1px solid rgba(89,212,255,.3); border-radius: 50%; box-shadow: inset 0 0 32px rgba(88,57,237,.25), 0 0 28px rgba(59,68,218,.13); }
.mini-orbit::before, .mini-orbit::after { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(157,110,255,.42); border-radius: 50%; transform: rotate(60deg) scaleY(.48); }
.mini-orbit::after { transform: rotate(-60deg) scaleY(.48); }
.mini-orbit i { position: absolute; width: 9px; height: 9px; left: calc(50% - 4px); top: calc(50% - 4px); transform: rotate(45deg); background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.realm-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.realm-metrics div { padding: 1.4rem 1rem 0; border-left: 1px solid var(--line); }
.realm-metrics div:first-child { padding-left: 0; border-left: 0; }
.realm-metrics span { display: block; color: #6f6b82; font-size: .68rem; }
.realm-metrics strong { color: #d9d5e9; font-size: .84rem; }

.systems-section { background: #070712; }
.section-heading { display: flex; justify-content: space-between; gap: 3rem; align-items: end; max-width: 1400px; margin: auto; }
.section-heading h2 { margin-bottom: 0; }.section-heading > p { max-width: 360px; margin-bottom: .4rem; }
.feature-grid { max-width: 1400px; margin: 4rem auto 0; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.feature { position: relative; min-height: 330px; padding: clamp(1.7rem, 4vw, 3rem); display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2rem; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(15,13,33,.58); transition: background .35s ease, transform .35s ease; }
.feature:nth-child(2n) { border-right: 0; }.feature:nth-child(n+3) { border-bottom: 0; }
.feature:hover { z-index: 2; background: rgba(28,21,62,.84); transform: scale(1.012); }
.feature::after { content: ""; position: absolute; width: 260px; height: 260px; right: -130px; bottom: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(98,68,223,.2), transparent 66%); transition: transform .5s ease; }
.feature:hover::after { transform: translate(-25px,-25px) scale(1.2); }
.feature-index { position: absolute; right: 1.4rem; top: 1rem; color: rgba(185,174,255,.12); font: 4rem/1 var(--serif); }
.feature-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(129,105,255,.32); transform: rotate(45deg); background: rgba(88,54,200,.08); }
.feature-icon svg { width: 34px; transform: rotate(-45deg); fill: none; stroke: #9b8cff; stroke-width: 1.4; }
.feature-body { align-self: end; grid-column: 1 / -1; position: relative; z-index: 1; }
.feature-body > span { color: #8177a9; font-size: .65rem; font-weight: 700; letter-spacing: .2em; }
.feature h3 { margin: .35rem 0 .75rem; font: 500 clamp(1.8rem, 3vw, 2.55rem)/1.1 var(--serif); }
.feature p { margin-bottom: 0; color: #9995ad; max-width: 480px; }
.feature-draft .feature-icon svg, .feature-paragon .feature-icon svg { stroke: #4fd9ff; }

.join-section { padding-top: 2rem; }
.join-panel { position: relative; max-width: 1400px; min-height: 520px; margin: auto; padding: clamp(2rem, 6vw, 6rem); display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: center; border: 1px solid rgba(130,100,255,.3); background: radial-gradient(circle at 0% 50%, rgba(69,37,157,.28), transparent 46%), linear-gradient(145deg, rgba(24,18,54,.94), rgba(8,8,22,.95)); overflow: hidden; }
.join-panel::after { content: ""; position: absolute; width: 440px; aspect-ratio: 1; right: -170px; top: -170px; border: 1px solid rgba(100,86,220,.16); border-radius: 50%; box-shadow: inset 0 0 100px rgba(79,42,188,.11); }
.join-copy { position: relative; z-index: 2; }.join-copy p { color: var(--muted); }
.join-steps { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; }
.join-steps li { display: flex; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.join-steps li > span { padding-top: .18rem; color: #6f60b7; font: .8rem var(--serif); }
.join-steps strong { font: 1.25rem var(--serif); }.join-steps p { margin: .15rem 0 0; color: #858197; font-size: .87rem; }
.join-action { grid-column: 2; position: relative; z-index: 2; display: flex; align-items: center; gap: 1rem; }
.join-action > span { color: #6f6b81; font-size: .75rem; }

footer { padding: 2.4rem clamp(1.5rem, 7vw, 8rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); color: #706d82; font-size: .75rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; color: #b9b5c8; letter-spacing: .16em; }.footer-brand .brand-gem { width: 15px; height: 15px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); width: min(90vw, 520px); padding: 1rem 1.2rem; border: 1px solid rgba(126,102,255,.4); background: rgba(13,11,30,.95); box-shadow: 0 20px 60px rgba(0,0,0,.5); color: #d9d5ed; text-align: center; font-size: .85rem; transition: transform .35s ease; }
.toast.visible { transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .desktop-nav, .realm-pill { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 8.5rem; text-align: center; }
  .hero-content { margin: auto; }
  .eyebrow, .hero-actions, .quick-stats { justify-content: center; }
  .hero-emblem { grid-row: 1; width: min(86vw, 690px); justify-self: center; margin-bottom: -5rem; opacity: .78; }
  .hero-content { grid-row: 2; }
  .rune-ring { width: 72vw; right: 14vw; top: 33%; }
  .hero::after { width: 78vw; right: 11vw; top: 34%; }
  .realm-grid { grid-template-columns: 1fr; }
  .join-panel { grid-template-columns: 1fr; gap: 2rem; }
  .join-action { grid-column: 1; }
}

@media (max-width: 720px) {
  .topbar { min-height: 66px; padding-inline: 1rem; }
  .top-actions .button { display: none; }
  .menu-button { width: 42px; height: 42px; display: grid; place-content: center; gap: 7px; border: 1px solid var(--line); background: transparent; }
  .menu-button span { display: block; width: 18px; height: 1px; background: #dcd7f5; transition: transform .2s ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav { position: absolute; top: 66px; left: 0; right: 0; display: grid; padding: 1rem; background: rgba(8,7,20,.98); border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform .25s ease; z-index: -1; }
  .mobile-nav.open { transform: none; }.mobile-nav a { padding: .9rem; border-bottom: 1px solid rgba(255,255,255,.05); }
  .hero { min-height: auto; padding: 7.5rem 1.2rem 5rem; }
  .hero-emblem { width: 112vw; margin-inline: -8vw; margin-bottom: -2rem; }
  .hero-emblem img { filter: saturate(1.2) contrast(1.1) brightness(.72) drop-shadow(0 25px 30px rgba(0,0,0,.7)); }
  h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { display: grid; }
  .quick-stats { margin-top: 2.2rem; }
  .quick-stats div { padding: 0 1rem; }
  .scroll-cue { display: none; }
  .section { padding-inline: 1.2rem; }
  .realm-section::after { display: none; }
  .realm-card { padding: 1.2rem; }
  .realm-core { gap: 1rem; padding-block: 2rem; }
  .mini-orbit { width: 70px; }
  .realm-metrics { grid-template-columns: 1fr; }
  .realm-metrics div { padding: .9rem 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.05); }
  .section-heading { display: block; }.section-heading > p { margin-top: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 290px; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .feature:last-child { border-bottom: 0 !important; }
  .join-panel { padding: 2rem 1.5rem; }
  .join-action { display: grid; }
  footer { flex-direction: column; 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; }
  .reveal { opacity: 1; transform: none; }
}
