/* ---------------------------------------------------------
   Code with Ranjan — Coming Soon
   Theme: dark developer aesthetic with animated accents
--------------------------------------------------------- */

:root {
  --bg: #0b1020;
  --bg-2: #0e142b;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e8ecf5;
  --text-dim: #9aa6c2;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-3: #a855f7;
  --success: #34d399;
  --danger: #f87171;
  --radius: 16px;
  --max-width: 720px;
  --font-sans: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 50% -10%, #141b3a 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background decorations ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  z-index: 0;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}

.bg-glow--one {
  top: -20vmax;
  left: -10vmax;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.bg-glow--two {
  bottom: -25vmax;
  right: -15vmax;
  background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%);
  animation-delay: -9s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vmax, 3vmax) scale(1.08); }
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fade-down 0.7s ease both;
}

.brand__mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.15);
}

.brand__name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand__accent {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.9em;
  opacity: 0.9;
}

/* ---------- Hero ---------- */
.hero {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 48px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  animation: fade-down 0.7s ease 0.05s both;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero__title {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  animation: fade-up 0.7s ease 0.1s both;
}

.grad-text {
  background: linear-gradient(120deg, var(--accent-2), var(--accent), var(--accent-3));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.type-target {
  color: var(--accent-2);
  font-family: var(--font-mono);
}

.caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 2px;
  background: var(--accent-2);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__subtitle {
  max-width: 540px;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-dim);
  animation: fade-up 0.7s ease 0.18s both;
}

.hero__subtitle strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fade-up 0.7s ease 0.26s both;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 78px;
  padding: 16px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.countdown__value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #b9c2e0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.countdown__sep {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  transform: translateY(-8px);
}

/* ---------- Notify form ---------- */
.notify {
  width: 100%;
  max-width: 460px;
  animation: fade-up 0.7s ease 0.34s both;
}

.notify__field {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.notify__field:focus-within {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.notify__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 12px 14px;
}

.notify__input::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}

.notify__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  background-size: 160% auto;
  transition: transform 0.15s, box-shadow 0.25s, background-position 0.4s;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.notify__btn:hover {
  background-position: right center;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.45);
}

.notify__btn:active {
  transform: scale(0.97);
}

.notify__btn svg {
  transition: transform 0.2s;
}

.notify__btn:hover svg {
  transform: translateX(3px);
}

.notify__hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.25s;
}

.notify__hint.is-success { color: var(--success); }
.notify__hint.is-error { color: var(--danger); }

/* ---------- Socials ---------- */
.socials {
  display: flex;
  gap: 14px;
  animation: fade-up 0.7s ease 0.42s both;
}

.socials__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.socials__link:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  padding-top: 32px;
  font-size: 0.82rem;
  color: var(--text-dim);
  animation: fade-up 0.7s ease 0.5s both;
}

.footer__heart {
  color: var(--accent-3);
}

/* ---------- Animations ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  .countdown__unit { min-width: 62px; padding: 12px 6px; }
  .countdown { gap: 5px; }
  .countdown__sep { font-size: 1.3rem; }
  .notify__field { flex-direction: column; }
  .notify__btn { justify-content: center; padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
