/* =========================================================
   Codeglor Studios — Coming Soon Stylesheet
   ========================================================= */

:root {
  --bg-primary: #09090b;
  --bg-card: rgba(24, 24, 28, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-highlight: rgba(255, 255, 255, 0.22);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-cyan: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-emerald: #34d399;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html,
body {
  height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Interactive Particle Canvas */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Soft Ambient Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  top: -120px;
  left: -100px;
  animation: floatSlow 12s ease-in-out infinite alternate;
}

.glow-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--accent-indigo), transparent 70%);
  bottom: -150px;
  right: -120px;
  animation: floatSlow 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatSlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, 25px) scale(1.08); }
}

/* Main Page Wrapper */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-frame {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  background: #141416;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.brand-sub {
  font-weight: 500;
  color: var(--text-secondary);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Hero Section */
.hero-content {
  text-align: center;
  max-width: 740px;
  margin: 2.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-showcase {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 1.75rem;
  display: grid;
  place-items: center;
}

.logo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(56, 189, 248, 0.25), rgba(129, 140, 248, 0.35));
  z-index: 0;
  filter: blur(1px);
  animation: ringGlow 5s ease-in-out infinite alternate;
}

@keyframes ringGlow {
  0% { opacity: 0.55; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.03); }
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent-cyan);
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #cbd5e1 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subheadline {
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.25rem;
}

.subheadline strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Countdown Timer */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(76px, 110px));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.time-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.1rem 0.75rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.time-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.time-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.time-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Notify Form */
.notify-form {
  width: 100%;
  max-width: 490px;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(24, 24, 28, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-group:focus-within {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.input-icon {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-right: 0.75rem;
}

.input-group input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #09090b;
  border: none;
  border-radius: 10px;
  padding: 0.78rem 1.3rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
}

.form-feedback {
  min-height: 1.4rem;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.form-feedback.success {
  color: var(--accent-emerald);
}

.form-feedback.error {
  color: #f87171;
}

/* Footer */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 560px) {
  .countdown-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }

  .time-card {
    padding: 0.85rem 0.4rem;
  }

  .input-group {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem;
    gap: 0.65rem;
  }

  .input-icon {
    display: none;
  }

  .input-group input {
    padding: 0.45rem 0.35rem;
    text-align: center;
  }

  .cta-btn {
    justify-content: center;
    width: 100%;
  }

  .bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}
