:root {
  --bg-deep: #071426;
  --bg-navy: #0d2240;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-gold: #f5b301;
  --accent-gold-soft: #fde047;
  --whatsapp: #25d366;
  --whatsapp-dark: #16a34a;
  --whatsapp-glow: rgba(37, 211, 102, 0.35);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 18% 20%, rgba(245, 179, 1, 0.14), transparent 42%),
    radial-gradient(circle at 82% 80%, rgba(37, 211, 102, 0.13), transparent 45%),
    radial-gradient(circle at 50% 0%, #13315c 0%, var(--bg-deep) 68%);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle architectural grid overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 20%, transparent 78%);
  z-index: 0;
}

/* Top civic accent strip */
.top-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #16a34a 0%, #f5b301 50%, #2563eb 100%);
  z-index: 10;
}

.portal-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.hero-card {
  width: 100%;
  max-width: 820px;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid var(--surface-border);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeUp 0.7s ease-out both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  margin-bottom: 1.75rem;
  border-radius: 999px;
  background: rgba(245, 179, 1, 0.12);
  border: 1px solid rgba(245, 179, 1, 0.35);
  color: var(--accent-gold-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  animation: pulseDot 2.2s ease-in-out infinite;
}

.portal-title {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.portal-title .highlight {
  display: inline-block;
  background: linear-gradient(135deg, #fde047 0%, #f5b301 55%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.divider {
  width: 72px;
  height: 4px;
  margin: 0 auto 1.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--whatsapp), var(--accent-gold));
}

.portal-question {
  font-size: clamp(1.35rem, 3.3vw, 2.05rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  text-wrap: balance;
}

.contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.05rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 12px 30px var(--whatsapp-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 38px rgba(37, 211, 102, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: brightness(1.04);
}

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

.whatsapp-btn:focus-visible {
  outline: 3px solid var(--accent-gold-soft);
  outline-offset: 4px;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-hint {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-hint strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.portal-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.25rem 1rem 1.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}

@media (max-width: 520px) {
  .hero-card {
    border-radius: 22px;
  }

  .whatsapp-btn {
    width: 100%;
    padding: 1rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card,
  .badge-dot {
    animation: none;
  }

  .whatsapp-btn {
    transition: none;
  }
}
