/* ====================================================
   OptiMerc — Design System & Styles (Enhanced)
   ==================================================== */

/* --- Custom Properties --- */
:root {
  --white: #ffffff;
  --off-white: #F7F9FC;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-900: #1E3A5F;
  --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;
  --red-50: #FEF2F2;
  --red-100: #FEE2E2;
  --red-500: #EF4444;
  --red-600: #DC2626;
  --green-50: #F0FDF4;
  --green-100: #DCFCE7;
  --green-500: #22C55E;
  --green-600: #16A34A;

  --gradient-primary: linear-gradient(135deg, #3B82F6, #1D4ED8);
  --gradient-hero: linear-gradient(135deg, #3B82F6 0%, #60A5FA 50%, #93C5FD 100%);
  --gradient-section: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 50%, #60A5FA 100%);
  --gradient-text: linear-gradient(135deg, #3B82F6, #1D4ED8);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-blue: 0 8px 32px rgba(59, 130, 246, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1140px;
  --section-padding: 120px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-600);
  background-color: var(--white);
  overflow-x: hidden;
}

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

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--gray-900);
  line-height: 1.2;
  font-weight: 700;
}

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

/* ====================================================
   SCROLL PROGRESS BAR
   ==================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-primary);
  z-index: 1100;
  transition: width 0.05s linear;
  border-radius: 0 2px 2px 0;
}

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-glow {
  animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 8px 48px rgba(59, 130, 246, 0.4); }
}

.btn-glow-white {
  animation: btnGlowWhite 3s ease-in-out infinite;
}

@keyframes btnGlowWhite {
  0%, 100% { box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 8px 48px rgba(255, 255, 255, 0.4); }
}

.btn-ghost {
  color: var(--gray-600);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
}

.btn-ghost:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
  background: var(--blue-50);
}

.btn-outline {
  color: var(--blue-600);
  background: transparent;
  border: 2px solid var(--blue-200);
}

.btn-outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

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

/* Button ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

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

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--gray-900);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-600);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--gradient-primary);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-blue);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.35);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-audit-btn {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  color: var(--blue-600);
  background: transparent;
  border: 2px solid var(--blue-400);
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-audit-btn:hover {
  background: var(--blue-50);
  border-color: var(--blue-600);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

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

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

/* ====================================================
   HERO
   ==================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: var(--white);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition: transform 0.3s ease-out;
}

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

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #60A5FA 0%, transparent 70%);
  bottom: -15%;
  left: -10%;
  animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #93C5FD 0%, transparent 70%);
  top: 30%;
  left: 40%;
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1); }
  33% { transform: translate(calc(-40px + var(--mouse-x, 0px)), calc(30px + var(--mouse-y, 0px))) scale(1.05); }
  66% { transform: translate(calc(20px + var(--mouse-x, 0px)), calc(-20px + var(--mouse-y, 0px))) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1); }
  33% { transform: translate(calc(30px + var(--mouse-x, 0px)), calc(-40px + var(--mouse-y, 0px))) scale(1.08); }
  66% { transform: translate(calc(-20px + var(--mouse-x, 0px)), calc(20px + var(--mouse-y, 0px))) scale(0.92); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1); }
  50% { transform: translate(calc(-30px + var(--mouse-x, 0px)), calc(30px + var(--mouse-y, 0px))) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 32px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

/* Scroll hint */
.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--blue-400);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====================================================
   WAVE DIVIDERS
   ==================================================== */
.wave-divider {
  position: relative;
  margin-top: -1px;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

.wave-flip {
  transform: scaleX(-1);
}

/* ====================================================
   SECTIONS (common)
   ==================================================== */
.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-500);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ====================================================
   PROBLEM SECTION
   ==================================================== */
.problem-section {
  background: var(--off-white);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.problem-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-base);
  will-change: transform;
}

.problem-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}

.problem-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: all var(--transition-base);
}

.problem-card:hover .problem-icon {
  background: var(--blue-100);
  transform: scale(1.05);
}

.problem-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

.problem-card em {
  color: var(--blue-600);
  font-style: italic;
}

/* ====================================================
   STATS STRIP
   ==================================================== */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.stat-number {
  display: block;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--gray-200);
  flex-shrink: 0;
}

/* ====================================================
   TRANSFORMATION / COMPARISON SECTION
   ==================================================== */
.transform-section {
  background: var(--white);
}

.comparison-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}

.comparison-card {
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition-slow);
}

.comparison-before {
  background: var(--red-50);
  border: 1.5px solid var(--red-100);
}

.comparison-before:hover {
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.1);
}

.comparison-after {
  background: var(--green-50);
  border: 1.5px solid var(--green-100);
}

.comparison-after:hover {
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.1);
}

.comparison-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.badge-before {
  background: var(--red-100);
  color: var(--red-600);
}

.badge-after {
  background: var(--green-100);
  color: var(--green-600);
}

.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.divider-vs {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  flex-shrink: 0;
  animation: vsPulse 2.5s ease-in-out infinite;
}

@keyframes vsPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 4px 28px rgba(59, 130, 246, 0.4); }
}

.product-demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-demo-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.product-demo-title.bad-data {
  color: var(--gray-700);
}

.product-demo-title.good-data {
  color: var(--gray-900);
}

.product-demo-desc {
  font-size: 14px;
  line-height: 1.6;
}

.product-demo-desc.bad-data {
  color: var(--gray-400);
}

.product-demo-desc.good-data {
  color: var(--gray-600);
}

.product-demo-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}

.spec-key {
  font-weight: 600;
  color: var(--gray-500);
  min-width: 60px;
  flex-shrink: 0;
}

.spec-val {
  font-weight: 500;
}

.bad-val {
  color: var(--red-500);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.3);
}

.good-val {
  color: var(--green-600);
}

.ai-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}

.verdict-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.verdict-bad {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--red-600);
}

.verdict-good {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  color: var(--green-600);
}

.ai-verdict strong {
  font-weight: 700;
}

/* ====================================================
   SOLUTION SECTION
   ==================================================== */
.solution-section {
  background: var(--off-white);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-base);
  overflow: hidden;
  will-change: transform;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}

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

.solution-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: all var(--transition-base);
}

.solution-card:hover .solution-icon {
  background: var(--blue-100);
  transform: scale(1.05) rotate(-2deg);
}

.solution-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ====================================================
   PROCESS SECTION
   ==================================================== */
.process-section {
  background: var(--white);
}

.process-timeline {
  display: flex;
  justify-content: center;
  gap: 0;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-line {
  position: absolute;
  top: 32px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: var(--gray-200);
  z-index: 0;
  border-radius: 2px;
  overflow: hidden;
}

.process-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--line-progress, 0%);
  background: var(--gradient-primary);
  transition: width 0.6s ease-out;
  border-radius: 2px;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.step-marker {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--shadow-blue);
  transition: all var(--transition-base);
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.35);
}

.step-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-content p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ====================================================
   ANALOGY SECTION
   ==================================================== */
.analogy-section {
  position: relative;
  padding: 100px 0;
  background: var(--gradient-section);
  overflow: hidden;
}

.analogy-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

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

.analogy-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  top: -20%;
  right: -5%;
  animation: orbFloat1 18s ease-in-out infinite;
}

.analogy-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.06);
  bottom: -15%;
  left: 10%;
  animation: orbFloat2 22s ease-in-out infinite;
}

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

.analogy-icon {
  margin: 0 auto 28px;
  opacity: 0.7;
}

.analogy-quote {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.analogy-quote strong { font-weight: 800; }

.analogy-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.analogy-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
  opacity: 0;
  transform: translateX(-16px);
  transition: all 0.5s ease-out;
}

.analogy-point.visible {
  opacity: 1;
  transform: translateX(0);
}

.analogy-point svg {
  flex-shrink: 0;
  margin-top: 3px;
}

/* ====================================================
   SERVICES SECTION
   ==================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  will-change: transform;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
}

.service-card-featured {
  border-color: var(--blue-300);
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 40%);
  box-shadow: var(--shadow-blue);
}

.service-card-featured:hover {
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
}

.service-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.service-header {
  margin-bottom: 16px;
}

.service-header h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.service-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-500);
}

.service-desc {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.7;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}

.service-features li svg { flex-shrink: 0; }

.service-best {
  font-size: 13px;
  color: var(--gray-400);
  font-style: italic;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.services-note {
  text-align: center;
  font-size: 15px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 40px auto 0;
  line-height: 1.7;
}

.services-note strong { color: var(--gray-700); }

/* ====================================================
   FAQ SECTION
   ==================================================== */
.faq-section {
  background: var(--off-white);
}

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

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--blue-100);
}

.faq-item.active {
  border-color: var(--blue-200);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

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

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

.faq-chevron {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform var(--transition-base), color var(--transition-base);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--blue-500);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ====================================================
   FINAL CTA
   ==================================================== */
.final-cta {
  position: relative;
  padding: 120px 0;
  background: var(--gradient-section);
  overflow: hidden;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.final-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.final-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.07);
  top: -30%;
  left: -10%;
  animation: orbFloat1 22s ease-in-out infinite;
}

.final-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  bottom: -20%;
  right: -5%;
  animation: orbFloat2 18s ease-in-out infinite;
}

.final-orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.06);
  top: 40%;
  right: 30%;
  animation: orbFloat3 15s ease-in-out infinite;
}

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

.final-cta-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.final-cta-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ====================================================
   BLOG CARDS (homepage strip + listing page)
   ==================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

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

.blog-card-coming-soon {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

.blog-cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.blog-cat-optimization { background: #F5F3FF; color: #7C3AED; }
.blog-cat-ai-shopping  { background: var(--blue-50); color: var(--blue-600); }
.blog-cat-case-studies { background: var(--green-50); color: var(--green-600); }

.blog-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--gray-400);
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
  gap: 8px;
}

.blog-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-meta-dot {
  width: 3px; height: 3px;
  background: var(--gray-300);
  border-radius: 50%;
  flex-shrink: 0;
}

.blog-read-link {
  color: var(--blue-600);
  font-weight: 600;
  white-space: nowrap;
  font-size: 12.5px;
}

/* Blog strip section on homepage */
.blog-strip-section {
  background: var(--off-white);
}

.blog-strip-footer {
  text-align: center;
  margin-top: 40px;
}

.blog-strip-footer a {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 15px;
  transition: color var(--transition-fast);
}

.blog-strip-footer a:hover { color: var(--blue-700); }

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
  background: var(--gray-900);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .nav-logo { color: var(--white); }

.footer-brand p {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--blue-400); }

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-500);
}

/* ====================================================
   3D TILT CARD EFFECT
   ==================================================== */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card > * {
  transform: translateZ(0);
}

/* ====================================================
   SCROLL ANIMATIONS
   ==================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto 64px;
  }

  .solution-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .process-timeline {
    flex-direction: column;
    gap: 40px;
    max-width: 480px;
    margin: 0 auto;
  }

  .process-line { display: none; }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .comparison-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .comparison-divider {
    padding: 8px 0;
  }

  .stats-strip {
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 0;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-base);
    z-index: 999;
  }

  .nav-links.active { right: 0; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .nav-cta-group { display: none; }
  .nav-audit-btn { display: none; }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hero {
    min-height: auto;
    padding: 140px 24px 80px;
  }

  .hero-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-scroll-hint { display: none; }

  .orb-1 { width: 350px; height: 350px; }
  .orb-2 { width: 300px; height: 300px; }
  .orb-3 { width: 200px; height: 200px; }

  .analogy-quote {
    font-size: clamp(18px, 5vw, 24px);
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .wave-divider svg { height: 40px; }
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ====================================================
   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.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  padding: 40px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.modal-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 14px;
  color: var(--gray-500);
}

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

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--gray-900);
  background: var(--gray-50);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--gray-600) !important;
  cursor: pointer;
  margin-top: 4px;
}

.form-group input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0;
  cursor: pointer;
  accent-color: var(--blue-500);
}

/* ====================================================
   TOAST NOTIFICATION
   ==================================================== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--gray-900);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 3000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
