/* ============================================
   UltraSmartAgent.Market - Core Styles
   Premium AI Agent Marketplace Landing Page
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --primary: #6C3AED;
  --primary-light: #8B5CF6;
  --primary-dark: #5B21B6;
  --accent: #06B6D4;
  --accent-light: #22D3EE;
  --accent-dark: #0891B2;
  --emerald: #10B981;
  --emerald-light: #34D399;
  --rose: #F43F5E;
  --amber: #F59E0B;
  --bg-dark: #030712;
  --bg-card: #0F172A;
  --bg-card-hover: #1E293B;
  --bg-glass: rgba(15, 23, 42, 0.6);
  --bg-glass-light: rgba(30, 41, 59, 0.4);
  --border-glass: rgba(99, 102, 241, 0.15);
  --border-glow: rgba(6, 182, 212, 0.3);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --gradient-primary: linear-gradient(135deg, #6C3AED 0%, #06B6D4 100%);
  --gradient-hero: linear-gradient(135deg, #6C3AED 0%, #06B6D4 50%, #10B981 100%);
  --gradient-card: linear-gradient(145deg, rgba(108, 58, 237, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  --gradient-dark: linear-gradient(180deg, #030712 0%, #0F172A 50%, #030712 100%);
  --shadow-glow: 0 0 30px rgba(108, 58, 237, 0.15), 0 0 60px rgba(6, 182, 212, 0.08);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-med: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.section-title { margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

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

section {
  padding: 100px 0;
  position: relative;
}

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

/* --- Glassmorphism Card --- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: all var(--transition-med);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 58, 237, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(108, 58, 237, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid rgba(108, 58, 237, 0.4);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(108, 58, 237, 0.1);
  box-shadow: 0 0 20px rgba(108, 58, 237, 0.2);
}

.btn-glow {
  background: var(--gradient-hero);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 58, 237, 0.3), 0 0 40px rgba(6, 182, 212, 0.15);
  font-size: 1.1rem;
  padding: 16px 40px;
  border-radius: var(--radius-md);
}

.btn-glow:hover {
  box-shadow: 0 6px 30px rgba(108, 58, 237, 0.5), 0 0 60px rgba(6, 182, 212, 0.25);
  transform: translateY(-3px) scale(1.02);
}

/* --- Particle Canvas --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* --- Header / Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-med);
}

.navbar.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: opacity var(--transition-fast);
  z-index: 10;
}

.logo:hover { opacity: 0.85; }

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: var(--gradient-hero);
  z-index: -1;
  opacity: 0.5;
  filter: blur(8px);
}

.logo-icon svg { width: 24px; height: 24px; }

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text span { color: var(--accent); }

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

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

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

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.9rem !important;
  border-radius: var(--radius-sm) !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10;
  padding: 4px;
}

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

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) { opacity: 0; }

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -100px;
  animation: orbFloat1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  bottom: -200px;
  left: -150px;
  animation: orbFloat2 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--emerald);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 6s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 58, 237, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 58, 237, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(108, 58, 237, 0.12);
  border: 1px solid rgba(108, 58, 237, 0.25);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

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

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Floating UI elements in hero */
.hero-float-card {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  z-index: 3;
  box-shadow: var(--shadow-card);
}

.hero-float-card .icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.float-card-1 {
  top: 25%;
  left: 3%;
  animation: floatCard1 6s ease-in-out infinite;
}

.float-card-2 {
  top: 18%;
  right: 3%;
  animation: floatCard2 7s ease-in-out infinite;
}

.float-card-3 {
  bottom: 18%;
  left: 8%;
  animation: floatCard1 8s ease-in-out infinite 1s;
}

.float-card-4 {
  bottom: 22%;
  right: 5%;
  animation: floatCard2 6s ease-in-out infinite 0.5s;
}

/* --- Problem Section --- */
.problem-section { background: var(--bg-dark); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.problem-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--amber));
  opacity: 0;
  transition: opacity var(--transition-med);
}

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

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.problem-card h4 { margin-bottom: 12px; }
.problem-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* --- Solution Section --- */
.solution-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(108, 58, 237, 0.03) 50%, var(--bg-dark) 100%);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.solution-visual {
  position: relative;
}

.solution-diagram {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.diagram-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 40px rgba(108, 58, 237, 0.4), 0 0 80px rgba(6, 182, 212, 0.15);
  animation: diagramPulse 3s ease-in-out infinite;
  z-index: 2;
}

.diagram-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(108, 58, 237, 0.2);
  animation: orbitSpin 20s linear infinite;
}

.diagram-orbit:nth-child(2) {
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
}

.diagram-orbit:nth-child(3) {
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  animation-duration: 30s;
  animation-direction: reverse;
}

.diagram-orbit:nth-child(4) {
  width: 430px;
  height: 430px;
  margin: -215px 0 0 -215px;
  animation-duration: 40s;
}

.orbit-node {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(108, 58, 237, 0.2);
}

.orbit-node:nth-child(1) { top: -22px; left: 50%; margin-left: -22px; }
.orbit-node:nth-child(2) { bottom: -22px; left: 50%; margin-left: -22px; }
.orbit-node:nth-child(3) { top: 50%; left: -22px; margin-top: -22px; }
.orbit-node:nth-child(4) { top: 50%; right: -22px; margin-top: -22px; }

.solution-content h3 {
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.solution-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.solution-features { display: flex; flex-direction: column; gap: 16px; }

.solution-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid transparent;
  transition: all var(--transition-med);
}

.solution-feature:hover {
  border-color: var(--border-glow);
  background: rgba(6, 182, 212, 0.05);
}

.solution-feature .check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.solution-feature h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.solution-feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* --- Features Section --- */
.features-section { background: var(--bg-dark); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(108, 58, 237, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  position: relative;
}

.feature-icon.purple {
  background: rgba(108, 58, 237, 0.12);
  border: 1px solid rgba(108, 58, 237, 0.25);
}

.feature-icon.cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.feature-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.feature-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.feature-icon.rose {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.feature-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.feature-card h4 { margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* --- Stats Section --- */
.stats-section {
  background: linear-gradient(180deg, rgba(108, 58, 237, 0.03) 0%, var(--bg-dark) 50%, rgba(6, 182, 212, 0.03) 100%);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.stat-card {
  text-align: center;
  padding: 36px 20px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.stats-chart-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.chart-card {
  padding: 32px;
}

.chart-card h4 {
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-item { display: flex; align-items: center; gap: 16px; }

.bar-label {
  width: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 28px;
  background: rgba(108, 58, 237, 0.08);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 14px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.bar-fill::after {
  content: attr(data-value);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.bar-fill.purple { background: var(--gradient-primary); }
.bar-fill.cyan { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.bar-fill.emerald { background: linear-gradient(90deg, var(--emerald), var(--emerald-light)); }

/* Donut chart */
.donut-chart-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}

.donut-svg { width: 160px; height: 160px; flex-shrink: 0; }

.donut-legends {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.donut-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.donut-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Use Cases Section --- */
.usecases-section { background: var(--bg-dark); }

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.usecase-card {
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.usecase-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transition: transform var(--transition-med);
}

.usecase-card:hover::before { transform: scaleX(1); }

.usecase-emoji {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.usecase-card h4 { margin-bottom: 12px; }
.usecase-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

.usecase-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.usecase-tag {
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: 50px;
  background: rgba(108, 58, 237, 0.1);
  border: 1px solid rgba(108, 58, 237, 0.2);
  color: var(--primary-light);
}

/* --- Pricing Section --- */
.pricing-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(108, 58, 237, 0.04) 50%, var(--bg-dark) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}

.pricing-card {
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.04);
  z-index: 2;
}

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

.pricing-popular {
  position: absolute;
  top: 16px;
  right: -32px;
  padding: 4px 40px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gradient-primary);
  color: white;
  transform: rotate(45deg);
}

.pricing-tier {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

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

.pricing-feature .check-icon {
  color: var(--emerald);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.pricing-feature .cross-icon {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  opacity: 0.5;
}

.pricing-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
}

/* Comparison Table */
.comparison-table-wrap {
  margin-top: 80px;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table thead th {
  padding: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 2px solid var(--border-glass);
  color: var(--text-primary);
}

.comparison-table thead th:first-child { text-align: left; }

.comparison-table tbody td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
}

.comparison-table tbody tr:hover {
  background: rgba(108, 58, 237, 0.04);
}

.table-check { color: var(--emerald); font-weight: bold; }
.table-cross { color: var(--text-muted); opacity: 0.4; }

/* --- FAQ Section --- */
.faq-section { background: var(--bg-dark); }

.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: left;
}

.faq-question:hover {
  border-color: var(--border-glow);
  background: rgba(6, 182, 212, 0.05);
}

.faq-question.active {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-color: var(--border-glow);
}

.faq-chevron {
  transition: transform var(--transition-fast);
  font-size: 0.9rem;
  color: var(--accent);
}

.faq-question.active .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-med);
}

.faq-answer-inner {
  padding: 20px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* --- Final CTA Section --- */
.final-cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(108, 58, 237, 0.12) 0%, transparent 70%);
}

.final-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta-content h2 { margin-bottom: 20px; }

.final-cta-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-glass);
  background: rgba(3, 7, 18, 0.8);
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(99, 102, 241, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

/* --- Floating Side CTA --- */
.floating-cta {
  position: fixed;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.floating-cta.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Desktop: right side */
.floating-cta-desktop {
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(100%);
}

.floating-cta-desktop.visible {
  transform: translateY(-50%) translateX(0);
}

.floating-cta-desktop .cta-tab {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 20px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  cursor: pointer;
  box-shadow: -4px 0 20px rgba(108, 58, 237, 0.3);
  transition: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-cta-desktop .cta-tab:hover {
  box-shadow: -4px 0 20px rgba(108, 58, 237, 0.3);
}

/* Mobile: bottom */
.floating-cta-mobile {
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  display: none;
}

.floating-cta-mobile.visible {
  transform: translateY(0);
}

.floating-cta-mobile .cta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 -4px 20px rgba(108, 58, 237, 0.3);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(108, 58, 237, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--transition-med);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(108, 58, 237, 0.5);
}

/* --- Popup / Modal (Enhanced + Responsive) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, backdrop-filter 0.5s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: modalBgFade 0.5s ease-out;
}

.modal-box {
  width: 100%;
  max-width: 540px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(3, 7, 18, 0.98));
  border: 1px solid rgba(108, 58, 237, 0.2);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  position: relative;
  transform: translateY(60px) scale(0.92);
  opacity: 0;
  transition: none;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(108, 58, 237, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Scrollbar styling for modal */
.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb {
  background: rgba(108, 58, 237, 0.3);
  border-radius: 3px;
}

.modal-overlay.active .modal-box {
  animation: modalSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Decorative glow orbs inside modal */
.modal-box::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(108, 58, 237, 0.12);
  filter: blur(60px);
  pointer-events: none;
}

.modal-box::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  filter: blur(50px);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  z-index: 5;
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--rose);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.modal-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(108, 58, 237, 0.2), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(108, 58, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: zoomPulse 3s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(108, 58, 237, 0.15);
}

.modal-header h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Trust badges in modal */
.modal-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.modal-trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(108, 58, 237, 0.06);
  border: 1px solid rgba(108, 58, 237, 0.1);
}

.modal-trust-badge span { font-size: 0.85rem; }

.form-group {
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1), 0 0 20px rgba(6, 182, 212, 0.05);
  background: rgba(15, 23, 42, 0.9);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(108, 58, 237, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea { resize: vertical; min-height: 72px; }

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option { background: var(--bg-card); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-submit {
  width: 100%;
  margin-top: 10px;
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  padding: 15px;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
  position: relative;
  z-index: 2;
}

/* --- Enhanced Section Dividers --- */
.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), rgba(6, 182, 212, 0.2), var(--border-glass), transparent);
  margin: 0 auto;
  max-width: 800px;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(108, 58, 237, 0.4);
}

/* --- Enhanced Hero Floating Cards --- */
.hero-float-card {
  animation-timing-function: ease-in-out !important;
}

.hero-float-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(108, 58, 237, 0.15), rgba(6, 182, 212, 0.1));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

/* --- Enhanced Problem Cards --- */
.problem-card .problem-icon {
  transition: all 0.4s ease;
}

.problem-card:hover .problem-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
}

/* --- Enhanced Feature Cards --- */
.feature-card .feature-icon {
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.12);
  box-shadow: 0 0 25px rgba(108, 58, 237, 0.2);
}

/* --- Enhanced Stat Cards --- */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transition: none;
}

.stat-card:hover::after {
  animation: slideShine 0.8s ease-out forwards;
}

/* --- Enhanced Pricing Cards --- */
.pricing-card {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(108, 58, 237, 0.1);
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-8px);
}

/* --- Enhanced Use Case Cards --- */
.usecase-card .usecase-emoji {
  transition: transform 0.4s ease;
}

.usecase-card:hover .usecase-emoji {
  transform: scale(1.2) rotate(8deg);
}

/* --- Enhanced FAQ --- */
.faq-question {
  position: relative;
  overflow: hidden;
}

.faq-question::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108, 58, 237, 0.03), transparent);
  pointer-events: none;
}

.faq-question:hover::after {
  animation: slideShine 0.6s ease-out forwards;
}

/* --- Enhanced Buttons (all buttons get ripple-ready + glow) --- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: none;
}

.btn:hover::after {
  animation: slideShine 0.6s ease-out forwards;
}

.btn-glow {
  animation: electricBorder 4s ease-in-out infinite;
}

.btn-glow:hover {
  animation: none;
  box-shadow: 0 8px 40px rgba(108, 58, 237, 0.5), 0 0 60px rgba(6, 182, 212, 0.25), 0 0 100px rgba(108, 58, 237, 0.15);
}

/* --- Remove all effects from nav, floating CTA, and back-to-top --- */
.navbar .btn,
.floating-cta .cta-tab,
.floating-cta .cta-bar,
.back-to-top,
.nav-cta {
  animation: none !important;
}

.navbar .btn::after,
.floating-cta .cta-tab::after,
.floating-cta .cta-bar::after,
.back-to-top::after {
  display: none !important;
}

.back-to-top {
  transform: none;
}

.back-to-top.visible {
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* --- Back to Top: no animation, clean transition only --- */

/* --- Responsive (Enhanced + Modal-focused) --- */
@media (max-width: 1024px) {
  .solution-grid { grid-template-columns: 1fr; gap: 40px; }
  .solution-visual { order: -1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-8px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-chart-area { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-card-1, .float-card-2, .float-card-3, .float-card-4 { display: none; }

  .modal-box { max-width: 480px; padding: 36px 32px; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    z-index: 5;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .mobile-toggle { display: flex; }

  .hero { min-height: auto; padding: 130px 0 70px; }
  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 1.5rem; }

  .features-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .floating-cta-desktop { display: none !important; }
  .floating-cta-mobile { display: block; }
  .back-to-top { bottom: 80px; right: 20px; }

  /* Modal responsive — full-width drawer from bottom */
  .modal-overlay { padding: 0; align-items: flex-end; }

  .modal-box {
    max-width: 100%;
    width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 32px 24px 40px;
    max-height: 88vh;
    margin: 0;
  }

  .modal-overlay.active .modal-box {
    animation: modalSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  /* Drag indicator for mobile modal */
  .modal-box::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
    /* Override the glow orb */
    filter: none;
  }

  .modal-box::after {
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
  }

  .modal-header { margin-bottom: 20px; }
  .modal-icon-wrap { width: 60px; height: 60px; font-size: 1.6rem; margin-bottom: 14px; }
  .modal-header h3 { font-size: 1.3rem; }
  .modal-header p { font-size: 0.85rem; }
  .modal-trust { gap: 10px; margin-bottom: 18px; }
  .modal-trust-badge { font-size: 0.7rem; padding: 3px 10px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group { margin-bottom: 14px; }
  .form-group input, .form-group select, .form-group textarea { padding: 12px 14px; font-size: 0.9rem; }
  .form-group label { font-size: 0.8rem; margin-bottom: 5px; }
  .form-group textarea { min-height: 60px; }
  .form-submit { font-size: 0.95rem; padding: 14px; }
  .form-note { font-size: 0.72rem; margin-top: 10px; }

  .donut-chart-wrap { flex-direction: column; align-items: center; text-align: center; }
  .solution-diagram { max-width: 320px; }

  /* Hide cursor glow on touch devices */
  .cursor-glow { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .usecases-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .comparison-table-wrap { margin: 40px -16px 0; padding: 0 16px; }

  .modal-overlay { padding: 0; }
  .modal-box {
    padding: 28px 18px 36px;
    max-height: 90vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-close { top: 12px; right: 12px; width: 34px; height: 34px; }
  .modal-icon-wrap { width: 52px; height: 52px; font-size: 1.4rem; }
  .modal-header h3 { font-size: 1.15rem; }
  .modal-trust { display: none; }
}

@media (max-width: 360px) {
  .modal-box { padding: 24px 14px 32px; }
  .form-group input, .form-group select, .form-group textarea { padding: 11px 12px; font-size: 0.88rem; }
}


/* SMTP form status */
.form-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fecaca;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-submit:disabled,
.modal-close:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}
