:root {
  --primary: #7B1FA2;
  --primary-dark: #4A148C;
  --primary-light: #9C27B0;
  --accent: #E91E63;
  --dark: #0f0f0f;
  --dark-2: #1a1a2e;
  --dark-3: #16213e;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #4A148C 0%, #7B1FA2 50%, #E91E63 100%);
  --gradient-dark: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
  --shadow: 0 4px 24px rgba(123,31,162,0.15);
  --shadow-lg: 0 8px 40px rgba(123,31,162,0.25);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1f2937;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123,31,162,0.1);
  padding: 0 2rem;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 36px; width: 36px; border-radius: 8px; }
.nav-logo span { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); letter-spacing: -0.3px; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: #374151; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.btn-outline {
  padding: 0.5rem 1.25rem; border: 2px solid var(--primary);
  border-radius: 8px; color: var(--primary); font-weight: 600;
  text-decoration: none; font-size: 0.9rem; transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-primary {
  padding: 0.5rem 1.25rem; background: var(--gradient);
  border-radius: 8px; color: white; font-weight: 600;
  text-decoration: none; font-size: 0.9rem; transition: opacity 0.2s;
  box-shadow: var(--shadow);
}
.btn-primary:hover { opacity: 0.9; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #374151; border-radius: 2px; transition: all 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--gradient-dark);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 5rem 2rem 4rem;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(123,31,162,0.3) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(233,30,99,0.2) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(123,31,162,0.3); border: 1px solid rgba(123,31,162,0.5);
  border-radius: 100px; padding: 0.4rem 1rem; margin-bottom: 1.5rem;
  color: #d8b4fe; font-size: 0.85rem; font-weight: 500;
}
.hero-badge span { width: 6px; height: 6px; background: #a855f7; border-radius: 50%; animation: pulse 2s infinite; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; color: white; line-height: 1.15;
  letter-spacing: -1px; margin-bottom: 1.5rem;
}
.hero h1 .highlight {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
  font-size: 1.15rem; color: #9ca3af; margin-bottom: 2.5rem;
  max-width: 480px; line-height: 1.7;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-hero-primary {
  padding: 0.9rem 2rem; background: var(--gradient);
  border-radius: 12px; color: white; font-weight: 700;
  text-decoration: none; font-size: 1rem;
  box-shadow: 0 4px 20px rgba(123,31,162,0.4); transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(123,31,162,0.5); }
.btn-hero-secondary {
  padding: 0.9rem 2rem; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 12px;
  color: white; font-weight: 600; text-decoration: none; font-size: 1rem;
  transition: background 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.15); }

.hero-stats { display: flex; gap: 2.5rem; }
.stat { }
.stat-num { font-size: 1.5rem; font-weight: 800; color: white; }
.stat-label { font-size: 0.8rem; color: #9ca3af; margin-top: 2px; }

.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem; backdrop-filter: blur(10px);
}
.hero-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem;
}
.hero-card-header .dot { width: 12px; height: 12px; border-radius: 50%; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(34,197,94,0.2); border: 1px solid rgba(34,197,94,0.3);
  border-radius: 100px; padding: 0.25rem 0.75rem;
  color: #4ade80; font-size: 0.75rem; font-weight: 600;
  margin-left: auto;
}
.live-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: pulse 1.5s infinite; }

.match-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 0.75rem;
  display: flex; align-items: center; justify-content: space-between;
}
.fighter { display: flex; align-items: center; gap: 10px; }
.fighter-belt { width: 24px; height: 8px; border-radius: 3px; }
.fighter-name { font-size: 0.9rem; font-weight: 600; color: white; }
.score-box {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.5rem; font-weight: 800; color: white;
}
.score-box .vs { font-size: 0.75rem; color: #6b7280; font-weight: 400; }
.score-aka { color: #f87171; }
.score-ao { color: #60a5fa; }

.floating-card {
  position: absolute; background: white; border-radius: 12px;
  padding: 0.75rem 1rem; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 600; color: #1f2937;
  animation: float 3s ease-in-out infinite;
}
.floating-card.top-right { top: -20px; right: -20px; animation-delay: 0.5s; }
.floating-card.bottom-left { bottom: -15px; left: -15px; animation-delay: 1s; }
.floating-card .icon { font-size: 1.2rem; }

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: rgba(123,31,162,0.1);
  color: var(--primary); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 0.35rem 1rem; border-radius: 100px; margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  color: #111827; line-height: 1.2; letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.section-sub { font-size: 1.05rem; color: var(--gray); max-width: 560px; line-height: 1.7; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── FEATURES ── */
.features-bg { background: #fafafa; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem;
}
.feature-card {
  background: white; border: 1px solid #e5e7eb; border-radius: var(--radius-lg);
  padding: 1.75rem; transition: all 0.3s; cursor: default;
}
.feature-card:hover {
  border-color: rgba(123,31,162,0.3); transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(123,31,162,0.1); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3.5rem; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 36px; left: 12.5%; right: 12.5%;
  height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gradient); color: white;
  font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; box-shadow: 0 4px 16px rgba(123,31,162,0.3);
}
.step h3 { font-size: 1rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; }
.step p { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }

/* ── PRICING ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
  margin-top: 3.5rem; max-width: 800px; margin-left: auto; margin-right: auto;
}
.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
  max-width: 1200px !important;
  gap: 1.5rem;
}
.pricing-grid-3 .pricing-card {
  padding: 1.75rem 1.5rem;
  font-size: 0.92em;
}
.pricing-card {
  border: 2px solid #e5e7eb; border-radius: var(--radius-lg);
  padding: 2rem; position: relative; background: white;
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: white; font-size: 0.78rem; font-weight: 700;
  padding: 0.3rem 1rem; border-radius: 100px; white-space: nowrap;
}
.plan-name { font-size: 0.9rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--gray); margin-bottom: 0.75rem; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 0.5rem; }
.plan-price .amount { font-size: 2.5rem; font-weight: 800; color: #111827; }
.plan-price .period { font-size: 0.9rem; color: var(--gray); }
.plan-desc { font-size: 0.9rem; color: var(--gray); margin-bottom: 1.5rem; }
.plan-note {
  font-size: 0.78rem; color: var(--primary); font-weight: 600;
  background: rgba(123,31,162,0.07); border-radius: 8px;
  padding: 0.5rem 0.75rem; margin-bottom: 1.25rem;
}
.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: #374151; padding: 0.4rem 0;
}
.plan-features li .check { color: #22c55e; font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.plan-features li .cross { color: #d1d5db; font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.btn-plan {
  width: 100%; padding: 0.85rem; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; text-align: center;
  text-decoration: none; display: block; transition: all 0.2s;
  cursor: pointer; border: none;
}
.btn-plan-free {
  background: #f3f4f6; color: #374151;
}
.btn-plan-free:hover { background: #e5e7eb; }
.btn-plan-premium {
  background: var(--gradient); color: white;
  box-shadow: 0 4px 16px rgba(123,31,162,0.3);
}
.btn-plan-premium:hover { opacity: 0.9; }

/* ── TESTIMONIALS / TRUST ── */
.trust-bg { background: var(--gradient-dark); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.trust-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 1.75rem;
}
.trust-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.trust-text { font-size: 0.95rem; color: #d1d5db; line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.trust-author { display: flex; align-items: center; gap: 12px; }
.trust-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient); display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: white; font-size: 1rem;
  flex-shrink: 0;
}
.trust-name { font-weight: 700; font-size: 0.9rem; color: white; }
.trust-role { font-size: 0.8rem; color: #6b7280; }

/* ── CTA ── */
.cta-section {
  background: var(--gradient); text-align: center; padding: 5rem 2rem;
}
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: white; margin-bottom: 1rem; }
.cta-section p { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 1rem 2.5rem; background: white; color: var(--primary-dark);
  border-radius: 12px; font-weight: 800; font-size: 1.05rem;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

/* ── FOOTER ── */
footer {
  background: #0a0a0a; color: #9ca3af; padding: 3rem 2rem 1.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid #1f2937;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #9ca3af; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: #d8b4fe; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem; font-size: 0.85rem; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: #6b7280; text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: #9ca3af; }

/* ── LEGAL PAGES ── */
.legal-hero {
  background: var(--gradient-dark); padding: 7rem 2rem 3rem; text-align: center;
}
.legal-hero h1 { font-size: 2.5rem; font-weight: 800; color: white; margin-bottom: 0.5rem; }
.legal-hero p { color: #9ca3af; font-size: 0.95rem; }
.legal-content {
  max-width: 820px; margin: 0 auto; padding: 3rem 2rem 5rem;
}
.legal-content h2 { font-size: 1.35rem; font-weight: 700; color: #111827; margin: 2.5rem 0 0.75rem; }
.legal-content h3 { font-size: 1.1rem; font-weight: 700; color: #374151; margin: 1.5rem 0 0.5rem; }
.legal-content p { font-size: 0.95rem; color: #4b5563; line-height: 1.8; margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { font-size: 0.95rem; color: #4b5563; line-height: 1.8; margin-bottom: 0.4rem; }
.legal-content a { color: var(--primary); }
.legal-updated {
  display: inline-block; background: rgba(123,31,162,0.08);
  color: var(--primary); font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 2rem;
}

/* ── MOBILE NAV OVERLAY ── */
.nav-mobile {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
  z-index: 999; padding: 2rem;
  flex-direction: column; gap: 1.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.15rem; font-weight: 600; color: #374151; text-decoration: none; padding: 0.5rem 0; border-bottom: 1px solid #f3f4f6; }
.nav-mobile a:last-child { border: none; }

/* ── ANIMATIONS ── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── VERSION BADGE ── */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.version-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-block;
  animation: pulse 2s infinite;
}

/* ── AI FLOATING BUTTON ─────────────────────────────────────────────────────── */
.ai-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 0 14px;
  height: 52px;
  border: none;
  border-radius: 30px;
  background: var(--gradient);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(123,31,162,0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.ai-float-icon { font-size: 1.3rem; line-height: 1; }
.ai-float-label { letter-spacing: 0.01em; }
.ai-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 32px rgba(123,31,162,0.55);
}
.ai-float.active { box-shadow: 0 4px 12px rgba(123,31,162,0.4); transform: scale(0.97); }
.ai-float-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: #1f2937;
  color: #fff;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
@media (max-width: 500px) {
  .ai-float-label { display: none; }
  .ai-float { padding: 0; width: 52px; justify-content: center; border-radius: 50%; }
}

/* ── AI CHAT WINDOW ──────────────────────────────────────────────────────────── */
.ai-chat-window {
  position: fixed;
  bottom: 92px;
  right: 28px;
  z-index: 1099;
  width: 370px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18), 0 2px 8px rgba(123,31,162,0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.ai-chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--gradient);
  flex-shrink: 0;
}
.ai-chat-avatar-wrap {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.ai-chat-header-info { flex: 1; min-width: 0; }
.ai-chat-title { font-size: 0.95rem; font-weight: 700; color: #fff; }
.ai-chat-subtitle {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; color: rgba(255,255,255,0.85);
  margin-top: 1px;
}
.ai-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #4ADE80;
  border-radius: 50%;
  flex-shrink: 0;
}
.ai-chat-close {
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.ai-chat-close:hover { background: rgba(255,255,255,0.3); }

/* Messages */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.ai-chat-messages::-webkit-scrollbar { width: 4px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

.ai-msg { display: flex; }
.ai-msg-user { justify-content: flex-end; }
.ai-msg-bot { justify-content: flex-start; }

.ai-msg-bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
}
.ai-msg-user .ai-msg-bubble {
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg-bot .ai-msg-bubble {
  background: #f3f4f6;
  color: #1f2937;
  border-bottom-left-radius: 4px;
}

/* Suggested chips */
.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 0 2px;
}
.ai-chip {
  background: rgba(123,31,162,0.07);
  border: 1px solid rgba(123,31,162,0.25);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: 'Inter', sans-serif;
}
.ai-chip:hover {
  background: rgba(123,31,162,0.14);
  transform: translateY(-1px);
}

/* Typing dots */
.ai-typing-dots {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px !important;
}
.ai-typing-dots span {
  width: 7px; height: 7px;
  background: #9ca3af;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Input row */
.ai-chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: #fff;
}
.ai-chat-input {
  flex: 1;
  border: 1.5px solid #e5e7eb;
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background: #fafafa;
}
.ai-chat-input:focus { border-color: var(--primary); background: #fff; }
.ai-send-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(123,31,162,0.3);
}
.ai-send-btn:hover { transform: scale(1.1); box-shadow: 0 5px 16px rgba(123,31,162,0.45); }
.ai-send-btn:active { transform: scale(0.95); }

/* ── FEATURE CARD AI HIGHLIGHT ──────────────────────────────────────────────── */
.feature-card-ai {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #4A148C, #7B1FA2, #E91E63) border-box;
}
.feature-ai-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

/* ── AI SECTION ─────────────────────────────────────────────────────────────── */
.ai-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #fdf4ff 0%, #fff0f6 100%);
}
.ai-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) {
  .ai-section-inner { grid-template-columns: 1fr; gap: 40px; }
}
.ai-feature-list {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-feature-list li {
  font-size: 0.97rem;
  color: #374151;
}

/* Preview window */
.ai-chat-preview-window {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(123,31,162,0.18);
  overflow: hidden;
  max-width: 360px;
  margin: 0 auto;
}
.ai-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--gradient);
}
.ai-preview-avatar {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.2);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.ai-preview-title { font-size: 0.9rem; font-weight: 700; color: #fff; }
.ai-preview-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.7rem; color: rgba(255,255,255,0.85); margin-top: 1px;
}
.ai-preview-messages {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-preview-msg {
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 9px 13px;
  border-radius: 14px;
  max-width: 88%;
}
.ai-preview-msg-bot {
  background: #f3f4f6;
  color: #1f2937;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.ai-preview-msg-user {
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  margin-left: auto;
}
.ai-preview-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f0f0;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #9ca3af;
}
.ai-preview-input button {
  background: var(--gradient);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s;
}
.ai-preview-input button:hover { transform: scale(1.1); }

/* Navbar AI link */
.nav-ai-link {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700 !important;
}

/* ── TEMPLATE DOWNLOAD BUTTON ── */
.btn-template {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #16a34a;
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid #16a34a;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(22,163,74,0.1);
}
.btn-template:hover {
  background: #16a34a;
  color: #fff;
  transform: translateY(-2px);
}
.help-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}
.help-download-btn:hover { background: #15803d; transform: translateY(-1px); }

/* ── SCREENSHOTS ── */
.screenshots-section { padding: 5rem 0; background: var(--gray-light); }

.ss-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 3rem;
}

.ss-viewport {
  flex: 1;
  overflow: hidden;
  padding: 1rem 0 2rem;
}

.ss-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.ss-item {
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.phone-frame {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  border: 3px solid rgba(0,0,0,0.06);
  background: #fff;
  width: 100%;
  max-width: 220px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.phone-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px rgba(123,31,162,0.22);
}

.phone-frame img {
  width: 100%;
  display: block;
}

.ss-caption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  text-align: center;
}

.ss-btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(123,31,162,0.12);
  z-index: 2;
}

.ss-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

.ss-btn:disabled { opacity: 0.3; cursor: default; }

.ss-prev { margin-right: 16px; }
.ss-next { margin-left: 16px; }

.ss-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 0.5rem;
}

.ss-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.ss-dot.active {
  background: var(--primary);
  width: 24px;
}

/* ── DOWNLOAD ── */
.download-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f3e8ff 0%, #fdf4ff 60%, #fff 100%);
}

.download-inner {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.download-text { flex: 1; }

.dl-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0.75rem 0 1rem;
  line-height: 1.25;
}

.dl-sub {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.7;
}

.dl-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1a1a2e;
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(26,26,46,0.3);
}

.btn-play:hover {
  background: #0f0f1e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,26,46,0.4);
}

.btn-play-small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.85;
  line-height: 1;
}

.btn-play-large {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.btn-web-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--primary-dark);
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--primary);
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(123,31,162,0.1);
}

.btn-web-app:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-indus {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #e85d26;
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(232,93,38,0.3);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-indus:hover {
  background: #c94d1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,93,38,0.4);
}

.download-qr { flex: 0 0 auto; }

.qr-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(123,31,162,0.12);
  border: 1px solid rgba(123,31,162,0.08);
}

.qr-card img {
  border-radius: 10px;
  display: block;
}

.qr-label {
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

.qr-sub {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ss-item { flex: 0 0 calc((100% - 24px) / 2); }
  .download-inner { gap: 3rem; }
  .dl-title { font-size: 1.8rem; }
  .pricing-grid-3 { grid-template-columns: repeat(2, 1fr) !important; max-width: 800px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-content { order: -1; }
  .hero-visual { order: 1; }
  .floating-card { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-grid-3 { grid-template-columns: 1fr !important; max-width: 420px; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 1.5rem; }
  .download-inner { flex-direction: column; align-items: center; text-align: center; gap: 2.5rem; }
  .dl-sub { margin: 0 auto; }
  .dl-btns { justify-content: center; }
  .ss-btn { width: 40px; height: 40px; font-size: 1.3rem; }
  .ss-prev { margin-right: 10px; }
  .ss-next { margin-left: 10px; }
}
@media (max-width: 640px) {
  .ss-item { flex: 0 0 100%; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-btns { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { justify-content: center; }
  .dl-title { font-size: 1.5rem; }
  .dl-btns { flex-direction: column; align-items: center; }
  .btn-play, .btn-indus, .btn-web-app { width: 100%; max-width: 280px; justify-content: center; }
}
