/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0c0820;
  color: #e9e3ff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .25s ease; }
img { max-width: 100%; display: block; }

/* ===== Tokens (Skyweaver palette) ===== */
:root {
  --c-bg: #0c0820;
  --c-bg-2: #1a0f3d;
  --c-violet: #4a2d8c;
  --c-purple: #7c3aed;
  --c-magenta: #c026d3;
  --c-pink: #ec4899;
  --c-orange: #f97316;
  --c-amber: #fbbf24;
  --c-yellow: #fcd34d;
  --c-text: #f5f0ff;
  --c-muted: #b9aedc;
  --grad-sunset: linear-gradient(135deg, #7c3aed 0%, #c026d3 35%, #f97316 75%, #fcd34d 100%);
  --grad-sky: linear-gradient(180deg, #1a0f3d 0%, #4a2d8c 50%, #c026d3 100%);
  --shadow-glow: 0 20px 60px -15px rgba(192, 38, 211, .55);
  --shadow-soft: 0 10px 40px -10px rgba(0,0,0,.5);
  --container: 1200px;
  --rad: 18px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ===== Particles ===== */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.particles span {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--c-yellow);
  border-radius: 50%;
  box-shadow: 0 0 12px 2px rgba(252, 211, 77, .8);
  opacity: 0;
  animation: float 14s linear infinite;
}
.particles span:nth-child(1)  { left:  5%; animation-delay:  0s; }
.particles span:nth-child(2)  { left: 12%; animation-delay:  2s; background: var(--c-pink); box-shadow: 0 0 12px 2px rgba(236,72,153,.7);}
.particles span:nth-child(3)  { left: 22%; animation-delay:  4s; }
.particles span:nth-child(4)  { left: 33%; animation-delay:  1s; background: var(--c-purple); box-shadow: 0 0 12px 2px rgba(124,58,237,.7);}
.particles span:nth-child(5)  { left: 41%; animation-delay:  6s; }
.particles span:nth-child(6)  { left: 52%; animation-delay:  3s; background: var(--c-pink); box-shadow: 0 0 12px 2px rgba(236,72,153,.7);}
.particles span:nth-child(7)  { left: 60%; animation-delay:  5s; }
.particles span:nth-child(8)  { left: 68%; animation-delay:  7s; background: var(--c-amber);}
.particles span:nth-child(9)  { left: 76%; animation-delay:  2.5s; }
.particles span:nth-child(10) { left: 83%; animation-delay:  4.5s; background: var(--c-purple); box-shadow: 0 0 12px 2px rgba(124,58,237,.7);}
.particles span:nth-child(11) { left: 90%; animation-delay:  6.5s; }
.particles span:nth-child(12) { left: 95%; animation-delay:  1.5s; background: var(--c-pink);}
.particles span:nth-child(13) { left: 17%; animation-delay:  8s; }
.particles span:nth-child(14) { left: 47%; animation-delay:  9s; background: var(--c-amber);}
.particles span:nth-child(15) { left: 72%; animation-delay: 10s; }

@keyframes float {
  0%   { transform: translateY(110vh) scale(.5); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1.4); opacity: 0; }
}

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(12, 8, 32, .35);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s ease;
}
.nav.scrolled { background: rgba(12, 8, 32, .85); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Cinzel', serif; font-weight: 700; font-size: 20px; letter-spacing: .5px; }
.brand-glyph {
  font-size: 22px;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(192,38,211,.6));
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--c-muted);
  font-size: 14px; font-weight: 500;
  position: relative;
}
.nav-links a:hover { color: var(--c-text); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px; background: var(--grad-sunset);
  transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }

.btn-ghost {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  transition: all .3s ease;
}
.btn-ghost:hover {
  background: rgba(192, 38, 211, .15);
  border-color: rgba(236, 72, 153, .5);
  transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(12, 8, 32, .85) 0%, transparent 60%),
    linear-gradient(180deg, rgba(12, 8, 32, .55) 0%, rgba(12, 8, 32, .25) 30%, rgba(12, 8, 32, .9) 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(192, 38, 211, .12);
  border: 1px solid rgba(236, 72, 153, .3);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-yellow);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -.5px;
  text-shadow: 0 4px 30px rgba(0,0,0,.7);
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--c-muted);
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--grad-sunset);
  background-size: 200% 100%;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-glow);
  transition: all .35s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 25px 70px -15px rgba(236, 72, 153, .7);
}
.btn-primary svg { transition: transform .3s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex; align-items: center;
  padding: 16px 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 500;
  font-size: 15px;
  backdrop-filter: blur(10px);
  transition: all .3s ease;
}
.btn-secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(252, 211, 77, .4);
}

.hero-stats {
  display: inline-flex; align-items: center; gap: 28px;
  padding: 18px 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
}
.hero-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-stats strong {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-muted); }
.hero-stats .divider { width: 1px; height: 30px; background: rgba(255,255,255,.15); }

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 14px;
  display: flex; justify-content: center;
  z-index: 3;
}
.scroll-hint span {
  display: block;
  width: 4px; height: 8px;
  background: var(--c-yellow);
  border-radius: 2px;
  margin-top: 8px;
  animation: scrollDot 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--c-yellow);
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(14px); opacity: .3; }
}

/* ===== Section: World ===== */
.world { padding: 120px 0; position: relative; }
.section-tag {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--c-amber);
  text-align: center;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-sub {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 60px;
  color: var(--c-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  padding: 36px 28px;
  border-radius: var(--rad);
  background: linear-gradient(145deg, rgba(124, 58, 237, .08) 0%, rgba(192, 38, 211, .04) 100%);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-sunset);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: -1;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, .4);
  box-shadow: var(--shadow-glow);
}
.card.featured {
  background: linear-gradient(145deg, rgba(192, 38, 211, .15) 0%, rgba(249, 115, 22, .08) 100%);
  border-color: rgba(236, 72, 153, .3);
}
.card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-sunset);
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px -8px rgba(192, 38, 211, .6);
}
.card h3 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  margin-bottom: 12px;
}
.card p { color: var(--c-muted); font-size: 15px; }

/* ===== Section: Islands ===== */
.islands {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, .08) 50%, transparent 100%);
  position: relative;
}
.island-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 60px;
}
.island-tile {
  text-align: center;
  padding: 32px 16px;
  position: relative;
}
.island-shape {
  width: 130px; height: 130px;
  margin: 0 auto 20px;
  background: var(--grad-sunset);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(192, 38, 211, .5);
  animation: bobUpDown 4s ease-in-out infinite;
  animation-delay: var(--delay);
}
.island-shape::before {
  content: '';
  position: absolute;
  bottom: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(192, 38, 211, .3) 0%, transparent 70%);
  filter: blur(10px);
}
.island-shape::after {
  content: '';
  position: absolute;
  top: 12%;
  left: 20%;
  width: 60%;
  height: 30%;
  background: radial-gradient(ellipse, rgba(252, 211, 77, .4) 0%, transparent 60%);
  border-radius: 50%;
  filter: blur(4px);
}
@keyframes bobUpDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.island-tile h4 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  margin-bottom: 4px;
}
.island-tile p {
  font-size: 13px;
  color: var(--c-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ===== Section: Story ===== */
.story { padding: 120px 0; }
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-text .section-tag,
.story-text .section-title { text-align: left; }
.story-text .section-title { margin-bottom: 24px; }
.story-p {
  color: var(--c-muted);
  margin-bottom: 18px;
  font-size: 16px;
}
.story-text .btn-primary { margin-top: 16px; }

.story-art {
  position: relative;
  height: 420px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.orb-1 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(252, 211, 77, .9) 0%, rgba(249, 115, 22, .4) 40%, transparent 70%);
  top: 10%; left: 30%;
  animation: pulse 6s ease-in-out infinite;
}
.orb-2 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(236, 72, 153, .7) 0%, rgba(192, 38, 211, .3) 50%, transparent 80%);
  top: 50%; left: 5%;
  animation: pulse 6s ease-in-out infinite 2s;
}
.orb-3 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(124, 58, 237, .6) 0%, rgba(74, 45, 140, .3) 50%, transparent 80%);
  bottom: 5%; right: 10%;
  animation: pulse 6s ease-in-out infinite 4s;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50%      { transform: scale(1.15); opacity: 1; }
}

/* ===== Section: Join ===== */
.join { padding: 80px 0 120px; }
.join-card {
  padding: 64px 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .25) 0%, rgba(249, 115, 22, .15) 100%);
  border: 1px solid rgba(236, 72, 153, .25);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.join-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(252, 211, 77, .1) 25%, transparent 50%);
  animation: rotateGlow 12s linear infinite;
  z-index: -1;
}
@keyframes rotateGlow { to { transform: rotate(360deg); } }

.join-card h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
  line-height: 1.2;
}
.join-card > p { color: var(--c-muted); margin-bottom: 32px; }

.join-form {
  display: flex; flex-wrap: wrap; gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.join-form input {
  flex: 1;
  min-width: 240px;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: var(--c-text);
  font-size: 14px;
  outline: none;
  transition: border-color .3s ease;
}
.join-form input:focus { border-color: var(--c-pink); }
.join-form input::placeholder { color: var(--c-muted); }
.join-form button {
  padding: 16px 28px;
  border-radius: 999px;
  border: none;
  background: var(--grad-sunset);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-glow);
  transition: transform .25s ease;
}
.join-form button:hover { transform: translateY(-2px); }

.join-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ===== Footer ===== */
.foot {
  background: rgba(0,0,0,.4);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 60px 0 24px;
}
.foot-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}
.foot-tag { color: var(--c-muted); font-size: 14px; margin-top: 12px; max-width: 260px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.foot-cols h5 {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.foot-cols a {
  display: block;
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 8px;
  transition: color .25s ease;
}
.foot-cols a:hover { color: var(--c-yellow); }

.foot-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--c-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.foot-bottom a { color: var(--c-yellow); }
.foot-bottom .heart {
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-art { height: 300px; }
  .foot-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { padding: 14px 20px; gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero-stats .divider { display: none; }
}
@media (max-width: 520px) {
  .hero-content { padding-top: 120px; }
  .join-card { padding: 48px 20px; }
  .foot-bottom { justify-content: center; text-align: center; }
}
