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

:root {
  --accent: #eb34c6;
  --accent-dim: rgba(235,52,198,0.12);
  --bg: #0c0b0f;
  --surface: #111018;
  --surface-2: #18151f;
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(235,52,198,0.22);
  --text: #f0edf6;
  --text-muted: #7a7287;
  --text-dim: #4a4358;
  --font: 'Outfit', sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

a { text-decoration: none; color: inherit; }
img { display: block; }

/* ── CF SCREEN ───────────────────────────── */

#cf-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.55s ease;
}

#cf-screen.fade-out { opacity: 0; pointer-events: none; }

.cf-inner {
  width: 460px;
  max-width: calc(100vw - 48px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cf-top {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-site-row { display: flex; align-items: center; gap: 8px; }

.cf-site-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.cf-status-row { display: flex; align-items: center; gap: 8px; }

.cf-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: statusPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 5px var(--accent); }
  50% { box-shadow: 0 0 16px var(--accent); }
}

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

.cf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.cf-check-row { display: flex; align-items: center; gap: 14px; }

.cf-box-outer {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-accent);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}

.cf-box-outer.done {
  border-color: rgba(235,52,198,0.5);
  background: rgba(235,52,198,0.15);
}

.cf-ring {
  width: 17px; height: 17px;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: rgba(235,52,198,0.3);
  border-radius: 50%;
  animation: cfSpin 0.75s linear infinite;
  transition: opacity 0.3s;
}

@keyframes cfSpin { to { transform: rotate(360deg); } }

.cf-ring.hide { opacity: 0; }

.cf-checkmark { position: absolute; opacity: 0; transition: opacity 0.3s; }
.cf-checkmark.show { opacity: 1; }

.cf-check-text { display: flex; flex-direction: column; gap: 3px; }

.cf-check-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.cf-check-sub { font-size: 12px; color: var(--text-muted); }

.cf-progress-track {
  height: 2px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.cf-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #f56ef0);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.cf-footer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
}

.cf-ray { margin-left: auto; font-size: 10px; color: var(--text-dim); font-family: monospace; }

/* ── SPARKLE CANVAS ──────────────────────── */

#sparkle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── MAIN ────────────────────────────────── */

#main {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

#main.hidden { display: none; }

/* ── NAV ─────────────────────────────────── */

.nav {
  position: relative;
  z-index: 100;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(12,11,15,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-shrink: 0;
}

.nav-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: rgba(235,52,198,0.2);
  border-color: rgba(235,52,198,0.4);
}

/* ── HERO ────────────────────────────────── */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 24px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(235,52,198,0.1) 0%, transparent 68%);
  left: -140px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(235,52,198,0.05) 0%, transparent 70%);
  right: 0; top: 30%;
  pointer-events: none;
}

.hero-layout {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

/* character */
.hero-char {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-char.visible { opacity: 1; transform: translateX(0); }

.char-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(235,52,198,0.18) 0%, transparent 65%);
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(24px);
}

.char-img {
  width: 260px;
  height: auto;
  filter: drop-shadow(0 0 44px rgba(235,52,198,0.22));
  animation: charFloat 5.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

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

/* text side */
.hero-text {
  flex: 1;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.hero-text.visible { opacity: 1; transform: translateX(0); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(235,52,198,0.2);
  background: rgba(235,52,198,0.06);
  font-size: 12px;
  font-weight: 500;
  color: rgba(235,52,198,0.88);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 4px var(--accent); }
  50% { box-shadow: 0 0 14px var(--accent); }
}

/* Title — fixed so "illegal" never wraps */
.hero-title {
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.93;
  margin-bottom: 20px;
  white-space: nowrap;
}

.title-meet {
  display: block;
  font-size: clamp(48px, 6vw, 82px);
  color: rgba(255,255,255,0.92);
}

.title-illegal {
  display: block;
  font-size: clamp(48px, 6vw, 82px);
  background: linear-gradient(135deg, #eb34c6 0%, #f56ef0 50%, #eb34c6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradientShift 4s ease infinite;
  filter: drop-shadow(0 0 28px rgba(235,52,198,0.45));
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-actions { margin-bottom: 36px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 20px rgba(235,52,198,0.28);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.14), transparent);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(235,52,198,0.46);
  filter: brightness(1.07);
}

/* Stats */
.hero-stats { display: flex; align-items: center; gap: 20px; }
.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-div { width: 1px; height: 28px; background: var(--border); }

/* ── FOOTER ──────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  flex-shrink: 0;
  background: rgba(12,11,15,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ── RESPONSIVE ──────────────────────────── */

@media (max-width: 860px) {
  .hero-layout { flex-direction: column; text-align: center; gap: 20px; }
  .hero-char { order: -1; }
  .char-img { width: 180px; }
  .hero-badge { margin: 0 auto 14px; }
  .hero-title { white-space: normal; }
  .title-meet, .title-illegal { font-size: clamp(40px, 10vw, 64px); }
  .hero-desc { margin: 0 auto 24px; font-size: 14px; }
  .hero-actions { display: flex; justify-content: center; margin-bottom: 24px; }
  .hero-stats { justify-content: center; }
}
