@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@500;700;900&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='28' viewBox='0 0 22 28'%3E%3Cpath d='M2 1L2 25L20 19Z' fill='%23d4a843' stroke='%231a1510' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 2 1, default;
}

a, button, [role="button"], input[type="submit"], .btn {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='28' viewBox='0 0 22 28'%3E%3Cpath d='M2 1L2 25L20 19Z' fill='%23f0d580' stroke='%231a1510' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 2 1, pointer !important;
}

:root {
  --gold: #d4a843;
  --gold-light: #f0d580;
  --cyan: #4fc9e0;
  --cyan-glow: #3ee8ff;
  --green: #4a9e5c;
  --green-dark: #2d6b3a;
  --purple: #8b5cf6;
  --bg-dark: #080c12;
  --bg-card: #0f1520;
  --bg-card-hover: #151e2e;
  --text: #b8c0cc;
  --text-light: #e8ecf2;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Layered ambient fog */
body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(79, 201, 224, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(74, 158, 92, 0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 30% 70%, rgba(212, 168, 67, 0.03) 0%, transparent 50%);
  animation: fog-shift 20s ease-in-out infinite alternate;
}

body::after {
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(212,168,67,0.03)' stroke-width='0.5'/%3E%3C/svg%3E");
  opacity: 0.5;
}

@keyframes fog-shift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.05); }
}

/* ── Particles ── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0;
  animation: drift linear infinite;
}

@keyframes drift {
  0% { opacity: 0; transform: translateY(100vh) scale(0) rotate(0deg); }
  10% { opacity: 0.7; }
  50% { opacity: 0.5; }
  90% { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1) rotate(360deg); }
}

/* Fireflies layer */
.firefly {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: firefly-float ease-in-out infinite alternate;
}

@keyframes firefly-float {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: 1; }
  50% { opacity: 0.4; }
  80% { opacity: 1; }
  100% { transform: translate(var(--fx), var(--fy)); opacity: 0; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(79, 201, 224, 0.08) 0%, rgba(212, 168, 67, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  animation: hero-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-pulse {
  0%, 100% { transform: translate(-50%, -55%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -55%) scale(1.15); opacity: 1; }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: linear-gradient(to bottom, transparent, var(--bg-dark));
  pointer-events: none;
}

.logo {
  width: min(380px, 80vw);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 0 40px rgba(62, 232, 255, 0.2)) drop-shadow(0 0 80px rgba(212, 168, 67, 0.15));
  animation: logo-float 6s ease-in-out infinite, logo-glow 4s ease-in-out infinite alternate;
  margin-bottom: 2.5rem;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(0.5deg); }
  75% { transform: translateY(-6px) rotate(-0.5deg); }
  50% { transform: translateY(-14px) rotate(0deg); }
}

@keyframes logo-glow {
  0% { filter: drop-shadow(0 0 40px rgba(62, 232, 255, 0.15)) drop-shadow(0 0 80px rgba(212, 168, 67, 0.1)); }
  100% { filter: drop-shadow(0 0 60px rgba(62, 232, 255, 0.3)) drop-shadow(0 0 100px rgba(212, 168, 67, 0.2)); }
}

.hero h1 {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--text-light);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  position: relative;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--cyan), var(--gold-light));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 6s ease-in-out infinite;
  text-shadow: none;
}

@keyframes title-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text);
  max-width: 600px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fade-up 1s ease 0.5s forwards;
}

.hero .cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fade-up 1s ease 0.8s forwards;
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce-down 2s ease-in-out infinite;
  opacity: 0.5;
}

.scroll-hint svg {
  width: 28px;
  height: 28px;
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.8; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  border: 1px solid rgba(74, 158, 92, 0.4);
  box-shadow: 0 4px 24px rgba(74, 158, 92, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(74, 158, 92, 0.5), 0 0 60px rgba(74, 158, 92, 0.15);
}

.btn-secondary {
  background: rgba(79, 201, 224, 0.05);
  color: var(--cyan);
  border: 1px solid rgba(79, 201, 224, 0.25);
}

.btn-secondary:hover {
  background: rgba(79, 201, 224, 0.12);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 40px rgba(79, 201, 224, 0.1);
  border-color: rgba(79, 201, 224, 0.5);
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  border: 1px solid rgba(88, 101, 242, 0.5);
  box-shadow: 0 4px 24px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.5), 0 0 60px rgba(88, 101, 242, 0.15);
}

/* ── Sections ── */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  position: relative;
}

.section-title {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-light);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.8rem auto 0;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius: 2px;
  animation: line-glow 3s ease-in-out infinite alternate;
}

@keyframes line-glow {
  0% { width: 40px; opacity: 0.5; }
  100% { width: 80px; opacity: 1; }
}

.section-subtitle {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
  opacity: 0.7;
  font-size: 1.05rem;
}

/* ── Feature cards ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(145deg, var(--bg-card), rgba(15, 21, 32, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--green));
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: gradient-slide 3s linear infinite;
}

@keyframes gradient-slide {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(79, 201, 224, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover {
  background: linear-gradient(145deg, var(--bg-card-hover), rgba(21, 30, 46, 0.9));
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(79, 201, 224, 0.15);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(79, 201, 224, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  margin-bottom: 1.2rem;
  display: block;
  color: var(--cyan);
  transition: transform 0.4s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) translateY(-2px);
}

.card-icon img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(79, 201, 224, 0.3));
  transition: filter 0.4s;
}

.card:hover .card-icon img {
  filter: drop-shadow(0 0 14px rgba(79, 201, 224, 0.5));
}

.card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}

.card:hover h3 {
  color: var(--cyan);
}

.card p {
  font-size: 0.95rem;
  opacity: 0.72;
  line-height: 1.7;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 201, 224, 0.2), rgba(212, 168, 67, 0.2), transparent);
}

.step {
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79, 201, 224, 0.12), rgba(212, 168, 67, 0.12));
  border: 1px solid rgba(79, 201, 224, 0.2);
  font-family: 'Cinzel Decorative', serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--cyan);
  margin-bottom: 1.2rem;
  position: relative;
  transition: all 0.4s ease;
  animation: step-pulse 4s ease-in-out infinite;
}

.step:nth-child(2) .step-number { animation-delay: 0.5s; }
.step:nth-child(3) .step-number { animation-delay: 1s; }

@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 201, 224, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(79, 201, 224, 0.1); }
}

.step:hover .step-number {
  transform: scale(1.1);
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(79, 201, 224, 0.2);
}

.step h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.92rem;
  opacity: 0.68;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 2rem;
  max-width: 400px;
  margin: 0 auto;
  opacity: 0.4;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.divider::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.divider-gem {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(79, 201, 224, 0.4);
  animation: gem-pulse 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes gem-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(79, 201, 224, 0.3); transform: rotate(45deg) scale(1); }
  50% { box-shadow: 0 0 16px rgba(79, 201, 224, 0.6); transform: rotate(45deg) scale(1.2); }
}

/* ── CTA section ── */
.cta-section {
  text-align: center;
  padding-bottom: 6rem;
}

.cta-section .section-title {
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(212, 168, 67, 0.08);
  font-size: 0.85rem;
  opacity: 0.4;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.2), rgba(79, 201, 224, 0.2), transparent);
}

footer a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--gold);
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ── Responsive ── */
@media (max-width: 600px) {
  section { padding: 3.5rem 1.25rem; }
  .features { grid-template-columns: 1fr; }
  .logo { width: min(280px, 75vw); }
  .steps::before { display: none; }
  .firefly { display: none; }
}
