/* ============================================
   ELIO - Premium SaaS Theme
   Next Level Design
   ============================================ */

:root {
  color-scheme: light only;
  
  /* Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Product Colors */
  --flow-500: #3b82f6;
  --flow-600: #2563eb;
  --flow-700: #1d4ed8;
  --flow-50: #eff6ff;
  --flow-100: #dbeafe;
  --flow-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  
  --pay-500: #10b981;
  --pay-600: #059669;
  --pay-700: #047857;
  --pay-50: #ecfdf5;
  --pay-100: #d1fae5;
  --pay-gradient: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  
  --plans-500: #8b5cf6;
  --plans-600: #7c3aed;
  --plans-700: #6d28d9;
  --plans-50: #f5f3ff;
  --plans-100: #ede9fe;
  --plans-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-primary-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
  --gradient-mesh: radial-gradient(at 40% 20%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
                   radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.06) 0px, transparent 50%),
                   radial-gradient(at 0% 50%, rgba(168, 85, 247, 0.04) 0px, transparent 50%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 60px -12px rgba(99, 102, 241, 0.4);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 20px 40px -12px rgba(99, 102, 241, 0.2);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  
  /* Font */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);
  
  /* Layout */
  --header-height: 72px;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background: #ffffff !important;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900) !important;
  background: #ffffff !important;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { color: var(--gray-600); line-height: 1.7; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.5); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  transition: transform var(--transition-fast);
}

.header__logo:hover {
  transform: scale(1.02);
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav__link:hover {
  color: var(--gray-900);
}

.nav__link:hover::after {
  width: 100%;
}

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

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--gray-100);
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  padding: 32px 24px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-nav.is-open { opacity: 1; visibility: visible; }

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.mobile-nav__link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.btn--primary {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

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

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

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

.btn--secondary {
  background: #ffffff;
  color: var(--gray-900);
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn--full { width: 100%; }

.btn:focus-visible {
  outline: 2px solid var(--indigo-500);
  outline-offset: 2px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(180deg, #f5f3ff 0%, #eef2ff 30%, #ffffff 100%);
  overflow: hidden;
}

/* Mesh gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}

/* Animated floating shapes */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__shape--1 {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.15);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero__shape--2 {
  width: 300px;
  height: 300px;
  background: rgba(139, 92, 246, 0.12);
  bottom: -50px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero__shape--3 {
  width: 200px;
  height: 200px;
  background: rgba(168, 85, 247, 0.1);
  top: 40%;
  right: 10%;
  animation: float-slow 12s ease-in-out infinite;
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  animation: fade-up 0.8s var(--ease-out) forwards;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  animation: scale-in 0.6s var(--ease-out) 0.2s both;
}

.hero__badge-dot {
  width: 10px;
  height: 10px;
  background: var(--emerald-500);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero__title {
  margin-bottom: 28px;
  line-height: 1.1;
  animation: fade-up 0.8s var(--ease-out) 0.1s both;
}

.hero__title-highlight {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
  animation: fade-up 0.8s var(--ease-out) 0.2s both;
}

.hero__proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  color: #047857;
  margin-bottom: 36px;
  animation: fade-up 0.8s var(--ease-out) 0.3s both;
}

.hero__proof-icon {
  font-size: 1.25rem;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-up 0.8s var(--ease-out) 0.4s both;
}

/* ============================================
   Trust Logos
   ============================================ */
.trust-section {
  padding: 60px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--gray-100);
}

.trust__label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.trust__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust__logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}

.trust__logo:hover {
  color: var(--gray-400);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
  padding: 80px 0;
  background: #ffffff;
}

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

.stat {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--indigo-200);
}

.stat__number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ============================================
   Section Base
   ============================================ */
.section {
  padding: 120px 0;
  position: relative;
}

.section--white { background: #ffffff; }
.section--gray { background: var(--gray-50); }
.section--gradient { 
  background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 70px;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--indigo-600);
  margin-bottom: 16px;
  padding: 8px 16px;
  background: var(--indigo-50);
  border-radius: 100px;
}

.section__title {
  margin-bottom: 20px;
}

.section__desc {
  font-size: 1.1875rem;
  line-height: 1.75;
}

/* ============================================
   Stack Cards
   ============================================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.stack-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 40px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stack-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

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

/* Flow - Blue */
.stack-card--flow::before { background: var(--flow-gradient); }
.stack-card--flow:hover { border-color: var(--flow-100); }
.stack-card--flow .stack-card__icon { background: linear-gradient(135deg, var(--flow-50) 0%, var(--flow-100) 100%); }
.stack-card--flow .stack-card__label { background: var(--flow-gradient); }
.stack-card--flow .stack-card__domain { color: var(--flow-600); }
.stack-card--flow .btn--primary { background: var(--flow-gradient); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35); }
.stack-card--flow .btn--primary:hover { box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45); }

/* Pay - Green */
.stack-card--pay::before { background: var(--pay-gradient); }
.stack-card--pay:hover { border-color: var(--pay-100); }
.stack-card--pay .stack-card__icon { background: linear-gradient(135deg, var(--pay-50) 0%, var(--pay-100) 100%); }
.stack-card--pay .stack-card__label { background: var(--pay-gradient); }
.stack-card--pay .stack-card__domain { color: var(--pay-600); }
.stack-card--pay .btn--primary { background: var(--pay-gradient); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35); }
.stack-card--pay .btn--primary:hover { box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45); }

/* Plans - Purple */
.stack-card--plans::before { background: var(--plans-gradient); }
.stack-card--plans:hover { border-color: var(--plans-100); }
.stack-card--plans .stack-card__icon { background: linear-gradient(135deg, var(--plans-50) 0%, var(--plans-100) 100%); }
.stack-card--plans .stack-card__label { background: var(--plans-gradient); }
.stack-card--plans .stack-card__domain { color: var(--plans-600); }

.stack-card__badge-coming {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.stack-card--coming-soon {
  opacity: 0.85;
}

.stack-card--coming-soon:hover {
  opacity: 1;
}

.stack-card__icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--indigo-50) 0%, var(--indigo-100) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 28px;
  transition: transform var(--transition-base);
}

.stack-card:hover .stack-card__icon {
  transform: scale(1.1);
}

.stack-card__label {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
  margin-bottom: 20px;
}

.stack-card__title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.stack-card__title-accent--flow { color: var(--flow-500); }
.stack-card__title-accent--pay { color: var(--pay-500); }
.stack-card__title-accent--plans { color: var(--plans-500); }

.stack-card__tm {
  font-size: 0.5em;
  vertical-align: super;
  font-weight: 400;
  opacity: 0.5;
}

.stack-card__domain {
  font-size: 1rem;
  color: var(--indigo-600);
  font-weight: 600;
  margin-bottom: 20px;
}

.stack-card__desc {
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.75;
}

.stack-card__features {
  margin-bottom: 28px;
}

.stack-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.stack-card__feature:last-child {
  border-bottom: none;
}

.stack-card__feature-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-600);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

.stack-card__cta-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  cursor: default;
}

/* ============================================
   Pricing - Premium SaaS Style
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 48px 36px;
  text-align: center;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--gray-300);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card--featured {
  border-color: var(--indigo-500);
  background: linear-gradient(180deg, #ffffff 0%, var(--indigo-50) 100%);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
  z-index: 1;
}

.pricing-card--featured:hover {
  transform: scale(1.07);
  box-shadow: 0 0 80px -12px rgba(99, 102, 241, 0.5);
}

.pricing-card__badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.pricing-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.pricing-card__name-accent--flow { color: var(--flow-500); }
.pricing-card__name-accent--pay { color: var(--pay-500); }
.pricing-card__name-accent--complete { 
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card__tm {
  font-size: 0.5em;
  vertical-align: super;
  font-weight: 400;
  opacity: 0.5;
  -webkit-text-fill-color: var(--gray-400);
}

.pricing-card__desc {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.pricing-card__price {
  margin-bottom: 4px;
}

.pricing-card__amount {
  font-size: 4rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-card--featured .pricing-card__amount {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card__amount span {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-400);
  -webkit-text-fill-color: var(--gray-400);
}

.pricing-card__period {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.pricing-card__setup {
  display: inline-block;
  padding: 12px 24px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.pricing-card--featured .pricing-card__setup {
  background: var(--indigo-100);
  color: var(--indigo-700);
}

.pricing-card__features {
  text-align: left;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.pricing-card__feature:last-child {
  border-bottom: none;
}

.pricing-card__feature-icon {
  color: var(--emerald-500);
  font-weight: 700;
  font-size: 1.125rem;
}

.pricing-card .btn {
  margin-top: auto;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: all var(--transition-base);
}

.testimonial:hover {
  border-color: var(--indigo-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: #fbbf24;
  font-size: 1.125rem;
}

.testimonial__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 24px;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

.testimonial__info {
  flex: 1;
}

.testimonial__name {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.testimonial__role {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ============================================
   Integrations
   ============================================ */
.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.integration-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.integration-badge:hover {
  border-color: var(--indigo-300);
  color: var(--gray-900);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.integration-badge__icon {
  font-size: 1.5rem;
}

/* ============================================
   How It Works
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 18%;
  right: 18%;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo-400), var(--violet-400), #a855f7);
  border-radius: 3px;
  opacity: 0.4;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 112px;
  height: 112px;
  background: #ffffff;
  border: 3px solid var(--indigo-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--indigo-600);
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg), 0 0 0 8px var(--indigo-50);
  transition: all var(--transition-base);
}

.step:hover .step__number {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl), 0 0 0 12px var(--indigo-100);
}

.step__title {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.step__desc {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
  background: #ffffff;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--gray-300);
}

.faq-item.is-open {
  border-color: var(--indigo-300);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  background: transparent;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--indigo-600);
}

.faq-question__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gray-500);
  transition: all var(--transition-base);
}

.faq-item.is-open .faq-question__icon {
  background: var(--indigo-500);
  color: white;
  transform: rotate(45deg);
}

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

.faq-answer__inner {
  padding: 0 28px 28px;
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

/* ============================================
   Contact CTA
   ============================================ */
.contact-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--gray-50) 0%, #f5f3ff 50%, var(--indigo-50) 100%);
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}

.contact-cta__box {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 72px 48px;
  max-width: 750px;
  margin: 0 auto;
  box-shadow: var(--shadow-2xl);
}

.contact-cta__title {
  margin-bottom: 20px;
}

.contact-cta__desc {
  font-size: 1.1875rem;
  margin-bottom: 36px;
  line-height: 1.75;
}

.contact-cta__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.contact-cta__email {
  color: var(--gray-500);
  font-size: 1rem;
}

.contact-cta__email a {
  color: var(--indigo-600);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.contact-cta__email a:hover {
  color: var(--indigo-700);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 80px 0 40px;
  background: var(--gray-900);
  color: #ffffff;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer__logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  color: white;
}

.footer__tagline {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.footer__links {
  display: flex;
  gap: 80px;
}

.footer__col-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__link {
  font-size: 1rem;
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: #ffffff;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--gray-800);
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.footer__social:hover {
  background: var(--indigo-600);
  color: #ffffff;
}

/* ============================================
   Apply Page
   ============================================ */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #f5f3ff 0%, #eef2ff 30%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
}

.page-hero__title {
  margin-bottom: 20px;
}

.page-hero__desc {
  font-size: 1.1875rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

.apply-section {
  padding: 80px 0 120px;
  background: #ffffff;
}

.apply-form {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 56px;
  box-shadow: var(--shadow-xl);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-row--single { grid-template-columns: 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
}

.form-label--required::after {
  content: ' *';
  color: var(--indigo-500);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  background: #ffffff;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  padding-right: 48px;
}

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

.checkbox-group { display: flex; flex-direction: column; gap: 12px; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-600);
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.checkbox-label:hover {
  border-color: var(--gray-300);
  background: #ffffff;
}

.checkbox-label input {
  appearance: none;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.checkbox-label input:checked {
  background: var(--indigo-500);
  border-color: var(--indigo-500);
}

.checkbox-label input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
}

.form-submit { margin-top: 36px; }

.form-success {
  display: none;
  text-align: center;
  padding: 72px 48px;
}

.form-success.is-visible { display: block; }

.form-success__icon {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 3px solid var(--emerald-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 28px;
  animation: scale-in 0.5s var(--ease-out);
}

.form-success__title {
  margin-bottom: 16px;
  color: var(--emerald-600);
}

.form-success__desc {
  font-size: 1.125rem;
  line-height: 1.75;
}

.form-fields.is-hidden { display: none; }

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-2xl);
  padding: 48px;
  position: relative;
  transform: translateY(24px) scale(0.95);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-2xl);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--gray-500);
  transition: all var(--transition-fast);
}

.modal__close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.modal__title {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.modal__desc {
  margin-bottom: 28px;
  font-size: 1.0625rem;
}

.modal .form-row { margin-bottom: 16px; }
.modal .form-submit { margin-top: 28px; }
.modal .form-success { padding: 48px 24px; }

/* ============================================
   Utilities
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .stack-grid {
    grid-template-columns: 1fr;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .stack-card {
    padding: 36px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  
  .pricing-card--featured {
    transform: none;
    order: -1;
  }
  
  .pricing-card--featured:hover {
    transform: translateY(-8px);
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .steps::before { display: none; }
  
  .stats-bar {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .nav__links, .nav__ctas { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-nav { display: block; }
  
  .hero {
    padding: 130px 0 70px;
  }
  
  .hero__shape { display: none; }
  
  .hero__subtitle { font-size: 1.125rem; }
  
  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero__ctas .btn { width: 100%; }
  
  .section { padding: 80px 0; }
  
  .trust__logos { gap: 32px; }
  
  .stack-card { padding: 32px; }
  
  .footer__inner {
    flex-direction: column;
    gap: 48px;
  }
  
  .footer__links { gap: 48px; }
  
  .footer__bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .apply-form { padding: 32px; }
  
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  
  .modal { padding: 32px; }
  
  .contact-cta__box { padding: 48px 28px; }
}

@media (max-width: 480px) {
  .footer__links {
    flex-direction: column;
    gap: 32px;
  }
  
  .integrations-grid { gap: 12px; }
  
  .integration-badge {
    padding: 12px 20px;
    font-size: 0.9375rem;
  }
  
  .stat__number { font-size: 2.5rem; }
  
  .pricing-card { padding: 36px 24px; }
  .pricing-card__amount { font-size: 3rem; }
  
  .trust__logos { gap: 24px; }
  .trust__logo { font-size: 1rem; }
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--indigo-500);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}
