/* ═══════════════════════════════════════════════════════════
   AUXF — AI XFACTOR | Global Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Variables & Design Tokens ─── */
:root {
  --brand-primary: #6366f1;
  --brand-secondary: #8b5cf6;
  --brand-accent: #06b6d4;
  --brand-glow: #4f46e5;

  --bg-base: #050510;
  --bg-surface: #0d0d1f;
  --bg-card: #111128;
  --bg-card-hover: #161632;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);

  --text-primary: #f0f0ff;
  --text-secondary: #a0a0c0;
  --text-muted: #6060a0;
  --text-on-primary: #ffffff;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(99, 102, 241, 0.15);
  --border-glow: rgba(99, 102, 241, 0.4);

  --gradient-main: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-text: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #38bdf8 100%);
  --gradient-hero: linear-gradient(180deg, rgba(5, 5, 16, 0) 0%, rgba(5, 5, 16, 0.8) 60%, #050510 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition-fast: 150ms ease;
  --transition-mid: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;

  --nav-height: 72px;
  --container-max: 1200px;
  --section-pad: clamp(80px, 10vw, 140px);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

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

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

/* ─── Utility ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

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

.desktop-br { display: block; }


/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-mid), backdrop-filter var(--transition-mid), border-color var(--transition-mid);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border-subtle);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

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

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-glass); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--gradient-main);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-mid);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.btn-nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-mid), opacity var(--transition-mid);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(5, 5, 16, 0.96);
  border-top: 1px solid var(--border-subtle);
}
.mobile-menu.open { display: flex; }

.mobile-link {
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.mobile-link:hover { color: var(--text-primary); background: var(--bg-glass); }

.btn-mobile-cta {
  margin-top: 8px;
  padding: 14px;
  text-align: center;
  background: var(--gradient-main);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-md);
}


/* ══════════════════════════════════════════════════════════
   BUTTONS (GLOBAL)
══════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gradient-main);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all var(--transition-mid);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.35);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--bg-glass);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid var(--border-card);
  transition: all var(--transition-mid);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-mid);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-card);
  background: var(--bg-glass);
}

.btn-large { padding: 20px 48px; font-size: 1.1rem; }

.btn-full { width: 100%; justify-content: center; }


/* ══════════════════════════════════════════════════════════
   SECTION HEADERS (SHARED)
══════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ══════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.3);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

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

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(60px, 8vw, 100px) 24px 40px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  animation: fade-in-up 0.6s ease both;
}

.badge-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  animation: fade-in-up 0.7s ease 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 44px;
  animation: fade-in-up 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fade-in-up 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 28px 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  animation: fade-in-up 0.7s ease 0.4s both;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border-subtle); }

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 1;
  padding: 0 24px 80px;
  width: 100%;
  max-width: 900px;
  animation: fade-in-up 0.9s ease 0.5s both;
}

.dashboard-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow), 0 40px 80px rgba(0, 0, 0, 0.6);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

.dashboard-title-bar {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dashboard-img { width: 100%; display: block; }

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(13, 13, 31, 0.9);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.card-1 { bottom: 120px; left: -20px; animation: float-card-1 4s ease-in-out infinite; }
.card-2 { top: 30px; right: -10px; animation: float-card-2 5s ease-in-out infinite; }

.card-value { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }
.card-label { font-size: 0.72rem; color: var(--text-muted); }

@keyframes float-card-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float-card-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fade-in-up 1s ease 1s both;
  z-index: 2;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

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


/* ══════════════════════════════════════════════════════════
   TRUSTED BY
══════════════════════════════════════════════════════════ */
.trusted-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.015);
}

.trusted-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

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

.trusted-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}
.trusted-logo-text:hover { color: var(--text-secondary); }


/* ══════════════════════════════════════════════════════════
   FEATURES SECTION
══════════════════════════════════════════════════════════ */
.features-section {
  padding: var(--section-pad) 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition-mid), border-color var(--transition-mid), box-shadow var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-mid);
}

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

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.feature-card-large {
  grid-column: span 2;
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 36px;
}

.feature-card-content { flex: 1; }
.feature-card-image {
  flex: 0 0 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feature-img { width: 100%; height: 220px; object-fit: cover; }

.feature-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-purple { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.icon-teal { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.icon-pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.icon-orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.icon-indigo { background: rgba(129, 140, 248, 0.15); color: #a5b4fc; }

.feature-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 12px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.feature-list li::before {
  content: '✓';
  width: 18px; height: 18px;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Mini visuals */
.feature-mini-visual {
  margin-top: 20px;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

/* Automation visual */
.automation-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.auto-node {
  padding: 8px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.auto-node.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #818cf8;
}
.auto-arrow { color: var(--text-muted); font-size: 1rem; }

/* Writer visual */
.writer-visual {
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-line {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

.typing-cursor {
  width: 2px;
  height: 16px;
  background: #818cf8;
  animation: cursor-blink 1s step-end infinite;
}

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

/* Bar visual */
.bar-visual {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.bar {
  flex: 1;
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px 4px 0 0;
  transition: background var(--transition-fast);
}
.bar.active { background: var(--gradient-main); }

/* Chat visual */
.chat-visual { display: flex; flex-direction: column; gap: 10px; }

.chat-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  max-width: 85%;
}

.user-bubble {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px;
}

.ai-bubble {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  align-self: flex-start;
  border-radius: 12px 12px 12px 4px;
  border: 1px solid var(--border-subtle);
}


/* ══════════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════════ */
.how-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 50%, var(--bg-base) 100%);
}

.steps-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.steps-line {
  position: absolute;
  left: 60px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(180deg, #6366f1, #8b5cf6, #06b6d4);
  opacity: 0.3;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 0;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border-subtle);
}

.step-number {
  flex-shrink: 0;
  width: 64px; height: 64px;
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-primary);
  position: relative;
  z-index: 1;
  transition: all var(--transition-mid);
}

.step:hover .step-number {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.4);
}

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

.step-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-icon {
  flex-shrink: 0;
  width: 80px; height: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-mid);
}

.step:hover .step-icon {
  border-color: var(--border-glow);
  color: var(--brand-primary);
  box-shadow: var(--shadow-glow);
}


/* ══════════════════════════════════════════════════════════
   PRICING SECTION
══════════════════════════════════════════════════════════ */
.pricing-section {
  padding: var(--section-pad) 0;
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 52px;
}

.billing-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}
.billing-label.active-label { color: var(--text-primary); font-weight: 600; }

.toggle-btn {
  width: 52px; height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 50px;
  position: relative;
  transition: background var(--transition-mid), border-color var(--transition-mid);
  cursor: pointer;
}
.toggle-btn.active { background: var(--brand-primary); border-color: var(--brand-primary); }

.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-mid);
  box-shadow: var(--shadow-sm);
}
.toggle-btn.active .toggle-thumb { transform: translateX(24px); }

.discount-badge {
  padding: 2px 8px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-featured {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.15) 0%, rgba(13, 13, 31, 1) 60%);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-12px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.card-featured:hover { transform: translateY(-18px); }

.popular-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--gradient-main);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 20px;
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.plan-price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 12px;
}

.currency { font-size: 1.5rem; font-weight: 700; color: var(--text-secondary); margin-top: 4px; }
.amount {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.period { font-size: 1rem; color: var(--text-muted); align-self: flex-end; padding-bottom: 8px; }

.plan-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 28px; }

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

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.check { color: #4ade80; font-weight: 700; }
.check-no { color: var(--text-muted); font-weight: 700; }

.btn-plan {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-mid);
}

.btn-plan-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-plan-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45); }

.btn-plan-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}
.btn-plan-outline:hover { border-color: var(--border-glow); background: var(--bg-glass); }

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* ══════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════ */
.testimonials-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 50%, var(--bg-base) 100%);
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-mid), border-color var(--transition-mid);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.testimonial-featured {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.1), var(--bg-card));
  border-color: rgba(99, 102, 241, 0.35);
  grid-column: span 1;
}

/* Position last 2 cards */
.testimonials-grid .testimonial-card:nth-child(4),
.testimonials-grid .testimonial-card:nth-child(5) {
  grid-column: span 1;
}

.stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

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

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.av-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.av-2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.av-3 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.av-4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av-5 { background: linear-gradient(135deg, #10b981, #06b6d4); }

.author-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 2px; }
.author-role { font-size: 0.8rem; color: var(--text-muted); }


/* ══════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════ */
.cta-section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cta-orb-1, .cta-orb-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.cta-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: -200px; left: -200px;
}
.cta-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  bottom: -100px; right: -100px;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

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

.cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}


/* ══════════════════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════════════════ */
.contact-section {
  padding: var(--section-pad) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-desc {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 20px 0 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-item svg { color: var(--brand-primary); flex-shrink: 0; }
.contact-item a:hover { color: var(--text-primary); }

/* Contact form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group:last-of-type { margin-bottom: 24px; }

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  padding: 13px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-input::placeholder { color: var(--text-muted); }

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

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

.form-success {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.form-success.success {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}


/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); }

.footer-top { padding: 80px 0 60px; }

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.social-links { display: flex; gap: 12px; }

.social-link {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-mid);
}
.social-link:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #818cf8;
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy { font-size: 0.85rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-legal a:hover { color: var(--text-primary); }


/* ══════════════════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px; height: 48px;
  background: var(--gradient-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition-mid);
  z-index: 900;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(99, 102, 241, 0.55); }


/* ══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-large { grid-column: span 2; flex-direction: column; }
  .feature-card-image { flex: none; width: 100%; }
  .feature-img { height: 240px; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .card-featured { transform: none; }
  .card-featured:hover { transform: translateY(-4px); }

  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-featured { grid-column: span 2; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav-links { display: none; }
  .btn-nav-cta { display: none; }
  .hamburger { display: flex; }

  .desktop-br { display: none; }

  .hero-content { padding: 40px 20px 32px; }
  .hero-visual { padding: 0 20px 60px; }
  .hero-stats { gap: 20px; padding: 20px 24px; }
  .stat-divider { display: none; }

  .floating-card { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-featured { grid-column: span 1; }

  .steps-line { display: none; }
  .step { flex-wrap: wrap; }
  .step-icon { width: 56px; height: 56px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }

  .cta-actions { flex-direction: column; align-items: center; }

  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
