:root {
  --ink: #071631;
  --navy: #071f52;
  --blue: #075cf1;
  --cyan: #35d8ff;
  --sky: #bcefff;
  --paper: #fffef8;
  --white: #ffffff;
  --yellow: #ffd95c;
  --shadow: 7px 7px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(53,216,255,.18), transparent 24rem),
    radial-gradient(circle at 84% 36%, rgba(7,92,241,.10), transparent 28rem),
    var(--paper);
  font-family: "Space Mono", monospace;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  z-index: -1;
  background-image:
    radial-gradient(circle, var(--blue) 1px, transparent 1.2px),
    radial-gradient(circle, var(--cyan) 1px, transparent 1.2px);
  background-size: 54px 54px, 91px 91px;
  background-position: 0 0, 22px 14px;
}

.cursor-glow {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,216,255,.22), rgba(7,92,241,.06) 44%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 30;
  mix-blend-mode: multiply;
}

.section-shell {
  width: min(1220px, calc(100% - 36px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(1260px, calc(100% - 24px));
  margin: 12px auto 0;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 9px 12px 9px 14px;
  background: rgba(255,255,255,.88);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 43px; height: 43px; display: grid; place-items: center;
  border-radius: 50%; color: white; background: var(--blue);
  border: 3px solid var(--ink); font-family: Chewy, cursive; font-size: 24px;
}
.brand-text { font-size: 13px; letter-spacing: .04em; }
.nav { margin-left: auto; display: flex; gap: 20px; font-size: 12px; font-weight: 700; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 3px; background: var(--cyan); transition: .2s; }
.nav a:hover::after { right: 0; }
.x-btn {
  padding: 12px 16px; color: white; background: var(--ink); border: 3px solid var(--ink);
  border-radius: 11px; font-size: 12px; font-weight: 700;
}

.hero {
  min-height: 790px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 34px;
  padding: 90px 0 56px;
}

.eyebrow, .mini-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px;
  padding: 8px 12px; box-shadow: 3px 3px 0 var(--ink);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22d76e; box-shadow: 0 0 0 4px rgba(34,215,110,.16); }

h1, h2, h3 { font-family: Chewy, cursive; margin: 0; font-weight: 400; }
h1 {
  margin-top: 20px;
  font-size: clamp(78px, 9vw, 150px);
  line-height: .78;
  letter-spacing: -.035em;
  text-shadow: 6px 6px 0 rgba(53,216,255,.65);
}
h1 span { color: var(--blue); -webkit-text-stroke: 3px var(--ink); text-shadow: 7px 7px 0 var(--cyan); }
.hero-lede { max-width: 620px; font-size: 18px; line-height: 1.6; margin: 30px 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.primary-btn, .secondary-btn {
  border: 3px solid var(--ink); border-radius: 12px; padding: 14px 18px; font-weight: 700;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease;
}
.primary-btn { color: #fff; background: var(--blue); box-shadow: 5px 5px 0 var(--ink); }
.secondary-btn { color: var(--ink); background: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.primary-btn:hover, .secondary-btn:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.primary-btn.light { background: #fff; color: var(--ink); }

.ticker-card {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 30px; max-width: 620px;
  background: #fff; border: 3px solid var(--ink); border-radius: 15px; overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
}
.ticker-card > div { padding: 15px 16px; border-right: 2px dashed rgba(7,22,49,.25); }
.ticker-card > div:last-child { border-right: 0; }
.ticker-card small { display: block; font-size: 10px; opacity: .55; margin-bottom: 4px; }
.ticker-card strong { font-size: 15px; }
.status { color: var(--blue); }

.hero-art-wrap { position: relative; min-height: 650px; display: grid; place-items: center; }
.hero-art {
  position: relative; z-index: 5; width: min(100%, 650px);
  filter: drop-shadow(10px 12px 0 rgba(7,22,49,.12));
  animation: floatWizard 4.2s ease-in-out infinite;
}
@keyframes floatWizard { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-13px) rotate(1deg)} }
.orbit { position: absolute; border: 3px dashed var(--blue); border-radius: 50%; display: grid; place-items: center; animation: spin 16s linear infinite; }
.orbit span { display:grid;place-items:center; width:52px;height:52px; background:#fff;border:3px solid var(--ink);border-radius:50%;font-family:Chewy;font-size:24px; transform: translateY(-50%); }
.orbit-one { width: 500px; height: 500px; opacity: .36; }
.orbit-two { width: 610px; height: 610px; opacity: .18; animation-direction: reverse; animation-duration: 22s; }
@keyframes spin { to { transform: rotate(360deg); } }
.spell-card { position: absolute; z-index: 8; padding: 9px 12px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); font-size: 11px; font-weight: 700; }
.spell-card-one { top: 20%; left: 4%; transform: rotate(-7deg); }
.spell-card-two { right: 2%; bottom: 22%; transform: rotate(6deg); background: var(--sky); }

.banner-strip { padding: 24px 0 90px; }
.banner-strip img { display:block; width:100%; border:3px solid var(--ink); border-radius:22px; box-shadow:var(--shadow); background:white; }

.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; margin-bottom:34px; }
.section-heading > span { font-size:11px; font-weight:700; letter-spacing:.12em; }
.section-heading h2 { font-size: clamp(48px, 6vw, 88px); line-height:.9; text-align:right; }
.section-heading em { color:var(--blue); font-style:normal; }
.section-heading.centered { display:block; text-align:center; }
.section-heading.centered h2 { text-align:center; margin-top:10px; }

.spellbook { padding: 80px 0 100px; }
.book-grid { display:grid; grid-template-columns:1fr 1fr; max-width:1040px; margin:auto; }
.book-page {
  position:relative; min-height:470px; padding:58px 54px 44px; background:#fffdf0;
  border:3px solid var(--ink); box-shadow:0 12px 0 rgba(7,22,49,.08);
}
.page-left { border-radius:24px 0 0 24px; transform:rotate(-1deg); }
.page-right { border-radius:0 24px 24px 0; transform:rotate(1deg); }
.book-page::before { content:""; position:absolute; inset:16px; border:1px dashed rgba(7,22,49,.22); border-radius:12px; pointer-events:none; }
.book-page h3 { font-size:48px; color:var(--blue); margin-bottom:20px; }
.book-page p { position:relative; z-index:2; line-height:1.7; }
.book-page blockquote { margin:24px 0; font-family:Chewy; font-size:42px; color:var(--blue); }
.rune { width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:var(--ink);color:#fff;font-weight:700;margin-bottom:18px; }
.scribble { margin-top:34px; transform:rotate(-3deg); font-family:Chewy; font-size:22px; color:#2955ae; }
.seal { position:absolute; right:40px; bottom:38px; width:92px;height:92px;border-radius:50%; display:grid;place-items:center; border:5px double var(--blue); color:var(--blue); font-family:Chewy; font-size:31px; transform:rotate(-12deg); opacity:.75; }

.ritual { position:relative; padding:100px 0 120px; }
.ritual-grid { position:relative; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:56px; }
.ritual-line { height:3px; background:var(--blue); position:absolute; left:15%; right:15%; top:54%; opacity:.22; }
.ritual-step { position:relative; z-index:2; background:#fff; border:3px solid var(--ink); border-radius:18px; padding:30px; box-shadow:6px 6px 0 var(--ink); min-height:320px; transition:.22s ease; }
.ritual-step:hover { transform:translateY(-8px) rotate(-1deg); }
.step-icon { width:78px;height:78px;display:grid;place-items:center;border-radius:50%; background:var(--blue); color:#fff; border:3px solid var(--ink); font-family:Chewy;font-size:36px; box-shadow:4px 4px 0 var(--ink); margin-bottom:24px; }
.ritual-step b { font-size:11px; color:var(--blue); }
.ritual-step h3 { font-size:34px; margin:8px 0 12px; }
.ritual-step p { line-height:1.6; font-size:14px; }

.wand-section { min-height:560px; display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:70px; padding:100px 0; }
.wand-copy h2 { font-size:80px; margin:14px 0; }
.wand-copy > p { max-width:560px; line-height:1.7; }
.spell-output { min-height:58px; padding:15px; background:#fff; border:2px dashed var(--blue); border-radius:12px; margin-top:18px; font-weight:700; }
.crystal-stage { position:relative; min-height:420px; display:grid; place-items:center; cursor:crosshair; }
.crystal { position:relative; z-index:6; width:210px;height:210px;border-radius:50%;display:grid;place-items:center; color:#fff; background:radial-gradient(circle at 32% 28%, #7ff0ff 0 10%, var(--cyan) 24%, var(--blue) 58%, var(--navy) 100%); border:7px solid var(--ink); box-shadow:0 0 0 12px #fff, 0 0 0 15px var(--ink), 0 0 80px rgba(53,216,255,.7); font-family:Chewy;font-size:100px; animation:pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50%{ box-shadow:0 0 0 12px #fff,0 0 0 15px var(--ink),0 0 125px rgba(53,216,255,.95); transform:scale(1.035);} }
.magic-ring { position:absolute; border:3px dashed var(--blue); border-radius:50%; }
.ring-a{width:330px;height:330px;animation:spin 13s linear infinite}.ring-b{width:420px;height:420px;border-style:dotted;opacity:.45;animation:spin 19s linear reverse infinite}
.spark { position:absolute; color:var(--blue); font-family:Chewy; font-size:46px; animation:twinkle 1.6s ease-in-out infinite alternate; }
.s1{left:15%;top:18%}.s2{right:10%;top:30%;animation-delay:.4s}.s3{left:24%;bottom:12%;animation-delay:.7s}.s4{right:23%;bottom:10%;animation-delay:1s}
@keyframes twinkle{to{transform:scale(1.5) rotate(20deg);opacity:.5}}

.memes { padding:110px 0; }
.meme-frame { padding:16px; background:var(--blue); border:3px solid var(--ink); border-radius:24px; box-shadow:var(--shadow); }
.meme-frame img { display:block; width:100%; border-radius:12px; background:#fff; }
.meme-caption { display:flex; justify-content:space-between; gap:20px; margin-top:18px; font-size:11px; font-weight:700; opacity:.7; }

.portal { padding:110px 0 90px; }
.portal-inner { position:relative; min-height:620px; display:grid; place-items:center; overflow:hidden; background:var(--navy); border:3px solid var(--ink); border-radius:34px; box-shadow:8px 8px 0 var(--ink); color:#fff; }
.portal-inner::before { content:"";position:absolute;inset:0;background:radial-gradient(circle at center,rgba(53,216,255,.23),transparent 45%); }
.portal-rings { position:absolute; inset:0; display:grid;place-items:center; }
.portal-rings div { position:absolute; border:3px solid rgba(53,216,255,.5); border-radius:50%; animation:portalPulse 3.6s ease-in-out infinite; }
.portal-rings div:nth-child(1){width:300px;height:300px}.portal-rings div:nth-child(2){width:470px;height:470px;animation-delay:.7s}.portal-rings div:nth-child(3){width:660px;height:660px;animation-delay:1.4s}
@keyframes portalPulse{0%,100%{transform:scale(.9);opacity:.18}50%{transform:scale(1.05);opacity:.8}}
.portal-content { position:relative; z-index:2; text-align:center; max-width:800px; padding:42px 20px; }
.portal-content > span { font-size:11px; letter-spacing:.18em; color:var(--cyan); }
.portal-content h2 { font-size:clamp(70px,9vw,130px); line-height:.8; margin:16px 0 26px; }
.portal-content h2 strong { color:var(--cyan); }
.portal-content p { margin-bottom:28px; }

.footer { min-height:120px; display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:30px;border-top:2px dashed rgba(7,22,49,.25);font-size:12px; }
.footer-brand{font-family:Chewy;font-size:24px}.footer-brand span{color:var(--blue)}.footer-note{opacity:.55}.footer a{font-weight:700}

.toast { position:fixed; left:50%; bottom:28px; z-index:100; transform:translate(-50%, 120px); opacity:0; background:var(--ink); color:#fff; padding:13px 18px; border:3px solid #fff; outline:3px solid var(--ink); border-radius:12px; font-size:12px; font-weight:700; transition:.25s; }
.toast.show { transform:translate(-50%,0); opacity:1; }

@media (max-width: 980px) {
  .nav { display:none; }
  .hero { grid-template-columns:1fr; padding-top:70px; }
  .hero-copy { text-align:center; }
  .hero-lede, .ticker-card { margin-left:auto; margin-right:auto; }
  .hero-actions { justify-content:center; }
  .hero-art-wrap { min-height:540px; }
  .book-grid, .wand-section { grid-template-columns:1fr; }
  .book-page { border-radius:24px; transform:none; margin-bottom:16px; }
  .ritual-grid { grid-template-columns:1fr; }
  .ritual-line { display:none; }
  .section-heading { display:block; text-align:left; }
  .section-heading h2 { text-align:left; margin-top:10px; }
  .footer { grid-template-columns:1fr; padding:35px 0; gap:12px; }
}

@media (max-width: 640px) {
  .topbar { min-height:62px; }
  .brand-text { display:none; }
  .x-btn { margin-left:auto; padding:10px 12px; }
  .hero { min-height:auto; padding-top:58px; }
  h1 { font-size:68px; }
  .hero-lede { font-size:15px; }
  .ticker-card { grid-template-columns:1fr; }
  .ticker-card > div { border-right:0; border-bottom:1px dashed rgba(7,22,49,.25); }
  .ticker-card > div:last-child { border-bottom:0; }
  .hero-art-wrap { min-height:420px; }
  .orbit-one { width:340px;height:340px }.orbit-two{width:400px;height:400px}
  .spell-card-one { left:0; top:14%; }.spell-card-two{right:0;bottom:15%}
  .banner-strip { padding-bottom:60px; }
  .book-page { padding:44px 28px 34px; }
  .section-heading h2, .wand-copy h2 { font-size:52px; }
  .crystal-stage { min-height:360px; transform:scale(.86); }
  .meme-caption { flex-direction:column; }
  .portal-inner { min-height:520px; }
  .portal-content h2 { font-size:62px; }
  .cursor-glow { display:none; }
}
