/* =========================
   Launch Screen — Final, Clean, Aligned
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ---------- Portfolio frame ---------- */

:root {
  --page-bg: #f6f7f9;
  --text-main: #2e2e2e;
  --text-muted: rgba(46, 46, 46, 0.72);

  /* Demo theme */
  --demo-bg: #050505;
  --demo-text: #ffffff;
  --demo-text-dim: #8a8a8a;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --glow: rgba(99, 102, 241, 0.5);

  --border-light: rgba(0, 0, 0, 0.08);
  --border-demo: rgba(255, 255, 255, 0.12);
  --radius-lg: 24px;
}

/* Page background acts as a neutral stage */
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--page-bg);
  color: var(--text-main);
}

/* Shared layout shell */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.projectHeader {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border-light);
}

.projectNav {
  margin-bottom: 14px;
}

/* Canonical back button */
.btnNav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.btnNav:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.display {
  font-family: Fraunces, serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 10px;
}

.lead {
  max-width: 70ch;
  color: var(--text-muted);
}

/* ---------- Demo wrapper ---------- */
/* Note: spacing is INTERNAL — no margin-top */

.demo-coming-soon {
  position: relative;
  min-height: 100vh;
  padding-top: 48px; /* intentional reveal spacing */
  background: var(--demo-bg);
  color: var(--demo-text);

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-family: "Space Grotesk", sans-serif;
}

/* ---------- Animated background ---------- */

.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 15s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  top: -15%;
  left: -10%;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  bottom: -10%;
  right: -10%;
  animation-delay: -7s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  top: 50%;
  left: 50%;
  animation-delay: -10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(30px, -30px) scale(0.9);
  }
}

/* ---------- Demo content ---------- */

.demoContainer {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  padding: 32px 20px;
}

.logo {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: grid;
  place-items: center;
}

.logo span {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-light);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--glow);
  }
  50% {
    box-shadow: 0 0 0 10px transparent;
  }
}

.heroTitle {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.heroCopy {
  color: var(--demo-text-dim);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.time-block {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-demo);
  min-width: 80px;
}

.time-value {
  font-size: 2rem;
  font-weight: 700;
}

.time-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--demo-text-dim);
}

.separator {
  font-size: 1.5rem;
  opacity: 0.5;
}

/* Form */
.email-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.input-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-demo);
}

.input-group input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--demo-text);
  padding: 0.9rem 0;
  width: 100%;
}

.email-form button {
  padding: 0 1.25rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.success-message {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
  color: #4ade80;
}

.hidden {
  display: none;
}
