/* ═══════════════════════════════════════════════════════
   EcoPakBD — Coming Soon Page Styles
   Stack: Vanilla CSS · Dark Mode · Glassmorphism
   ═══════════════════════════════════════════════════════ */

/* ── 0. CSS Custom Properties (Design Tokens) ─────── */
:root {
  /* Color Palette */
  --clr-bg:           #04100B;
  --clr-bg-2:         #071A10;
  --clr-surface:      rgba(255, 255, 255, 0.04);
  --clr-surface-hov:  rgba(255, 255, 255, 0.08);
  --clr-border:       rgba(255, 255, 255, 0.08);
  --clr-border-hov:   rgba(0, 214, 143, 0.35);

  /* Brand */
  --clr-primary:      #00D68F;
  --clr-primary-dim:  #00875A;
  --clr-accent:       #F5C518;
  --clr-accent-dim:   #C9A000;

  /* Text */
  --clr-text:         #E8F5F0;
  --clr-text-muted:   rgba(232, 245, 240, 0.55);
  --clr-text-faint:   rgba(232, 245, 240, 0.30);

  /* Glow */
  --glow-primary:     0 0 60px rgba(0, 214, 143, 0.18);
  --glow-accent:      0 0 40px rgba(245, 197, 24, 0.15);

  /* Typography */
  --font-display:     'Outfit', system-ui, sans-serif;
  --font-body:        'Space Grotesk', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── 1. Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── 2. Canvas Particle Field ─────────────────────── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── 3. Ambient Orbs ──────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 214, 143, 0.12) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: orb-drift-1 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.08) 0%, transparent 70%);
  bottom: -150px; right: -150px;
  animation: orb-drift-2 22s ease-in-out infinite alternate;
}

.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 135, 90, 0.1) 0%, transparent 70%);
  top: 40%; left: 55%;
  transform: translate(-50%, -50%);
  animation: orb-drift-3 15s ease-in-out infinite alternate;
}

@keyframes orb-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes orb-drift-2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, -80px) scale(1.2); }
}
@keyframes orb-drift-3 {
  from { transform: translate(-50%, -50%) scale(0.9); }
  to   { transform: translate(-50%, -50%) scale(1.1) rotate(20deg); }
}

/* ── 4. Grid Overlay ──────────────────────────────── */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 214, 143, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 214, 143, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* ── 5. Wrapper ───────────────────────────────────── */
.wrapper {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── 6. Header ────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  animation: fade-down 0.8s var(--ease-out) both;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  animation: logo-spin-in 1.2s var(--ease-spring) both 0.3s;
  filter: drop-shadow(0 0 16px rgba(0, 214, 143, 0.4));
  transition: filter 0.3s ease, transform 0.4s var(--ease-spring);
}
.logo-icon:hover { filter: drop-shadow(0 0 28px rgba(0, 214, 143, 0.7)); transform: scale(1.08) rotate(5deg); }
.logo-icon svg { width: 100%; height: 100%; }

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-accent {
  color: var(--clr-primary);
}

.logo-tagline {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.header-nav {
  display: flex;
  gap: var(--space-xs);
}

.nav-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  background: var(--clr-surface);
  backdrop-filter: blur(10px);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.nav-link svg { width: 16px; height: 16px; }
.nav-link:hover {
  color: var(--clr-primary);
  border-color: var(--clr-border-hov);
  background: rgba(0, 214, 143, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 214, 143, 0.15);
}

/* ── 7. Hero ──────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
  gap: var(--space-lg);
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 214, 143, 0.35);
  background: rgba(0, 214, 143, 0.08);
  font-size: 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clr-primary);
  backdrop-filter: blur(10px);
  animation: fade-up 0.7s var(--ease-out) 0.2s both;
  box-shadow: 0 0 40px rgba(0, 214, 143, 0.12);
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clr-primary);
  box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.5);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 214, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0); }
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 400;
  color: var(--clr-text-muted);
  line-height: 1.7;
  max-width: 640px;
  animation: fade-up 0.8s var(--ease-out) 0.75s both;
}

.break-md { display: none; }
@media (min-width: 700px) { .break-md { display: inline; } }

/* ── 8. Countdown ─────────────────────────────────── */
.countdown-wrapper {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  animation: fade-up 0.8s var(--ease-out) 0.9s both;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown-digit {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  min-width: clamp(70px, 9vw, 110px);
  padding: clamp(12px, 2vw, 20px) clamp(10px, 2vw, 24px);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  backdrop-filter: blur(16px);
  color: var(--clr-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--glow-primary);
}

.countdown-digit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,214,143,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.countdown-digit.flip {
  animation: digit-flip 0.35s var(--ease-out);
}

@keyframes digit-flip {
  0%   { transform: scaleY(1); }
  30%  { transform: scaleY(0.9) translateY(-4px); }
  100% { transform: scaleY(1); }
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-faint);
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--clr-primary-dim);
  line-height: 1;
  padding-bottom: 28px;
  animation: sep-blink 2s ease-in-out infinite;
}

@keyframes sep-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── 9. Notify Form ───────────────────────────────── */
.notify-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  max-width: 520px;
  animation: fade-up 0.8s var(--ease-out) 1.05s both;
}

.notify-label {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}

.notify-form { width: 100%; }

.input-group {
  display: flex;
  gap: 0;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within {
  border-color: var(--clr-border-hov);
  box-shadow: 0 0 0 3px rgba(0, 214, 143, 0.12), var(--glow-primary);
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--clr-text);
  min-width: 0;
}

.email-input::placeholder { color: var(--clr-text-faint); }

.notify-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dim) 100%);
  color: #04100B;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: calc(var(--radius-lg) - 2px);
  margin: 2px;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, filter 0.25s ease;
  white-space: nowrap;
}

.notify-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(0, 214, 143, 0.4);
  filter: brightness(1.08);
}

.notify-btn:active { transform: scale(0.97); }

.btn-arrow {
  width: 16px; height: 16px;
  transition: transform 0.25s var(--ease-spring);
}
.notify-btn:hover .btn-arrow { transform: translateX(3px); }

.form-note {
  font-size: 0.75rem;
  color: var(--clr-text-faint);
  margin-top: 10px;
  text-align: center;
}

/* Success Message */
.success-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 214, 143, 0.3);
  background: rgba(0, 214, 143, 0.08);
  color: var(--clr-primary);
  font-size: 0.9rem;
  font-weight: 500;
  width: 100%;
  animation: success-pop 0.5s var(--ease-spring);
}
.success-msg svg { width: 20px; height: 20px; flex-shrink: 0; }
.success-msg[hidden] { display: none; }

@keyframes success-pop {
  0%   { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}


/* ── 11. Footer ───────────────────────────────────── */
.site-footer {
  padding: var(--space-sm) 0 var(--space-xs);
  animation: fade-up 0.8s var(--ease-out) 1.35s both;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.78rem;
  color: var(--clr-text-faint);
}

.footer-link {
  color: var(--clr-text-muted);
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--clr-primary); }

.footer-sep { opacity: 0.4; }

/* ── 12. Keyframe Animations ──────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logo-spin-in {
  from { opacity: 0; transform: rotate(-20deg) scale(0.7); }
  to   { opacity: 1; transform: rotate(0deg) scale(1); }
}

/* ── 13. Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb {
  background: rgba(0, 214, 143, 0.25);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 214, 143, 0.45); }

/* ── 14. Responsive ───────────────────────────────── */
@media (max-width: 480px) {
  .wrapper { padding: var(--space-sm); }
  .hero { gap: var(--space-md); padding-top: var(--space-lg); }
  .logo-tagline { display: none; }
  .countdown-wrapper { gap: 8px; }
  .countdown-digit { min-width: 58px; padding: 10px 8px; }
}

@media (max-width: 360px) {
  .countdown-sep { display: none; }
}

/* ── 15. Reduced Motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 16. Selection ────────────────────────────────── */
::selection {
  background: rgba(0, 214, 143, 0.25);
  color: var(--clr-text);
}
