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

/* `hidden` attribute must always win over author `display` */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Ambient blobs ---------- */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
}
body::before {
  width: 560px; height: 560px;
  background: #6366f1;
  top: -200px; left: -180px;
}
body::after {
  width: 460px; height: 460px;
  background: #818cf8;
  bottom: -180px; right: -160px;
  animation-delay: -9s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(24px, -16px) scale(1.06); }
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  padding: 28px 40px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  height: 72px;
  width: auto;
  display: block;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #4f46e5;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 24px 80px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  animation: fadeIn 0.9s ease-out both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #0f172a;
  margin-bottom: 16px;
}

p.sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: #64748b;
  max-width: 480px;
  margin: 0 auto 48px;
}

/* ---------- Timer block (countdown OR live-msg + launch-date) ---------- */
.timer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;               /* guaranteed breathing room between items */
  margin-bottom: 48px;     /* separates timer from Telegram CTA */
  width: 100%;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 16px 10px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06);
}
.cd-num {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #4f46e5;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-label {
  margin-top: 6px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.launch-date {
  font-size: 0.9375rem;
  color: #64748b;
  text-align: center;
}

.live-msg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #4f46e5;
  font-weight: 600;
  font-size: 1.0625rem;
}
.live-msg a {
  color: #6366f1;
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 102, 241, 0.4);
}
.live-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

/* ---------- Telegram CTA ---------- */
.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(34, 158, 217, 0.08);
  border: 1px solid rgba(34, 158, 217, 0.28);
  color: #1c8ec4;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tg-btn:hover {
  background: rgba(34, 158, 217, 0.14);
  border-color: rgba(34, 158, 217, 0.5);
  transform: translateY(-1px);
}
.tg-btn svg { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  font-size: 0.8125rem;
  color: #94a3b8;
}
.site-footer a {
  color: #64748b;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.site-footer a:hover { border-bottom-color: #cbd5e1; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .site-header { padding: 20px 20px; }
  .logo { height: 48px; }
  .status-pill { font-size: 0.75rem; padding: 6px 12px; }

  .hero { padding: 16px 20px 100px; }
  p.sub { margin-bottom: 36px; }

  .timer-block { gap: 24px; margin-bottom: 36px; }

  .countdown { gap: 10px; }
  .cd-unit { min-width: 72px; padding: 12px 8px; border-radius: 12px; }

  .tg-btn { font-size: 0.875rem; padding: 11px 18px; }
}

@media (max-width: 380px) {
  .cd-unit { min-width: 64px; }
  .status-pill span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}