@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;700;800&display=swap');

/* ===============================
   RESET
=================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #6366f1;
  --accent-light: #8b5cf6;
  --accent-glow: rgba(99,102,241,0.35);
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --text-primary: #0f172a;
  --text-muted: rgba(15, 23, 42, 0.6);
  --white: #ffffff;
  --glass-bg: rgba(255,255,255,0.6);
  --glass-border: rgba(255,255,255,0.4);
  --shadow-soft: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-strong: 0 20px 60px rgba(0,0,0,0.15);
  --font-sans: "Inter", sans-serif;
  --font-serif: "Playfair Display", serif;
}
body {
  height: 100%;
  font-family: var(--font-sans);
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  color: var(--text-primary);
  /* overflow-x: hidden; */
  overflow: auto;          
  scrollbar-width: none;   
  -ms-overflow-style: none;
  
}

/* Chrome, Safari, Edge */
body::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* ===============================
   LAYOUT
=================================*/
 .page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  isolation: isolate;
}

/* ===============================
   PAGE CONTAINER & FLOATING BLOBS
=================================*/

.page-container {
  position: relative;      /* make pseudo-elements relative */
  overflow: hidden;        /* clip pseudo-elements to avoid extra scroll */
  min-height: 100vh;       /* full viewport height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1.5rem;
}

/* Decorative floating blobs */
.page-container::before,
.page-container::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  z-index: -1;
  animation: floatBlob 20s ease-in-out infinite alternate;
  pointer-events: none;      /* avoid interaction */
}

/* Top-left blob */
.page-container::before {
  background: var(--accent);
  top: 0;
  left: 0;
  transform: translate(-200px, -200px); 
}

/* Bottom-right blob */
.page-container::after {
  background: #22d3ee;
  bottom: 0;
  right: 0;
  transform: translate(200px, 200px); 
  animation-delay: 5s;
}

/* Float animation */
@keyframes floatBlob {
  0% { transform: translate(var(--x-start, 0px), var(--y-start, 0px)) rotate(0deg) scale(1); }
  50% { transform: translate(var(--x-mid, 0px), var(--y-mid, -30px)) rotate(10deg) scale(1.1); }
  100% { transform: translate(var(--x-end, 0px), var(--y-end, 0px)) rotate(0deg) scale(1); }
}

/* ===============================
   HEADER
=================================*/
.header {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 10px 30px var(--accent-glow);
  transition: 0.4s ease;
}

.logo-icon:hover {
  transform: rotate(15deg) scale(1.1);
}

.brand-name {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

/* ===============================
   HERO
=================================*/
.main-content {
  text-align: center;
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
}

.hero-title span {
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 600px;
  margin: auto;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===============================
   COUNTDOWN
=================================*/
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: auto;
}

.countdown-item {
  padding: 2rem 1rem;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.countdown-value {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===============================
   FORM
=================================*/

.subscription-form {
  display: flex;
  align-items: center;
  max-width: 550px;
  margin: auto;
  padding: 6px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Input */
.subscription-form input {
  flex: 1;
  background: transparent;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: 9999px;
  border: none;
  font-family: inherit;
}

/* Button */
.subscription-form button {
  padding: 0.9rem 2rem;
  font-weight: 700;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

/* Hover */
.subscription-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99,102,241,0.3);
}

/* Active */
.subscription-form button:active {
  transform: scale(0.98);
}
#status-message {
  margin-top: 1rem;
  font-weight: 600;
}

/* ===============================
   FOOTER
=================================*/
.footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-muted);
  transition: 0.3s ease;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.support-email {
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
}

.support-email:hover {
  color: var(--accent);
}

@media (max-width: 480px) {

  .page-container {
    padding: 1.25rem 1rem;
  }

  .hero-title {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .countdown-item {
    padding: 1.25rem 0.5rem;
    border-radius: 18px;
  }

  .countdown-value {
    font-size: 1.7rem;
  }

  /* Form stacked but still rounded */
  .subscription-form {
    flex-direction: column;
    border-radius: 24px;
    padding: 0.5rem;
  }

  .subscription-form input {
    border-radius: 16px;
  }

  .subscription-form button {
    width: 100%;
    border-radius: 16px;
    margin-top: 0.5rem;
  }

  .footer {
    text-align: center;
    gap: 1.5rem;
  }
}

@media (min-width: 481px) and (max-width: 640px) {

  .hero-title {
    font-size: 2.3rem;
  }

  .countdown-value {
    font-size: 2rem;
  }

  .subscription-form {
    flex-direction: column;
    border-radius: 28px;
  }

  .subscription-form button {
    width: 100%;
    margin-top: 0.5rem;
  }

}

@media (min-width: 1025px) and (max-width: 1280px) {

  .hero-title {
    font-size: 3.4rem;
  }

  .main-content {
    gap: 3rem;
  }

  .countdown-grid {
    max-width: 750px;
  }

}

@media (min-width: 1440px) {

  .page-container {
    padding: 3rem 8rem;
  }

  .hero-title {
    font-size: 4.8rem;
  }

  .hero-description {
    font-size: 1.15rem;
  }

  .countdown-grid {
    max-width: 950px;
  }

}