:root {
  --bg: #eee9ff;
  --ink: #251c3e;
  --muted: #786d96;
  --violet: #7a5cff;
  --violet-2: #b7a4ff;
  --violet-3: #dcd4ff;
  --panel: rgba(255,255,255,0.58);
  --border: rgba(87, 66, 151, 0.15);
  --shadow: 0 24px 70px rgba(79, 61, 145, 0.16);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.94), transparent 27%),
    radial-gradient(circle at 88% 8%, rgba(177,158,255,0.38), transparent 25%),
    linear-gradient(180deg, #f4f1ff 0%, #e6ddff 48%, #eee9ff 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  opacity: 0.5;
  z-index: -3;
}
.ambient-a { width: 340px; height: 340px; background: #c8b8ff; left: -120px; top: 24%; animation: drift 11s ease-in-out infinite alternate; }
.ambient-b { width: 420px; height: 420px; background: #9b82ff; right: -190px; top: 52%; animation: drift 14s ease-in-out infinite alternate-reverse; }

.veil-line {
  position: fixed;
  width: 62vw;
  height: 18vw;
  border: 1px solid rgba(122,92,255,0.13);
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  transform: rotate(-18deg);
}
.veil-one { left: -16vw; top: 10vh; animation: veilFloat 12s ease-in-out infinite; }
.veil-two { right: -20vw; bottom: 10vh; transform: rotate(22deg); animation: veilFloat 15s ease-in-out infinite reverse; }

.shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  width: min(calc(100% - 32px), var(--max));
  margin: 14px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.68);
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(75, 58, 140, 0.1);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.08em; font-size: 0.9rem; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 18px rgba(122,92,255,0.55); }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links a { padding: 9px 12px; border-radius: 999px; color: var(--muted); font-size: 0.9rem; transition: 0.25s ease; }
.nav-links a:hover { background: rgba(122,92,255,0.08); color: var(--ink); }

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
  align-items: center;
  padding: 44px 0 56px;
}

.hero-copy { padding: 28px 0 28px 10px; }
.kicker { margin: 0 0 14px; font-size: 0.76rem; letter-spacing: 0.23em; font-weight: 700; color: #7d68c8; }
.hero h1,
.section-title h2,
.final-card h2 {
  font-family: 'Fraunces', serif;
  letter-spacing: -0.045em;
}
.hero h1 { margin: 0; font-size: clamp(4rem, 8vw, 7.6rem); line-height: 0.78; font-weight: 700; }
.hero h1 em { color: var(--violet); font-style: normal; }
.intro { max-width: 610px; margin: 26px 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }

.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.platform-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.44);
  box-shadow: 0 14px 30px rgba(65,49,127,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.platform-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.68); box-shadow: 0 20px 34px rgba(65,49,127,0.12); }
.icon-box { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #2a2144; flex: 0 0 auto; }
.icon-box img { width: 24px; height: 24px; object-fit: contain; }
.platform-card strong { display: block; font-size: 0.96rem; }
.platform-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.75rem; }

.contract-card {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(36,28,62,0.9);
  color: white;
  box-shadow: var(--shadow);
}
.contract-copy { min-width: 0; }
.contract-copy span { display: block; margin-bottom: 7px; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: #c8bcf1; }
.contract-copy code { display: block; max-width: 100%; color: #fff; word-break: break-all; font-size: 0.88rem; }
#copy-ca { border: 0; border-radius: 14px; padding: 12px 16px; cursor: pointer; color: #251c3e; background: #efeaff; font-weight: 700; transition: transform 0.22s ease; }
#copy-ca:hover { transform: translateY(-2px); }

.portrait-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.portrait-card {
  position: relative;
  width: min(100%, 650px);
  padding: 18px;
  border-radius: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(231,223,255,0.76));
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 36px 90px rgba(77,56,151,0.18);
  overflow: hidden;
  transform: rotate(1.4deg);
}
.portrait-card img { width: 100%; border-radius: 34px; aspect-ratio: 1 / 1; object-fit: cover; animation: portraitBreath 6s ease-in-out infinite; }
.portrait-label { position: absolute; top: 32px; left: 34px; z-index: 3; padding: 8px 12px; border-radius: 999px; background: rgba(41,32,69,0.72); color: white; font-size: 0.7rem; letter-spacing: 0.14em; backdrop-filter: blur(12px); }
.portrait-glow { position: absolute; width: 60%; height: 60%; border-radius: 50%; background: rgba(178,155,255,0.28); filter: blur(45px); right: -10%; top: -10%; pointer-events: none; }
.mini-note { position: absolute; padding: 11px 14px; border-radius: 999px; background: rgba(255,255,255,0.74); border: 1px solid white; box-shadow: 0 12px 30px rgba(79,61,145,0.12); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; }
.note-a { left: -8px; bottom: 18%; animation: noteFloat 5s ease-in-out infinite; }
.note-b { right: -8px; top: 20%; animation: noteFloat 6s ease-in-out infinite reverse; }

.story, .tokenomics, .roadmap, .final { padding: 76px 0 12px; }
.section-title { max-width: 700px; margin-bottom: 26px; }
.section-title h2, .final-card h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 0.96; }
.story-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 18px; }
.story-main, .story-quote, .token-card, .road-step, .final-card {
  border: 1px solid rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.45);
  box-shadow: 0 16px 42px rgba(78,58,142,0.09);
}
.story-main { padding: 30px; border-radius: 30px; }
.story-main p { margin: 0; color: var(--muted); line-height: 1.8; }
.story-main p + p { margin-top: 18px; }
.story-quote { padding: 30px; border-radius: 30px; display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; }
.story-quote span { font-size: 0.72rem; letter-spacing: 0.14em; color: #7d68c8; }
.story-quote blockquote { margin: 38px 0 0; font-family: 'Fraunces', serif; font-size: 1.7rem; line-height: 1.25; }

.token-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.token-card { padding: 24px; border-radius: 24px; }
.token-card span { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 14px; }
.token-card strong { font-family: 'Fraunces', serif; font-size: clamp(1.6rem, 3vw, 2.3rem); }

.roadmap-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.road-step { position: relative; padding: 26px; border-radius: 24px; overflow: hidden; }
.road-step::after { content: ''; position: absolute; inset: auto -20px -30px auto; width: 90px; height: 90px; border-radius: 50%; background: rgba(122,92,255,0.1); }
.road-step > span { display: block; margin-bottom: 30px; color: var(--violet); font-weight: 700; }
.road-step h3 { margin: 0 0 10px; font-size: 1.05rem; }
.road-step p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.9rem; }

.final-card { padding: 32px; border-radius: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, rgba(255,255,255,0.58), rgba(213,200,255,0.56)); }
.final-links { display: flex; gap: 10px; flex-wrap: wrap; }
.final-links a { display: inline-flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 14px; background: #2a2144; color: white; font-weight: 700; font-size: 0.88rem; }
.final-links img { width: 20px; height: 20px; }

.footer { display: flex; justify-content: space-between; gap: 16px; padding: 42px 0 28px; color: var(--muted); font-size: 0.9rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@keyframes portraitBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.018); } }
@keyframes noteFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(30px,-28px,0); } }
@keyframes veilFloat { 0%,100% { transform: rotate(-18deg) translateY(0); } 50% { transform: rotate(-18deg) translateY(-16px); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-left: 0; }
  .portrait-wrap { order: -1; }
  .portrait-card { max-width: 600px; }
  .story-layout { grid-template-columns: 1fr; }
  .token-grid, .roadmap-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  .topbar { border-radius: 22px; align-items: flex-start; }
  .nav-links { display: none; }
  .hero { padding-top: 28px; }
  .platform-grid, .token-grid, .roadmap-track { grid-template-columns: 1fr; }
  .contract-card { flex-direction: column; align-items: stretch; }
  #copy-ca { width: 100%; }
  .mini-note { display: none; }
  .final-links { width: 100%; flex-direction: column; }
  .final-links a { justify-content: center; }
  .footer { flex-direction: column; }
}
