/* ============================================
   AccelerateAI — Premium Design System v2
   ============================================ */

:root {
  --bg: #0B0F1A;
  --primary: #5B8CFF;
  --primary-dim: rgba(91, 140, 255, 0.12);
  --primary-glow: rgba(91, 140, 255, 0.25);
  --accent: #00FFC6;
  --accent-dim: rgba(0, 255, 198, 0.1);
  --text: #FFFFFF;
  --text-muted: #8A96AE;
  --text-subtle: #5A6478;
  --card-bg: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-hover-border: rgba(91, 140, 255, 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --grid-color: rgba(91, 140, 255, 0.075);
  --grid-size: 60px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ---- Global grid background — fixed so it flows across all sections ---- */
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Subtle radial vignette for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, transparent 60%, rgba(11, 15, 26, 0.5) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Scroll progress bar ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(91, 140, 255, 0.6);
}

/* ---- Cursor glow ---- */
#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.035) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.6s var(--ease-out), top 0.6s var(--ease-out);
  will-change: left, top;
}

/* ---- Typography ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ---- Glass cards ---- */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.4s var(--ease-out),
              transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.08),
              0 24px 64px rgba(91, 140, 255, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-card-accent {
  background: rgba(0, 255, 198, 0.025);
  border: 1px solid rgba(0, 255, 198, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.4s var(--ease-out),
              transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-card-accent:hover {
  border-color: rgba(0, 255, 198, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 255, 198, 0.06),
              0 24px 64px rgba(0, 255, 198, 0.07),
              inset 0 1px 0 rgba(0, 255, 198, 0.05);
}

/* ---- Buttons ---- */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #4070E8 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(91, 140, 255, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

/* Shimmer sweep on hover */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transition: left 0.5s var(--ease-out);
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(91, 140, 255, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:active { transform: translateY(0); transition-duration: 0.1s; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.3s var(--ease-out),
              color 0.3s var(--ease-out),
              background 0.3s var(--ease-out),
              transform 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: rgba(91, 140, 255, 0.4);
  color: var(--text);
  background: var(--primary-dim);
  transform: translateY(-2px);
}

/* ---- Navbar ---- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out),
              padding 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}

#navbar.scrolled {
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--card-border);
  padding: 14px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-logo span { color: var(--primary); }

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.active-nav { color: var(--primary) !important; }
.active-nav::after { width: 100% !important; }

/* ---- Mobile nav ---- */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 15, 26, 0.97);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

#mobile-menu.open { display: flex; }

#mobile-menu a {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

#mobile-menu a:hover { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 300;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
}

/* ---- Hero ---- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  will-change: transform;
}

.hero-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.22) 0%, transparent 70%);
  top: -250px;
  right: -250px;
  animation: orb-float 10s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 255, 198, 0.12) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: orb-float 14s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.1) 0%, transparent 70%);
  top: 40%;
  left: 35%;
  animation: orb-float 8s ease-in-out infinite 2s;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  33%       { transform: translateY(-24px) scale(1.04); }
  66%       { transform: translateY(12px) scale(0.97); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 140, 255, 0.08);
  border: 1px solid rgba(91, 140, 255, 0.2);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(91, 140, 255, 0.9);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

.hero-badge .dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2.4s ease-in-out infinite;
  box-shadow: 0 0 6px var(--accent);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* Floating stat cards */
.stat-float {
  position: absolute;
  background: rgba(11, 15, 26, 0.7);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.stat-float .stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

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

.stat-float-1 { top: 28%; right: 6%; animation: card-drift 7s ease-in-out infinite; }
.stat-float-2 { top: 52%; right: 10%; animation: card-drift 9s ease-in-out infinite 1.5s; }
.stat-float-3 { top: 40%; right: 2%; animation: card-drift 6s ease-in-out infinite 3s; }

@keyframes card-drift {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ---- Sections ---- */
section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

/* Very subtle section differentiation — no harsh bg switches */
.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.012);
  pointer-events: none;
}

/* Top-edge highlight on each section transition */
.section-highlight-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 140, 255, 0.15), transparent);
}

/* ---- Pain cards ---- */
.pain-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 80, 80, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

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

.pain-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 60, 60, 0.07);
  border: 1px solid rgba(255, 60, 60, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.pain-card:hover .pain-icon { transform: scale(1.1); }

.pain-cost {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 100, 100, 0.8);
  background: rgba(255, 60, 60, 0.07);
  border: 1px solid rgba(255, 60, 60, 0.12);
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---- Solution pillars ---- */
.solution-pillar {
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.solution-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 255, 198, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 0 20px;
  transition: transform 0.3s var(--ease-out);
}

.glass-card-accent:hover .pillar-icon { transform: scale(1.08) rotate(-3deg); }

/* ---- Product cards ---- */
.product-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(91, 140, 255, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

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

.product-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 255, 198, 0.15);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.product-outcome {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.product-outcome::before {
  content: '→';
  color: var(--primary);
  flex-shrink: 0;
  font-weight: 700;
  margin-top: 1px;
}

/* ---- Process steps ---- */
.step-item {
  display: flex;
  gap: 28px;
  margin-bottom: 52px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #3A6AE8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 8px rgba(91, 140, 255, 0.07),
              0 4px 24px rgba(91, 140, 255, 0.3);
  letter-spacing: -0.02em;
}

.step-content { flex: 1; padding-top: 11px; }

.step-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 12px;
  text-transform: uppercase;
}

.step-chip-blue {
  background: rgba(91, 140, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(91, 140, 255, 0.18);
}

.step-chip-green {
  background: rgba(0, 255, 198, 0.07);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 198, 0.15);
}

/* ---- Stats ---- */
.stat-card {
  text-align: center;
  padding: 36px 24px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
}

/* ---- CTA section ---- */
.cta-box {
  background: linear-gradient(135deg,
    rgba(91, 140, 255, 0.07) 0%,
    rgba(0, 255, 198, 0.035) 100%
  );
  border: 1px solid rgba(91, 140, 255, 0.15);
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 40%, var(--accent) 60%, transparent 100%);
  opacity: 0.6;
}

/* Decorative corner accents */
.cta-box::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 198, 0.06) 0%, transparent 70%);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.trust-pill::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  font-size: 0.7rem;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--card-border);
  padding: 56px 0 36px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 140, 255, 0.2), transparent);
}

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.08s; }
.fade-up-delay-2 { transition-delay: 0.16s; }
.fade-up-delay-3 { transition-delay: 0.24s; }
.fade-up-delay-4 { transition-delay: 0.32s; }
.fade-up-delay-5 { transition-delay: 0.40s; }
.fade-up-delay-6 { transition-delay: 0.48s; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-inner { position: relative; z-index: 1; }

/* ---- Utility ---- */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary-color { color: var(--primary); }

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

/* ---- WhatsApp float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 50;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  animation: card-drift 5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.55);
  animation: none;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .stat-float { display: none; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .cta-box { padding: 52px 28px; }
  .stat-number { font-size: 2.75rem; }
  h1 { font-size: 2.5rem !important; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  h1 { font-size: 2.1rem !important; }
}

/* ---- Pricing section ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 44px 32px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out),
              transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}

/* Ghost tier number watermark */
.pricing-card::after {
  content: attr(data-tier);
  position: absolute;
  bottom: -20px;
  right: 14px;
  font-size: 6.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

.pricing-card:hover {
  border-color: rgba(91, 140, 255, 0.28);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(91, 140, 255, 0.09);
}

/* Authority — featured */
.pricing-card.featured {
  background: linear-gradient(160deg,
    rgba(91, 140, 255, 0.09) 0%,
    rgba(0, 255, 198, 0.04) 100%
  );
  border-color: rgba(91, 140, 255, 0.28);
  box-shadow: 0 8px 48px rgba(91, 140, 255, 0.1);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.pricing-card.featured:hover {
  border-color: rgba(91, 140, 255, 0.5);
  transform: translateY(-7px);
  box-shadow: 0 28px 80px rgba(91, 140, 255, 0.16);
}

/* Most Popular badge */
.popular-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0B0F1A;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 20px;
  width: fit-content;
}

/* Tier header */
.tier-num {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tier-name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}

.tier-tagline {
  font-size: 0.78rem;
  color: var(--text-subtle);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* Price block — sits between header and features */
.pricing-price-block {
  margin: 24px 0 28px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.setup-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 6px;
}

.setup-price {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 14px;
}

.setup-price .currency {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  vertical-align: super;
  line-height: 0;
  margin-right: 1px;
}

.retainer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 8px;
}

.retainer-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  flex-shrink: 0;
}

.retainer-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  text-align: right;
}

/* Feature list */
.tier-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tier-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.tier-feature svg { flex-shrink: 0; margin-top: 2px; }

.tier-feature.inherited {
  opacity: 0.45;
  font-style: italic;
  font-size: 0.75rem;
}

/* Add-ons row */
.addon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 900px) { .addon-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .addon-row { grid-template-columns: 1fr; } }

.addon-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.addon-item:hover {
  border-color: rgba(91, 140, 255, 0.22);
  background: rgba(91, 140, 255, 0.035);
}

.addon-num {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 2px;
}

.addon-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.addon-price {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

/* ---- Capability chips (bespoke card) ---- */
.capability-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: 100px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: default;
}

.capability-chip:hover {
  color: var(--text);
  border-color: rgba(91, 140, 255, 0.35);
  background: var(--primary-dim);
}

/* ---- T&C page ---- */
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.terms-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.terms-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 24px 0 8px;
}

.terms-content p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.terms-content ul {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 20px;
}

.terms-content li { margin-bottom: 8px; }

.terms-content a {
  color: var(--primary);
  text-decoration: none;
}

/* ── Chat Widget ─────────────────────────────────────── */

#chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Toggle button */
#chat-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0B0F1A;
  border: none;
  border-radius: 100px;
  padding: 14px 22px 14px 18px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(91, 140, 255, 0.35);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), opacity 0.2s;
  animation: chatPulse 3s ease-in-out infinite;
}

#chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(91, 140, 255, 0.5);
}

#chat-toggle.chat-toggle-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

@keyframes chatPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(91,140,255,0.35); }
  50%       { box-shadow: 0 8px 48px rgba(0,255,198,0.45); }
}

.chat-toggle-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Panel */
#chat-panel {
  width: 360px;
  height: 520px;
  background: rgba(13, 17, 28, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(91,140,255,0.08);
  backdrop-filter: blur(20px);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

#chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* Header */
#chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(91,140,255,0.12), rgba(0,255,198,0.06));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  color: #0B0F1A;
  flex-shrink: 0;
}

.chat-agent-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.chat-agent-status {
  font-size: 0.68rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-agent-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: chatPulse 2s ease-in-out infinite;
}

#chat-close {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

#chat-close:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* Messages */
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-track { background: transparent; }
#chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.chat-msg { display: flex; }
.chat-msg-assistant { justify-content: flex-start; }
.chat-msg-user      { justify-content: flex-end; }

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.chat-msg-assistant .chat-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg-user .chat-bubble {
  background: rgba(91, 140, 255, 0.18);
  border: 1px solid rgba(91, 140, 255, 0.25);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: typingDot 1.2s ease-in-out infinite;
}

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

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

/* Success state */
.chat-success {
  text-align: center;
  padding: 16px;
  background: rgba(0, 255, 198, 0.05);
  border: 1px solid rgba(0, 255, 198, 0.15);
  border-radius: 14px;
  margin-top: 4px;
}

.chat-success-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0B0F1A;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.chat-success-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Input area */
#chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

#chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 9px 16px;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

#chat-input::placeholder { color: var(--text-subtle); }

#chat-input:focus {
  border-color: rgba(91, 140, 255, 0.4);
}

#chat-input:disabled {
  opacity: 0.5;
}

#chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, opacity 0.2s;
}

#chat-send:hover { transform: scale(1.08); }
#chat-send:disabled { cursor: not-allowed; }

/* Mobile */
@media (max-width: 480px) {
  #chat-widget { bottom: 16px; right: 16px; left: 16px; align-items: flex-end; }
  #chat-panel  { width: 100%; height: 480px; }
}

.terms-content a:hover { text-decoration: underline; }
