:root {
  --bg: #0d0f1a;
  --surface: #161929;
  --surface-bright: #272b44;
  --primary: #9c7cff;
  --primary-dark: #6b4fcf;
  --secondary: #4dd0c8;
  --tertiary: #ffb74d;
  --on-dark: #e8e6f0;
  --muted: #9d9bb0;
  --water: #42a5f5;
  --fire: #ff5722;
  --metal: #b0bec5;
  --plant: #66bb6a;
  --light: #ffee58;
  --dark: #9575cd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--on-dark);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Background decor ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(156, 124, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 124, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
.bg-glow--1 {
  width: 520px; height: 520px;
  background: var(--primary-dark);
  top: -180px; left: -120px;
}
.bg-glow--2 {
  width: 460px; height: 460px;
  background: var(--secondary);
  top: 220px; right: -160px;
  opacity: 0.25;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: conic-gradient(from 140deg, var(--primary), var(--secondary), var(--tertiary), var(--primary));
  box-shadow: 0 0 18px rgba(156, 124, 255, 0.55);
}
.brand__name {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tertiary);
  border: 1px solid rgba(255, 183, 77, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 183, 77, 0.08);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 0 48px;
}
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 18px;
}
.hero__title {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 560px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Element orbs ---------- */
.orbs {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 44px 0;
  flex-wrap: wrap;
}
.orb {
  width: 38px; height: 38px;
  border-radius: 50%;
  position: relative;
  animation: float 4s ease-in-out infinite;
}
.orb::after {
  content: "";
  position: absolute;
  inset: 6px 6px auto auto;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(1px);
}
.orb--water  { background: radial-gradient(circle at 35% 30%, #80d8ff, var(--water));  box-shadow: 0 0 22px rgba(66,165,245,.55); animation-delay: 0s; }
.orb--fire   { background: radial-gradient(circle at 35% 30%, #ffab40, var(--fire));   box-shadow: 0 0 22px rgba(255,87,34,.55);  animation-delay: .3s; }
.orb--metal  { background: radial-gradient(circle at 35% 30%, #eceff1, var(--metal));  box-shadow: 0 0 22px rgba(176,190,197,.45); animation-delay: .6s; }
.orb--plant  { background: radial-gradient(circle at 35% 30%, #b9f6ca, var(--plant));  box-shadow: 0 0 22px rgba(102,187,106,.55); animation-delay: .9s; }
.orb--light  { background: radial-gradient(circle at 35% 30%, #ffffff, var(--light));  box-shadow: 0 0 22px rgba(255,238,88,.55);  animation-delay: 1.2s; }
.orb--dark   { background: radial-gradient(circle at 35% 30%, #b388ff, var(--dark));   box-shadow: 0 0 22px rgba(149,117,205,.55); animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- CTA ---------- */
.cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 28px rgba(107, 79, 207, 0.45);
}
.btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn--ghost {
  color: var(--on-dark);
  border: 1px solid var(--surface-bright);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 56px 0;
}
.card {
  background: linear-gradient(180deg, var(--surface), rgba(22, 25, 41, 0.6));
  border: 1px solid var(--surface-bright);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}
.card__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card__icon--fuse   { background: rgba(156,124,255,.15); color: var(--primary); }
.card__icon--idle   { background: rgba(77,208,200,.15);  color: var(--secondary); }
.card__icon--battle { background: rgba(255,183,77,.15);  color: var(--tertiary); }
.card h3 {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--surface);
}
.footer__note { margin-top: 6px; opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}
