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

:root {
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --emerald-500: #10b981;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}

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

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--green-600);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  flex-shrink: 0;
}

.logo span {
  color: var(--gray-900);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--green-600);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--green-700);
  color: var(--white) !important;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--gray-900);
}

.nav-hamburger svg {
  display: block;
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-nav-overlay.active {
  opacity: 1;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  z-index: 101;
  width: 280px;
  height: 100vh;
  background: var(--white);
  padding: 24px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 32px;
}

.mobile-nav-close button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  padding: 8px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-links a {
  display: block;
  text-decoration: none;
  color: var(--gray-700);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 12px;
  transition: background 0.2s;
}

.mobile-nav-links a:hover {
  background: var(--green-50);
  color: var(--green-700);
}

.mobile-nav-links .nav-cta {
  background: var(--green-600);
  color: var(--white) !important;
  text-align: center;
  margin-top: 8px;
  border-radius: 12px;
  padding: 14px 16px;
}

/* Hero */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--green-100);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--gray-900);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--green-600), var(--emerald-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  background: var(--green-700);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--gray-500);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── Category Showcase (new visual section) ── */
.categories {
  padding: 0 24px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

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

.category-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--green-100);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.category-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Stats */
.stats {
  padding: 80px 24px 0;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.stat {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--gray-100);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-600);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 500;
}

/* ── Promo Banner ── */
.promo-banner {
  padding: 60px 24px;
}

.promo-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.promo-card {
  border-radius: 20px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.promo-card-green {
  background: linear-gradient(135deg, var(--green-600), #059669);
  color: var(--white);
}

.promo-card-dark {
  background: linear-gradient(135deg, var(--gray-900), #1e293b);
  color: var(--white);
}

.promo-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  border-radius: 50%;
}

.promo-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
  position: relative;
}

.promo-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  letter-spacing: -0.01em;
}

.promo-card p {
  font-size: 0.92rem;
  opacity: 0.85;
  line-height: 1.6;
  position: relative;
}

.promo-card .btn {
  margin-top: 20px;
  align-self: flex-start;
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  font-size: 0.85rem;
}

.promo-card .btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Sections */
section {
  padding: 100px 24px;
}

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

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

.section-header-left {
  text-align: left;
}

/* ── Product Filter Tabs ── */
.product-filters {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--green-600);
  color: var(--green-600);
}

.filter-btn.active {
  background: var(--green-600);
  color: var(--white);
  border-color: var(--green-600);
}

/* Products */
#products {
  background: var(--gray-50);
}

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

.product-card {
  background: var(--white);
  border-radius: 14px;
  padding: 0;
  border: 1px solid var(--gray-200);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-600), var(--emerald-500));
  opacity: 0;
  transition: opacity 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.product-card-visual {
  background: var(--green-50);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.product-emoji {
  font-size: 3rem;
}

.product-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-600);
  margin-bottom: 8px;
}

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.product-desc {
  color: var(--gray-500);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
}

.product-tag {
  background: var(--green-50);
  color: var(--green-700);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

/* Why Us */
.section-split {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

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

.feature {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all 0.2s;
}

.feature:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--green-700);
  font-weight: 700;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature p {
  color: var(--gray-500);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Service panel / bundle sidebar */
.service-panel {
  position: sticky;
  top: 96px;
}

.service-panel-inner {
  background: linear-gradient(135deg, var(--green-600), #059669);
  border-radius: 20px;
  padding: 36px 28px;
  color: var(--white);
}

.service-panel-inner .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.service-panel-inner h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 8px 0;
  letter-spacing: -0.01em;
}

.service-panel-inner p {
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 20px;
}

.bundle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bundle-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
}

.bundle-item span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 4px;
}

.bundle-item strong {
  font-size: 0.88rem;
  font-weight: 600;
}

/* Eyebrow label */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-600);
  margin-bottom: 8px;
}

/* Testimonials */
#testimonials {
  background: var(--gray-50);
}

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

.testimonial {
  background: var(--white);
  padding: 32px 28px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
}

.stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial blockquote {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green-600);
}

.testimonial-author .name {
  font-weight: 600;
  font-size: 0.88rem;
}

.testimonial-author .role {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* CTA */
.cta {
  text-align: center;
  padding: 100px 24px;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--gray-900), #1e293b);
  border-radius: 20px;
  padding: 64px 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.25) 0%, transparent 60%);
  border-radius: 50%;
}

.cta-box .eyebrow {
  color: var(--emerald-500);
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
}

.cta-box p {
  color: #94a3b8;
  margin-bottom: 32px;
  font-size: 1.05rem;
  position: relative;
}

.cta-box .btn-primary {
  position: relative;
}

/* Footer */
footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 48px 24px;
}

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

.footer-left p {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gray-900);
}

/* ── Floating Assistant Button (Avatar style) ── */
.assistant-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), #059669);
  border: 3px solid var(--white);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.assistant-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(22, 163, 74, 0.55);
}

.assistant-fab:active {
  transform: scale(0.95);
}

.fab-avatar {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.fab-pulse {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 16px;
  height: 16px;
  background: #34d399;
  border-radius: 50%;
  border: 2.5px solid var(--white);
}

/* ── Assistant Popup ── */
.assistant-popup {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 899;
  width: 380px;
  max-height: calc(100vh - 140px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.95);
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.assistant-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Header */
.ap-header {
  background: linear-gradient(135deg, var(--green-600), #059669);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ap-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ap-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
}

.ap-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.ap-role {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ap-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
}

.ap-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.ap-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Body */
.ap-body {
  padding: 20px 16px;
  flex: 1;
  overflow-y: auto;
}

/* Option cards */
.ap-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.ap-option {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.ap-option:hover,
.ap-option.ap-option-active {
  border-color: var(--green-600);
  background: var(--green-50);
}

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

.ap-option-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.ap-icon-chat {
  background: var(--green-50);
  color: var(--green-600);
}

.ap-icon-talk {
  background: #f0fdf4;
  color: #16a34a;
}

.ap-option-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.ap-option-desc {
  font-size: 0.72rem;
  color: var(--gray-500);
}

/* Chat messages */
.ap-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 60px;
}

.chat-message {
  max-width: 85%;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  word-wrap: break-word;
}

.chat-message p {
  margin: 0;
}

.chat-message.alex {
  align-self: flex-start;
  background: var(--gray-50);
  color: var(--gray-700);
  border-radius: 14px 14px 14px 4px;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--green-600);
  color: var(--white);
  border-radius: 14px 14px 4px 14px;
}

/* Typing indicator */
.typing-indicator {
  align-self: flex-start;
  background: var(--gray-50);
  border-radius: 14px 14px 14px 4px;
  padding: 14px 20px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-500);
  animation: typingDot 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

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

/* Footer / input area */
.ap-footer {
  border-top: 1px solid var(--gray-100);
  padding: 14px 16px 16px;
  flex-shrink: 0;
}

.ap-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border-radius: 28px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--gray-200);
  margin-bottom: 14px;
}

.ap-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--gray-900);
  outline: none;
}

.ap-input::placeholder {
  color: var(--gray-500);
}

.ap-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-600);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ap-send:hover {
  background: var(--green-700);
}

/* Quick questions */
.ap-quick {
  margin-top: 0;
}

.ap-quick-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ap-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ap-chip {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.ap-chip:hover {
  background: var(--green-50);
  border-color: var(--green-600);
  color: var(--green-600);
}

/* Retell widget popup message hidden (we use our own greeting) */
retell-widget::part(popup-message),
.retell-widget-popup-message {
  display: none !important;
}

/* Voice Call Modal */
.voice-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.voice-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.vm-card {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  width: 340px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.voice-modal.active .vm-card {
  transform: scale(1) translateY(0);
}

.vm-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-avatar-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.vm-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--green-600);
  opacity: 0;
  z-index: 1;
}

.vm-avatar.speaking .vm-ripple {
  animation: ripple 2s ease-out infinite;
}

.vm-avatar.speaking .vm-ripple-2 {
  animation-delay: 0.4s;
}

.vm-avatar.speaking .vm-ripple-3 {
  animation-delay: 0.8s;
}

@keyframes ripple {
  0% {
    transform: scale(0.85);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.vm-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.vm-status {
  font-size: 0.88rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 4px;
}

.vm-timer {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
  margin-bottom: 28px;
}

.vm-hangup {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ef4444;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.vm-hangup:hover {
  background: #dc2626;
  transform: scale(1.08);
}

.vm-hangup:active {
  transform: scale(0.95);
}

/* ── Hero Grid Layout ── */
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
  position: relative;
  z-index: 1;
}

.hero-copy {
  position: relative;
}

.hero-notes {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.hero-note-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-600);
}

.hero-note-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Hero Stage (visual side) */
.hero-stage {
  position: relative;
  min-height: 480px;
}

.stage-card {
  border-radius: 20px;
  overflow: hidden;
}

.stage-card-main {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
  height: 100%;
}

.room-scene {
  background: linear-gradient(135deg, var(--green-50), #ecfdf5);
  height: 220px;
  position: relative;
  overflow: hidden;
}

.scene-shelf {
  position: absolute;
  bottom: 40px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: var(--green-600);
  opacity: 0.2;
  border-radius: 2px;
}

.scene-arch {
  position: absolute;
  top: 20px;
  right: 40px;
  width: 100px;
  height: 140px;
  border: 3px solid rgba(22, 163, 74, 0.15);
  border-radius: 50px 50px 0 0;
}

.scene-board {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 60px;
  height: 80px;
  background: rgba(22, 163, 74, 0.08);
  border-radius: 8px;
}

.scene-device {
  position: absolute;
  border-radius: 8px;
}

.scene-device-kettle {
  bottom: 50px;
  left: 50px;
  width: 40px;
  height: 50px;
  background: rgba(22, 163, 74, 0.2);
  border-radius: 8px 8px 12px 12px;
}

.scene-device-mixer {
  bottom: 50px;
  left: 110px;
  width: 35px;
  height: 60px;
  background: rgba(22, 163, 74, 0.15);
  border-radius: 6px;
}

.scene-device-bowl {
  bottom: 50px;
  right: 60px;
  width: 50px;
  height: 30px;
  background: rgba(22, 163, 74, 0.12);
  border-radius: 0 0 25px 25px;
}

.scene-device-bottle {
  bottom: 50px;
  right: 130px;
  width: 20px;
  height: 45px;
  background: rgba(22, 163, 74, 0.18);
  border-radius: 4px 4px 6px 6px;
}

.stage-copy {
  padding: 28px;
}

.stage-copy h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.stage-copy p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Floating sub-cards */
.stage-card-floating {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.stage-card-price {
  bottom: 20px;
  left: -30px;
  max-width: 220px;
}

.stage-card-ai {
  top: 20px;
  right: -20px;
  max-width: 210px;
}

.stage-mini-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-600);
  margin-bottom: 6px;
}

.stage-card-floating strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.stage-card-floating span {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.stage-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--gray-700);
}

.stage-list li {
  padding: 3px 0;
}

.stage-list li::before {
  content: '+ ';
  color: var(--green-600);
  font-weight: 700;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-copy {
    order: 1;
  }

  .hero-stage {
    order: 2;
    min-height: 360px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-notes {
    justify-content: center;
  }

  .stage-card-price {
    left: 10px;
  }

  .stage-card-ai {
    right: 10px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-split {
    grid-template-columns: 1fr;
  }

  .service-panel {
    position: static;
  }

  .promo-inner {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .mobile-nav-overlay,
  .mobile-nav {
    display: block;
  }

  .hero {
    padding: 130px 20px 80px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero-grid {
    text-align: center;
  }

  .hero-stage {
    display: none;
  }

  .hero-notes {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-card {
    padding: 20px 16px;
  }

  .category-icon {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--gray-100);
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--gray-100);
  }

  .stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card-visual {
    min-height: 90px;
    padding: 16px;
  }

  .product-emoji {
    font-size: 2.2rem;
  }

  .product-card-body {
    padding: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 48px 28px;
  }

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

  .promo-card {
    min-height: 180px;
    padding: 28px 24px;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  section {
    padding: 60px 20px;
  }

  .stats {
    padding: 40px 20px 0;
  }

  .promo-banner {
    padding: 40px 20px;
  }

  .product-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  /* Assistant popup full-width on mobile */
  .assistant-popup {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 96px;
    max-height: calc(100vh - 120px);
  }

  .assistant-fab {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none !important;
    border-bottom: 1px solid var(--gray-100);
  }

  .stat:last-child {
    border-bottom: none;
  }
}
