/* ==========================================================================
   DIRE P2P — INSTITUTIONAL COMING SOON LANDING PAGE
   Designed to the highest fintech standards (Stripe / Binance / Linear aesthetic)
   ========================================================================== */

:root {
  /* Core Obsidian Palette */
  --bg-base: #06080d;
  --bg-surface: #0b0e15;
  --bg-card: rgba(13, 17, 24, 0.72);
  --bg-card-hover: rgba(18, 23, 33, 0.85);

  /* Gold / Amber Luxury Accents */
  --gold-primary: #f59e0b;
  --gold-glow: #fcd535;
  --gold-subtle: rgba(245, 158, 11, 0.12);
  --gold-border: rgba(245, 158, 11, 0.28);

  /* Accent status colors */
  --emerald-400: #10b981;
  --sky-400: #38bdf8;
  --purple-400: #a855f7;

  /* Typography */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glass: rgba(255, 255, 255, 0.11);
  --shadow-ambient: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 50px -10px rgba(245, 158, 11, 0.18);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background Grid & Ambient Lighting */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.85) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.85) 0%, transparent 75%);
}

.radial-bloom-center {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -20%);
  width: 720px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0.03) 45%, transparent 70%);
  filter: blur(80px);
}

.radial-bloom-secondary {
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 500px;
  height: 350px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  filter: blur(100px);
}

/* Main Container */
.page-container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.2rem 1.75rem 2rem;
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-badge-version {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.nav-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald-400);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--emerald-400);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-400);
}

/* Hero Section */
.hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

/* 30-Day Countdown Display */
.countdown-card-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-ambient), var(--shadow-glow);
  margin-bottom: 2.8rem;
  position: relative;
  overflow: hidden;
}

.countdown-card-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
}

.countdown-units-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.countdown-unit-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.countdown-unit-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.countdown-digit {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.45rem;
  background: linear-gradient(180deg, #ffffff 40%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown-unit-card.active-unit .countdown-digit {
  background: linear-gradient(180deg, #ffffff 20%, var(--gold-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Action Area */
.actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

.btn-primary-action {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #d97706 100%);
  color: #05070b;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 25px -5px rgba(245, 158, 11, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 30px -5px rgba(245, 158, 11, 0.5);
}

.btn-primary-action svg {
  transition: transform 0.2s ease;
}

.btn-primary-action:hover svg {
  transform: translate(2px, -2px);
}

.btn-secondary-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Payment Rails Section */
.rails-assurance {
  margin-top: 1rem;
}

.rails-assurance-title {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}

.rails-badge-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rail-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.rail-badge-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-telebirr { background: #0284c7; }
.dot-cbe { background: #7c3aed; }
.dot-boa { background: #e11d48; }
.dot-awash { background: #d97706; }
.dot-mpesa { background: #10b981; }

/* Institutional Trust Pillars Grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
}

.trust-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.trust-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Footer */
.institutional-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-container {
    padding: 1.5rem 1.2rem;
  }
  .countdown-card-wrapper {
    padding: 1.4rem 1rem;
    border-radius: 18px;
  }
  .countdown-units-grid {
    gap: 0.6rem;
  }
  .countdown-unit-card {
    padding: 1rem 0.5rem;
    border-radius: 12px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .institutional-footer {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}
