/* ============================================================
   CAPE CHAOS — Landing Page Styles
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --red: #D32F2F;
  --red-bright: #ff3333;
  --red-dark: #B71C1C;
  --red-glow: rgba(211, 47, 47, 0.4);
  --blue: #1565C0;
  --blue-dark: #0D47A1;
  --yellow: #FFD600;
  --bg: #0a0a0a;
  --bg-card: #111111;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.45);
  --font-comic: 'Bangers', cursive;
  --font-body: 'Inter', sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* --- Base --- */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Halftone dot background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   OVERLAY EFFECTS
   ============================================================ */

/* Scan lines */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.08) 4px);
  z-index: 100;
  pointer-events: none;
  opacity: 0.5;
}

/* Vignette */
.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center,
      transparent 40%,
      rgba(0, 0, 0, 0.4) 70%,
      rgba(0, 0, 0, 0.85) 100%);
  z-index: 99;
  pointer-events: none;
}

/* ============================================================
   CARDS LAYER
   ============================================================ */

.cards-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  animation: layerFadeIn 2s ease-out 0.5s both;
}

.card-float {
  position: absolute;
  width: clamp(160px, 22vw, 320px);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}

.card-float img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: saturate(0.90) brightness(0.82) contrast(1.1);
}

/* Card-specific masks — fade into darkness */
.card-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
}

/* --- Card positions (desktop) --- */
.card-1 {
  top: -5%;
  left: -4%;
  transform: rotate(-18deg);
  opacity: 0.95;
  animation: cardReveal 1.5s ease-out 0.8s both;
}

.card-1::after {
  background: linear-gradient(135deg, transparent 50%, var(--bg) 92%);
}

.card-2 {
  top: -8%;
  right: -5%;
  transform: rotate(14deg);
  opacity: 0.92;
  animation: cardReveal 1.5s ease-out 1s both;
}

.card-2::after {
  background: linear-gradient(-135deg, transparent 50%, var(--bg) 92%);
}

.card-3 {
  bottom: -8%;
  left: -3%;
  transform: rotate(10deg);
  opacity: 0.98;
  animation: cardReveal 1.5s ease-out 1.2s both;
}

.card-3::after {
  background: linear-gradient(45deg, transparent 50%, var(--bg) 92%);
}

.card-4 {
  bottom: -6%;
  right: -4%;
  transform: rotate(-12deg);
  opacity: 0.90;
  animation: cardReveal 1.5s ease-out 1.4s both;
}

.card-4::after {
  background: linear-gradient(-45deg, transparent 50%, var(--bg) 92%);
}

/* Card glow pulse */
.card-float.glow img {
  filter: saturate(1) brightness(0.85) contrast(1.2);
  transition: filter 1s ease;
}

/* ============================================================
   HERO LAYOUT
   ============================================================ */

.hero {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 1rem;
  max-width: 100%;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   TITLE — CAPE CHAOS
   ============================================================ */

.title {
  line-height: 0.88;
  margin-bottom: 1.2rem;
  user-select: none;
  animation: heroFadeIn 1s ease-out both;
}

.title-word {
  display: block;
  font-family: var(--font-comic);
  font-weight: 400;
  letter-spacing: 0.04em;
  position: relative;
  -webkit-text-stroke: 2.5px rgba(0, 0, 0, 0.9);
  paint-order: stroke fill;
}

/* "CAPE" */
.title-word:first-child {
  font-size: clamp(3.8rem, 13vw, 11rem);
  color: var(--text);
  text-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.7),
    0 0 40px var(--red-glow),
    0 0 80px rgba(211, 47, 47, 0.15);
}

/* "CHAOS" */
.title-word:last-child {
  font-size: clamp(5rem, 17vw, 14rem);
  color: var(--red-bright);
  text-shadow:
    5px 5px 0 rgba(0, 0, 0, 0.8),
    -1px -1px 0 rgba(0, 0, 0, 0.5),
    0 0 60px var(--red-glow),
    0 0 120px rgba(211, 47, 47, 0.2);
}

/* --- Glitch effect (toggled by JS) --- */
.title-word.glitch-active {
  animation: glitchText 0.4s steps(2) both;
}

.title-word.glitch-active::before,
.title-word.glitch-active::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  -webkit-text-stroke: inherit;
  paint-order: stroke fill;
}

.title-word.glitch-active::before {
  color: rgba(255, 0, 0, 0.7);
  text-shadow: none;
  animation: glitchLeft 0.4s steps(3) both;
  clip-path: inset(10% 0 30% 0);
}

.title-word.glitch-active::after {
  color: rgba(0, 255, 255, 0.7);
  text-shadow: none;
  animation: glitchRight 0.4s steps(3) both;
  clip-path: inset(40% 0 10% 0);
}

/* ============================================================
   GAME STATS
   ============================================================ */

.game-stats {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  animation: heroFadeIn 1s ease-out 0.15s both;
  white-space: nowrap;
}

/* ============================================================
   TAGLINE
   ============================================================ */

.tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.4rem);
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.tagline.tagline-entrance {
  animation: heroFadeIn 1s ease-out 0.25s both;
}

.tagline.tagline-out {
  animation: taglineSlideOut 0.5s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.tagline.tagline-in {
  animation: taglineSlideIn 0.6s cubic-bezier(0, 0.55, 0.45, 1) forwards;
}

@keyframes taglineSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0) skewX(0deg);
  }

  60% {
    opacity: 0.3;
    transform: translateY(-14px) skewX(-3deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-22px) skewX(0deg);
  }
}

@keyframes taglineSlideIn {
  0% {
    opacity: 0;
    transform: translateY(22px) skewX(3deg);
  }

  60% {
    opacity: 0.8;
    transform: translateY(-4px) skewX(-1deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) skewX(0deg);
  }
}

.tagline.shake {
  animation: subtleShake 0.15s ease both;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */

.countdown {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 2vw, 1.2rem);
  margin-bottom: 0.6rem;
  animation: heroFadeIn 1s ease-out 0.5s both;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(48px, 8vw, 80px);
}

.countdown-number {
  font-family: var(--font-comic);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Tick flash */
.countdown-number.tick {
  animation: countdownTick 0.3s ease both;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 1.2vw, 0.75rem);
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-top: 0.25rem;
}

.countdown-separator {
  font-family: var(--font-comic);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  color: var(--red);
  line-height: 1;
  margin-bottom: 1rem;
  animation: separatorBlink 1s step-end infinite;
}

.countdown-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: heroFadeIn 1s ease-out 0.65s both;
}

/* ============================================================
   CTA — NOTIFY ME
   ============================================================ */

.cta-container {
  position: relative;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  /* Stacked by default for easier management */
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  animation: heroFadeIn 1s ease-out 0.85s both;
  width: 100%;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.8rem;
  background: var(--red);
  color: var(--text);
  border: none;
  border-radius: 4px;
  font-family: var(--font-comic);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.08em;
  cursor: pointer;
  position: relative;
  transform: rotate(-1deg) skew(-1deg);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.5),
    0 0 30px rgba(211, 47, 47, 0.3);
  animation: ctaPulse 3s ease-in-out infinite;
}

.cta-button:hover {
  transform: rotate(0deg) skew(0deg) scale(1.06);
  box-shadow:
    5px 5px 0 rgba(0, 0, 0, 0.5),
    0 0 50px rgba(211, 47, 47, 0.5);
  background: var(--red-bright);
}

.cta-button:active {
  transform: rotate(0deg) skew(0deg) scale(0.97);
  box-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.5),
    0 0 20px rgba(211, 47, 47, 0.3);
}

.cta-text {
  position: relative;
  z-index: 1;
}

.cta-icon {
  font-size: 1.2em;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.bolt-svg {
  width: 1.25em;
  height: 1.25em;
  fill: var(--yellow);
  stroke: var(--yellow);
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 2px rgba(255, 214, 0, 0.5));
}

.cta-button:hover .bolt-svg,
.cta-submit:hover .bolt-svg {
  fill: transparent;
  animation: drawBolt 0.6s ease-in-out forwards;
}

@keyframes drawBolt {
  0% {
    stroke-dashoffset: 100;
    fill: transparent;
    filter: drop-shadow(0 0 8px var(--yellow));
  }
  60% {
    stroke-dashoffset: 0;
    fill: transparent;
    filter: drop-shadow(0 0 12px var(--yellow));
  }
  100% {
    stroke-dashoffset: 0;
    fill: var(--yellow);
    filter: drop-shadow(0 0 4px rgba(255, 214, 0, 0.8));
  }
}

/* --- Form (hidden by default) --- */
.cta-form {
  display: none;
  align-items: stretch;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.5),
    0 0 30px rgba(211, 47, 47, 0.2);
  animation: formSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.cta-form.visible {
  display: flex;
}

.cta-input {
  padding: 0.85rem 1.4rem;
  background: var(--bg-card);
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: clamp(220px, 40vw, 340px);
  outline: none;
  transition: border-color 0.3s ease;
}

.cta-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.cta-input:focus {
  border-color: var(--red);
}

.cta-submit {
  padding: 0.85rem 1.4rem;
  background: var(--red);
  color: var(--text);
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cta-submit:hover {
  background: var(--red-bright);
}

.submit-text {
  display: none;
  font-family: var(--font-comic);
  letter-spacing: 0.08em;
  margin-right: 0.4rem;
}

/* --- Success state --- */
.cta-success {
  display: none;
  font-family: var(--font-comic);
  color: var(--yellow);
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  max-width: 400px;
}

.success-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  color: var(--yellow);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.9);
  font-weight: bold;
}

.success-flavor {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.95);
  text-transform: none;
  letter-spacing: 0.03em;
  line-height: 1.45;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.8);
  font-weight: 500;
}

.cta-success.visible {
  display: block;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Info text before submit */
.cta-info {
  display: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  max-width: 320px;
  line-height: 1.4;
  animation: fadeIn 0.4s ease both;
}

.cta-info.visible {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button hidden state */
.cta-button.hidden {
  display: none;
}

/* ============================================================
   HIDDEN CAT EASTER EGG
   ============================================================ */

.hidden-cat {
  position: fixed;
  bottom: -8px;
  right: clamp(20px, 5vw, 50px);
  z-index: 15;
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: heroFadeIn 1.5s ease-out 2s both;
}

.hidden-cat:hover {
  opacity: 1;
  transform: translateY(-6px);
}

.cat-body {
  position: relative;
  width: 32px;
  height: 28px;
}

/* Cat head */
.cat-head {
  width: 28px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 50% 50% 45% 45%;
  position: relative;
  margin: 0 auto;
}

/* Cat ears */
.cat-ears {
  display: flex;
  justify-content: space-between;
  width: 28px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cat-ear {
  width: 10px;
  height: 12px;
  background: #1a1a1a;
  clip-path: polygon(50% 0%, 5% 100%, 95% 100%);
}

/* Cat eyes */
.cat-eyes {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.cat-eye {
  width: 5px;
  height: 5px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow:
    0 0 6px var(--yellow),
    0 0 14px rgba(255, 214, 0, 0.5);
  animation: catEyeGlow 4s ease-in-out infinite;
}

.cat-eye.right {
  animation-delay: 0.15s;
}

/* Cat cape */
.cat-cape {
  position: absolute;
  bottom: 0;
  right: -6px;
  width: 14px;
  height: 16px;
  background: var(--red-dark);
  clip-path: polygon(0 0, 100% 15%, 85% 100%, 15% 85%);
  opacity: 0.8;
  animation: capeFlutter 3s ease-in-out infinite;
}

/* Cat discovered state */
.hidden-cat.discovered .cat-eye {
  box-shadow:
    0 0 10px var(--yellow),
    0 0 25px rgba(255, 214, 0, 0.8),
    0 0 40px rgba(255, 214, 0, 0.4);
}

/* ============================================================
   PARTICLES
   ============================================================ */

#particles {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}


/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

/* Hero entrance */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card reveal */
@keyframes cardReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: var(--card-opacity, 0.18);
  }
}

.card-1 {
  --card-opacity: 0.95;
}

.card-2 {
  --card-opacity: 0.92;
}

.card-3 {
  --card-opacity: 0.98;
}

.card-4 {
  --card-opacity: 0.90;
}

/* Layer fade in */
@keyframes layerFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Glitch text */
@keyframes glitchText {
  0% {
    transform: translate(0, 0) skew(0deg);
  }

  20% {
    transform: translate(-3px, 2px) skew(-2deg);
  }

  40% {
    transform: translate(3px, -1px) skew(1deg);
  }

  60% {
    transform: translate(-2px, -2px) skew(-1deg);
  }

  80% {
    transform: translate(2px, 1px) skew(2deg);
  }

  100% {
    transform: translate(0, 0) skew(0deg);
  }
}

@keyframes glitchLeft {
  0% {
    transform: translate(-5px, 0);
  }

  33% {
    transform: translate(4px, -2px);
  }

  66% {
    transform: translate(-3px, 1px);
  }

  100% {
    transform: translate(5px, 0);
  }
}

@keyframes glitchRight {
  0% {
    transform: translate(5px, 0);
  }

  33% {
    transform: translate(-4px, 2px);
  }

  66% {
    transform: translate(3px, -1px);
  }

  100% {
    transform: translate(-5px, 0);
  }
}

/* Subtle shake */
@keyframes subtleShake {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-1px, 0.5px);
  }

  50% {
    transform: translate(1px, -0.5px);
  }

  75% {
    transform: translate(-0.5px, -0.5px);
  }
}

/* Countdown tick */
@keyframes countdownTick {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
    color: var(--red-bright);
  }

  100% {
    transform: scale(1);
  }
}

/* Separator blink */
@keyframes separatorBlink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.2;
  }
}

/* CTA pulse */
@keyframes ctaPulse {

  0%,
  100% {
    box-shadow:
      4px 4px 0 rgba(0, 0, 0, 0.5),
      0 0 30px rgba(211, 47, 47, 0.3);
  }

  50% {
    box-shadow:
      4px 4px 0 rgba(0, 0, 0, 0.5),
      0 0 50px rgba(211, 47, 47, 0.5),
      0 0 80px rgba(211, 47, 47, 0.15);
  }
}

/* Form slide in */
@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Success pop */
@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Cat eye glow */
@keyframes catEyeGlow {

  0%,
  85%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px var(--yellow), 0 0 14px rgba(255, 214, 0, 0.5);
  }

  90% {
    opacity: 0;
    box-shadow: none;
  }

  92% {
    opacity: 1;
    box-shadow: 0 0 6px var(--yellow), 0 0 14px rgba(255, 214, 0, 0.5);
  }

  94% {
    opacity: 0;
    box-shadow: none;
  }

  96% {
    opacity: 1;
  }
}

/* Cape flutter */
@keyframes capeFlutter {

  0%,
  100% {
    transform: rotate(0deg) scaleX(1);
  }

  50% {
    transform: rotate(5deg) scaleX(1.1);
  }
}


/* Particle float */
@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(1);
  }

  10% {
    opacity: var(--p-opacity, 0.3);
  }

  90% {
    opacity: var(--p-opacity, 0.3);
  }

  100% {
    opacity: 0;
    transform: translateY(var(--p-travel, -120px)) translateX(var(--p-drift, 20px)) scale(0.4);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {
  .card-float {
    width: clamp(140px, 40vw, 240px);
  }

  .card-1 {
    top: -1%;
    left: -4%;
  }

  .card-2 {
    top: -2%;
    right: -4%;
  }

  .card-3 {
    bottom: -2%;
    left: -2%;
  }

  .card-4 {
    bottom: -1%;
    right: -2%;
  }

  .hero-content {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 70%);
  }

  .title {
    margin-bottom: 1rem;
  }

  .tagline {
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.8);
    font-weight: 500;
  }

  .countdown {
    gap: 0.5rem;
    margin-bottom: 0.6rem;
  }

  .countdown-number {
    font-size: 2.6rem;
  }

  .countdown-separator {
    font-size: 2rem;
  }

  .countdown-label {
    font-size: 0.7rem;
  }

  .countdown-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    padding: 0 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  }

  .cta-container {
    padding: 0.5rem 1.25rem 2rem 1.25rem !important;
    gap: 0.8rem !important;
    flex-direction: column !important;
  }

  .cta-form.visible {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 340px;
    gap: 0.75rem;
    box-shadow: none;
    overflow: visible;
  }

  .cta-input {
    width: 100% !important;
    border-right: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    text-align: center;
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }

  .cta-input:focus {
    border-right-color: var(--red) !important;
  }

  .cta-submit {
    width: 100% !important;
    border-radius: 4px !important;
    padding: 0.9rem;
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .submit-text {
    display: inline-block;
  }

  .cta-info.visible {
    display: block !important;
    text-align: center;
    margin-bottom: 0.2rem !important;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    max-width: 100%;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
  }

  .cta-success.visible {
    display: block !important;
    text-align: center;
    padding: 0 1rem;
  }

  .hidden-cat {
    right: 15px;
    bottom: -10px;
  }
}

@media (max-width: 400px) {
  .title-word:first-child {
    font-size: 4rem;
  }

  .title-word:last-child {
    font-size: 5.2rem;
  }

  .countdown-number {
    font-size: 2.3rem;
  }

  .countdown-separator {
    font-size: 1.8rem;
  }

  .countdown-label {
    font-size: 0.65rem;
  }

  .cta-button {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
  }

  .countdown-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .particle {
    display: none !important;
  }
}

/* ============================================================
   SHORT SCREENS (LANDSCAPE RESPONSIVENESS)
   ============================================================ */
@media (max-height: 850px) {
  body:has(.cta-form.visible) .hero-content,
  body:has(.cta-success.visible) .hero-content {
    transform: scale(0.92);
  }
}

@media (max-height: 720px) {
  body:has(.cta-form.visible) .hero-content,
  body:has(.cta-success.visible) .hero-content {
    transform: scale(0.85);
  }
}

@media (max-height: 600px) {
  body:has(.cta-form.visible) .hero-content,
  body:has(.cta-success.visible) .hero-content {
    transform: scale(0.72);
  }
  .hidden-cat { 
    display: none; 
  }
}