/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808;
  --surface: #0d0d0d;
  --surface2: #111111;
  --border: #1a1a1a;
  --border2: #222222;
  --text: #f0f0f0;
  --text-muted: #555555;
  --text-dim: #333333;
  --accent: #a8ff3e;
  --accent-hover: #bbff5a;
  --accent-dim: rgba(168, 255, 62, 0.08);
  --accent-glow: rgba(168, 255, 62, 0.15);
  --danger: rgba(163, 45, 45, 0.15);
  --danger-border: #A32D2D;
  --font: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ─── Cursor ─── */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(168, 255, 62, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
  opacity: 0;
}

.cursor.visible { opacity: 1; }
.cursor-ring.visible { opacity: 1; }
.cursor.hovering { width: 4px; height: 4px; }
.cursor-ring.hovering { width: 48px; height: 48px; border-color: rgba(168, 255, 62, 0.7); }

/* ─── Canvas & Aurora ─── */
#grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.aurora-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: auroraFloat 12s ease-in-out infinite;
}

.aurora.a1 {
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(80, 40, 200, 0.2), transparent 70%);
  top: -10%; left: 20%;
  animation-delay: 0s;
}

.aurora.a2 {
  width: 500px; height: 400px;
  background: radial-gradient(ellipse, rgba(168, 255, 62, 0.06), transparent 70%);
  top: 5%; right: 10%;
  animation-delay: 3s;
}

.aurora.a3 {
  width: 600px; height: 350px;
  background: radial-gradient(ellipse, rgba(50, 30, 180, 0.12), transparent 70%);
  bottom: 10%; left: 30%;
  animation-delay: 6s;
}

@keyframes auroraFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  33% { transform: translate(30px, -20px) scale(1.05); opacity: 1; }
  66% { transform: translate(-20px, 15px) scale(0.97); opacity: 0.8; }
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  opacity: 0;
  transform: translateY(-10px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8, 8, 8, 0.6);
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled { border-bottom-color: var(--border); }

.logo {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  border: 0.5px solid var(--border2);
  border-radius: 20px;
  padding: 6px 14px;
  background: var(--surface);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
}

.hero-inner {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  border: 0.5px solid var(--border2);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 28px;
  background: var(--surface);
  opacity: 0;
  transform: translateY(10px);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.badge-icon {
  color: var(--accent);
  font-size: 10px;
}

/* ─── Headline ─── */
.headline {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 4px;
}

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  margin-right: 12px;
}

.word.accent {
  color: var(--accent);
  font-style: italic;
}

.subtext {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 36px;
  opacity: 0;
  font-weight: 300;
}

/* ─── Form ─── */
.form-wrap {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 16px;
  opacity: 0;
  transform: translateY(16px);
}

.input-wrap { flex: 1; position: relative; }

.email-input {
  width: 100%;
  background: var(--surface);
  border: 0.5px solid var(--border2);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  font-family: var(--font);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.email-input::placeholder { color: var(--text-dim); }

.email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.email-input.error {
  border-color: var(--danger-border);
  box-shadow: 0 0 0 3px var(--danger);
}

.join-btn {
  background: var(--accent);
  color: #080808;
  border: none;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: none;
  white-space: nowrap;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
}

.join-btn:hover { background: var(--accent-hover); }
.join-btn:active { transform: scale(0.97); }

.btn-arrow {
  transition: transform 0.2s;
  display: inline-block;
}

.join-btn:hover .btn-arrow { transform: translateX(3px); }

.btn-shine {
  position: absolute;
  top: -50%; left: -60%;
  width: 30%; height: 200%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-20deg);
  transition: left 0.5s;
}

.join-btn:hover .btn-shine { left: 130%; }

/* ─── Success ─── */
.success-msg {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--mono);
}

.success-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(168, 255, 62, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* ─── Social Proof ─── */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
}

.avatars { display: flex; }

.av {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--bg);
  margin-left: -7px;
  font-size: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
}

.av:first-child { margin-left: 0; }

.proof-text {
  font-size: 13px;
  color: var(--text-muted);
}

.proof-text strong {
  color: #888;
  font-weight: 500;
}

/* ─── Countdown ─── */
.countdown-section {
  position: relative;
  z-index: 10;
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.countdown-label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.countdown {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cd-block {
  text-align: center;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 16px 22px;
  min-width: 76px;
  position: relative;
  overflow: hidden;
}

.cd-block::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0.5px;
  background: var(--border2);
}

.cd-num {
  font-size: 30px;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  transition: opacity 0.12s, transform 0.12s;
}

.cd-num.flipping {
  opacity: 0;
  transform: translateY(-6px);
}

.cd-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
}

.cd-sep {
  font-size: 24px;
  color: var(--border2);
  font-weight: 300;
  margin-bottom: 20px;
}

/* ─── Features ─── */
.features-section {
  position: relative;
  z-index: 10;
  padding: 0 24px 100px;
  max-width: 880px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feat-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  opacity: 0;
  transform: translateY(24px);
  transition: border-color 0.3s, transform 0.3s;
  cursor: none;
}

.feat-card:hover {
  border-color: rgba(168, 255, 62, 0.3);
  transform: translateY(-4px);
}

.feat-card:hover .feat-icon-wrap {
  background: var(--accent-dim);
  border-color: rgba(168, 255, 62, 0.2);
}

.feat-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface2);
  border: 0.5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.3s, border-color 0.3s;
}

.feat-icon-wrap svg {
  width: 16px; height: 16px;
  stroke: var(--accent);
}

.feat-card h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feat-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 16px;
}

.feat-tag {
  font-size: 10px;
  color: rgba(168, 255, 62, 0.6);
  background: var(--accent-dim);
  border: 0.5px solid rgba(168, 255, 62, 0.12);
  border-radius: 20px;
  padding: 3px 10px;
  display: inline-block;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 10;
  border-top: 0.5px solid var(--border);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.3px;
}

.footer-logo span { color: var(--accent); }

.footer-text {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .form-wrap { flex-direction: column; }
  .join-btn { width: 100%; justify-content: center; }
  .headline { letter-spacing: -1.5px; }
  .footer { flex-direction: column; text-align: center; }
  .cd-block { min-width: 58px; padding: 12px 14px; }
  .cd-num { font-size: 22px; }
}
