:root {
  --bg-main: #090d16;
  --bg-secondary: #0f1626;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(23, 32, 54, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(37, 211, 102, 0.5);
  
  --wa-green: #25D366;
  --wa-green-glow: rgba(37, 211, 102, 0.25);
  --wa-teal: #128C7E;
  --wa-dark-green: #075E54;
  --wa-chat-bg: #0b141a;
  --wa-incoming: #202c33;
  --wa-outgoing: #005c4b;
  
  --accent-cyan: #00f0ff;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Glowing Ambient Gradients */
.ambient-glow-1 {
  position: absolute;
  top: -100px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.15) 0%, rgba(0, 240, 255, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: absolute;
  top: 600px;
  right: 5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Utilities & Containers */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(37, 211, 102, 0.1);
  color: var(--wa-green);
  border: 1px solid rgba(37, 211, 102, 0.3);
  backdrop-filter: blur(10px);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--wa-green);
  box-shadow: 0 0 10px var(--wa-green);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px var(--wa-green); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--wa-green) 0%, #1db954 100%);
  color: #061e12;
  box-shadow: 0 4px 20px var(--wa-green-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
  background: linear-gradient(135deg, #2fe673 0%, #20c85c 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

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

.btn-outline-green {
  background: transparent;
  color: var(--wa-green);
  border: 1px solid rgba(37, 211, 102, 0.4);
}

.btn-outline-green:hover {
  background: rgba(37, 211, 102, 0.1);
  border-color: var(--wa-green);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================
   Header & Modern Navigation Bar
   ========================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: var(--transition);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wa-green) 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #061e12;
  box-shadow: 0 4px 18px var(--wa-green-glow);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title span {
  color: var(--wa-green);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--wa-green);
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}

/* Nav Links & Items */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-item {
  position: relative;
}

.nav-link, .nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.nav-link:hover, .nav-link-btn:hover,
.nav-item.active .nav-link,
.nav-item:hover .nav-link-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-chevron {
  font-size: 0.68rem;
  transition: transform 0.2s ease;
  color: #64748b;
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
  color: var(--wa-green);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--wa-green);
  box-shadow: 0 0 8px var(--wa-green);
  display: inline-block;
  animation: pulse-badge 2s infinite;
}

/* Modern Glassmorphic Dropdowns */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #0d1322;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 25px rgba(37, 211, 102, 0.12);
  backdrop-filter: blur(25px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-dropdown {
  width: 640px;
}

.simple-dropdown {
  width: 320px;
}

.dropdown-header {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 12px;
  padding-left: 6px;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dropdown-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.dropdown-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
}

.dropdown-card.compact {
  padding: 10px;
  margin-bottom: 4px;
}

.drop-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.bg-auth { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.bg-marketing { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.bg-utility { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.bg-flows { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.bg-commerce { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.bg-service { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.bg-code { background: rgba(0, 240, 255, 0.15); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.3); }
.bg-docs { background: rgba(37, 211, 102, 0.15); color: #25d366; border: 1px solid rgba(37, 211, 102, 0.3); }
.bg-hook { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.drop-info {
  flex: 1;
}

.drop-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-pill {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(37, 211, 102, 0.15);
  color: var(--wa-green);
}

.drop-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 2px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--wa-green) 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.meta-item i {
  color: var(--wa-green);
  font-size: 1.1rem;
}

/* Live WhatsApp Phone Interactive Simulator */
.phone-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-card {
  width: 100%;
  max-width: 380px;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(37, 211, 102, 0.2);
  position: relative;
}

.phone-speaker {
  width: 80px;
  height: 5px;
  background: #222;
  border-radius: 4px;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.phone-screen {
  background-color: var(--wa-chat-bg);
  border-radius: 32px;
  height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.wa-header {
  background: var(--wa-incoming);
  padding: 28px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wa-green), #075E54);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

.wa-name {
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wa-green-check {
  color: var(--wa-green);
  font-size: 0.85rem;
}

.wa-status {
  font-size: 0.72rem;
  color: var(--wa-green);
}

.wa-chat-body {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wa-date-pill {
  align-self: center;
  background: rgba(32, 44, 51, 0.9);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.wa-msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.4;
  position: relative;
  animation: fadeInMsg 0.3s ease;
}

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

.wa-msg.outgoing {
  align-self: flex-end;
  background: var(--wa-outgoing);
  border-top-right-radius: 2px;
  color: #e9edef;
}

.wa-msg.incoming {
  align-self: flex-start;
  background: var(--wa-incoming);
  border-top-left-radius: 2px;
  color: #e9edef;
}

.wa-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.wa-ticks {
  color: #53bdeb;
}

.wa-card-preview {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 6px;
  border-left: 3px solid var(--wa-green);
}

.wa-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 6px;
}

.wa-reply-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 6px;
  border-radius: 6px;
  color: #53bdeb;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wa-chat-input-bar {
  background: var(--wa-incoming);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-input-box {
  flex: 1;
  background: #2a3942;
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
}

.wa-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wa-green);
  border: none;
  color: #061e12;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: transform 0.15s;
}

.wa-send-btn:hover {
  transform: scale(1.08);
}

/* Floating interactive simulator widget toolbar */
.simulator-controls {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.sim-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.sim-chip:hover, .sim-chip.active {
  background: rgba(37, 211, 102, 0.15);
  color: var(--wa-green);
  border-color: rgba(37, 211, 102, 0.4);
}

/* Stats Ribbon */
.stats-ribbon {
  margin-top: 50px;
  background: rgba(15, 22, 38, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 40px;
  backdrop-filter: blur(20px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stat-num span {
  color: var(--wa-green);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Section Header */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-subtitle {
  color: var(--wa-green);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

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

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 211, 102, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 211, 102, 0.1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wa-green);
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.feature-points {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-points li {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-points li i {
  color: var(--wa-green);
  font-size: 0.8rem;
}

/* API Developer Playground Section */
.api-section {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 22, 38, 0.8) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.api-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.api-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.api-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.api-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.api-feature-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.api-feature-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Code Playground Box */
.code-box {
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.code-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.code-tabs {
  display: flex;
  gap: 6px;
}

.code-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.code-tab.active, .code-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.code-tab.active {
  color: var(--wa-green);
}

.code-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.code-content {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
  min-height: 250px;
}

.code-content pre {
  margin: 0;
}

.syntax-keyword { color: #f43f5e; }
.syntax-string { color: #38bdf8; }
.syntax-prop { color: #a855f7; }
.syntax-comment { color: #64748b; }

.code-footer {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.test-run-btn {
  background: var(--wa-green);
  color: #061e12;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.test-run-btn:hover {
  background: #2fe673;
}

.response-status {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--wa-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Pricing Section */
.pricing-switch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 45px;
}

.switch-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.switch-label.active {
  color: var(--text-main);
}

.switch-discount {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  margin-left: 6px;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch.yearly {
  background: var(--wa-green);
}

.toggle-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch.yearly .toggle-slider {
  transform: translateX(24px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(14px);
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.08) 0%, rgba(15, 22, 38, 0.9) 100%);
  border: 2px solid var(--wa-green);
  box-shadow: 0 20px 45px rgba(37, 211, 102, 0.15);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wa-green);
  color: #061e12;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.tier-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  min-height: 42px;
}

.price-box {
  margin: 24px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.billing-period {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

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

.tier-features li i {
  color: var(--wa-green);
  font-size: 0.9rem;
}

.tier-features li.disabled {
  color: var(--text-dim);
  text-decoration: line-through;
}

.tier-features li.disabled i {
  color: var(--text-dim);
}

/* Volume / Message Cost Calculator */
.calc-box {
  margin-top: 50px;
  background: rgba(15, 22, 38, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.calc-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wa-green);
  cursor: pointer;
  box-shadow: 0 0 10px var(--wa-green);
}

.calc-output-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border-subtle);
}

.calc-rate {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--wa-green);
}

/* Modal Checkout & Onboarding Flow */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #0d1322;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(37, 211, 102, 0.15);
  overflow: hidden;
  transform: scale(0.94);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: #fff;
}

/* Step Wizard Progress */
.wizard-steps {
  display: flex;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  justify-content: space-between;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.step-indicator.active {
  color: var(--wa-green);
}

.step-indicator.completed {
  color: var(--text-muted);
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.step-indicator.active .step-circle {
  background: var(--wa-green);
  color: #061e12;
  border-color: var(--wa-green);
}

.modal-body {
  padding: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  border-color: var(--wa-green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
  color: var(--text-dim);
}

/* Step 3 Success API Token display */
.token-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
}

.token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #080c14;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--wa-green);
  word-break: break-all;
  margin-top: 6px;
}

.modal-footer {
  padding: 18px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #10192e;
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.88rem;
  animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.footer {
  background: #060910;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--wa-green);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-meta {
    justify-content: center;
  }
  .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .api-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-box {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================
   7. Meta Services Suite & Badges
   ========================================================== */
.meta-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(37, 211, 102, 0.12);
}

.service-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.badge-marketing { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-utility { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-auth { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-service { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-flows { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-commerce { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-ads { background: rgba(0, 240, 255, 0.15); color: #38bdf8; border: 1px solid rgba(0, 240, 255, 0.3); }

.service-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-title i {
  color: var(--wa-green);
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-meta-rate {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  border: 1px solid var(--border-subtle);
  margin-top: auto;
}

.rate-label {
  color: var(--text-dim);
}

.rate-value {
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

/* ==========================================================
   8. Margin & Reseller Pricing Table
   ========================================================== */
.margin-table-wrapper {
  margin-top: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  backdrop-filter: blur(16px);
}

.margin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.margin-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}

.margin-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
}

.margin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.wholesale-cost {
  color: #94a3b8;
  font-family: var(--font-mono);
  font-weight: 600;
}

.platform-cut {
  color: var(--wa-green);
  font-weight: 800;
  font-family: var(--font-mono);
  background: rgba(37, 211, 102, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.resell-price {
  color: #fff;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* Profit Margin Configurator Card */
.profit-configurator {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(15, 22, 38, 0.95) 0%, rgba(10, 15, 29, 0.98) 100%);
  border: 1px solid rgba(37, 211, 102, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(37, 211, 102, 0.1);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.configurator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.profit-stat-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.profit-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--wa-green);
  font-family: var(--font-mono);
  margin: 6px 0;
}

/* Automated Wallet Ledger Simulation */
.wallet-box {
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.wallet-ledger-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.wallet-ledger-row:last-child {
  border-bottom: none;
  font-weight: 700;
  color: var(--wa-green);
}

/* In-Chat Form / Flow Preview Inside Simulator */
.wa-flow-card {
  background: #1f2c34;
  border-radius: 10px;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-flow-btn {
  background: var(--wa-green);
  color: #061e12;
  font-weight: 700;
  border: none;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-top: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wa-catalog-product {
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 8px;
  margin-top: 6px;
}

.wa-catalog-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wa-green);
  font-size: 1.2rem;
}

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

/* ==========================================================
   Responsive Navigation Queries
   ========================================================== */
@media (max-width: 1140px) {
  .nav-links {
    gap: 2px;
  }
  .nav-link, .nav-link-btn {
    padding: 7px 10px;
    font-size: 0.84rem;
  }
  .mega-dropdown {
    width: 540px;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #090d16;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .nav-item {
    width: 100%;
  }
  .nav-link, .nav-link-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
  }
  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    width: 100% !important;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.4);
    margin-top: 8px;
    padding: 12px;
    border-radius: 12px;
  }
  .nav-item.mobile-expanded .nav-dropdown {
    display: block;
  }
  .dropdown-grid {
    grid-template-columns: 1fr;
  }
  .mobile-menu-btn {
    display: flex;
  }
}


