:root {
  --bg: #000;
  --bg-card: #1c1c1c;
  --accent: #fff;
  --accent-dim: rgba(255, 255, 255, 0.12);
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.1);
  --font: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

canvas#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.2rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
}

.nav { display: flex; align-items: center; gap: 1.8rem; }

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.btn-nav {
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--accent-dim);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6.5rem 2.2rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.32rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--accent-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero-subheadline {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.7rem;
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 1.8rem; }

.meta-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.meta-value { font-size: 1.05rem; font-weight: 600; }

/* Crystal block */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.crystal-container {
  position: relative;
  width: 100%;
  height: 220px;
}

#crystal-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.crystal-hit-area {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crystal-hit-area > * { pointer-events: auto; }

.crystal-hit {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 120px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.crystal-hit[data-index="0"] { left: 25%; }
.crystal-hit[data-index="1"] { left: 50%; }
.crystal-hit[data-index="2"] { left: 75%; }

.crystal-hit:disabled {
  cursor: default;
  pointer-events: none;
}

.crystal-cta-slot {
  width: 100%;
  max-width: 360px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.choose-crystal {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

.choose-crystal[hidden] { display: none !important; }

/* Claim result — shown only during cooldown */
.claim-result {
  width: 100%;
  max-width: 360px;
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.claim-result[hidden] { display: none !important; }

.claim-amount {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(120deg, #fff, #d4d4d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.claim-timer { margin-bottom: 1rem; }

.claim-timer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.timer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.timer-value { font-size: 0.9rem; font-weight: 600; }

.timer-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.timer-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.9));
  transition: width 0.3s ease;
}

.btn-claim { width: 100%; margin-top: 0.5rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}

/* Sections */
.section {
  position: relative;
  z-index: 10;
  padding: 5rem 2.2rem 4.5rem;
  max-width: 1050px;
  margin: 0 auto;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.section h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

.lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.info-card {
  padding: 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.info-card h3 { font-size: 1.02rem; margin-bottom: 0.6rem; }

.info-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step-item {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-dim);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.step-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* FAQ */
.faq-list { margin-top: 2rem; max-width: 640px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-muted);
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.cta h2 { margin-bottom: 0.75rem; }

.cta p { color: var(--text-muted); margin-bottom: 1.5rem; }

.btn-cta {
  text-decoration: none;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-nav a:hover { color: var(--text); }

.footer {
  position: relative;
  z-index: 10;
  max-width: 1050px;
  margin: 0 auto;
  padding: 2.5rem 2.2rem 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-name {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-note { font-size: 0.86rem; color: var(--text-muted); max-width: 420px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: left; gap: 2.8rem; }
  .hero-content { max-width: none; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header { padding-inline: 1.2rem; }
  .nav { display: none; }
  .hero { padding-inline: 1.4rem; }
  .section { padding-inline: 1.4rem; }
  .footer { padding-inline: 1.4rem; flex-direction: column; align-items: flex-start; }
  .info-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .crystal-hit { width: 70px; height: 100px; }
}
