/*
 * ============================================================
 * teaser.css — Sovran Systems coming-soon / countdown page
 * Uses tokens from base.css (--bg, --accent, --text, etc.)
 * ============================================================
 */

html, body { height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Deeper black background with subtle green accents */
  background:
    radial-gradient(circle at 50% 25%, rgba(40, 217, 120, 0.10), transparent 50%),
    radial-gradient(circle at 50% 95%, rgba(26, 164, 93, 0.08), transparent 55%),
    linear-gradient(180deg, #000000 0%, #020303 50%, #000000 100%);
  background-color: #000;
  color: var(--text);
  overflow-x: hidden;
}

.teaser-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 40px);
  z-index: 1;
}

/* ── Decorative background ───────────────────────────────── */
.teaser-bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(123, 255, 192, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 255, 192, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85), transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85), transparent 65%);
  z-index: 0;
  pointer-events: none;
}
.teaser-bg-glow {
  position: fixed;
  left: 50%; top: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(40, 217, 120, 0.07), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.9;  transform: translate(-50%, -50%) scale(1.08); }
}

/* ── Main content ────────────────────────────────────────── */
.teaser-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(16px, 3vw, 28px);
  padding: 40px 0;
}
.teaser-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.teaser-eyebrow::before,
.teaser-eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 14px;
  opacity: 0.6;
}
.teaser-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.teaser-title .accent { color: var(--accent-strong); }
.teaser-sub {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 52ch;
}
.teaser-sub strong { color: var(--text); font-weight: 600; }
.nowrap { white-space: nowrap; color: var(--text); }

/* ── Countdown ───────────────────────────────────────────── */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.5vw, 14px);
  margin-top: 8px;
  flex-wrap: nowrap;
}
.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: clamp(70px, 12vw, 130px);
  padding: clamp(14px, 2vw, 22px) clamp(10px, 1.6vw, 18px);
  background: linear-gradient(180deg, rgba(8, 12, 10, 0.9), rgba(3, 6, 5, 0.92));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 0 0 1px rgba(40, 217, 120, 0.05);
  backdrop-filter: blur(6px);
}
.unit .num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 0 24px rgba(40, 217, 120, 0.30);
}
.unit .label {
  margin-top: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.sep {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--accent);
  font-weight: 700;
  opacity: 0.6;
}

.teaser-foot-note {
  margin-top: 8px;
  color: var(--accent-strong);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.teaser-foot-note a {
  color: var(--accent-strong);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.is-live .teaser-bg-glow { opacity: 1; animation-duration: 3s; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .sep { display: none; }
  .countdown { gap: 8px; }
  .unit { min-width: 0; flex: 1; padding: 14px 8px; }
  .unit .label { font-size: 0.6rem; letter-spacing: 0.18em; }
  .teaser-eyebrow::before,
  .teaser-eyebrow::after { width: 16px; margin: 0 8px; }
}
