/* ============================================
   VEGATECH LTD - Premium Enterprise SaaS Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Right Tail–inspired design system */
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --secondary: #6366f1;
  --secondary-dark: #4f46e5;
  --secondary-light: #818cf8;
  --accent: #f17463;
  --primary-rgb: 59, 130, 246;
  --secondary-rgb: 99, 102, 241;

  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #09090b;

  --dark-bg: #09090b;
  --dark-surface: #0f172a;
  --dark-deep: #020617;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --border-divide: #eaedf1;

  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --gradient-hero: linear-gradient(165deg, #020617 0%, #0f172a 38%, #09090b 100%);
  --gradient-text: linear-gradient(to bottom right, #e2e8f0, #f8fafc, #ffffff);
  --gradient-display: linear-gradient(to bottom right, #52525b, #3f3f46, #0f172a);
  --gradient-card: linear-gradient(145deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(var(--primary-rgb), 0.02) 100%);
  --gradient-cta: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
  --shadow-primary: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
  --shadow-primary-lg: 0 20px 25px -5px rgba(59, 130, 246, 0.35);

  --glass: rgba(255, 255, 255, 0.72);
  --glass-dark: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(229, 231, 235, 0.8);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
  --header-height: 72px;
  --on-primary: #ffffff;
  --on-dark-bg: #f8fafc;
}

/* Dark mode */
[data-theme="dark"] {
  color-scheme: dark;

  --white: #111827;
  --gray-50: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  --gray-950: #030712;

  --primary-50: rgba(59, 130, 246, 0.14);
  --primary-100: rgba(59, 130, 246, 0.22);
  --border-divide: #334155;

  --glass: rgba(17, 24, 39, 0.92);
  --glass-border: rgba(51, 65, 85, 0.65);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
  --shadow-primary: 0 10px 15px -3px rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] body {
  background: var(--gray-950);
  color: var(--gray-600);
}

html.theme-transition,
html.theme-transition * {
  transition: background-color 0.25s ease, color 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 960px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--gray-900);
  line-height: 1.2;
  font-weight: 700;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--border-divide);
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-label::before { display: none; }

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary-lg);
}

.btn-brand {
  background: var(--white);
  color: var(--dark-bg);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-brand:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
  transform: translateY(-1px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Header - Right Tail transparent over dark hero */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--primary);
  z-index: 1100;
  transition: width 0.1s linear;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled,
.header.header-light {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-over-dark:not(.scrolled):not(.header-light) .nav-link {
  color: rgba(255, 255, 255, 0.75);
}

.header-over-dark:not(.scrolled):not(.header-light) .nav-link:hover,
.header-over-dark:not(.scrolled):not(.header-light) .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.header-over-dark:not(.scrolled):not(.header-light) .mobile-toggle span {
  background: #ffffff;
}

.header-over-dark:not(.scrolled):not(.header-light) .nav-cta .btn-primary {
  background: #ffffff;
  color: #09090b;
  box-shadow: none;
}

.header-over-dark:not(.scrolled):not(.header-light) .nav-cta .btn-primary:hover {
  background: #f3f4f6;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
  z-index: 1002;
}

.theme-toggle:hover {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon { display: block; }
.theme-icon-sun { display: none; }

[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }

.header-over-dark:not(.scrolled):not(.header-light) .theme-toggle {
  color: rgba(255, 255, 255, 0.8);
}

.header-over-dark:not(.scrolled):not(.header-light) .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  z-index: 1002;
}

[data-theme="dark"] .scroll-top {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

[data-theme="dark"] .scroll-top:hover {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

[data-theme="dark"] .partners-section {
  background: var(--gray-950);
  border-color: var(--gray-200);
}

[data-theme="dark"] .partner-logo {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

[data-theme="dark"] .stats-section {
  background: var(--gray-950);
  border-color: var(--gray-200);
}

[data-theme="dark"] .why-card {
  background: var(--gray-100);
}

[data-theme="dark"] .why-card:hover {
  background: var(--gray-50);
}

[data-theme="dark"] .mobile-bar {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1002;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand .logo-img {
  height: 48px;
}

/* Navigation */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-mobile-header {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  background: none;
  font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

.nav-cta {
  margin-left: 12px;
}

.nav-cta .btn {
  cursor: pointer;
  pointer-events: auto;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: none;
  font-family: inherit;
}

.nav-dropdown-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}

.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn,
.nav-dropdown-btn.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

.nav-dropdown.open .nav-dropdown-btn::after {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 1100;
}

.nav-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  position: relative;
  z-index: 1002;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-toggle:hover {
  background: var(--gray-100);
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

.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);
}

.nav-close {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gray-700);
  cursor: pointer;
  transition: background var(--transition);
}

.nav-close:hover {
  background: var(--gray-200);
}

@media (min-width: 1101px) {
  .nav-dropdown:hover .nav-dropdown-panel,
  .nav-dropdown.open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-dropdown:hover .nav-dropdown-btn::after {
    transform: rotate(180deg);
  }
}

/* Hero - Right Tail dark centered style */
.rt-hero {
  position: relative;
  isolation: isolate;
  min-height: min(85vh, 720px);
  display: flex;
  align-items: center;
  padding: 64px 0 80px;
  margin-top: calc(-1 * var(--header-height));
  padding-top: calc(64px + var(--header-height));
  background: var(--dark-bg);
  overflow: hidden;
}

.rt-hero-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rt-hero-shader {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.rt-hero-shader-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.rt-hero-shader--static {
  background: var(--gradient-hero);
}

.rt-hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.38), rgba(2, 6, 23, 0.25) 50%, rgba(9, 9, 11, 0.62));
  pointer-events: none;
}

.rt-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.05), transparent 68%);
  pointer-events: none;
}

.rt-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 32px, rgba(148, 163, 184, 0.08) 32px, rgba(148, 163, 184, 0.08) 33px),
    repeating-linear-gradient(90deg, transparent, transparent 32px, rgba(100, 116, 139, 0.06) 32px, rgba(100, 116, 139, 0.06) 33px);
  pointer-events: none;
}

.rt-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 2;
}

.rt-hero-glow--top {
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 800px);
  height: min(55vh, 420px);
  background: radial-gradient(ellipse 90% 85% at 50% -5%, rgba(71, 85, 105, 0.5), transparent 70%);
}

.rt-hero-glow--blue {
  top: 10%;
  right: 0;
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  background: radial-gradient(circle at 70% 40%, rgba(59, 130, 246, 0.14) 0%, transparent 62%);
}

.rt-hero-glow--bottom {
  bottom: 0;
  left: 0;
  width: min(38vw, 340px);
  height: min(38vw, 340px);
  transform: translateY(25%);
  background: radial-gradient(circle at 30% 60%, rgba(30, 41, 59, 0.55) 0%, transparent 60%);
}

.rt-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.rt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.rt-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.rt-display {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--on-primary);
  margin-bottom: 24px;
}

.rt-display span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rt-lead {
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin-bottom: 32px;
}

.rt-lead strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.rt-trust-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 32px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.rt-trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rt-trust-list span + span::before {
  content: '•';
  margin-right: 16px;
  color: rgba(255, 255, 255, 0.25);
}

.rt-rating-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 420px;
  margin-top: 32px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  text-align: center;
}

@media (min-width: 640px) {
  .rt-rating-card {
    flex-direction: row;
    gap: 16px;
    text-align: left;
  }
}

.rt-rating-stars {
  display: flex;
  gap: 2px;
  color: #fbbf24;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.rt-rating-text {
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}

.rt-rating-text strong {
  color: var(--on-primary);
  font-weight: 600;
}

.rt-section-wrap {
  border-left: 1px solid var(--border-divide);
  border-right: 1px solid var(--border-divide);
  padding: 64px 24px;
}

@media (min-width: 768px) {
  .rt-section-wrap { padding: 80px 32px; }
}

.rt-hero-animate {
  opacity: 0;
  transform: translateY(20px);
}

.rt-hero-animate.rt-hero-in {
  animation: rtHeroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rtHeroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rt-section-line {
  height: 1px;
  margin: 0 0 48px;
  background: linear-gradient(90deg, var(--border-divide), var(--primary), var(--border-divide));
  background-size: 200% 100%;
  animation: rtLineSweep 3s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes rtLineSweep {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rt-hero-animate {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .rt-section-line {
    animation: none;
    background: var(--border-divide);
  }
}

/* Legacy hero (inner pages) */
.hero {
  position: relative;
  padding: 48px 0 80px;
  background-color: var(--gray-50);
  overflow: hidden;
}

.hero::before,
.hero::after { display: none; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease forwards;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero-title .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-inline-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 6px;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

.hero-trust-label {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 500;
}

.hero-trust-logos {
  display: flex;
  gap: 24px;
  align-items: center;
}

.trust-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-400);
  padding: 6px 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}

/* Dashboard Mockup */
.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease 0.3s forwards;
  opacity: 0;
}

.dashboard-mockup {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform var(--transition);
}

.dashboard-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.dashboard-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dashboard-dot.red { background: #ff5f57; }
.dashboard-dot.yellow { background: #febc2e; }
.dashboard-dot.green { background: #28c840; }

.dashboard-title {
  margin-left: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
}

.dashboard-body { padding: 24px; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dash-stat {
  padding: 16px;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
}

.dash-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.dash-stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.dash-stat-change {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 4px;
}

.dashboard-chart {
  height: 120px;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 100%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100%;
  padding: 16px;
}

.chart-bar {
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
  animation: growBar 1s ease forwards;
}

.dashboard-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  padding: 10px 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.table-row.header {
  background: transparent;
  font-weight: 600;
  color: var(--gray-500);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.status-badge.active { background: rgba(var(--secondary-rgb), 0.14); color: var(--secondary-dark); }
.status-badge.pending { background: rgba(251, 191, 36, 0.12); color: #d97706; }

/* Floating Cards */
.float-card {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.float-card-1 {
  top: -20px;
  right: -30px;
  animation-delay: 0s;
}

.float-card-2 {
  bottom: 40px;
  left: -40px;
  animation-delay: -2s;
}

.float-card-3 {
  bottom: -10px;
  right: 20px;
  animation-delay: -4s;
}

.float-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.float-card-value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--gray-900);
}

.float-card-label {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Stats Section */
.stats-section {
  padding: 0;
  background: var(--white);
  border-top: 1px solid var(--border-divide);
  position: relative;
  overflow: hidden;
}

.stats-section::before { display: none; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number .suffix { color: var(--primary); }

.stat-label {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Section Spacing */
section { padding: 100px 0; }

section.section-flush { padding: 0; }

section.bg-gray { background: var(--gray-50); }
section.bg-gray .rt-section-wrap { background: var(--gray-50); }
section.bg-gradient {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
}

[data-theme="dark"] .page-hero {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
}

[data-theme="dark"] .product-card {
  background: rgba(30, 41, 59, 0.5);
}

[data-theme="dark"] .product-card:hover {
  background: var(--gray-100);
}

[data-theme="dark"] .btn-brand {
  background: var(--gray-800);
  color: var(--gray-950);
}

[data-theme="dark"] .btn-brand:hover {
  background: var(--gray-900);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
  background: var(--gray-100);
}

[data-theme="dark"] .nav-overlay {
  background: rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .toast {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.product-card {
  background: rgba(249, 250, 251, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-divide);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before { display: none; }

.product-card:hover {
  transform: translateY(-2px);
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  background: var(--primary-50);
  color: var(--primary);
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.product-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 100px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
}

.product-link:hover { gap: 10px; color: var(--secondary); }

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.features-grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .features-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--primary-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Industry Section */
.industry-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}

.industry-block:last-child { margin-bottom: 0; }
.industry-block.reverse { direction: rtl; }
.industry-block.reverse > * { direction: ltr; }

.industry-visual {
  background: var(--gradient-card);
  border-radius: var(--radius-2xl);
  padding: 40px;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.industry-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.industry-content h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.industry-content > p {
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.7;
}

.industry-list { margin-bottom: 32px; }

.industry-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.industry-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(var(--secondary-rgb), 0.14);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.benefit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.benefit-pill {
  padding: 8px 16px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-light);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
  font-weight: 700;
  font-size: 1rem;
}

.author-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

/* FAQ */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  transition: all var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  background: var(--primary);
  color: var(--on-primary);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--gray-500);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* CTA Section */
.cta-section {
  padding: 0;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.9;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--on-primary);
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--dark-bg);
  box-shadow: none;
}

.cta-section .btn-primary:hover {
  background: var(--gray-100);
}

/* Demo Form */
.demo-section { padding: 0; }

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.demo-content h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.demo-content > p {
  color: var(--gray-500);
  margin-bottom: 32px;
  line-height: 1.7;
}

.demo-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.demo-benefits li::before {
  content: '✓';
  width: 28px;
  height: 28px;
  background: rgba(var(--secondary-rgb), 0.14);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.demo-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 60px 0 80px;
  background: var(--white);
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1875rem;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb span { color: var(--gray-400); }

/* Case Studies */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.case-study-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.case-study-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-study-image {
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.case-study-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
}

.case-study-body { padding: 32px; }

.case-study-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(var(--secondary-rgb), 0.14);
  color: var(--secondary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.case-study-body h3 {
  font-size: 1.375rem;
  margin-bottom: 20px;
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.case-meta-item h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 6px;
  font-weight: 600;
}

.case-meta-item p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.case-results {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.case-result-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
}

.case-result-label {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.resource-image {
  height: 160px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.resource-body { padding: 24px; }

.resource-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 8px;
}

.resource-body h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.resource-body p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.6;
}

.resource-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.resource-categories {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 48px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  position: relative;
  z-index: 5;
  scrollbar-width: thin;
}

.resource-cat-btn {
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 2px solid var(--gray-200);
  transition: all var(--transition);
  cursor: pointer;
  pointer-events: auto;
  flex-shrink: 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.resource-cat-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.resource-cat-btn.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.origin-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.origin-fact {
  padding: 16px;
  background: var(--gray-50);
  border: 1px solid var(--border-divide);
  border-radius: var(--radius-md);
}

.origin-fact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.origin-fact-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
}

.story-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.story-timeline-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.story-timeline-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  padding-top: 2px;
  line-height: 1.3;
}

.story-timeline-item strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.story-timeline-item p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin: 0;
}

[data-theme="dark"] .origin-fact {
  background: var(--gray-100);
}

@media (max-width: 640px) {
  .origin-facts { grid-template-columns: 1fr; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.value-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.value-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
  font-size: 2rem;
  font-weight: 700;
}

.team-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.875rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.team-card p {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  padding: 20px 24px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: none;
  transition: background var(--transition);
}

.why-card:hover {
  background: rgba(243, 244, 246, 0.7);
}

.why-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.why-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--gray-500);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-methods { display: flex; flex-direction: column; gap: 24px; }

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-method h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.contact-method p, .contact-method a {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.contact-method a:hover { color: var(--primary); }

.map-container {
  margin-top: 64px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  height: 400px;
  background: var(--gray-100);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: var(--on-primary);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--gray-400);
  padding: 64px 0 100px;
}

.footer-top-divider {
  height: 1px;
  background: var(--border-divide);
  margin-bottom: 64px;
  opacity: 0.3;
}

.logo-light { color: var(--on-dark-bg); }

.footer-contact-line {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--on-dark-bg); }

.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 850;
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-bar .btn { flex: 1; }

@media (max-width: 768px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
  .sticky-cta { display: none !important; }
  .hero-inline-stats { grid-template-columns: repeat(2, 1fr); }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .logo {
  color: var(--on-dark-bg);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-col h4 {
  color: var(--on-dark-bg);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--secondary-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--gray-800);
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  color: var(--on-primary);
}

/* Product Detail */
.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-detail-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition);
}

.product-detail-card:hover {
  box-shadow: var(--shadow-lg);
}

.product-detail-header {
  padding: 32px;
  background: var(--gradient-card);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 20px;
}

.product-detail-header .product-icon {
  margin-bottom: 0;
  width: 64px;
  height: 64px;
  font-size: 2rem;
}

.product-detail-header h3 { font-size: 1.375rem; }
.product-detail-header p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.product-detail-body { padding: 32px; }

.product-detail-body h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--gray-600);
  padding: 8px 0;
}

.feature-list li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: rgba(var(--secondary-rgb), 0.14);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes growBar {
  from { height: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-child.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal-overlay.active .modal { transform: scale(1); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 { font-size: 1.25rem; }

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition);
}

.modal-close:hover { background: var(--gray-200); }

.modal-body { padding: 32px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gray-900);
  color: var(--on-primary);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .demo-grid,
  .contact-grid,
  .about-grid,
  .industry-block { grid-template-columns: 1fr; gap: 48px; }

  .industry-block.reverse { direction: ltr; }

  .products-grid,
  .testimonials-grid,
  .resources-grid,
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .features-grid,
  .values-grid,
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .product-detail-grid { grid-template-columns: 1fr; }

  .hero-visual { order: -1; max-width: 600px; margin: 0 auto; }
}

@media (max-width: 1100px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 32px;
    background: var(--white);
    z-index: 1002;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  }

  .nav.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-mobile-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--gray-900);
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link,
  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 12px;
    margin-top: 4px;
    display: none;
    background: var(--gray-50);
    border-radius: var(--radius-md);
  }

  .nav-dropdown.open .nav-dropdown-panel {
    display: block;
  }

  .nav-dropdown-link {
    padding: 12px 16px;
    font-size: 0.9375rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
  }

  .nav-cta .btn {
    width: 100%;
    padding: 14px 28px;
  }

  /* Mobile drawer has white bg - always use dark link text */
  .header-over-dark .nav .nav-link,
  .header-over-dark .nav .nav-dropdown-btn {
    color: var(--gray-900);
  }

  .header-over-dark .nav .nav-link:hover,
  .header-over-dark .nav .nav-link.active,
  .header-over-dark .nav .nav-dropdown-btn:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
  }

  .header-over-dark .nav .nav-close {
    color: var(--gray-700);
  }

  .header-over-dark .nav .nav-cta .btn-primary {
    background: var(--primary);
    color: var(--on-primary);
  }

  .header-over-dark .nav .nav-cta .btn-primary:hover {
    background: var(--primary-dark);
  }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .hero { padding-bottom: 64px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .products-grid,
  .features-grid,
  .testimonials-grid,
  .resources-grid,
  .case-studies-grid,
  .values-grid,
  .team-grid,
  .why-grid,
  .stats-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .float-card { display: none; }

  .dashboard-mockup { transform: none; }

  .case-results { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-200);
  padding: 40px 32px;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-featured:hover { transform: scale(1.03) translateY(-8px); }

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--on-primary);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-header h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.pricing-header p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-price {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
}

.price-currency {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.price-period {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: rgba(var(--secondary-rgb), 0.14);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-top: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Partners Marquee */
.partners-section {
  padding: 60px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}

.partners-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.partners-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.partners-track:hover { animation-play-state: paused; }

.partner-logo {
  flex-shrink: 0;
  padding: 12px 28px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-400);
  white-space: nowrap;
  transition: all var(--transition);
}

.partner-logo:hover {
  color: var(--primary);
  border-color: var(--primary-light);
  background: rgba(var(--primary-rgb), 0.06);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--on-primary);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Sticky Mobile CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 850;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  padding: 12px 24px;
  display: none;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.sticky-cta.visible { transform: translateY(0); }

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.sticky-cta-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.sticky-cta-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .sticky-cta { display: block; }
  .scroll-top { bottom: 80px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-featured { transform: none; }
  .pricing-featured:hover { transform: translateY(-8px); }
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
