:root{
  color-scheme: dark;
  --bg0:#04030a;
  --bg1:#07051a;
  --ink: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.58);
  --stroke: rgba(255,255,255,.14);
  --stroke2: rgba(255,255,255,.10);
  --shadow: 0 20px 60px rgba(0,0,0,.60);
  --shadow2: 0 10px 26px rgba(0,0,0,.38);
  --violet: rgba(196,120,255,.85);
  --pink: rgba(255,140,220,.65);
  --cyan: rgba(120,210,255,.55);
  --r1: 14px;
  --r2: 18px;
  --r3: 24px;
  --container: 1160px;
  --pad: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
html{ scroll-behavior:smooth; overflow-x:hidden; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 15% 12%, rgba(196,120,255,.20), transparent 60%),
    radial-gradient(900px 600px at 85% 18%, rgba(120,210,255,.16), transparent 60%),
    radial-gradient(800px 900px at 70% 85%, rgba(255,140,220,.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}
img, video, canvas, svg{ max-width:100%; height:auto; display:block; }
p, li, a, span, div{ overflow-wrap:anywhere; word-break:break-word; }
a{ color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible, summary:focus-visible{
  outline: 2px solid rgba(120,210,255,.65);
  outline-offset: 3px;
  border-radius: 12px;
}

#starfield{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:-2;
  pointer-events:none;
}
.grain{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.10;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
}

.container{
  width:min(var(--container), 100%);
  padding-inline:var(--pad);
  margin-inline:auto;
}
.noMin{ min-width:0; }

.shimmer{
  display:inline-block;
  color:transparent;
  background:linear-gradient(90deg, rgba(255,255,255,.65), rgba(231,200,255,.92) 18%, rgba(255,183,229,.92) 38%, rgba(255,255,255,.92) 60%, rgba(120,210,255,.82) 78%, rgba(255,255,255,.65));
  -webkit-background-clip:text;
  background-clip:text;
  background-size:260% 100%;
  animation: shimmer 2.9s linear infinite;
  filter: drop-shadow(0 0 12px rgba(196,120,255,.16));
}
.shimmer.soft{ animation-duration:3.4s; }
@keyframes shimmer{ 0%{background-position:0% 50%} 100%{background-position:260% 50%} }

.glass{
  border-radius:var(--r3);
  border:1px solid var(--stroke);
  background:
    radial-gradient(700px 420px at 15% 20%, rgba(196,120,255,.20), transparent 60%),
    radial-gradient(650px 420px at 85% 10%, rgba(120,210,255,.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:var(--shadow2);
  backdrop-filter:blur(14px);
  overflow:hidden;
}
.card{
  border-radius:var(--r3);
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(420px 220px at 12% 12%, rgba(196,120,255,.12), transparent 60%),
    radial-gradient(420px 220px at 88% 18%, rgba(120,210,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  box-shadow:0 14px 46px rgba(0,0,0,.34);
  backdrop-filter:blur(12px);
  overflow:hidden;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:var(--ink);
  font-weight:950;
  font-size:13px;
  letter-spacing:.18px;
  cursor:pointer;
  user-select:none;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  position:relative;
  transition:transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn:hover{ transform:translateY(-1px); background:rgba(255,255,255,.1); }
.btnPrimary{
  border-color:rgba(196,120,255,.36);
  background:
    radial-gradient(160px 90px at 30% 20%, rgba(196,120,255,.30), transparent 60%),
    radial-gradient(180px 100px at 80% 30%, rgba(120,210,255,.24), transparent 60%),
    rgba(255,255,255,.06);
  box-shadow:0 0 26px rgba(196,120,255,.10), 0 0 36px rgba(120,210,255,.08);
  animation: buyPulse 1.9s ease-in-out infinite;
}
.btnPrimary::before{
  content:"";
  position:absolute;
  top:-45%;
  left:-60%;
  width:60%;
  height:190%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform:rotate(18deg);
  animation:sheen 2.4s linear infinite;
  pointer-events:none;
}
@keyframes buyPulse{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-2px); } }
@keyframes sheen{ 0%{left:-60%;opacity:0;} 15%{opacity:.7;} 40%{opacity:.25;} 60%{opacity:0;} 100%{left:140%;opacity:0;} }

.rw-header{
  top:10px;
  z-index:60;
  padding:10px 0 8px;
  position:sticky;
}
.navRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  min-width:0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
}
.dot{
  width:11px;
  height:11px;
  border-radius:999px;
  background:rgba(196,120,255,.95);
  box-shadow:0 0 18px rgba(196,120,255,.55), 0 0 34px rgba(120,210,255,.18);
  flex:0 0 auto;
}
.brandStack{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.brandStack strong{ font-size:13px; font-weight:1000; letter-spacing:.35px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pillMini, .drawerPill, .badgeBlock, .tokenBadge, .rw-faction-badge, .rw-inline-badge{
  width:fit-content;
  font-size:12px;
  font-weight:950;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.22);
}
.navActions{ display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.rw-desktop-links{ display:none; gap:10px; }
.rw-header-cta{ display:none; }

.menuBtn{
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(140px 90px at 30% 20%, rgba(196,120,255,.25), transparent 60%),
    radial-gradient(160px 90px at 80% 30%, rgba(120,210,255,.20), transparent 60%),
    rgba(255,255,255,.06);
  box-shadow:0 12px 26px rgba(0,0,0,.32), 0 0 24px rgba(196,120,255,.08);
  cursor:pointer;
  position:relative;
  overflow:hidden;
  flex:0 0 auto;
  display:grid;
  place-items:center;
}
.menuBtn::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(160px 120px at 30% 20%, rgba(255,140,220,.18), transparent 60%),
    radial-gradient(180px 120px at 80% 35%, rgba(120,210,255,.14), transparent 60%);
  opacity:0;
  transition:opacity .15s ease;
  pointer-events:none;
  filter:blur(10px);
}
.menuBtn:hover::before{ opacity:.9; }
.menuIcon{ width:22px; height:18px; position:relative; }
.menuIcon span{
  position:absolute;
  left:0;
  right:0;
  height:2px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  box-shadow:0 0 10px rgba(196,120,255,.14);
  transition:transform .16s ease, top .16s ease, opacity .12s ease;
}
.menuIcon span:nth-child(1){ top:2px; }
.menuIcon span:nth-child(2){ top:8px; }
.menuIcon span:nth-child(3){ top:14px; }
.menuBtn[data-open="true"] .menuIcon span:nth-child(1){ top:8px; transform:rotate(45deg); }
.menuBtn[data-open="true"] .menuIcon span:nth-child(2){ opacity:0; }
.menuBtn[data-open="true"] .menuIcon span:nth-child(3){ top:8px; transform:rotate(-45deg); }

.backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(8px);
  opacity:0;
  pointer-events:none;
  transition:opacity .16s ease;
  z-index:80;
}
.drawer{
  position:fixed;
  top:0;
  right:0;
  height:100%;
  width:min(88vw, 360px);
  transform:translateX(110%);
  transition:transform .18s ease;
  z-index:90;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  background:
    radial-gradient(600px 360px at 25% 18%, rgba(196,120,255,.18), transparent 60%),
    radial-gradient(600px 360px at 80% 30%, rgba(120,210,255,.14), transparent 60%),
    rgba(8,6,20,.94);
  border-left:1px solid rgba(255,255,255,.10);
  box-shadow:var(--shadow);
  overflow:auto;
}
.drawerHeader{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:4px 2px; }
.drawerTitle{ display:flex; align-items:center; gap:10px; font-weight:1000; letter-spacing:.25px; }
.navList{ display:grid; gap:10px; }
.navItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  font-weight:950;
  min-width:0;
}
.navLeft{ display:flex; gap:10px; align-items:center; min-width:0; }
.navGlyph{
  width:28px;
  height:28px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.navText{ min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.navArrow{ opacity:.7; flex:0 0 auto; }
.backdrop.open{ opacity:1; pointer-events:auto; }
.drawer.open{ transform:translateX(0); }

.section{ padding:38px 0; }
.alt{
  background:rgba(255,255,255,.02);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
h1{ margin:14px 0 8px; font-size:clamp(2rem, 8.5vw, 4rem); line-height:1.06; letter-spacing:-.02em; }
h2{ margin:0 0 8px; font-size:clamp(1.55rem, 6vw, 2.35rem); letter-spacing:-.01em; }
h3{ margin:0 0 8px; font-size:1.1rem; }
.muted{ color:var(--muted); line-height:1.7; font-weight:650; }
.heroPad{ padding:14px; }
.heroGrid{ display:grid; grid-template-columns:1fr; gap:12px; min-width:0; }
.badgeStack{ display:grid; gap:10px; }
.badgeBlock{
  padding:10px 12px;
  border-radius:16px;
}
.heroButtons{ display:grid; gap:10px; margin:12px 0 10px; }
.chipGrid{ display:grid; gap:10px; margin:10px 0 12px; }
.chip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  font-weight:950;
  font-size:12px;
}
.stats, .notes{ display:grid; gap:10px; margin-top:10px; }
.stat, .note{
  padding:12px;
  border-radius:var(--r2);
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.stat .k{ color:var(--muted2); font-weight:850; font-size:.84rem; }
.stat .v{ font-weight:1000; margin-top:4px; }
.note{ display:flex; gap:10px; align-items:flex-start; font-weight:850; }
.note .spark{ flex:0 0 auto; filter:drop-shadow(0 0 12px rgba(196,120,255,.22)); }
.mediaPad, .pad{ padding:16px; min-width:0; }
.mediaTop{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.rw-mini-label{ color:var(--muted2); font-weight:750; }
.tokenBadge{ padding:8px 12px; }
.rw-hero-image-wrap{
  margin-top:12px;
  border-radius:var(--r2);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
}
.rw-hero-image{
  width:100%;
  aspect-ratio: 4 / 5;
  object-fit:cover;
}
.grid3, .tokenGrid{ display:grid; gap:12px; margin-top:12px; }
.rw-card-icon{ font-size:2rem; margin-bottom:10px; }
.rw-mockup-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.rw-mockup-card{
  margin:0;
  padding:10px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.rw-mockup-card figcaption{
  margin-bottom:8px;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted2);
}
.rw-mockup-card img{
  width:100%;
  aspect-ratio:9 / 16;
  object-fit:cover;
  border-radius:14px;
}
.rw-faction-card{ min-height:100%; }
.rw-faction-lumi{ color:#f4dcff; }
.rw-faction-neb{ color:#d6f7ff; }
.rw-cta-panel{
  padding:22px;
  display:grid;
  gap:14px;
}
.rw-footer{ padding:26px 0 60px; }
.footerInner{
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:18px;
  display:grid;
  gap:12px;
}
.footerLinks{ display:flex; flex-wrap:wrap; gap:12px; justify-content:flex-start; }

@media (min-width: 860px){
  .rw-desktop-links{ display:flex; }
  .rw-header-cta{ display:inline-flex; }
  .heroGrid{ grid-template-columns:1.1fr .9fr; align-items:start; }
  .stats{ grid-template-columns:repeat(3, minmax(0,1fr)); }
  .grid3{ grid-template-columns:repeat(3, minmax(0,1fr)); }
  .tokenGrid{ grid-template-columns:1fr 1fr; }
  .rw-cta-panel{ grid-template-columns:1.25fr auto; align-items:center; }
}

@media (max-width: 859px){
  .rw-header-cta{ display:none; }
}

@media (max-width: 640px){
  .rw-mockup-grid{ grid-template-columns:1fr; }
  .rw-hero-image{ aspect-ratio: 4 / 4.6; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .shimmer, .btnPrimary{ animation:none !important; }
  .btnPrimary::before{ display:none; }
}
