/* ===================================================
   Jeeran — Coming Soon
   =================================================== */

:root {
  --bg: #0a0e17;
  --bg-alt: #0d1220;
  --text: #f5f7fa;
  --text-dim: #a7b0c0;
  --accent-1: #6366f1; /* indigo */
  --accent-2: #22d3ee; /* cyan */
  --accent-3: #a855f7; /* purple */
  --border: rgba(255, 255, 255, 0.1);
  --surface: rgba(255, 255, 255, 0.05);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.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;
}

/* ---------- Background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.25), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 80%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
}

.blob--one {
  width: 42vw;
  height: 42vw;
  top: -10%;
  left: -10%;
  background: var(--accent-1);
  animation: float-one 22s ease-in-out infinite;
}

.blob--two {
  width: 38vw;
  height: 38vw;
  bottom: -15%;
  right: -8%;
  background: var(--accent-2);
  animation: float-two 26s ease-in-out infinite;
}

.blob--three {
  width: 28vw;
  height: 28vw;
  top: 40%;
  left: 55%;
  background: var(--accent-3);
  opacity: 0.3;
  animation: float-three 30s ease-in-out infinite;
}

@keyframes float-one {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 8vh) scale(1.1); }
}

@keyframes float-two {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vw, -6vh) scale(1.08); }
}

@keyframes float-three {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4vw, 5vh) scale(0.95); }
}

/* ---------- Layout ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 2rem;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  width: 100%;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.25rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #ffffff 20%, var(--accent-2) 55%, var(--accent-3) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.25rem;
}

.tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 34rem;
  margin-bottom: 2.75rem;
}

/* ---------- Countdown ---------- */

.countdown {
  display: flex;
  gap: clamp(0.75rem, 3vw, 1.75rem);
  margin-bottom: 2.75rem;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  padding: 0.9rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.countdown__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.countdown__label {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Signup form ---------- */

.signup {
  display: flex;
  width: 100%;
  max-width: 26rem;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.signup__input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

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

.signup__input:focus {
  border-color: var(--accent-2);
  background: rgba(255, 255, 255, 0.08);
}

.signup__button {
  flex-shrink: 0;
  padding: 0.9rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a0e17;
  background: linear-gradient(120deg, var(--accent-2), var(--accent-1));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.signup__button:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25);
}

.signup__button:active {
  transform: translateY(1px) scale(0.98);
}

.signup__message {
  min-height: 1.4rem;
  font-size: 0.85rem;
  color: var(--accent-2);
}

/* ---------- Social ---------- */

.social {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.25rem;
  margin-top: 3rem;
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social__link:hover {
  color: var(--text);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

/* ---------- Fade-in animation ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  animation: fade-in 0.8s ease forwards;
}

.fade-in--1 { animation-delay: 0.08s; }
.fade-in--2 { animation-delay: 0.16s; }
.fade-in--3 { animation-delay: 0.24s; }
.fade-in--4 { animation-delay: 0.32s; }
.fade-in--5 { animation-delay: 0.4s; }

@keyframes fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .hero {
    padding: 4.5rem 1.25rem 2rem;
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown__item {
    min-width: 3.6rem;
    padding: 0.7rem 0.4rem;
  }

  .signup {
    flex-direction: column;
  }

  .signup__button {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-top: 4rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }

  .fade-in {
    animation-duration: 0.01ms;
    animation-delay: 0s !important;
    opacity: 1;
    transform: none;
  }
}
