/* ============================================
   BoostBot Landing Page — Shared Styles
   Theme: Light & Dark via CSS Variables
   Direction: RTL (Hebrew)
   ============================================ */

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

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

/* ============================================
   THEME VARIABLES
   ============================================ */

.theme-light {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-hero: linear-gradient(180deg, #f0f9ff 0%, #ffffff 60%, #f8fafc 100%);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --card-bg: #ffffff;
  --card-bg-alt: #f8fafc;
  --card-border: #e2e8f0;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
  --navbar-bg: rgba(255,255,255,0.85);
  --navbar-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --accent: #06b6d4;
  --accent-rgb: 6, 182, 212;
  --accent-dark: #0891b2;
  --accent-light: #ecfeff;
  --accent-bg: rgba(6,182,212,0.08);
  --purple: #8b5cf6;
  --purple-rgb: 139, 92, 246;
  --gradient: linear-gradient(135deg, #06b6d4, #8b5cf6);
  --gradient-text: linear-gradient(135deg, #0891b2, #7c3aed);
  --gradient-btn: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --gradient-btn-hover: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  --badge-bg: rgba(6,182,212,0.08);
  --badge-text: #0891b2;
  --badge-border: rgba(6,182,212,0.2);
  --chatbot-bg: #ffffff;
  --chatbot-header: linear-gradient(135deg, #06b6d4, #0891b2);
  --chatbot-shadow: 0 25px 60px rgba(0,0,0,0.12), 0 10px 20px rgba(0,0,0,0.06);
  --msg-bot-bg: #f1f5f9;
  --msg-bot-text: #1e293b;
  --msg-user-bg: linear-gradient(135deg, #06b6d4, #0891b2);
  --msg-user-text: #ffffff;
  --widget-bg: #f8fafc;
  --widget-border: #e2e8f0;
  --input-bg: #ffffff;
  --input-border: #e2e8f0;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  --footer-heading: #f1f5f9;
  --section-alt-bg: #f8fafc;
  --glow-color: rgba(6,182,212,0.12);
  --dot-color: rgba(6,182,212,0.06);
  --stats-bg: rgba(255,255,255,0.9);
  --stats-border: rgba(6,182,212,0.12);
}

.theme-dark {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-hero: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #64748b;
  --border-color: #334155;
  --border-light: #1e293b;
  --card-bg: #1e293b;
  --card-bg-alt: #334155;
  --card-border: #334155;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --card-shadow-hover: 0 20px 40px rgba(0,0,0,0.4), 0 8px 16px rgba(0,0,0,0.3);
  --navbar-bg: rgba(15,23,42,0.9);
  --navbar-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --accent: #06b6d4;
  --accent-rgb: 6, 182, 212;
  --accent-dark: #0891b2;
  --accent-light: rgba(6,182,212,0.15);
  --accent-bg: rgba(6,182,212,0.1);
  --purple: #8b5cf6;
  --purple-rgb: 139, 92, 246;
  --gradient: linear-gradient(135deg, #06b6d4, #8b5cf6);
  --gradient-text: linear-gradient(135deg, #22d3ee, #a78bfa);
  --gradient-btn: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --gradient-btn-hover: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  --badge-bg: rgba(6,182,212,0.15);
  --badge-text: #22d3ee;
  --badge-border: rgba(6,182,212,0.25);
  --chatbot-bg: #1e293b;
  --chatbot-header: linear-gradient(135deg, #06b6d4, #0891b2);
  --chatbot-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 10px 20px rgba(0,0,0,0.3);
  --msg-bot-bg: #334155;
  --msg-bot-text: #e2e8f0;
  --msg-user-bg: linear-gradient(135deg, #06b6d4, #0891b2);
  --msg-user-text: #ffffff;
  --widget-bg: #334155;
  --widget-border: #475569;
  --input-bg: #334155;
  --input-border: #475569;
  --footer-bg: #020617;
  --footer-text: #64748b;
  --footer-heading: #f1f5f9;
  --section-alt-bg: #1e293b;
  --glow-color: rgba(6,182,212,0.08);
  --dot-color: rgba(6,182,212,0.04);
  --stats-bg: rgba(30,41,59,0.8);
  --stats-border: rgba(6,182,212,0.2);
}

/* ============================================
   BASE STYLES
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* ── Protection against Tailwind Preflight / utilities leaking from widget CSS ──
   The BoostBot widget CSS includes @tailwind base + @tailwind utilities which define
   229+ global utility classes (including .container, h1-h6 resets, etc.) that load
   AFTER this file and override landing page styles by cascade order.
   Fix: scope ALL landing page base styles under .page-wrapper (specificity 0-1-X)
   which always beats Tailwind's flat class selectors (specificity 0-1-0). */

/* Layout */
.page-wrapper .container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* Typography */
.page-wrapper h1, .page-wrapper h2, .page-wrapper h3,
.page-wrapper h4, .page-wrapper h5, .page-wrapper h6 {
  font-weight: 700; line-height: 1.3; color: var(--text-primary);
}
.page-wrapper h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; }
.page-wrapper h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.page-wrapper h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
.page-wrapper p { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.8; margin: 0; }
.page-wrapper a { text-decoration: none; color: inherit; transition: color 0.2s; }
.page-wrapper img { max-width: 100%; height: auto; display: inline-block; }

/* Prevent Tailwind's global * reset from breaking borders/box-sizing in landing page */
.page-wrapper *, .page-wrapper *::before, .page-wrapper *::after {
  border-style: solid;
  border-width: 0;
}

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

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section { padding: 100px 0; position: relative; }
.section-alt { background-color: var(--section-alt-bg); }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.section-header p { margin-top: 16px; font-size: 1.125rem; }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotateY(-2deg) rotateX(1deg); }
  50% { transform: translateY(-12px) rotateY(-2deg) rotateX(1deg); }
}

@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

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

@keyframes widgetExpand {
  from { opacity: 0; max-height: 0; transform: scaleY(0.9); }
  to { opacity: 1; max-height: 650px; transform: scaleY(1); }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s;
}

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

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}

.navbar-logo-img {
  height: 45px;
  width: auto;
}

.logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover { color: var(--accent); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-btn);
  color: #fff !important;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--bg-hero);
  position: relative;
  overflow: visible; /* Must be visible - overflow:hidden causes stacking context issues with embedded widget */
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(var(--purple-rgb), 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--dot-color) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.hero-content { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--badge-text);
  margin-bottom: 24px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.hero h1 { margin-bottom: 24px; letter-spacing: -0.01em; }

.hero .hero-description {
  font-size: 1.1875rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gradient-btn);
  color: #fff !important;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Hero Bot Description (showcase pages) */
.hero-bot-description {
  margin-top: 16px;
}
.hero-bot-description p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  background: var(--stats-bg);
  border: 1px solid var(--stats-border);
  border-radius: 16px;
  padding: 18px 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-item {
  text-align: center;
  padding: 28px 16px 24px;
  background: var(--stats-bg);
  border: 1px solid var(--stats-border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.3;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero-stats .stat-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: 500;
  line-height: 1.3;
}

/* ============================================
   CHATBOT DEMO — Real BoostBot Widget Layout
   Real BoostBot Widget embedded inline in the hero.
   Overrides the plugin's fixed positioning to make it inline.
   ============================================ */
.hero-chatbot {
  display: flex;
  justify-content: center;
  perspective: 1000px;
  position: relative;
  min-height: 650px; /* Reserve space so layout doesn't shift when widget loads */
}

/* ---- Root container: fully tame the widget root ----
   The widget CSS applies `all: initial` which resets display to `inline`,
   box-sizing to `content-box`, and position to `static` — then sets
   position: fixed. We must override EVERYTHING that matters, with !important
   to beat both the `all: initial` and any inline styles from React/Framer. */
.hero-chatbot #boostbot-widget-root {
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
  width: 380px !important;
  height: auto !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  inset: auto !important;
  font-size: 16px;
  animation: float 6s ease-in-out infinite;
}

/* ---- Chat window: undo fixed, make it inline ----
   Framer Motion applies inline styles (bottom, right, width, height, etc.).
   CSS !important beats inline styles, so these overrides are reliable. */
.hero-chatbot #boostbot-widget-root .bb-chat-window {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  inset: auto !important;
  width: 100% !important;
  height: 650px !important;
  max-height: 650px !important;
  z-index: auto !important;
  transform: none !important;
}

/* ---- Hide the floating bubble (chat is embedded) ---- */
.hero-chatbot #boostbot-widget-root > button,
.hero-chatbot #boostbot-widget-root > div[class*="bubble"],
.hero-chatbot #boostbot-widget-root [class*="bb-bubble"] {
  display: none !important;
}

/* ---- Gallery lightbox: let position:fixed escape to viewport ----
   perspective + animation(transform) create containing blocks for
   position:fixed children, trapping the lightbox inside the chat.
   Disable them while the lightbox is open so it covers the full screen. */
.hero-chatbot:has(.bb-gallery-lightbox) {
  perspective: none !important;
}
.hero-chatbot #boostbot-widget-root:has(.bb-gallery-lightbox) {
  animation: none !important;
  transform: none !important;
  z-index: 999999 !important;
}
.hero-chatbot #boostbot-widget-root .bb-gallery-lightbox {
  z-index: 999999 !important;
}

/* Mobile full-screen override: keep inline on this page */
@media (max-width: 639px) {
  .hero-chatbot #boostbot-widget-root {
    width: 100% !important;
  }
  .hero-chatbot #boostbot-widget-root .bb-chat-window,
  .hero-chatbot #boostbot-widget-root .boostbot-window-mobile {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    width: 100% !important;
    height: calc(100vh - 60px - 80px) !important;
    max-height: calc(100vh - 60px - 80px) !important;
    border-radius: 16px !important;
    transform: none !important;
  }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  background: var(--accent-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background: var(--gradient);
}

.feature-card:hover .feature-icon span { filter: brightness(10); }

.feature-card h3 { margin-bottom: 10px; font-size: 1.125rem; }
.feature-card p { font-size: 0.9375rem; line-height: 1.7; }

/* ============================================
   CONVERSATIONS SECTION
   ============================================ */
.conv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.conv-content { position: sticky; top: 120px; }
.conv-content h2 { margin-bottom: 16px; }
.conv-content > p { margin-bottom: 32px; }

.conv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.conv-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px 20px;
  transition: all 0.3s;
}

.conv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.conv-card-icon {
  width: 42px; height: 42px;
  background: var(--accent-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.conv-card h4 { font-size: 1rem; margin-bottom: 8px; }
.conv-card p { font-size: 0.85rem; line-height: 1.6; }

/* How BoostBot works steps */
.how-it-works { margin-top: 80px; }
.how-it-works-header { text-align: center; margin-bottom: 48px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 20px 24px;
  transition: all 0.3s;
}

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

.step-number {
  width: 48px; height: 48px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-card h4 { font-size: 0.9375rem; margin-bottom: 8px; }
.step-card p { font-size: 0.8125rem; line-height: 1.6; }

.step-result {
  margin-top: 40px;
  text-align: center;
  padding: 24px;
  background: var(--accent-bg);
  border: 1px solid var(--badge-border);
  border-radius: 14px;
}

.step-result strong { font-size: 1.1rem; color: var(--accent); }
.step-result p { margin-top: 8px; }

/* ============================================
   WIDGETS SECTION
   ============================================ */
.widgets-showcase {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.widget-tabs {
  padding: 24px 0;
  border-left: 1px solid var(--border-color);
}

.widget-tab {
  display: block;
  width: 100%;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  text-align: right;
  font-family: inherit;
  position: relative;
}

.widget-tab:hover { color: var(--accent); background: var(--accent-bg); }

.widget-tab.active {
  color: var(--accent);
  background: var(--accent-bg);
  font-weight: 600;
}

.widget-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--gradient);
}

.widget-preview {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.widget-preview-card { width: 100%; max-width: 400px; display: none; }
.widget-preview-card.active { display: block; animation: fadeInUp 0.4s ease; }

.widget-preview-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 6px; }
.widget-preview-desc { font-size: 0.875rem; color: var(--text-tertiary); margin-bottom: 20px; }

/* Widget demo container — neutral wrapper; the inline-styled
   widgets handle their own background, border, and padding. */
.widget-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* Reset any page-wrapper / Tailwind overrides inside the demo area
   so the inline-styled widget HTML renders correctly. */
.widget-demo * {
  box-sizing: border-box;
}

.widget-demo input,
.widget-demo textarea,
.widget-demo select {
  font-family: Rubik, sans-serif;
}

.widget-demo button {
  font-family: Rubik, sans-serif;
}

.widget-demo img {
  max-width: 100%;
  height: auto;
}

.widget-demo-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-align: center;
}

/* ============================================
   KNOWLEDGE SECTION
   ============================================ */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.knowledge-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}

.knowledge-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.knowledge-card-icon {
  width: 48px; height: 48px;
  background: var(--accent-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.knowledge-card h4 { margin-bottom: 8px; }
.knowledge-card p { font-size: 0.9375rem; line-height: 1.7; }

/* Process visual */
.knowledge-process {
  margin-top: 48px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px;
}

.knowledge-process h3 { text-align: center; margin-bottom: 32px; }

.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.process-step {
  text-align: center;
  padding: 24px 20px;
  background: var(--accent-bg);
  border: 1px solid var(--badge-border);
  border-radius: 14px;
  flex: 1;
  min-width: 150px;
}

.process-step-icon { font-size: 1.5rem; margin-bottom: 8px; }

.process-step h5 { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.process-step p { font-size: 0.8rem; color: var(--text-tertiary); }

.process-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================
   DESIGN SECTION
   ============================================ */
.design-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.design-preview {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--card-shadow);
}

.design-bots {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  justify-content: center;
}

.design-bot {
  width: 120px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: all 0.3s;
}

.design-bot.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.design-bot-header {
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.design-bot:nth-child(1) .design-bot-header { background: var(--accent); }
.design-bot:nth-child(2) .design-bot-header { background: #ec4899; }
.design-bot:nth-child(3) .design-bot-header { background: #6366f1; }

.design-bot-body { padding: 12px 10px; background: var(--card-bg); }

.design-bot-line {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  margin-bottom: 6px;
}

.design-bot-line:nth-child(2) { width: 70%; }
.design-bot-line:nth-child(3) { width: 85%; }

.design-palette { display: flex; flex-direction: column; gap: 16px; }

.palette-section h5 {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}

.palette-colors { display: flex; gap: 10px; }

.palette-swatch {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  transition: transform 0.2s;
  cursor: pointer;
}

.palette-swatch:hover { transform: scale(1.1); }

.design-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.design-feature {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px 20px;
  transition: all 0.3s;
}

.design-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.design-feature-icon { font-size: 1.3rem; margin-bottom: 12px; }
.design-feature h4 { font-size: 0.95rem; margin-bottom: 6px; }
.design-feature p { font-size: 0.8125rem; line-height: 1.6; }

/* ============================================
   ANALYTICS SECTION
   ============================================ */
.analytics-dashboard {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.analytics-top {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.analytics-top h4 { font-size: 1.125rem; }
.analytics-top span {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  padding: 6px 14px;
  border-radius: 8px;
}

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-color);
}

.analytics-stat {
  padding: 24px 20px;
  text-align: center;
  border-left: 1px solid var(--border-color);
}

.analytics-stat:last-child { border-left: none; }

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16,185,129,0.1);
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}

.stat-name { font-size: 0.8125rem; color: var(--text-tertiary); margin-top: 4px; }

.analytics-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 200px;
}

.analytics-chart {
  padding: 32px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-left: 1px solid var(--border-color);
}

.chart-bar {
  flex: 1;
  background: var(--accent-bg);
  border-radius: 6px 6px 0 0;
  transition: all 0.5s;
  min-height: 20px;
}

.chart-bar:hover { background: var(--gradient-btn); }

.analytics-sidebar { padding: 24px; }
.analytics-sidebar h5 { font-size: 0.875rem; font-weight: 600; margin-bottom: 16px; }

.analytics-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.analytics-metric:last-child { border-bottom: none; }
.metric-label { font-size: 0.8125rem; color: var(--text-secondary); }
.metric-value { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); }

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

#pricing #booking > h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: var(--gradient);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.pricing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.pricing-logo-icon {
  width: 44px; height: 44px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 800;
}

.pricing-logo span { font-size: 1.25rem; font-weight: 700; }

.pricing-price { margin-bottom: 8px; }

.price-label {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

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

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.check-icon {
  width: 22px; height: 22px;
  background: rgba(16,185,129,0.1);
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--gradient-btn);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.pricing-btn:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.3);
}

/* Credits steps */
.credits-steps { display: flex; flex-direction: column; gap: 24px; }

.credit-step { display: flex; gap: 16px; align-items: flex-start; }

.credit-step-num {
  width: 40px; height: 40px;
  background: var(--gradient);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.credit-step-content h4 { font-size: 1.0625rem; margin-bottom: 4px; }
.credit-step-content p { font-size: 0.875rem; line-height: 1.7; }

/* --- BoostCoin Promo Banner --- */
.credits-banner {
  margin-top: 12px;
  padding: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 30%, #06b6d4 60%, #8b5cf6 100%);
  color: #fff;
  box-shadow:
    0 8px 24px rgba(var(--accent-rgb), 0.16),
    0 2px 6px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Reset inherited text styles inside the banner */
.credits-banner,
.credits-banner *:not(.credits-banner-body) {
  color: #fff;
}

.credits-banner-glow {
  position: absolute;
  top: -40%; right: -20%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,0.09) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.credits-banner-content {
  position: relative;
  z-index: 2;
  padding: 28px 28px 22px;
}

.credits-banner-coin {
  font-size: 3rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  line-height: 1;
}

.credits-banner-headline {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 6px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.credits-banner-subtitle {
  color: rgba(255,255,255,0.95) !important;
  font-size: 1.3rem !important;
  font-weight: 600;
  margin-bottom: 12px !important;
}

.credits-banner-body {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.9rem !important;
  line-height: 1.75 !important;
  max-width: 420px;
  margin: 0 auto;
}

.credits-banner-divider {
  width: 48px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  margin: 14px auto;
}

.credits-banner-footnote {
  color: rgba(255,255,255,0.62) !important;
  font-size: 0.95rem !important;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5 !important;
}

/* ============================================
   FREE INSTALL SECTION
   ============================================ */
#free-install {
  padding: 90px 0 28px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: 100%;
  width: 100%;
}

#free-install::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 100vw;
  height: calc(100% - 24px);
  background:
    radial-gradient(1000px 380px at 100% -10%, rgba(14,165,233,0.22), transparent 58%),
    radial-gradient(840px 320px at 0% 110%, rgba(139,92,246,0.2), transparent 62%),
    linear-gradient(120deg, #0a5f78 0%, #0d7898 30%, #0ea5c4 58%, #3f7fe6 80%, #6d4de6 100%);
  z-index: 1;
}

#free-install .container {
  position: relative;
  z-index: 2;
}

.free-install-banner {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.free-install-glow {
  display: none;
}

.free-install-content {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
  padding: 72px 32px 64px;
}

#free-install .free-install-badge {
  display: inline-block;
  background: rgba(255,255,255,0.17);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.26);
  padding: 8px 22px;
  border-radius: 40px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 26px;
  color: #fff;
}

#free-install .free-install-headline {
  font-size: clamp(2rem, 4vw, 3.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.18;
  margin-bottom: 16px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

#free-install .free-install-headline span {
  background: linear-gradient(90deg, #fff1a6 0%, #fcd34d 44%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#free-install .free-install-subtitle {
  color: rgba(255,255,255,0.94) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.94) !important;
  font-size: 1.17rem !important;
  font-weight: 400;
  line-height: 1.85;
  max-width: 820px;
  margin: 0 auto 6px;
}

#free-install .free-install-subtitle strong {
  color: #fff;
  font-weight: 800;
}

.free-install-divider {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.52), rgba(255,255,255,0));
  border-radius: 2px;
  margin: 30px auto;
}

.free-install-steps {
  counter-reset: wizard-step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 auto;
  max-width: 1100px;
}

.free-install-step {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.08) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 18px;
  padding: 24px 16px 20px;
  box-shadow:
    0 10px 20px rgba(4, 34, 47, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.free-install-step::before {
  counter-increment: wizard-step;
  content: counter(wizard-step);
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.free-install-step:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 28px rgba(4, 34, 47, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.34);
}

.free-install-step-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 12px;
  font-size: 1.6rem;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

#free-install .free-install-step h4 {
  font-size: 1.06rem !important;
  font-weight: 700 !important;
  margin-bottom: 7px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

#free-install .free-install-step p {
  color: rgba(255,255,255,0.82) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.82) !important;
  font-size: 0.88rem !important;
  line-height: 1.55;
  margin: 0;
}

.free-install-bonus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
  border-radius: 18px;
  padding: 18px 28px;
  text-align: right;
}

.free-install-coin {
  font-size: 2.4rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  flex-shrink: 0;
}

.free-install-bonus-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#free-install .free-install-bonus-text strong {
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffe38f !important;
  -webkit-text-fill-color: #ffe38f !important;
}

#free-install .free-install-bonus-text span {
  color: rgba(255,255,255,0.78) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.78) !important;
  font-size: 0.9rem;
  font-weight: 400;
}

.free-install-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #ffffff, #ecfeff);
  color: #075985 !important;
  font-weight: 700;
  font-size: 1.14rem;
  padding: 15px 38px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow:
    0 12px 24px rgba(4, 39, 54, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.free-install-cta:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 18px 30px rgba(4, 39, 54, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

.free-install-cta svg {
  stroke: #075985;
}

.free-install-coin-banner {
  margin-top: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
}
.free-install-coin-banner .credits-banner-content {
  padding: 24px 24px 18px;
}
.free-install-coin-banner .credits-banner-coin {
  font-size: 2.5rem;
  margin-bottom: 6px;
}
.free-install-coin-banner .credits-banner-headline {
  font-size: 1.8rem;
}
.free-install-coin-banner .credits-banner-subtitle {
  font-size: 1.1rem !important;
  margin-bottom: 8px !important;
}
.free-install-coin-banner .credits-banner-footnote {
  font-size: 0.85rem !important;
}

@media (max-width: 768px) {
  #free-install {
    padding-top: 72px;
  }

  #free-install .free-install-content {
    padding: 46px 20px 44px;
  }

  #free-install .free-install-headline {
    font-size: 1.95rem;
  }

  #free-install .free-install-subtitle {
    font-size: 1.03rem;
    line-height: 1.75;
  }

  #free-install .free-install-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  #free-install .free-install-step {
    padding-top: 26px;
  }

  .free-install-coin-banner {
    max-width: 100%;
  }
  .free-install-coin-banner .credits-banner-headline {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  #free-install {
    padding-top: 60px;
  }

  #free-install .free-install-steps {
    grid-template-columns: 1fr;
  }

  #free-install .free-install-headline {
    font-size: 1.62rem;
  }

  #free-install .free-install-step::before {
    top: 10px;
    left: 10px;
    width: 26px;
    height: 26px;
  }

  #free-install .free-install-cta {
    font-size: 1rem;
    padding: 12px 28px;
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 100px 0;
  background: var(--gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: #fff;
  color: #0891b2;
  border-radius: 14px;
  font-size: 1.125rem;
  font-weight: 700;
  transition: all 0.3s;
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cta-badges span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

.cta-check {
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--footer-bg);
  padding: 60px 0 32px;
  color: var(--footer-text);
}

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

.footer-brand { max-width: 300px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--footer-heading);
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 34px; height: 34px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.8; }
.footer .brand-by { margin-top: 12px; font-size: 0.8125rem; opacity: 0.7; }

.footer-col h5 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--footer-heading);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--footer-text); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact li { font-size: 0.8125rem; color: var(--footer-text); direction: ltr; text-align: right; }
.footer-contact li a { direction: ltr; }

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-stats { max-width: 600px; margin: 0 auto; }
  .hero-chatbot #boostbot-widget-root { animation: none; transform: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .conv-grid { grid-template-columns: 1fr; gap: 40px; }
  .conv-content { position: static; text-align: center; }
  .design-showcase { grid-template-columns: 1fr; gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .widgets-showcase { grid-template-columns: 1fr; }
  .widget-tabs { flex-direction: row; overflow-x: auto; border-left: none; border-bottom: 1px solid var(--border-color); padding: 0; }
  .widget-tab { white-space: nowrap; padding: 14px 18px; }
  .widget-tab.active::after { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 3px; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-body { grid-template-columns: 1fr; }
  .analytics-chart { border-left: none; border-bottom: 1px solid var(--border-color); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; right: 0; left: 0;
    background: var(--navbar-bg); backdrop-filter: blur(20px);
    padding: 24px; gap: 16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
  }
  .hero { padding-top: 110px; padding-bottom: 60px; min-height: auto; }
  .hero-badge { margin-bottom: 16px; }
  .hero h1 { margin-bottom: 16px; }
  .hero .hero-description { margin-bottom: 24px; }
  .hero-buttons { margin-bottom: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .conv-cards { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .analytics-stats { grid-template-columns: repeat(2, 1fr); }
  .analytics-stat { border-bottom: 1px solid var(--border-color); }
  .design-features { grid-template-columns: 1fr; }
  .design-preview { padding: 20px; }
  .design-bots { gap: 8px; }
  .design-bot { width: 90px; }
  .design-bot-header { padding: 8px 6px; font-size: 0.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-chatbot #boostbot-widget-root { width: 340px; }
  .process-flow { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .page-wrapper h1 { font-size: 2rem; }
  .page-wrapper h2 { font-size: 1.75rem; }
  .section-header h2 { font-size: 2rem; }
  .hero { padding-top: 96px; padding-bottom: 48px; }
  .hero-badge { white-space: normal; text-align: center; font-size: 0.8rem; padding: 8px 14px; max-width: 100%; box-sizing: border-box; margin-bottom: 14px; }
  .hero h1 { margin-bottom: 12px; }
  .hero .hero-description { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.65; }
  .hero-buttons { flex-direction: column; align-items: stretch; margin-bottom: 24px; }
  .btn-primary, .btn-secondary { justify-content: center; padding: 12px 20px; font-size: 0.95rem; max-width: 100%; box-sizing: border-box; word-break: break-word; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 100%; }
  .stat-item { padding: 20px 10px 16px; }
  .stat-number { font-size: 1.75rem; }
  .stat-label { font-size: 0.75rem; }
  .hero-chatbot #boostbot-widget-root { width: 100%; max-width: 100%; }
  .hero-chatbot { max-width: 100%; overflow: hidden; }
  .cta-badges { flex-direction: column; align-items: center; }
  .design-showcase { max-width: 100%; overflow: hidden; }
  .design-preview { padding: 14px; overflow: hidden; max-width: 100%; box-sizing: border-box; }
  .design-bots { gap: 4px; justify-content: center; max-width: 100%; }
  .design-bot { width: calc(33.333% - 4px); min-width: 0; max-width: 100%; }
  .design-bot-header { padding: 6px 4px; font-size: 0.65rem; overflow: hidden; text-overflow: ellipsis; }
  .design-bot-body { padding: 8px 6px; }
  .palette-swatch { width: 28px; height: 28px; }
  .palette-colors { flex-wrap: wrap; }
  .typography-samples { font-size: 0.75rem; }
  .typo-header, .typo-body, .typo-caption { white-space: normal; word-break: break-word; }
  .design-palette { overflow: hidden; }
  .section-header p { font-size: 0.9rem; }
  .conv-content p, .section-header p { word-break: break-word; }
  .analytics-dashboard { overflow: hidden; }
  .analytics-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .analytics-stat { padding: 10px 8px; }
  .process-step { padding: 16px 10px; }
  .pricing-card { padding: 24px 16px; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-btn { font-size: 0.9rem; padding: 14px 20px; }
}

/* Extra-narrow viewport fixes */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .page-wrapper h1 { font-size: 1.75rem; }
  .hero-badge { font-size: 0.75rem; padding: 6px 12px; }
  .btn-primary, .btn-secondary { padding: 11px 16px; font-size: 0.9rem; }
  .design-bot { width: calc(33.333% - 3px); }
  .design-bot-header { font-size: 0.6rem; }
  .widget-tabs { gap: 0; }
  .widget-tab { padding: 10px 12px; font-size: 0.8rem; }
}

/* Prevent horizontal overflow — page wrapper is the most reliable approach for RTL */
html {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}
.page-wrapper {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
}
/* Ensure all sections clip overflow */
.section, .section-alt, .cta-section, .footer {
  overflow: hidden;
  max-width: 100%;
}
.hero {
  max-width: 100%;
}
/* Force container children to respect boundaries on mobile */
@media (max-width: 768px) {
  .container {
    overflow-x: hidden;
  }
  .container > * {
    max-width: 100%;
  }
}

/* ── Bottom fixed bar (CTA + bubble wrapper) ── */
.bottom-fixed-bar {
  display: contents;
}

/* ── Floating CTA Button ── */
.floating-cta {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.35), 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: floatingPulse 3s ease-in-out infinite;
}
.floating-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(var(--accent-rgb), 0.45), 0 4px 12px rgba(0,0,0,0.15);
}
.floating-cta svg {
  flex-shrink: 0;
}

/* ── Scroll-to-top bubble ── */
#bb-scroll-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3BC2D0, #2BA8B5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(59,194,208,0.4), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
#bb-scroll-bubble.visible {
  opacity: 1;
  pointer-events: auto;
}
#bb-scroll-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(59,194,208,0.5), 0 4px 12px rgba(0,0,0,0.2);
}
#bb-scroll-bubble:active { transform: scale(0.95); }

@keyframes floatingPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.35), 0 2px 8px rgba(0,0,0,0.12); }
  50% { box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.5), 0 3px 10px rgba(0,0,0,0.15); }
}
@media (max-width: 768px) {
  .floating-cta {
    bottom: 16px;
    left: 16px;
    padding: 12px 18px;
    font-size: 0.85rem;
  }
  #bb-scroll-bubble {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }
  #bb-scroll-bubble svg { width: 24px; height: 24px; }
}
@media (max-width: 480px) {
  .bottom-fixed-bar {
    display: flex;
    flex-direction: row-reverse;
    position: fixed;
    bottom: 12px;
    left: 0;
    right: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    gap: 10px;
    pointer-events: none;
  }
  .bottom-fixed-bar > * { pointer-events: auto; }
  .floating-cta {
    position: static;
    padding: 12px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    animation: none;
  }
  .floating-cta:hover {
    transform: translateY(-3px) scale(1.03);
  }
  #bb-scroll-bubble {
    position: static;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
  #bb-scroll-bubble svg { width: 22px; height: 22px; }
}

/* Hide Pojo accessibility toolbar on landing page */
#pojo-a11y-toolbar,
#pojo-a11y-skip-content {
  display: none;
}

/* Hide chatbot close button on landing page — the bot stays open as part of the demo */
.bb-header-close {
  display: none !important;
}

/* ── Input attention-grabbing pulse until first interaction ── */
@keyframes bb-input-pulse {
  0%, 100% {
    border-color: #E5E7EB;
    box-shadow: 0 0 0 0 rgba(59, 194, 208, 0);
  }
  50% {
    border-color: #3BC2D0;
    box-shadow: 0 0 12px 3px rgba(59, 194, 208, 0.25);
  }
}

.bb-input.bb-input-attracting {
  animation: bb-input-pulse 2s ease-in-out infinite;
}

.bb-input.bb-input-attracting::placeholder {
  color: #16A34A !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
