:root {
  --pink: #FF2D78;
  --yellow: #FFE500;
  --cyan: #00E5FF;
  --bg: #0c0b10;
  --card-bg: #15131e;
  --text: #f0eeff;
  --muted: #7a7898;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ── DISCO GRID BACKGROUND ── */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,45,120,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,45,120,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── GLOW BLOBS ── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.blob-1 { width: 600px; height: 600px; background: var(--pink); top: -200px; left: -150px; animation: drift1 18s ease-in-out infinite alternate; }
.blob-2 { width: 500px; height: 500px; background: #6600ff; bottom: -150px; right: -100px; animation: drift2 22s ease-in-out infinite alternate; }
.blob-3 { width: 300px; height: 300px; background: var(--cyan); top: 40%; left: 60%; animation: drift1 14s ease-in-out infinite alternate-reverse; }

@keyframes drift1 { from { transform: translate(0,0); } to { transform: translate(60px, 40px); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(-50px, -60px); } }

/* ── DISCO BALL ── */
.disco-ball {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 0;
  z-index: 1;
}
.disco-ball::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.2) 35%, transparent 65%);
  pointer-events: none;
  z-index: 2;
}
.disco-ball svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 20px rgba(255,229,0,0.5));
}

.disco-string {
  width: 2px; height: 50px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── MAIN LAYOUT ── */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── HEADER ── */
header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 30px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(255,229,0,0.12);
  border: 1px solid rgba(255,229,0,0.3);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 18vw, 140px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

h1 .line-cant {
  display: block;
  color: var(--text);
}
h1 .line-dance {
  display: block;
  color: var(--pink);
  text-shadow: 0 0 60px rgba(255,45,120,0.6);
}

.dot { color: var(--yellow); }

.tagline {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  max-width: 440px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.tagline em {
  color: var(--text);
  font-style: normal;
}

/* ── EXCUSE CARD ── */
.excuse-wrapper {
  width: 100%;
  margin-bottom: 24px;
}

.excuse-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: 40px 36px 36px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  transition: border-color 0.3s;
}
.excuse-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,45,120,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.excuse-card.flashing {
  border-color: rgba(255,45,120,0.5);
  animation: flash 0.4s ease;
}
@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(255,45,120,0.4); }
  50% { box-shadow: 0 0 40px 10px rgba(255,45,120,0.2); }
  100% { box-shadow: 0 0 0 0 rgba(255,45,120,0); }
}

.excuse-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}

.excuse-text {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  transition: opacity 0.15s;
}
.excuse-text.hidden { opacity: 0; }

.excuse-number {
  position: absolute;
  bottom: 20px;
  right: 28px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  user-select: none;
}

/* ── BUTTONS ── */
.btn-row {
  display: flex;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.btn-generate {
  flex: 1;
  min-width: 200px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 18px 28px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 30px rgba(255,45,120,0.35);
}
.btn-generate::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.btn-generate:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(255,45,120,0.5); }
.btn-generate:active { transform: translateY(0); }

.btn-copy {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 18px 22px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-copy:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.btn-copy.copied { border-color: var(--cyan); color: var(--cyan); }

.btn-copy svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── STATS STRIP ── */
.stats {
  display: flex;
  gap: 32px;
  margin: 36px 0;
  padding: 24px 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  width: 100%;
  justify-content: space-around;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--yellow);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-icon {
  display: inline-block;
  vertical-align: middle;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px 40px;
  font-size: 13px;
  color: var(--muted);
}
footer a { color: var(--pink); text-decoration: none; }

/* ── CONFETTI ── */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  pointer-events: none;
  z-index: 999;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ── VISUALLY HIDDEN (SEO) ── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── STATIC SEO SECTION ── */
.seo-section {
  width: 100%;
  max-width: 720px;
  padding: 0 24px 48px;
  position: relative;
  z-index: 1;
}
.seo-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.seo-section p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 16px;
}

/* ── MOBILE ── */
@media (max-width: 520px) {
  .excuse-card { padding: 28px 24px 28px; }
  .stats { gap: 20px; padding: 20px; }
}
