/* =========================================
   NEXESIA V2 — PREMIUM DESIGN SYSTEM
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Core Palette */
  --color-bg: #06080f;
  --color-bg-card: #0d1117;
  --color-bg-card2: #111827;
  --color-bg-light: #0f1623;
  --color-surface: rgba(255,255,255,0.04);
  --color-surface-hover: rgba(255,255,255,0.07);
  --color-border: rgba(255,255,255,0.08);
  --color-border-hover: rgba(255,255,255,0.18);

  /* Brand Colors */
  --color-accent: #6366f1;
  --color-accent2: #8b5cf6;
  --color-accent3: #06b6d4;
  --color-accent-glow: rgba(99,102,241,0.35);
  --color-success: #10b981;
  --color-error: #f43f5e;
  --color-warning: #f59e0b;

  /* Text */
  --color-text: rgba(255,255,255,0.88);
  --color-text-muted: rgba(255,255,255,0.45);
  --color-text-faint: rgba(255,255,255,0.25);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.1) 100%);
  --gradient-hero: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(99,102,241,0.3) 0%, transparent 60%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-text: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  --gradient-accent-text: linear-gradient(135deg, #a5b4fc 0%, #c084fc 50%, #67e8f9 100%);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-glow: 0 0 60px rgba(99,102,241,0.2);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.06) inset, 0 20px 40px rgba(0,0,0,0.4);
  --shadow-hover: 0 0 0 1px rgba(99,102,241,0.5), 0 20px 60px rgba(99,102,241,0.15);

  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: 1.4rem; }
p  { font-size: 1.05rem; color: var(--color-text-muted); line-height: 1.7; }
a  { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

/* =========================================
   LAYOUT
   ========================================= */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; position: relative; z-index: 1; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.align-center { align-items: center; }
.gap-xl { gap: 5rem; }

/* =========================================
   UTILITIES
   ========================================= */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.mx-auto     { margin-left: auto; margin-right: auto; }
.mb-sm { margin-bottom: 1rem; } .mb-md { margin-bottom: 2rem; } .mb-lg { margin-bottom: 4rem; }
.mt-sm { margin-top: 1rem; }   .mt-md { margin-top: 2rem; }   .mt-lg { margin-top: 4rem; }
.mt-xl { margin-top: 3rem; }
.overflow-hidden { overflow: hidden; }
.hidden { display: none !important; }
.w-100 { width: 100%; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.text-sm { font-size: 0.875rem; }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success) !important; }
.text-error { color: var(--color-error) !important; }
.pb-lg { padding-bottom: 3rem; } .pt-lg { padding-top: 3rem; } .pt-sm { padding-top: 1rem; }

/* Gradient text utility */
.gradient-text {
  background: var(--gradient-accent-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes glow-pulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
@keyframes scroll-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 0.75rem)); } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes redirectSpin { to { transform: rotate(360deg); } }
@keyframes fadeSlideUp { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes borderGlow {
  0%,100% { border-color: rgba(99,102,241,0.3); box-shadow: 0 0 20px rgba(99,102,241,0.1); }
  50%      { border-color: rgba(139,92,246,0.6); box-shadow: 0 0 40px rgba(139,92,246,0.25); }
}

.animate-on-scroll { opacity: 0; will-change: transform, opacity; }
.fade-up  { transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.staggered-slide { transform: translateX(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.is-visible { opacity: 1 !important; transform: translate(0,0) !important; }

/* =========================================
   HEADER
   ========================================= */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.1rem 0;
  transition: var(--transition);
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6,8,15,0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.header.scrolled::before {
  background: rgba(6,8,15,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-icon { color: var(--color-accent); font-size: 1.5rem; }
.nav { display: flex; gap: 2rem; }
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.nav a:hover { color: white; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: white;
}
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.mobile-nav.active { transform: translateY(0); }
.mobile-close-btn { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; font-size: 2rem; cursor: pointer; color: white; }
.mobile-link { font-size: 1.75rem; font-weight: 800; color: white; letter-spacing: -0.03em; padding: 0.75rem 1rem; text-align: center; }
.mobile-cta { margin-top: 1.5rem; width: 80%; max-width: 300px; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  font-size: 0.95rem;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.08), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-sm  { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-lg  { padding: 1rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; padding: 1rem; }

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4), 0 1px 0 rgba(255,255,255,0.1) inset;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.55), 0 1px 0 rgba(255,255,255,0.15) inset;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.cta-glow:hover { box-shadow: 0 0 40px rgba(99,102,241,0.5); }
.shadow-hover:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.4); }

/* Nav CTA special */
.nav-cta {
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.35);
  color: #a5b4fc;
  font-size: 0.85rem;
}
.nav-cta:hover { background: rgba(99,102,241,0.25); border-color: rgba(99,102,241,0.6); color: white; transform: translateY(-1px); }

/* =========================================
   BADGE
   ========================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(99,102,241,0.25);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-header { margin-bottom: 3rem; max-width: 50rem; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: white;
  text-wrap: balance;
}
.section-description { font-size: 1.1rem; color: var(--color-text-muted); text-wrap: balance; }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 6rem;
  overflow: hidden;
}

/* Animated gradient orbs */
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(100px); z-index: 0; }
.hero-glow-1 {
  top: -10%; left: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
  animation: glow-pulse 6s ease-in-out infinite;
}
.hero-glow-2 {
  bottom: -15%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
  animation: glow-pulse 8s ease-in-out infinite 2s;
}
.hero-glow-3 {
  top: 30%; left: 40%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
  animation: glow-pulse 10s ease-in-out infinite 1s;
}

/* Grid lines background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 80%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content { width: 100%; }

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
/* Inline highlight in title */
.hero-title .highlight {
  background: var(--gradient-accent-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.avatar-group { display: flex; }
.avatar-group img {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  margin-left: -0.6rem;
  object-fit: cover;
}
.avatar-group img:first-child { margin-left: 0; }
.proof-text { display: flex; flex-direction: column; gap: 0.2rem; }
.stars { display: flex; gap: 0.1rem; color: #f59e0b; font-size: 0.9rem; }
.trust-line { font-size: 0.9rem; font-weight: 600; color: var(--color-text); margin: 0; }

/* Hero Visual */
.hero-visual { position: relative; z-index: 2; animation: float 7s ease-in-out infinite; }
.hero-graphic-wrapper { position: relative; width: 100%; perspective: 1200px; }
.isometric-mockup {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotateX(8deg) rotateY(-18deg) scale(0.95);
  transform-style: preserve-3d;
  box-shadow: 0 60px 120px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.demo-mockup {
  background: #0a0a0f;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotateX(2deg) rotateY(-5deg) !important;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.demo-iframe { width: 100%; min-height: 560px; height: 560px; border: none; background: transparent; }
.hero-graphic-wrapper:hover .isometric-mockup { transform: rotateX(4deg) rotateY(-10deg) scale(1.02); }

/* =========================================
   LOGO BAR
   ========================================= */
.logo-bar {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(255,255,255,0.02);
}
.trust-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--color-text-faint); text-transform: uppercase; margin-bottom: 1.5rem; }
.logos-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  opacity: 0.3;
  filter: grayscale(100%) brightness(2);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: white;
  transition: opacity 0.3s;
}
.logo-bar:hover .logos-flex { opacity: 0.5; }

/* =========================================
   GLASS CARD BASE
   ========================================= */
.glass-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.glass-card:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.2), 0 30px 60px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}

/* =========================================
   PROBLEM SECTION
   ========================================= */
.problem { background: var(--color-bg); }
.alert-card {
  background: var(--gradient-card);
  border: 1px solid rgba(244,63,94,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.alert-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,63,94,0.4), transparent);
}
.alert-card:hover {
  border-color: rgba(244,63,94,0.35);
  box-shadow: 0 0 40px rgba(244,63,94,0.1), 0 20px 40px rgba(0,0,0,0.3);
  transform: translateY(-5px);
}
.alert-card h3 { font-size: 1.35rem; font-weight: 900; margin-bottom: 0.75rem; color: white; }
.alert-card p  { color: var(--color-text-muted); font-size: 0.95rem; }
.icon-circle {
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.25rem;
  background: rgba(244,63,94,0.1);
  border: 1px solid rgba(244,63,94,0.15);
}

/* =========================================
   SOLUTION SECTION
   ========================================= */
.bg-light-slate { background: var(--color-bg-light); }
.solution-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border: 1px solid var(--color-border); }
.feature-list.structured-list { list-style: none; display: flex; flex-direction: column; gap: 2rem; }
.structured-list li { display: flex; gap: 1.25rem; align-items: flex-start; }
.icon-wrapper {
  width: 3rem; height: 3rem;
  border-radius: 12px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.structured-list li:hover .icon-wrapper { background: rgba(99,102,241,0.25); transform: scale(1.05); }
.icon-wrapper i { color: var(--color-accent); }
.structured-list h4 { font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: 0.3rem; }
.structured-list p { font-size: 0.95rem; }

/* =========================================
   BENTO GRID
   ========================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: min-content;
  gap: 1rem;
}
.bento-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.bento-card:hover {
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.15), 0 30px 60px rgba(0,0,0,0.4);
}
.bento-card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; color: white; position: relative; z-index: 2; }
.bento-card p  { color: var(--color-text-muted); font-size: 0.97rem; position: relative; z-index: 2; }
.bento-icon {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 2.25rem;
  color: var(--color-accent);
  opacity: 0.6;
  z-index: 1;
}
.span-2-col { grid-column: span 2; }
.span-full   { grid-column: span 4; }

/* Check items inside bento */
.bento-card .check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--color-text);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}
.bento-card .check-item:last-child { border-bottom: none; }
.bento-card .check-item i { color: var(--color-success); font-size: 1.1rem; flex-shrink: 0; }

/* Inline conversation bubble */
.convo-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}
.bubble-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.bubble-row.right { justify-content: flex-end; align-items: flex-end; }
.ai-avatar {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
}
.bubble {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  max-width: 80%;
}
.bubble.ai  { background: rgba(255,255,255,0.06); border: 1px solid var(--color-border); border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md); color: var(--color-text); }
.bubble.user { background: var(--gradient-brand); color: white; border-radius: var(--radius-md) var(--radius-md) 0 var(--radius-md); }
.bubble .bubble-label { font-size: 0.68rem; font-weight: 700; color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.35rem; }
.user-avatar { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); flex-shrink: 0; }

/* =========================================
   HOW IT WORKS
   ========================================= */
.how-it-works { background: var(--color-bg); }
.how-it-works .bento-card { justify-content: flex-start; padding: 2.5rem; }
.how-it-works .step-icon-circle {
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.step-icon-circle.blue  { background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.25); }
.step-icon-circle.blue i { color: var(--color-accent); }
.step-icon-circle.purple { background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.25); }
.step-icon-circle.purple i { color: var(--color-accent2); }
.step-icon-circle.green { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.2); }
.step-icon-circle.green i { color: var(--color-success); }

/* =========================================
   BENEFITS (dark accent section)
   ========================================= */
.benefits {
  background: linear-gradient(180deg, var(--color-bg) 0%, #0a0f1e 100%);
  position: relative;
  overflow: hidden;
}
.benefits::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  animation: borderGlow 4s ease-in-out infinite;
}
.stat-card + .stat-card { margin-top: 1rem; }
.stat-value { font-size: 4rem; font-weight: 900; line-height: 1; letter-spacing: -0.05em; }
.stat-value.green  { color: var(--color-success); }
.stat-value.blue   { color: #60a5fa; }
.stat-desc { font-size: 1.1rem; color: rgba(255,255,255,0.5); margin-top: 0.5rem; }

/* =========================================
   ROI CALCULATOR
   ========================================= */
.loss-calc-section { background: var(--color-bg-light); }
.bento-calc-card {
  max-width: 52rem;
  margin: 0 auto;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.bento-calc-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse 40% 40% at 50% 0%, rgba(99,102,241,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Segmented control */
.segmented-control {
  display: inline-flex;
  background: rgba(255,255,255,0.05);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  position: relative;
  border: 1px solid var(--color-border);
}
.segmented-btn {
  position: relative; z-index: 2;
  background: transparent; border: none;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem; font-weight: 700;
  font-family: var(--font);
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.3s;
}
.segmented-btn.active { color: white; }
.segmented-active-bg {
  position: absolute;
  top: 0.25rem; bottom: 0.25rem; left: 0.25rem;
  width: calc(33.33% - 0.17rem);
  background: var(--gradient-brand);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
  transition: transform 0.3s cubic-bezier(0.25,1,0.5,1);
  z-index: 1;
}

.calc-label { display: block; font-size: 1rem; font-weight: 800; color: white; margin-bottom: 1.5rem; text-align: center; }
.slider-container { position: relative; padding-top: 2.5rem; }
.slider-bubble {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  font-weight: 800; font-size: 1rem;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
}
.slider-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #8b5cf6;
}
.styled-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
}
.styled-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--color-accent);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(99,102,241,0.5);
  transition: transform 0.2s;
}
.styled-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.styled-slider::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--color-accent);
  cursor: pointer;
}

.currency-input-wrapper { position: relative; max-width: 22rem; margin: 0 auto; }
.input-symbol {
  position: absolute;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 700;
  color: var(--color-text-muted);
  pointer-events: none;
}
.deal-number-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1.4rem; font-weight: 800;
  color: white;
  font-family: var(--font);
  outline: none;
}
.deal-number-input:focus { border-color: rgba(99,102,241,0.5); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }

.calc-outputs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.calc-inputs-vertical { display: flex; flex-direction: column; gap: 4rem; }

.output-box {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid;
  position: relative;
  overflow: hidden;
}
.output-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.loss-box     { background: rgba(244,63,94,0.08);   border-color: rgba(244,63,94,0.2); }
.recovery-box { background: rgba(16,185,129,0.08);  border-color: rgba(16,185,129,0.25); box-shadow: 0 0 40px rgba(16,185,129,0.1); }
.impact-box   { background: rgba(99,102,241,0.08);  border-color: rgba(99,102,241,0.2); }

.output-box .out-label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.loss-box .out-label   { color: #fb7185; }
.recovery-box .out-label { color: var(--color-success); }
.impact-box .out-label { color: #818cf8; }

.output-box h3 { display: flex; align-items: center; justify-content: center; margin: 0; }
.out-sym { font-size: 1.5rem; margin-top: 2px; }
.loss-box h3 .out-sym,
.loss-box h3 span { color: #fb7185; }
.recovery-box h3 .out-sym,
.recovery-box h3 span { color: var(--color-success); }
.impact-box h3 .out-sym,
.impact-box h3 span { color: #818cf8; }

.calculator-note { font-size: 1rem; font-weight: 600; color: white; margin-top: 3rem; }
.result-subtext { font-size: 0.8rem; color: var(--color-text-faint); }

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials { background: var(--color-bg); }
.testimonials-marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.testimonials-grid { display: flex; gap: 1.25rem; width: max-content; animation: scroll-marquee 35s linear infinite; }
.testimonials-grid:hover { animation-play-state: paused; }
.testimonial-card {
  width: 22rem;
  flex-shrink: 0;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.testimonial-quote { font-size: 0.97rem; color: var(--color-text-muted); font-style: italic; flex-grow: 1; line-height: 1.65; }
.testimonial-author { display: flex; align-items: center; gap: 0.875rem; border-top: 1px solid var(--color-border); padding-top: 1.25rem; }
.testimonial-author img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; border: 1px solid var(--color-border); }
.testimonial-author-info strong { display: block; color: white; font-size: 0.9rem; font-weight: 700; }
.testimonial-author-info span { color: var(--color-text-faint); font-size: 0.8rem; }

/* =========================================
   FAQ
   ========================================= */
.faq-section { background: var(--color-bg-light); }
.faq-container { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: rgba(99,102,241,0.25); }
.faq-question {
  width: 100%; text-align: left;
  padding: 1.25rem 1.5rem;
  background: transparent; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1rem; font-weight: 700;
  color: white;
  font-family: var(--font);
  gap: 1rem;
}
.faq-icon { font-size: 1rem; flex-shrink: 0; transition: transform 0.3s; color: var(--color-accent); }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.active .faq-answer { padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--color-border); margin-top: 1rem; }
.faq-answer p { font-size: 0.97rem; color: var(--color-text-muted); }

/* =========================================
   CTA / CONTACT SECTION
   ========================================= */
.cta-section {
  padding: 6rem 0;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -20%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.check-list { list-style: none; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
}
.check-list i {
  color: var(--color-success);
  font-size: 1rem;
  background: rgba(16,185,129,0.15);
  border-radius: 50%;
  padding: 4px;
  width: 1.6rem; height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-wrapper { max-width: 36rem; margin-left: auto; width: 100%; }
.elevated-form {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.elevated-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.6), transparent);
}
.contact-form h3 { font-size: 1.5rem; color: white; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.5rem; font-size: 0.85rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  background: rgba(255,255,255,0.04);
  color: white;
  outline: none;
  transition: var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-faint); }
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(99,102,241,0.5); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-message { margin-top: 1rem; padding: 0.875rem; border-radius: var(--radius-md); text-align: center; font-weight: 600; font-size: 0.9rem; }
.form-message.success { background: rgba(16,185,129,0.1); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.2); }
.form-message.error-msg { background: rgba(244,63,94,0.1); color: #fda4af; border: 1px solid rgba(244,63,94,0.2); }
#form-success-container { min-height: 15rem; display: flex; flex-direction: column; justify-content: center; }
.redirect-spinner { width: 3rem; height: 3rem; border: 4px solid rgba(99,102,241,0.2); border-top-color: var(--color-accent); border-radius: 50%; animation: redirectSpin 1s linear infinite; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--color-bg-card);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--color-border);
}
.footer-container { display: flex; justify-content: space-between; align-items: flex-end; }
.footer-brand .logo { color: white; font-size: 1.5rem; margin-bottom: 0.75rem; }
.footer-brand p { color: var(--color-text-faint); font-size: 0.9rem; max-width: 22rem; }
.footer-bottom p { font-size: 0.85rem; color: var(--color-text-faint); }

/* =========================================
   FLOATING ELEMENTS
   ========================================= */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem; left: 2rem;
  width: 3.25rem; height: 3.25rem;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
  z-index: 100;
  transition: var(--transition);
}
.floating-whatsapp:hover { transform: scale(1.1) rotate(-8deg); box-shadow: 0 12px 40px rgba(37,211,102,0.55); }

.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 3rem; height: 3rem;
  background: var(--gradient-brand);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(99,102,241,0.55); }

/* =========================================
   RESPONSIVE — TABLET
   ========================================= */
@media (max-width: 62rem) {
  .nav, .nav-cta { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding-top: 7rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-actions { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-visual { animation: none; }
  .isometric-mockup { transform: none !important; }
  .demo-mockup { transform: none !important; }
  .demo-iframe { min-height: 440px; height: 440px; }
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .span-full { grid-column: span 2; }
  .calc-outputs-grid { grid-template-columns: 1fr; gap: 1rem; }
  .cta-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .check-list li { justify-content: center; }
  .form-wrapper { margin: 0 auto; }
  .footer-container { flex-direction: column; gap: 2rem; text-align: center; align-items: center; }
}

/* =========================================
   RESPONSIVE — MOBILE
   ========================================= */
@media (max-width: 48rem) {
  html { font-size: 15px; }
  .container { padding: 0 1rem; }
  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2rem; }
  .hero { padding-top: 6rem; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 22rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .demo-iframe { min-height: 380px; height: 380px; }
  .grid-3 { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .span-2-col { grid-column: 1; }
  .span-full { grid-column: 1; }
  .calc-outputs-grid { grid-template-columns: 1fr; }
  .bento-calc-card { padding: 1.75rem; }
  .elevated-form { padding: 1.75rem 1.25rem; }
  .testimonial-card { width: 18rem; }
  .faq-question { font-size: 0.95rem; }
  .floating-whatsapp { bottom: 1.25rem; left: 1.25rem; width: 3rem; height: 3rem; font-size: 1.5rem; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 2.75rem; height: 2.75rem; }
  .logos-flex { gap: 1.5rem; font-size: 1rem !important; }
  .staggered-slide { transform: translateY(1.5rem); }
}

@media (max-width: 25rem) {
  .section-title { font-size: 1.6rem; }
  .hero-title { font-size: 1.85rem; }
  .testimonial-card { width: 16rem; }
  .segmented-btn { padding: 0.5rem 0.85rem; font-size: 0.8rem; }
}
