:root {
  --ink: #f7f3e9;
  --muted: #a9b2c7;
  --muted-2: #727d97;
  --night: #050813;
  --night-2: #080d1e;
  --panel: #0d1428;
  --panel-2: #111a32;
  --line: rgba(174, 192, 231, 0.16);
  --blue: #6d8fff;
  --blue-bright: #95adff;
  --violet: #9878ff;
  --gold: #e9bd73;
  --green: #67e6ae;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --shell: min(1180px, calc(100% - 48px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
svg { display: block; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 120px 0; position: relative; }
.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: fixed; top: 10px; left: 10px; z-index: 999; transform: translateY(-150%);
  background: var(--ink); color: var(--night); padding: 10px 14px; border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tone-red { color: #e96771; }
.tone-gold { color: #e9bd73; }
.tone-violet { color: #a98cff; }
.tone-blue { color: #72c9ee; }
.tone-ivory { color: #f2ebda; }

.site-header {
  position: fixed; inset: 0 0 auto; height: 82px; z-index: 100;
  border-bottom: 1px solid transparent; transition: background .35s, border-color .35s, height .35s;
}
.site-header.scrolled {
  height: 70px; background: rgba(5, 8, 19, .9); border-color: var(--line); backdrop-filter: blur(18px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 3; }
.brand-mark {
  width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 0 13px rgba(109,143,255,.28));
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font: 700 19px/1.1 var(--font-display); letter-spacing: .02em; }
.brand-copy small { margin-top: 5px; color: var(--muted-2); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > a { color: #c1c8d7; font-size: 12px; font-weight: 700; letter-spacing: .07em; transition: color .2s; }
.main-nav > a:hover { color: #fff; }
.main-nav > a.active:not(.nav-discord) { color: #fff; }
.main-nav > a.active:not(.nav-discord)::after { content: ""; display: block; width: 14px; height: 1px; margin: 5px auto 0; background: var(--gold); box-shadow: 0 0 8px rgba(233,189,115,.55); }
.main-nav .nav-discord {
  display: inline-flex; align-items: center; gap: 11px; padding: 12px 18px; border: 1px solid rgba(149,173,255,.4);
  color: #eef1ff; background: rgba(109,143,255,.1);
}
.nav-discord svg, .button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 9px; position: relative; z-index: 3; }
.menu-toggle span:not(.sr-only) { display: block; height: 1px; background: #fff; margin: 7px 0; transition: .3s; }

.hero { min-height: 780px; height: 100svh; max-height: 980px; position: relative; display: flex; align-items: center; overflow: hidden; background: #070b16; }
.hero-art {
  position: absolute; inset: 0; background-image: url("assets/ragnalife-hero.webp"); background-size: cover;
  background-position: center center; transform: scale(1.015); animation: hero-breathe 12s ease-in-out infinite alternate;
}
@keyframes hero-breathe { to { transform: scale(1.04); } }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,7,17,.98) 0%, rgba(4,7,17,.92) 28%, rgba(4,7,17,.36) 55%, rgba(4,7,17,.04) 78%),
    linear-gradient(0deg, rgba(4,7,17,.92) 0%, transparent 30%, rgba(4,7,17,.25) 100%);
}
.hero-runes { position: absolute; inset: 0; pointer-events: none; opacity: .35; }
.hero-runes span { position: absolute; border: 1px solid rgba(149,173,255,.18); transform: rotate(45deg); }
.hero-runes span:nth-child(1) { width: 380px; height: 380px; right: 9%; top: 19%; border-radius: 44%; }
.hero-runes span:nth-child(2) { width: 510px; height: 510px; right: 5%; top: 11%; border-radius: 50%; border-style: dashed; animation: rune-spin 90s linear infinite; }
.hero-runes span:nth-child(3) { width: 13px; height: 13px; left: 5%; top: 25%; border-color: var(--gold); background: rgba(233,189,115,.15); }
@keyframes rune-spin { to { transform: rotate(405deg); } }
.hero-content { position: relative; z-index: 2; padding-top: 44px; }
.hero-copy { max-width: 630px; }
.presented-by { margin: 0 0 14px; color: #d8c18f; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .22em; }
.presented-by span { margin-left: 7px; color: #68748d; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--blue-bright); font-size: 10px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 26px; height: 1px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.hero h1 { margin: 0; font: 800 clamp(64px, 8vw, 118px)/.88 var(--font-display); letter-spacing: -.07em; text-shadow: 0 10px 36px rgba(0,0,0,.3); }
.hero h1 span { color: var(--blue-bright); }
.hero-tagline { margin: 18px 0 0; color: var(--gold); font: 600 clamp(20px, 2.1vw, 29px)/1.2 var(--font-display); letter-spacing: .05em; }
.hero-intro { max-width: 590px; margin: 25px 0 0; color: #c1c9da; font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 54px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid transparent; font-size: 12px; font-weight: 800; letter-spacing: .03em; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #080b15; background: linear-gradient(115deg, #f2cb87, #d6a557); box-shadow: 0 14px 36px rgba(214,165,87,.16); }
.button-primary:hover { box-shadow: 0 16px 40px rgba(214,165,87,.28); }
.button-ghost { color: #edf0ff; border-color: rgba(149,173,255,.32); background: rgba(8,13,30,.42); backdrop-filter: blur(10px); }
.button-ghost:hover { border-color: rgba(149,173,255,.65); background: rgba(109,143,255,.13); }
.discord-icon { fill: currentColor !important; stroke: none !important; width: 20px !important; }
.launch-note { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(103,230,174,.1), 0 0 15px var(--green); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .45; box-shadow: 0 0 0 10px rgba(103,230,174,0); } }
.launch-note div { display: flex; flex-direction: column; line-height: 1.25; }
.launch-note small { color: var(--muted-2); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.launch-note strong { margin-top: 4px; color: #d8deec; font-size: 11px; letter-spacing: .04em; }
.hero-bottom { position: absolute; z-index: 2; bottom: 27px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 26px; }
.hero-bottom div { display: flex; flex-direction: column; line-height: 1.2; }
.hero-bottom small { color: #606d87; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; }
.hero-bottom strong { margin-top: 5px; color: #bec6d8; font-size: 9px; text-transform: uppercase; letter-spacing: .15em; }
.hero-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(149,173,255,.25), rgba(149,173,255,.03)); }
.scroll-cue { display: flex; align-items: center; gap: 10px; color: #929db4; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.scroll-cue svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; animation: bounce 1.8s infinite; }
@keyframes bounce { 50% { transform: translateY(4px); } }

.memory-ribbon {
  position: relative; z-index: 4; min-height: 108px; display: flex; align-items: center;
  background: linear-gradient(90deg, #080d1d, #0d1530 45%, #0b1023); border-block: 1px solid var(--line); overflow: hidden;
}
.memory-ribbon::before, .memory-ribbon::after { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; width: 80px; pointer-events: none; }
.memory-ribbon::before { left: 0; background: linear-gradient(90deg, #080d1d, transparent); }
.memory-ribbon::after { right: 0; background: linear-gradient(-90deg, #0b1023, transparent); }
.memory-ribbon-track { width: min(1380px, calc(100% - 40px)); margin-inline: auto; display: grid; grid-template-columns: repeat(6, 1fr); }
.memory-token { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 20px 14px; border-right: 1px solid rgba(174,192,231,.1); }
.memory-token:first-child { border-left: 1px solid rgba(174,192,231,.1); }
.memory-token svg { flex: 0 0 36px; width: 36px; height: 36px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); transition: transform .25s; }
.memory-token:nth-child(odd) svg { animation: item-float 4.5s ease-in-out infinite alternate; }
.memory-token:nth-child(even) svg { animation: item-float 5.2s .7s ease-in-out infinite alternate-reverse; }
@keyframes item-float { to { transform: translateY(-4px) rotate(2deg); } }
.memory-token:hover svg { animation: none; transform: translateY(-3px) rotate(-4deg); }
.memory-token span { max-width: 120px; color: #aeb7cb; font-size: 9px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; }

.world { background: var(--night); overflow: hidden; }
.world::before, .world::after { content: ""; position: absolute; border: 1px solid rgba(109,143,255,.08); transform: rotate(45deg); }
.world::before { width: 520px; height: 520px; left: -320px; top: 70px; }
.world::after { width: 320px; height: 320px; right: -210px; bottom: -30px; border-style: dashed; }
.section-heading { max-width: 860px; }
.section-heading h2, .features-intro h2, .countdown-copy h2, .faq-heading h2 {
  margin: 0; font: 600 clamp(39px, 5.1vw, 68px)/1.12 var(--font-display); letter-spacing: -.04em;
}
h2 em { color: var(--blue-bright); font-style: normal; }
.section-heading > p:last-child { max-width: 650px; margin: 26px 0 0; color: var(--muted); font-size: 16px; }
.world-layout { margin-top: 62px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.world-feature { min-height: 330px; position: relative; padding: 40px 38px; border-right: 1px solid var(--line); overflow: hidden; transition: background .3s; }
.world-feature:last-child { border-right: 0; }
.world-feature:hover { background: linear-gradient(180deg, rgba(109,143,255,.08), transparent); }
.feature-number { position: absolute; right: 26px; top: 20px; color: rgba(149,173,255,.18); font: 600 41px/1 var(--font-display); }
.line-icon, .step-icon { color: var(--blue-bright); }
.line-icon svg { width: 54px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.memory-icon { width: 62px; height: 62px; display: grid; place-items: center; position: relative; }
.memory-icon::before { content: ""; position: absolute; inset: 4px; border: 1px solid currentColor; opacity: .22; transform: rotate(45deg); }
.memory-icon svg { width: 48px; height: 48px; position: relative; z-index: 1; filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); }
.world-feature h3 { margin: 39px 0 15px; font: 600 22px/1.3 var(--font-display); }
.world-feature p { margin: 0; color: var(--muted); font-size: 13px; }

.memory-scene { min-height: 760px; position: relative; display: flex; align-items: stretch; overflow: hidden; background: #10182a; }
.memory-scene-art { position: absolute; inset: 0; background: url("assets/memories-town-v2.webp") center/cover no-repeat; }
.memory-scene-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,8,18,.05) 0%, rgba(5,8,18,.08) 44%, rgba(5,8,18,.78) 66%, rgba(5,8,18,.98) 100%), linear-gradient(0deg, rgba(5,8,18,.35), transparent 50%);
}
.memory-scene::after { content: "✦"; position: absolute; left: 52%; top: 18%; color: rgba(255,235,181,.75); font-size: 13px; text-shadow: -210px 170px 0 rgba(255,255,255,.28), 120px 255px 0 rgba(255,235,181,.32), -70px 420px 0 rgba(255,255,255,.2); animation: memory-spark 3.2s ease-in-out infinite alternate; }
@keyframes memory-spark { to { opacity: .35; transform: translateY(-7px) scale(.8); } }
.memory-scene-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 760px; align-items: center; }
.memory-story { grid-column: 2; padding: 75px 0 75px 60px; }
.memory-story h2 { margin: 0; font: 600 clamp(39px, 4.5vw, 62px)/1.12 var(--font-display); letter-spacing: -.04em; }
.memory-story h2 em { color: var(--gold); }
.memory-lead { margin: 27px 0 0; color: #c3cada; font-size: 14px; line-height: 1.9; }
.memory-moments { margin-top: 30px; display: grid; gap: 9px; }
.memory-moments > div { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 8px 14px 8px 9px; border: 1px solid rgba(174,192,231,.13); background: rgba(8,13,29,.48); backdrop-filter: blur(8px); }
.memory-moments svg { flex: 0 0 37px; width: 37px; height: 37px; filter: drop-shadow(0 5px 10px rgba(0,0,0,.35)); }
.memory-moments span { color: #d8deeb; font-size: 11px; font-weight: 700; }
.memory-story blockquote { margin: 33px 0 0; padding-left: 20px; border-left: 2px solid var(--gold); color: #e6dcc6; font: 500 15px/1.7 var(--font-display); }

.features { background: #070b18; overflow: hidden; }
.features::before { content: ""; position: absolute; width: 800px; height: 800px; right: -400px; top: -340px; background: radial-gradient(circle, rgba(87,77,197,.12), transparent 65%); }
.features-intro { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: end; }
.features-intro > p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.feature-grid { margin-top: 70px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.feature-card {
  position: relative; min-height: 300px; padding: 42px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(16,25,49,.86), rgba(9,14,29,.9)); overflow: hidden;
}
.feature-card-wide { grid-row: span 2; min-height: 620px; padding-top: 54px; }
.feature-card::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; pointer-events: none; transition: border-color .3s; }
.feature-card:hover::after { border-color: rgba(149,173,255,.23); }
.card-glow { position: absolute; width: 470px; height: 470px; border-radius: 50%; right: -170px; bottom: -170px; background: radial-gradient(circle, rgba(90,116,255,.28), transparent 65%); }
.card-label { color: var(--gold); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .22em; }
.feature-card h3 { position: relative; margin: 17px 0; font: 600 29px/1.25 var(--font-display); }
.feature-card-wide h3 { font-size: clamp(34px, 4vw, 52px); }
.feature-card p { position: relative; max-width: 490px; margin: 0; color: var(--muted); font-size: 13px; }
.class-orbit { position: absolute; width: 310px; height: 310px; right: -28px; bottom: -22px; border: 1px solid rgba(149,173,255,.2); border-radius: 50%; display: grid; place-items: center; }
.class-orbit::before, .class-orbit::after { content: ""; position: absolute; border: 1px solid rgba(149,173,255,.13); border-radius: 50%; }
.class-orbit::before { inset: 34px; }
.class-orbit::after { inset: 77px; border-style: dashed; animation: rune-spin 35s linear infinite; }
.class-orbit i { position: absolute; width: 9px; height: 9px; background: var(--blue-bright); transform: rotate(45deg); box-shadow: 0 0 20px var(--blue); }
.class-orbit i:nth-child(1) { top: 28px; left: 72px; }.class-orbit i:nth-child(2) { top: 67px; right: 37px; }
.class-orbit i:nth-child(3) { bottom: 30px; right: 79px; }.class-orbit i:nth-child(4) { bottom: 67px; left: 28px; }
.class-orbit strong { font: 700 49px/1 var(--font-display); color: rgba(247,243,233,.9); text-shadow: 0 0 32px rgba(109,143,255,.4); }
.feature-card-launcher { isolation: isolate; }
.feature-card-launcher > .card-label,
.feature-card-launcher > h3,
.feature-card-launcher > p { position: relative; z-index: 3; max-width: 48%; }
.feature-card-launcher > h3 { font-size: 25px; }
.launcher-preview { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 64%; margin: 0; overflow: hidden; background: #090e1d; }
.launcher-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 45% center; opacity: .92; }
.launcher-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0e162b 0%, rgba(14,22,43,.96) 18%, rgba(14,22,43,.35) 56%, rgba(6,9,20,.08) 100%), linear-gradient(0deg, rgba(6,9,20,.75), transparent 55%); }
.launcher-preview figcaption { position: absolute; z-index: 2; right: 15px; bottom: 12px; color: rgba(231,235,245,.72); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.community-dots { position: absolute; right: 34px; bottom: 31px; display: flex; }
.community-dots span { width: 43px; height: 43px; display: grid; place-items: center; margin-left: -8px; border: 2px solid #10172c; border-radius: 50%; color: #dbe1f1; font-size: 9px; font-weight: 800; background: linear-gradient(145deg, #344c91, #342b65); }
.community-dots span:last-child { background: #151d34; color: var(--blue-bright); }

.start { background: var(--night); }
.section-heading-centered { max-width: 850px; margin-inline: auto; text-align: center; }
.section-heading-centered .eyebrow { justify-content: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 76px; }
.step { min-height: 370px; position: relative; padding: 45px 40px; border: 1px solid var(--line); border-right: 0; }
.step:last-child { border-right: 1px solid var(--line); }
.step-active { background: linear-gradient(145deg, rgba(71,77,174,.2), rgba(13,20,40,.6)); border-color: rgba(149,173,255,.32); }
.step-index { position: absolute; top: 25px; right: 27px; color: rgba(149,173,255,.22); font: 600 33px/1 var(--font-display); }
.step-icon svg { width: 56px; fill: none; stroke: currentColor; stroke-width: 1.1; }
.step-memory-icon { width: 58px; height: 58px; display: grid; place-items: center; }
.step-memory-icon svg { width: 54px; height: 54px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); }
.step h3 { margin: 45px 0 14px; font: 600 22px/1.3 var(--font-display); }
.step p { margin: 0; color: var(--muted); font-size: 13px; }
.step-status, .step > a { display: inline-flex; align-items: center; margin-top: 33px; color: var(--muted-2); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.step > a { color: var(--gold); }
.step > a span { margin-left: 10px; font-size: 16px; transition: transform .2s; }.step > a:hover span { transform: translateX(4px); }

.countdown-section { padding: 90px 0; background: linear-gradient(110deg, #111b3b, #281d4a 55%, #0d1531); overflow: hidden; }
.countdown-section::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 50px 50px; }
.countdown-shell { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 80px; }
.countdown-copy h2 { font-size: clamp(34px, 4vw, 51px); }
.countdown-copy > p:last-child { margin: 20px 0 0; color: #9da9c6; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.countdown { display: flex; align-items: flex-start; justify-content: flex-end; }
.countdown > div { min-width: 105px; text-align: center; }
.countdown strong { display: block; font: 500 clamp(43px, 5vw, 68px)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 12px; color: #91a0c1; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; }
.countdown i { margin: 5px 4px 0; color: rgba(255,255,255,.25); font: normal 33px/1 var(--font-display); }
.countdown.finished { justify-content: center; color: var(--gold); font: 600 25px var(--font-display); }

.faq { background: #070a15; }
.faq-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 100px; }
.faq-heading h2 { font-size: clamp(40px, 4.7vw, 60px); }
.faq-heading > p:last-child { max-width: 380px; color: var(--muted); font-size: 13px; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 22px; list-style: none; cursor: pointer; color: #e4e8f2; font: 500 16px/1.4 var(--font-display); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { flex: 0 0 22px; height: 22px; position: relative; }
.accordion summary span::before, .accordion summary span::after { content: ""; position: absolute; top: 10px; left: 4px; width: 14px; height: 1px; background: var(--blue-bright); transition: transform .25s; }
.accordion summary span::after { transform: rotate(90deg); }
.accordion details[open] summary span::after { transform: rotate(0); }
.accordion details p { margin: -5px 45px 27px 0; color: var(--muted); font-size: 13px; }

.discord-cta { min-height: 540px; position: relative; display: grid; place-items: center; overflow: hidden; background: #192459; }
.discord-bg { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(31,49,126,.96), rgba(80,62,165,.86)), url("assets/ragnalife-hero.webp") center 65%/cover; }
.discord-bg::before, .discord-bg::after { content: ""; position: absolute; width: 390px; height: 390px; top: 50%; border: 1px solid rgba(255,255,255,.1); transform: translateY(-50%) rotate(45deg); }
.discord-bg::before { left: -220px; }.discord-bg::after { right: -220px; }
.discord-content { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.discord-emblem { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 25px; border: 1px solid rgba(255,255,255,.22); transform: rotate(45deg); background: rgba(255,255,255,.08); }
.discord-emblem svg { width: 35px; transform: rotate(-45deg); fill: currentColor; }
.discord-content .eyebrow { color: #d9e0ff; justify-content: center; margin-bottom: 18px; }
.discord-content h2 { margin: 0; font: 600 clamp(34px, 4.2vw, 56px)/1.17 var(--font-display); }
.discord-content > p:not(.eyebrow) { max-width: 620px; margin: 20px 0 29px; color: #d4daf0; font-size: 14px; }
.button-light { background: var(--ink); color: #151932; box-shadow: 0 14px 40px rgba(0,0,0,.22); }

.site-footer { background: #04060d; }
.footer-main { min-height: 165px; display: flex; align-items: center; gap: 55px; border-bottom: 1px solid var(--line); }
.footer-main > p { flex: 1; color: var(--muted-2); font-size: 11px; }
.footer-links { display: flex; gap: 30px; }
.footer-links a { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.footer-links a:hover { color: #fff; }
.footer-bottom { min-height: 80px; display: grid; grid-template-columns: 1fr auto 1.6fr; align-items: center; gap: 30px; color: #555f75; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.footer-bottom span:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 981px) {
  .world.section,
  .start.section,
  .faq.section { min-height: calc(100svh - 70px); display: flex; align-items: safe center; }
  .memory-scene { min-height: calc(100svh - 70px); }
  .memory-scene-layout { min-height: calc(100svh - 70px); }
}

@media (min-width: 981px) and (max-height: 950px) {
  .section { padding: 72px 0; }
  .world .section-heading { max-width: 940px; }
  .world .section-heading h2 { font-size: clamp(45px, 4vw, 56px); }
  .world .section-heading > p:last-child { margin-top: 19px; font-size: 14px; }
  .world-layout { margin-top: 44px; }
  .world-feature { min-height: 285px; padding: 31px 34px; }
  .memory-icon { width: 54px; height: 54px; }
  .memory-icon svg { width: 42px; height: 42px; }
  .world-feature h3 { margin-top: 27px; font-size: 19px; }
  .world-feature p { font-size: 12px; line-height: 1.65; }
  .features-intro h2 { font-size: 50px; }
  .feature-grid { margin-top: 46px; }
  .feature-card-wide { min-height: 535px; }
  .feature-card { min-height: 258px; padding: 34px; }
  .steps { margin-top: 46px; }
  .step { min-height: 292px; padding: 34px; }
  .step h3 { margin-top: 30px; }
  .faq-layout { gap: 78px; }
}

@media (max-width: 980px) {
  :root { --shell: min(100% - 38px, 760px); }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-8px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 0; padding: 120px 25px 40px; background: rgba(5,8,19,.98); backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch; gap: 0; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .3s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav > a { padding: 18px 5px; border-bottom: 1px solid var(--line); font: 600 20px var(--font-display); }
  .main-nav .nav-discord { margin-top: 25px; justify-content: center; border: 1px solid rgba(149,173,255,.4); font: 800 12px var(--font-body); }
  .hero { height: auto; min-height: 850px; }
  .hero-art { background-position: 63% center; }
  .hero-vignette { background: linear-gradient(90deg, rgba(4,7,17,.96), rgba(4,7,17,.72) 58%, rgba(4,7,17,.18)), linear-gradient(0deg, rgba(4,7,17,.93), transparent 42%); }
  .hero-copy { max-width: 600px; }
  .memory-ribbon { overflow-x: auto; scrollbar-width: none; }
  .memory-ribbon::-webkit-scrollbar { display: none; }
  .memory-ribbon::before, .memory-ribbon::after { display: none; }
  .memory-ribbon-track { width: max-content; margin-left: 18px; display: flex; }
  .memory-token { width: 210px; justify-content: flex-start; }
  .world-layout { grid-template-columns: 1fr; }
  .world-feature { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .world-feature:last-child { border-bottom: 0; }
  .memory-scene-art { background-position: 39% center; }
  .memory-scene-shade { background: linear-gradient(90deg, rgba(5,8,18,.1), rgba(5,8,18,.3) 38%, rgba(5,8,18,.94) 72%, #050812); }
  .memory-scene-layout { grid-template-columns: .7fr 1.3fr; }
  .memory-story { padding-left: 35px; }
  .features-intro { grid-template-columns: 1fr; gap: 24px; }
  .features-intro > p { max-width: 600px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-row: auto; min-height: 530px; }
  .feature-card { min-height: 300px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 285px; border-right: 1px solid var(--line); border-bottom: 0; }
  .step:last-child { border-bottom: 1px solid var(--line); }
  .countdown-shell { grid-template-columns: 1fr; gap: 50px; }
  .countdown { justify-content: flex-start; }
  .faq-layout { grid-template-columns: 1fr; gap: 55px; }
  .faq-heading > p:last-child { max-width: 600px; }
  .footer-main { flex-wrap: wrap; padding: 40px 0; gap: 25px 40px; }
  .footer-main > p { min-width: 45%; }
  .footer-bottom { grid-template-columns: 1fr; padding: 25px 0; gap: 8px; }
  .footer-bottom span:last-child { text-align: left; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 32px); }
  .section { padding: 82px 0; }
  .site-header { height: 70px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 7px; }
  .hero { min-height: 790px; align-items: flex-start; }
  .hero-content { padding-top: 157px; }
  .hero-art { background-position: 67% center; opacity: .88; }
  .hero-vignette { background: linear-gradient(90deg, rgba(4,7,17,.91), rgba(4,7,17,.4)), linear-gradient(0deg, rgba(4,7,17,.97) 0%, rgba(4,7,17,.63) 58%, rgba(4,7,17,.22) 100%); }
  .eyebrow { font-size: 8px; letter-spacing: .2em; margin-bottom: 17px; }
  .hero h1 { font-size: clamp(53px, 18vw, 77px); }
  .hero-tagline { font-size: 18px; }
  .hero-intro { margin-top: 20px; font-size: 13px; line-height: 1.75; }
  .hero-actions { flex-direction: column; margin-top: 27px; }
  .button { width: 100%; min-height: 52px; }
  .launch-note { margin-top: 23px; }
  .hero-bottom { bottom: 19px; }
  .hero-bottom .hero-location, .hero-line, .scroll-cue span { display: none; }
  .scroll-cue { margin-left: auto; }
  .memory-ribbon { min-height: 92px; }
  .memory-token { width: 178px; padding: 15px 12px; }
  .memory-token svg { flex-basis: 32px; width: 32px; height: 32px; }
  .memory-token span { max-width: 110px; font-size: 8px; }
  .section-heading h2, .features-intro h2, .countdown-copy h2, .faq-heading h2 { font-size: 36px; }
  .section-heading > p:last-child { font-size: 14px; }
  .world-layout { margin-top: 53px; }
  .world-feature { padding: 35px 28px; }
  .world-feature h3 { margin-top: 30px; font-size: 19px; }
  .memory-scene, .memory-scene-layout { min-height: 930px; }
  .memory-scene-art { background-position: 34% center; }
  .memory-scene-shade { background: linear-gradient(0deg, rgba(5,8,18,1) 0%, rgba(5,8,18,.96) 46%, rgba(5,8,18,.2) 77%, rgba(5,8,18,.12) 100%); }
  .memory-scene-layout { display: flex; align-items: flex-end; }
  .memory-story { width: 100%; padding: 390px 0 62px; }
  .memory-story h2 { font-size: 36px; }
  .memory-lead { font-size: 13px; }
  .memory-story blockquote { font-size: 13px; }
  .features-intro { display: block; }
  .features-intro > p { margin-top: 24px; }
  .feature-grid { margin-top: 45px; }
  .feature-card, .feature-card-wide { min-height: 390px; padding: 30px 27px; }
  .feature-card-wide { min-height: 500px; }
  .feature-card h3 { font-size: 25px; }
  .class-orbit { width: 270px; height: 270px; right: -55px; }
  .feature-card-launcher { min-height: 500px; }
  .feature-card-launcher > .card-label,
  .feature-card-launcher > h3,
  .feature-card-launcher > p { max-width: 100%; }
  .launcher-preview { inset: auto 0 0; width: 100%; height: 58%; }
  .launcher-preview::after { background: linear-gradient(180deg, #0e162b 0%, rgba(14,22,43,.72) 23%, rgba(6,9,20,.08) 68%, rgba(6,9,20,.62) 100%); }
  .community-dots { left: 34px; right: auto; }
  .steps { margin-top: 49px; }
  .step { padding: 36px 28px; }
  .countdown-section { padding: 70px 0; }
  .countdown { width: 100%; justify-content: space-between; }
  .countdown > div { min-width: 0; flex: 1; }
  .countdown strong { font-size: clamp(30px, 11vw, 44px); }
  .countdown i { margin: 1px 1px 0; font-size: 23px; }
  .countdown span { font-size: 6px; letter-spacing: .12em; }
  .accordion summary { min-height: 74px; font-size: 14px; }
  .discord-cta { min-height: 590px; }
  .discord-content h2 { font-size: 33px; }
  .footer-main { display: block; text-align: center; }
  .footer-main .brand { justify-content: center; }
  .footer-main > p { margin: 24px 0; }
  .footer-links { justify-content: center; gap: 19px; }
  .footer-bottom { text-align: center; }
  .footer-bottom span:last-child { 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; }
}
