/* ==========================================================================
   ReelDM (reeldm.space) — Premium SaaS Design System
   Apple-Tier Typography, Layered Shadows, Fluid Animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --primary: #0066cc;
  --primary-hover: #0052a3;
  --primary-light: #e0f2ff;
  --primary-lighter: #f0f7ff;
  
  --accent-green: #10b981;
  --accent-orange: #f97316;
  --accent-red: #ef4444;
  --whatsapp: #25d366;
  --whatsapp-hover: #1da851;
  
  --emerald-bg: #ecfdf5;
  --emerald-text: #065f46;
  
  --muted: #64748b;
  --muted-fg: #475569;
  --subtle: #94a3b8;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --card: #ffffff;
  --surface: #f8fafc;
  
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  
  --radius-full: 9999px;
  --radius-2xl: 20px;
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-blue: 0 8px 20px -6px rgba(0,102,204,0.35);
  --shadow-green: 0 8px 20px -6px rgba(37,211,102,0.35);
  
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection {
  background: var(--primary-light);
  color: var(--primary);
}

/* ===== Subtle Grid Background ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 70%);
  z-index: 0;
}

/* ==========================================================================
   NAVBAR — Frosted Glass, Premium Spacing
   ========================================================================== */
.navbar-fixed {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--fg);
  transition: opacity 0.15s;
}

.brand-badge:hover { opacity: 0.8; }

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--shadow-blue);
}

.verified-icon {
  color: var(--primary);
  display: inline-flex;
  margin-left: -2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-item { position: relative; }

.nav-link-btn {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted-fg);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  white-space: nowrap;
}

.nav-link-btn:hover {
  color: var(--fg);
  background: rgba(0,0,0,0.04);
}

.dropdown-caret {
  width: 13px;
  height: 13px;
  transition: transform 0.25s var(--ease-out);
}

.nav-item:hover .dropdown-caret {
  transform: rotate(180deg);
}

/* ===== Mega Menu Dropdown ===== */
.mega-menu-card {
  position: absolute;
  top: calc(100% + 4px);
  left: -20px;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: all 0.2s var(--ease-out);
  pointer-events: none;
  z-index: 1001;
}

.nav-item:hover .mega-menu-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mega-menu-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  padding: 20px;
  display: grid;
  grid-template-columns: 280px 280px;
  gap: 16px;
  width: max-content;
}

.mega-col-header {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 12px;
  padding-left: 10px;
}

.mega-menu-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-lg);
  transition: all 0.15s ease;
}

.mega-menu-link:hover {
  background: var(--surface);
}

.mega-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.mega-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--fg);
}

.mega-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
}

/* ===== Pill Badges ===== */
.badge-pill-green {
  background: var(--accent-green);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pill-orange {
  background: var(--accent-orange);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Nav CTA Button ===== */
.btn-nav-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-blue);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.btn-nav-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(0,102,204,0.4);
}

/* ==========================================================================
   HERO SECTION — Apple-Level Typography & Spacing
   ========================================================================== */
.hero-section {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
  z-index: 1;
}

.pill-meta-safe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-bg);
  color: var(--emerald-text);
  font-size: 12.5px;
  font-weight: 650;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(16,185,129,0.15);
}

.hero-h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  color: var(--muted-fg);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.65;
  font-weight: 400;
}

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

.btn-main-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-blue);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-main-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(0,102,204,0.45);
}

.btn-whatsapp-chat {
  background: var(--whatsapp);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-green);
  transition: all 0.2s ease;
}

.btn-whatsapp-chat:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.hero-subtext-trust {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 40px;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   LIVE INTERACTIVE MOCKUP — Dark Terminal Frame
   ========================================================================== */
.mockup-container {
  max-width: 680px;
  margin: 0 auto 48px;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  text-align: left;
}

.mockup-top-bar {
  background: #1e293b;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mockup-body {
  padding: 22px 24px;
  color: #fff;
}

.kw-pill-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.kw-pill-btn:hover {
  background: rgba(255,255,255,0.12);
}

.kw-pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.live-dm-screen {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 13px;
}

.mockup-caption-bottom {
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  padding: 10px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-weight: 500;
}

/* ===== Trust Badges Row ===== */
.trust-badges-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pill-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--fg);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.pill-trust-badge:hover {
  box-shadow: var(--shadow-sm);
  border-color: #cbd5e1;
}

/* ==========================================================================
   3-STEP SECTION
   ========================================================================== */
.timeline-section {
  padding: 80px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-head-center {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 48px;
}

.section-h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-desc {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 400;
}

.steps-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-out);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-blue);
}

.step-card-title {
  font-size: 17px;
  font-weight: 750;
  color: var(--fg);
  margin-bottom: 8px;
}

.step-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */
.features-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s var(--ease-out);
}

.feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

/* ==========================================================================
   STAT BANNER
   ========================================================================== */
.stat-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 48px;
  margin: 56px auto 0;
  box-shadow: var(--shadow-md);
  max-width: 1060px;
}

.stat-metric-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-giant-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -1px;
}

.stat-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-card-mini {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-light);
}

.stat-card-mini h4 {
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
}

.stat-card-mini p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

/* ==========================================================================
   MANYCHAT BATTLECARD
   ========================================================================== */
.battlecard-section {
  padding: 80px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
}

.battle-table-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.battle-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding: 16px 24px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.battle-row:last-child { border-bottom: none; }

.battle-row.header {
  background: var(--fg);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 14px 24px;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-section {
  padding: 80px 24px;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-cards-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.price-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s var(--ease-out);
}

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

.price-box.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.price-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}

.price-amount {
  font-size: 42px;
  font-weight: 900;
  color: var(--fg);
  margin: 8px 0 20px;
  letter-spacing: -1px;
}

.price-amount span {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.price-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}

.price-checklist li {
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   DARK FOOTER
   ========================================================================== */
.dark-footer {
  background: #0a0e1a;
  color: #ffffff;
  padding: 56px 24px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.dark-footer a {
  transition: color 0.15s ease;
}

.dark-footer a:hover {
  color: #e2e8f0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero-h1 {
    font-size: 38px;
    letter-spacing: -1px;
  }
  .hero-desc { font-size: 16px; }
  .section-h2 { font-size: 28px; }
  .steps-cards-grid,
  .features-grid-3x2,
  .stat-banner,
  .pricing-cards-two {
    grid-template-columns: 1fr;
  }
  .nav-menu { display: none; }
  .mega-menu-inner { grid-template-columns: 1fr; }
  .stat-banner { padding: 28px; gap: 24px; }
}

@media (max-width: 600px) {
  .hero-h1 { font-size: 32px; }
  .hero-actions-row { flex-direction: column; }
  .btn-main-primary, .btn-whatsapp-chat { width: 100%; justify-content: center; }
  .navbar-fixed { padding: 0 16px; }
  .pricing-cards-two { gap: 14px; }
}

/* ===== 4-Column How It Works Responsive ===== */
@media (max-width: 900px) {
  #how-it-works > div:nth-child(2) {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 600px) {
  #how-it-works > div:nth-child(2) {
    grid-template-columns: 1fr !important;
  }
}
