/* =============================================
   WhatBox Landing Page — style.css
   ============================================= */

/* --- Variables --- */
:root {
  --green:        #25D366;
  --green-dark:   #1aab52;
  --green-dim:    rgba(37, 211, 102, 0.12);
  --navy:         #0f172a;
  --navy-light:   #1e293b;
  --navy-mid:     #334155;
  --gray:         #64748b;
  --gray-light:   #f1f5f9;
  --gray-border:  #e2e8f0;
  --white:        #ffffff;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
  --transition:   0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

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

ul { list-style: none; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--gray-border);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: rgba(255,255,255,.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex: 1;
}

.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(37,211,102,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,211,102,.12);
  border: 1px solid rgba(37,211,102,.3);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.65);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
  display: inline-flex;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 40px;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* --- Trusted --- */
.trusted {
  background: var(--gray-light);
  padding: 40px 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}

.trusted-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

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

.logo-placeholder {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  background: var(--white);
  border: 1px solid var(--gray-border);
  padding: 8px 20px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

/* --- Sections --- */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Features --- */
.features {
  padding: 100px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

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

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--green-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon {
  width: 22px;
  height: 22px;
  color: var(--green);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- How It Works --- */
.how {
  background: var(--navy);
  padding: 100px 0;
}

.how .section-header h2,
.how .section-header .section-tag { color: var(--green); }

.how .section-header h2 { color: var(--white); }

.how .section-header p { color: rgba(255,255,255,.55); }

.steps {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
}

.step:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(37,211,102,.35);
}

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
}

.step-connector {
  flex-shrink: 0;
  width: 80px;
  color: rgba(37,211,102,.4);
}

.step-connector svg {
  width: 100%;
  height: 24px;
}

/* --- Pricing --- */
.pricing {
  padding: 100px 0;
  background: var(--gray-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.plan {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: all var(--transition);
}

.plan:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.plan-featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--shadow-md);
  transform: scale(1.02);
}

.plan-featured:hover {
  transform: scale(1.02) translateY(-2px);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.plan-name {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.04em;
}

.plan-price-custom {
  font-size: 2rem;
}

.currency {
  font-size: 1.3rem;
  font-weight: 700;
  vertical-align: top;
  margin-top: 6px;
  display: inline-block;
}

.period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--green-dim);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 4' stroke='%2325D366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

.plan .btn {
  width: 100%;
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 100px 0;
  text-align: center;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cta-inner p {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.92rem;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 16px;
}

.footer-email {
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 500;
  transition: opacity var(--transition);
}
.footer-email:hover { opacity: 0.8; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

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

.footer-bottom {
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom a {
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--white); }

.disclaimer {
  text-align: right;
}

.footer-logo .logo-mark {
  background: rgba(37,211,102,.15);
  border: 1px solid rgba(37,211,102,.3);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-2px); }

  .steps { flex-direction: column; }
  .step-connector { transform: rotate(90deg); width: 60px; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }

  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .disclaimer { text-align: center; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 12px 0;
  }
  .nav-links.open a {
    display: block;
    padding: 14px 24px;
    border-radius: 0;
  }
  .nav-inner .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav { position: relative; }

  .hero { padding: 100px 0 60px; min-height: auto; }

  .hero-stats {
    flex-direction: column;
    display: flex;
    width: 100%;
    max-width: 280px;
  }
  .stat { padding: 16px 24px; width: 100%; }
  .stat-divider { width: 100%; height: 1px; }

  .feature-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }

  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
}
