/* ============================================================
   Kiitude — Coming Soon
   Tokens
   Blue   #1656F5   primary brand
   Navy   #0A1642   deep text / footer
   Yellow #FFC22E   accent
   Cream  #FFF8EC   flashcard face
   White  #FFFFFF
   Display: 'Baloo 2'          — headline, logo, buttons
   Body:    'Plus Jakarta Sans'— paragraphs, labels
   Utility: 'Space Mono'       — countdown digits & captions
   ============================================================ */

:root {
  --blue: #1656f5;
  --blue-deep: #0f3fc4;
  --blue-bright: #3f78ff;
  --navy: #0a1642;
  --yellow: #ffc22e;
  --cream: #fff8ec;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.16);

  --font-display: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(63, 120, 255, 0.55), transparent 60%),
    radial-gradient(50% 45% at 100% 100%, rgba(10, 22, 66, 0.6), transparent 60%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  overflow-x: hidden;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- decorative background ---------- */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 60% at 50% 30%, black, transparent 85%);
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}

.blob--one {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 35% 30%, var(--yellow), rgba(255, 194, 46, 0.15) 70%);
  opacity: 0.85;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 46% 54% 62% 38% / 50% 40% 60% 50%;
}

.blob--two {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 60% 40%, var(--blue-bright), transparent 70%);
  opacity: 0.6;
  bottom: -10%;
  right: -8%;
  border-radius: 40% 60% 50% 50% / 60% 50% 50% 40%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -18px) scale(1.03); }
}

.blob--two {
  animation-name: float-alt;
}

@keyframes float-alt {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12px, -14px) scale(1.04); }
}

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.3rem);
  letter-spacing: 0.01em;
}

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

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 9px 16px;
  border-radius: 999px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 999px;
  margin: 0 0 28px;
  animation: rise 0.6s ease both;
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  line-height: 1.08;
  margin: 0 0 22px;
  text-wrap: balance;
  animation: rise 0.6s ease both 0.08s;
}

.highlight {
  background: linear-gradient(180deg, var(--yellow), #ffdb7a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.highlight-alt {
  color: var(--navy);
  background: var(--yellow);
  padding: 0 10px;
  border-radius: 10px;
  display: inline-block;
  transform: rotate(-2deg);
  box-shadow: 0 4px 0 rgba(10, 22, 66, 0.25);
}

.subhead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 44px;
  animation: rise 0.6s ease both 0.16s;
}

.subhead strong {
  color: var(--yellow);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- flip-card countdown ---------- */
.countdown {
  display: flex;
  gap: clamp(10px, 2.6vw, 22px);
  margin-bottom: 44px;
  animation: rise 0.6s ease both 0.24s;
}

.flip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.flip-card {
  width: clamp(58px, 12vw, 88px);
  height: clamp(66px, 13.5vw, 98px);
  perspective: 300px;
  position: relative;
}

.flip-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--cream), #fff);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 6px 0 var(--blue-deep),
    0 14px 24px rgba(4, 12, 40, 0.4);
  backface-visibility: hidden;
}

.flip-card__face::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(10, 22, 66, 0.15);
}

.digits {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.4vw, 2.4rem);
  color: var(--navy);
  line-height: 1;
}

.flip-card.is-flipping .flip-card__face {
  animation: flip-down 0.5s ease;
}

@keyframes flip-down {
  0% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(-90deg);
  }
  51% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

.flip-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- waitlist note ---------- */
.waitlist-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  margin: 0 0 40px;
  animation: rise 0.6s ease both 0.32s;
}

.avatar-stack {
  display: inline-flex;
}

.avatar-stack span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: linear-gradient(135deg, var(--yellow), #ffe1a3);
  margin-left: -8px;
}

.avatar-stack span:first-child {
  margin-left: 0;
}

.waitlist-note strong {
  color: var(--yellow);
  font-family: var(--font-mono);
}

/* ---------- chips ---------- */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  animation: rise 0.6s ease both 0.4s;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--navy);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(10, 22, 66, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(10, 22, 66, 0.2);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .site-header {
    padding-top: 20px;
  }

  .hero {
    padding: 44px 20px 40px;
  }

  .countdown {
    gap: 8px;
  }

  .waitlist-note {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
