:root{
  --bg:#8d78dd;
  --bg2:#a391ec;
  --bg3:#7055c9;
  --white:#fffdf3;
  --cream:#fff8df;
  --deep:#221847;
  --muted:#ddd4ff;
  --line:rgba(255,253,243,.52);
  --glass:rgba(255,253,243,.16);
  --glass-strong:rgba(255,253,243,.28);
  --shadow:0 28px 90px rgba(37,24,85,.28);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--white);
  background:
    radial-gradient(circle at 22% 18%,rgba(255,255,255,.22),transparent 24%),
    radial-gradient(circle at 90% 18%,rgba(255,255,255,.16),transparent 22%),
    linear-gradient(135deg,var(--bg),var(--bg2) 46%,var(--bg3));
  font-family:"DM Sans",system-ui,sans-serif;
  overflow-x:hidden;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  background-image:url("assets/purple-noise.png");
  background-size:600px 400px;
  opacity:.18;
  pointer-events:none;
  mix-blend-mode:soft-light;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit;color:inherit}
.dream-bg{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.moon,.dot{position:absolute;border-radius:999px;background:rgba(255,253,243,.25);filter:blur(.2px)}
.moon{width:160px;height:160px;animation:moonFloat 16s ease-in-out infinite}
.moon:after{
  content:"";
  position:absolute;
  inset:22px -10px 0 38px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--bg),var(--bg2));
}
.m1{left:7%;top:18%;animation-delay:-4s}
.m2{right:10%;top:62%;transform:scale(.7);animation-delay:-9s}
.m3{left:50%;bottom:8%;transform:scale(.45);animation-delay:-2s}
.dot{width:18px;height:18px;animation:dotRise linear infinite}
.d1{left:14%;animation-duration:13s}
.d2{left:38%;animation-duration:17s;animation-delay:-7s}
.d3{left:70%;animation-duration:15s;animation-delay:-3s}
.d4{left:88%;animation-duration:18s;animation-delay:-9s}
.topbar,main,footer{position:relative;z-index:2}
.topbar{
  width:min(1180px,calc(100% - 28px));
  margin:18px auto 0;
  padding:12px 14px;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:18px;
  align-items:center;
  background:rgba(45,31,102,.24);
  border:1px solid var(--line);
  border-radius:999px;
  backdrop-filter:blur(18px);
  box-shadow:var(--shadow);
}
.brand{display:flex;align-items:center;gap:12px;font-weight:900}
.brand img{width:54px;height:54px;border-radius:50%;object-fit:cover;border:2px solid var(--line)}
.brand span{font-family:"Caprasimo",serif;font-size:1.55rem;letter-spacing:.02em}
.nav{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.nav a{
  padding:10px 13px;
  border-radius:999px;
  color:rgba(255,253,243,.80);
  font-weight:800;
}
.nav a:hover{background:var(--glass);color:var(--white)}
main{
  width:min(1180px,calc(100% - 28px));
  margin:22px auto 44px;
  display:grid;
  gap:20px;
}
.hero{
  min-height:680px;
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:24px;
  align-items:center;
}
.title-side{
  padding:28px;
  border:1px solid var(--line);
  border-radius:46px;
  background:rgba(45,31,102,.18);
  backdrop-filter:blur(18px);
  box-shadow:var(--shadow);
}
.pill{
  display:inline-flex;
  margin:0 0 16px;
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--glass);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.76rem;
  font-weight:900;
  color:rgba(255,253,243,.86);
}
h1,h2,p{margin:0}
h1{
  font-family:"Caprasimo",serif;
  font-size:clamp(4rem,8vw,8.8rem);
  line-height:.82;
  letter-spacing:.01em;
  text-shadow:0 14px 38px rgba(34,24,71,.38);
}
.lead{
  margin-top:22px;
  max-width:620px;
  font-size:1.15rem;
  line-height:1.7;
  color:rgba(255,253,243,.80);
}
.hero-links,.chart-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.btn,.chart-actions a{
  min-height:54px;
  padding:0 20px;
  border-radius:999px;
  border:1px solid var(--line);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  background:var(--glass);
}
.btn.primary{background:var(--white);color:var(--deep)}
.btn:hover,.chart-actions a:hover,.link-card:hover{transform:translateY(-4px)}
.ca-card{
  margin-top:22px;
  padding:16px;
  border-radius:24px;
  border:1px dashed var(--line);
  background:rgba(34,24,71,.22);
}
.ca-card small{
  display:block;
  margin-bottom:9px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.10em;
  color:rgba(255,253,243,.68);
}
.ca-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.ca-row code{word-break:break-all;font-weight:900;color:var(--white)}
.ca-row button{
  border:0;
  cursor:pointer;
  border-radius:999px;
  padding:10px 14px;
  background:var(--white);
  color:var(--deep);
  font-weight:900;
}
.orb-stage{
  position:relative;
  min-height:680px;
  display:grid;
  place-items:center;
}
.halo{
  position:absolute;
  border-radius:50%;
  border:2px solid rgba(255,253,243,.25);
  animation:spin 20s linear infinite;
}
.h1{width:86%;aspect-ratio:1}
.h2{width:66%;aspect-ratio:1;animation-direction:reverse;animation-duration:26s}
.mascot-card{
  width:min(630px,92%);
  border-radius:56px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 35px 90px rgba(37,24,85,.34);
  animation:floatMascot 5s ease-in-out infinite;
}
.mascot-card img{width:100%;height:100%;object-fit:cover}
.tiny-ghost{
  position:absolute;
  width:70px;
  height:54px;
  background:var(--white);
  border-radius:55% 55% 40% 40%;
  box-shadow:0 12px 22px rgba(34,24,71,.18);
  animation:ghostFloat 6s ease-in-out infinite;
}
.tiny-ghost:before,.tiny-ghost:after{
  content:"";
  position:absolute;
  top:20px;
  width:8px;height:12px;border-radius:99px;
  background:var(--bg);
}
.tiny-ghost:before{left:24px}
.tiny-ghost:after{right:24px}
.g1{left:8%;top:18%;transform:rotate(-16deg)}
.g2{right:6%;top:28%;transform:scale(.72) rotate(10deg);animation-delay:-2s}
.g3{right:18%;bottom:12%;transform:scale(.55) rotate(-8deg);animation-delay:-4s}
.story{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:20px;
}
.story-card,.mood-board,.tokenomics,.chart,.links-panel{
  border:1px solid var(--line);
  background:rgba(45,31,102,.18);
  border-radius:42px;
  backdrop-filter:blur(18px);
  box-shadow:var(--shadow);
}
.story-card,.tokenomics,.chart{padding:28px}
.story-card h2,.section-head h2,.chart-head h2{
  font-family:"Caprasimo",serif;
  font-size:clamp(2.6rem,5vw,5.4rem);
  line-height:.88;
}
.story-card p:not(.pill){
  margin-top:16px;
  color:rgba(255,253,243,.78);
  font-size:1.08rem;
  line-height:1.7;
}
.mood-board{
  padding:24px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  align-content:center;
}
.mood-board span{
  min-height:120px;
  display:grid;
  place-items:center;
  padding:16px;
  border-radius:28px;
  background:var(--glass);
  border:1px solid rgba(255,253,243,.25);
  font-weight:900;
  text-align:center;
}
.token-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:18px;
}
.token-grid div{
  min-height:150px;
  padding:18px;
  border-radius:28px;
  background:var(--glass);
  border:1px solid rgba(255,253,243,.25);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.token-grid small{font-weight:900;text-transform:uppercase;color:rgba(255,253,243,.66)}
.token-grid strong{font-family:"Caprasimo";font-size:clamp(2.2rem,3.8vw,4rem)}
.chart-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;flex-wrap:wrap;margin-bottom:18px}
.chart-actions a{margin-top:0}
.chart iframe{
  width:100%;
  height:540px;
  border:0;
  border-radius:28px;
  background:#0c0b16;
  border:1px solid rgba(255,253,243,.25);
}
.links-panel{
  padding:18px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.link-card{
  min-height:140px;
  padding:18px;
  border-radius:30px;
  background:var(--glass);
  border:1px solid rgba(255,253,243,.25);
  display:grid;
  place-items:center;
  gap:12px;
  font-weight:900;
  transition:.16s;
}
.link-card img{width:34px;height:34px}
footer{
  width:min(1180px,calc(100% - 28px));
  margin:0 auto 30px;
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  color:rgba(255,253,243,.62);
  font-weight:800;
}
@keyframes moonFloat{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-24px) rotate(16deg)}}
@keyframes dotRise{0%{bottom:-30px;opacity:0}20%{opacity:.7}100%{bottom:110vh;opacity:0}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes floatMascot{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-16px) rotate(1deg)}}
@keyframes ghostFloat{0%,100%{margin-top:0}50%{margin-top:-24px}}
@media(max-width:980px){
  .topbar{grid-template-columns:1fr;border-radius:32px}
  .nav{justify-content:flex-start}
  .hero,.story{grid-template-columns:1fr}
  .orb-stage{min-height:auto}
  .token-grid,.links-panel{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .topbar,main,footer{width:calc(100% - 18px)}
  .title-side,.story-card,.tokenomics,.chart{padding:18px}
  h1{font-size:4rem}
  .ca-row{grid-template-columns:1fr}
  .token-grid,.links-panel,.mood-board{grid-template-columns:1fr}
  .chart iframe{height:420px}
}
