* { box-sizing: border-box; }
:root {
  --bg: #060315;
  --bg-2: #11092b;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --text: #f9fafb;
  --muted: #b0b4c4;
  --brand: #8b5cf6;
  --brand-2: #f472b6;
  --accent: #f59e0b;
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(15, 5, 45, 0.55);
  --radius-lg: 28px;
  --radius-md: 20px;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(140% 120% at 50% 0%, var(--bg-2) 0%, var(--bg) 65%, #020008 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100%;
}

body {
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; }
a:hover { color: #fff; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  backdrop-filter: blur(6px);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(139, 92, 246, 0.2); }
.btn:active { transform: translateY(0); }
.btn-cta, .btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
}
.btn-outline {
  background: transparent;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 3, 21, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.brand {
  font-family: 'Fredoka', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 20px;
  text-decoration: none;
  color: #fff;
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav a {
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: color 120ms ease;
}
.nav a:hover { color: #fff; }
.topbar-cta { display: flex; gap: 10px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bubbles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 400px at 80% 10%, rgba(244, 114, 182, 0.32), transparent 65%),
    radial-gradient(520px 520px at 10% 20%, rgba(139, 92, 246, 0.35), transparent 70%),
    radial-gradient(560px 560px at 50% 100%, rgba(34, 211, 238, 0.22), transparent 80%);
  filter: blur(0px);
  opacity: 0.9;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.hero-copy {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
  color: #fff;
}
.hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.05;
  font-family: 'Fredoka', 'Inter', system-ui, sans-serif;
}
.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero-stats li {
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 18px;
  border-radius: 18px;
  min-width: 120px;
  box-shadow: 0 18px 40px rgba(6, 3, 21, 0.45);
  display: grid;
  gap: 2px;
}
.hero-stats strong { font-size: 26px; font-weight: 700; }
.hero-stats span { color: var(--muted); font-size: 13px; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  animation: spin 28s linear infinite;
}
.orbit-1 { width: 360px; height: 360px; animation-duration: 24s; }
.orbit-2 { width: 260px; height: 260px; animation-duration: 32s; }
.orbit-3 { width: 160px; height: 160px; animation-duration: 40s; }
.mascot-card {
  position: relative;
  z-index: 2;
  background: rgba(8, 5, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  width: 220px;
}
.mascot-card h3 { margin: 8px 0; font-size: 20px; }
.mascot-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.4; }
.mascot-icon { font-size: 40px; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
.pill:hover { background: rgba(255, 255, 255, 0.2); }
.floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}
.pill-one { top: 12%; right: 4%; animation-delay: 0.4s; }
.pill-two { bottom: 18%; left: 10%; animation-delay: 1.2s; }
.pill-three { top: 50%; left: -4%; animation-delay: 2s; }

.section-header {
  text-align: center;
  margin-bottom: 36px;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  color: #fff;
}
.section-header h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-family: 'Fredoka', 'Inter', system-ui, sans-serif;
}
.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 660px;
}

.verse { padding: 100px 0; }
.catalog-group { margin-bottom: 64px; }
.catalog-group h3 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.coin-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  box-shadow: 0 16px 50px rgba(5, 2, 20, 0.45);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.coin-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(139, 92, 246, 0.2);
}
.coin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.coin-icon { font-size: 28px; }
.coin-ticker {
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.coin-card h4 { margin: 0; font-size: 18px; }
.coin-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.coin-card .pill { margin-top: auto; align-self: flex-start; }

.rituals { padding: 100px 0; }
.ritual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.ritual-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 16px 50px rgba(7, 3, 24, 0.4);
}
.ritual-card h3 { margin: 0 0 12px; font-size: 20px; }
.ritual-card p { margin: 0; color: var(--muted); }
.ritual-card a { color: #fff; text-decoration: underline; }

.plan { padding: 100px 0; }
.timeline {
  display: grid;
  gap: 24px;
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px;
  box-shadow: 0 16px 55px rgba(6, 3, 21, 0.45);
}
.timeline-bullet {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 12px 18px;
}
.timeline-content h3 { margin: 0 0 6px; font-size: 20px; }
.timeline-content p { margin: 0; color: var(--muted); }

.qr-codes { padding: 56px 0; }
.qr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 600px; margin: 0 auto; }
.qr-block { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 24px; 
  text-align: center; 
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.qr-block:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(0,0,0,0.06); 
}
.qr-icon { font-size: 32px; margin-bottom: 12px; }
.qr-block h3 { margin: 0 0 8px; font-size: 18px; color: var(--text); }
.qr-block p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.qr-code { 
  margin: 16px 0; 
  display: flex; 
  justify-content: center; 
  align-items: center;
}
.qr-code img { 
  border-radius: 8px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.qr-link { 
  color: var(--brand); 
  text-decoration: none; 
  font-weight: 600; 
  font-size: 14px;
}
.qr-link:hover { color: var(--brand-2); }

.join { padding: 110px 0 120px; }
.join-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  background: rgba(8, 5, 27, 0.82);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 30px 90px rgba(8, 5, 27, 0.6);
}
.join-copy { display: flex; flex-direction: column; gap: 20px; }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.join-panel { display: grid; gap: 16px; }
.join-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px 20px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.join-card span { font-size: 26px; }
.join-card h3 { margin: 0; font-size: 18px; }
.join-card p { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 3, 21, 0.82);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
}
.footer-brand { font-weight: 600; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: #fff; }

/* Story pages compatibility */
.story-wrapper { color: inherit; }
.back-link { color: var(--brand-2); }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-12px) translateX(6px); }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero-visual { order: -1; min-height: 360px; }
  .nav { display: none; }
}
@media (max-width: 620px) {
  .hero-stats { flex-direction: column; align-items: flex-start; }
  .catalog-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .timeline-item { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 96px; }
  .topbar-inner { flex-wrap: wrap; justify-content: center; }
  .topbar-cta { width: 100%; justify-content: center; }
  .qr-grid { grid-template-columns: 1fr; gap: 16px; }
}
