/* ═══════════════════════════════════════════════════════════════════════════
   TopoZap Landing Page — Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --primary: #25D366;
  --primary-dark: #1ea957;
  --primary-light: #4fd57e;
  --emerald: #10b981;
  --bg-1: #0a0e16;
  --bg-2: #111723;
  --bg-3: #1a2332;
  --bg-4: #243044;
  --text-1: #ffffff;
  --text-2: #b4c0d0;
  --text-3: #6b7894;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --gradient: linear-gradient(135deg, #25D366 0%, #10b981 100%);
  --gradient-soft: linear-gradient(135deg, rgba(37,211,102,.15) 0%, rgba(16,185,129,.05) 100%);
  --shadow: 0 20px 60px rgba(0,0,0,.4);
  --shadow-glow: 0 0 60px rgba(37,211,102,.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Typography ─── */
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-2);
  margin-top: 18px;
  max-width: 580px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  text-align: center;
}

.btn-primary-sm, .btn-primary-lg, .btn-primary-xl {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
}
.btn-primary-sm:hover, .btn-primary-lg:hover, .btn-primary-xl:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.5);
}

.btn-primary-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary-xl { padding: 18px 36px; font-size: 18px; }

.btn-ghost-sm, .btn-ghost-lg {
  background: rgba(255,255,255,.05);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-ghost-sm:hover, .btn-ghost-lg:hover { background: rgba(255,255,255,.1); }
.btn-ghost-sm { padding: 10px 18px; font-size: 14px; }
.btn-ghost-lg { padding: 14px 28px; font-size: 16px; }

.btn-outline-lg {
  padding: 14px 28px;
  font-size: 16px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-lg:hover {
  background: var(--primary);
  color: white;
}

.btn-full { width: 100%; }

/* ─── Badges ─── */
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gradient-soft);
  border: 1px solid rgba(37,211,102,.3);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ─── Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,22,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:not(.btn):hover { color: var(--text-1); }

.nav-toggle {
  display: none;
  background: transparent;
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 800px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-2);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ─── Hero ─── */
.hero {
  padding: 80px 0 100px;
  background: radial-gradient(ellipse at top right, rgba(37,211,102,.08), transparent 60%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(37,211,102,.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16,185,129,.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero { padding: 50px 0 70px; }
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 32px;
  margin-top: 50px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.trust-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.trust-item span {
  font-size: 13px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-glow), var(--shadow);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-badge {
  position: absolute;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  padding: 12px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  animation: floatBadge 4s ease-in-out infinite;
}

.fb-1 { top: 20%; left: -8%; }
.fb-2 { bottom: 10%; right: -5%; animation-delay: 2s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.dot-success {
  box-shadow: 0 0 0 3px rgba(37,211,102,.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37,211,102,.2); }
  50% { box-shadow: 0 0 0 8px rgba(37,211,102,.05); }
}

/* ─── Social proof ─── */
.social-proof {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: .15em;
  margin-bottom: 24px;
}

.logos-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.logos-grid span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-3);
  opacity: .6;
  transition: opacity .2s;
}

.logos-grid span:hover { opacity: 1; }

/* ─── Sections common ─── */
.features, .demo-section, .pricing, .faq, .final-cta {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.1rem;
}

/* ─── Features Grid ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all .3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(37,211,102,.1);
}

.feature-card.highlighted {
  background: var(--gradient-soft);
  border-color: rgba(37,211,102,.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-2);
  font-size: 15px;
}

/* ─── Video Section ─── */
.video-section {
  padding: 100px 0;
  background: radial-gradient(ellipse at center, rgba(37,211,102,.06), transparent 60%);
}

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow);
  background: #000;
  position: relative;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .video-section { padding: 60px 0; }
}

/* ─── Demo section ─── */
.demo-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
}

.demo-image img {
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.check-list {
  list-style: none;
  margin-top: 24px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 16px;
  color: var(--text-2);
}

.check-list li span {
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* ─── Pricing ─── */
.pricing {
  background: radial-gradient(ellipse at center, rgba(37,211,102,.04), transparent 60%);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.plan-card:first-child {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(37,211,102,.04), var(--bg-2));
  box-shadow: 0 0 40px rgba(37,211,102,.15);
}

.plan-business {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
}

.plan-badge-pro {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 16px rgba(245,158,11,.4);
}

.plan-name {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.plan-tagline {
  color: var(--text-3);
  font-size: 14px;
  margin-bottom: 24px;
}

.plan-price {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.price-discount {
  display: inline-block;
  background: rgba(37,211,102,.15);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
}

.price-value {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-period {
  font-size: 1rem;
  color: var(--text-3);
}

.price-note {
  color: var(--text-3);
  font-size: 13px;
  margin-top: 4px;
}

.plan-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-2);
}

.plan-features li span:first-child {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-features strong { color: var(--text-1); }

.plan-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 12px;
}

.enterprise-cta {
  margin-top: 60px;
  text-align: center;
  padding: 40px;
  background: var(--bg-2);
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
}

.enterprise-cta h3 { margin-bottom: 8px; }
.enterprise-cta p { color: var(--text-2); margin-bottom: 20px; }

/* ─── FAQ ─── */
.faq {
  background: var(--bg-2);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all .2s;
}

.faq-item[open] {
  border-color: rgba(37,211,102,.3);
  background: var(--bg-3);
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  transition: transform .2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── Final CTA ─── */
.final-cta {
  background: var(--gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,.3) 100%);
}

.final-cta > * { position: relative; z-index: 1; }

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
}

.final-cta .text-gradient {
  background: linear-gradient(180deg, white, #b0f0c9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.final-cta p {
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  margin: 16px 0 32px;
}

.final-cta .btn-primary-xl {
  background: white;
  color: var(--bg-1);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

.final-cta .btn-primary-xl:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.cta-note {
  margin-top: 20px !important;
  font-size: 14px !important;
  opacity: .85;
}

/* ─── Footer ─── */
.footer {
  background: var(--bg-1);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-brand p {
  color: var(--text-3);
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-2);
  padding: 6px 0;
  font-size: 14px;
  transition: color .2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-3);
  font-size: 13px;
}

/* ─── WhatsApp Float ─── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.5);
  transition: transform .2s, box-shadow .2s;
  z-index: 99;
  animation: pulse-wa 2.5s infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37,211,102,.7);
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.4); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
}

/* ─── Mobile tweaks ─── */
@media (max-width: 600px) {
  .features, .demo-section, .pricing, .faq, .final-cta { padding: 60px 0; }
  .hero { padding: 40px 0 60px; }
  .hero-trust { gap: 18px; flex-wrap: wrap; }
  .floating-badge { display: none; }
  .plan-card { padding: 32px 24px; }
  .price-value { font-size: 2.8rem; }
}
