/* ===================================
   KPRICER - Premium AI SaaS Landing Page
   Cinematic Design with 3D Elements
   =================================== */

/* CSS Variables */
:root {
  --primary-deep: #1e3a8a;
  --primary-accent: #3b82f6;
  --primary-light: #60a5fa;
  --primary-glow: rgba(59, 130, 246, 0.5);

  --bg-dark: #050a15;
  --bg-darker: #020408;
  --bg-card: rgba(15, 23, 42, 0.8);
  --bg-card-hover: rgba(30, 58, 138, 0.3);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-subtle: rgba(59, 130, 246, 0.2);
  --border-glow: rgba(59, 130, 246, 0.5);

  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-deep),
    var(--primary-accent)
  );
  --gradient-glow: radial-gradient(
    circle,
    var(--primary-glow) 0%,
    transparent 70%
  );

  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px var(--primary-glow);

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body.loading {
  overflow: hidden;
}

/* Custom Cursor */
.cursor,
.cursor-follower {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s var(--transition-smooth);
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--primary-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--transition-smooth),
    width 0.3s var(--transition-smooth), height 0.3s var(--transition-smooth),
    background 0.3s var(--transition-smooth);
}

.cursor-follower.hover {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
}

@media (pointer: coarse) {
  .cursor,
  .cursor-follower {
    display: none;
  }
  body {
    cursor: auto;
  }
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s var(--transition-smooth), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.loader-orb {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
  animation: orbPulse 1.5s ease-in-out infinite;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  animation: textFade 1.5s ease-in-out infinite;
}

.loader-progress {
  width: 200px;
  height: 3px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: var(--gradient-primary);
  animation: loadProgress 2s var(--transition-smooth) forwards;
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-glow);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 60px var(--primary-glow);
  }
}

@keyframes textFade {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes loadProgress {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ===================================
   NAVIGATION
   =================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(5, 10, 21, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 15px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon img {
  display: block;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  display: flex;
  align-items: center;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
}

.nav-btn-secondary {
  color: var(--text-secondary);
}

.nav-btn-secondary:hover {
  color: var(--text-primary);
}

.nav-btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.nav-mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s var(--transition-smooth);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 21, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--transition-smooth);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  text-align: center;
}

.mobile-link {
  display: block;
  font-size: 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 15px 0;
  transition: color 0.3s var(--transition-smooth);
}

.mobile-link:hover {
  color: var(--text-primary);
}

.mobile-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (max-width: 992px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-container {
    padding: 0 20px;
  }

  .logo-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 15px 0;
  }

  .nav-container {
    padding: 0 15px;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-text {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
  }

  .mobile-link {
    font-size: 1.25rem;
    padding: 12px 0;
  }

  .mobile-actions {
    margin-top: 20px;
    gap: 12px;
  }

  .mobile-actions .nav-btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(59, 130, 246, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.hero-glow {
  position: absolute;
  top: 50%;
  right: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    transparent 70%
  );
  transform: translate(50%, -50%);
  filter: blur(60px);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(50%, -50%) scale(1.1);
  }
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero Content */
.hero-content {
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeUp 1s var(--transition-smooth) 0.5s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 30px;
}

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

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
}

.title-line {
  display: block;
  margin-bottom: 0.5em;
}

.title-line:last-child {
  margin-bottom: 0;
}

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

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-branding {
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.9;
  text-align: center;
  margin-top: -20px;
  margin-bottom: 30px;
  transition: opacity 0.3s ease;
}

.hero-branding:hover {
  opacity: 1;
}

.brand-highlight {
  color: var(--primary-accent);
  font-weight: 600;
  transition: color 0.3s ease;
}

.brand-highlight:hover {
  color: var(--primary-light);
}

.hero-ctas {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s var(--transition-smooth);
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

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

.btn-primary i {
  transition: transform 0.3s var(--transition-smooth);
}

.btn-primary:hover i {
  transform: translateX(5px);
}

.btn-secondary {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--primary-accent);
}

.btn-secondary i {
  color: var(--primary-accent);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 50px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value-wrapper {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-suffix {
  font-size: 1.25rem;
  color: var(--primary-accent);
}

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

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 600px;
  opacity: 0;
  transform: translateX(40px);
  animation: heroSlideIn 1s var(--transition-smooth) 0.8s forwards;
}

@keyframes heroSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.orb-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
}

#orb-canvas {
  width: 100%;
  height: 100%;
}

.orb-glow {
  position: absolute;
  inset: -50px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.3) 0%,
    transparent 60%
  );
  filter: blur(40px);
  animation: orbGlow 3s ease-in-out infinite;
}

@keyframes orbGlow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Floating Cards */
.floating-cards {
  position: absolute;
  inset: 0;
}

.floating-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s var(--transition-smooth);
  animation: cardFloat 6s ease-in-out infinite;
}

.floating-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-glow);
}

.card-costs {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.card-competitors {
  top: 5%;
  right: 5%;
  animation-delay: 1s;
}

.card-mcda {
  top: 45%;
  left: -15%;
  animation-delay: 2s;
}

.card-margin {
  bottom: 20%;
  right: -5%;
  animation-delay: 3s;
}

.card-price {
  bottom: 5%;
  left: 10%;
  animation-delay: 4s;
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card-icon {
  width: 45px;
  height: 45px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.card-icon.gold {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-value.large {
  font-size: 1.5rem;
  color: #fbbf24;
}

.card-trend {
  font-size: 0.8rem;
}

.card-trend.positive {
  color: #22c55e;
}

.card-trend.negative {
  color: #ef4444;
}

.card-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.card-mini-chart span {
  width: 4px;
  background: var(--primary-accent);
  border-radius: 2px;
  animation: barGrow 1.5s ease-in-out infinite;
}

.card-mini-chart span:nth-child(1) {
  height: 40%;
  animation-delay: 0s;
}
.card-mini-chart span:nth-child(2) {
  height: 70%;
  animation-delay: 0.1s;
}
.card-mini-chart span:nth-child(3) {
  height: 50%;
  animation-delay: 0.2s;
}
.card-mini-chart span:nth-child(4) {
  height: 90%;
  animation-delay: 0.3s;
}
.card-mini-chart span:nth-child(5) {
  height: 60%;
  animation-delay: 0.4s;
}

@keyframes barGrow {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.6);
  }
}

.card-progress {
  width: 100px;
  height: 6px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  animation: progressFill 2s ease-in-out infinite alternate;
}

@keyframes progressFill {
  0% {
    width: 60%;
  }
  100% {
    width: 95%;
  }
}

.card-range {
  width: 100px;
  height: 8px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  position: relative;
}

.range-fill {
  position: absolute;
  left: 32%;
  right: 55%;
  top: 0;
  bottom: 0;
  background: var(--gradient-primary);
  border-radius: 4px;
}

.range-marker {
  position: absolute;
  top: -3px;
  left: 38%;
  width: 4px;
  height: 14px;
  background: var(--text-primary);
  border-radius: 2px;
  animation: markerMove 3s ease-in-out infinite;
}

@keyframes markerMove {
  0%,
  100% {
    left: 35%;
  }
  50% {
    left: 42%;
  }
}

.card-badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border-radius: 20px;
  font-weight: 600;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s var(--transition-smooth) 1.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 13px;
  position: relative;
}

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

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

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===================================
   SECTION STYLES
   =================================== */
.section {
  padding: 150px 0;
  position: relative;
  overflow: hidden;
}

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

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(59, 130, 246, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

.bg-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 50%
  );
}

.bg-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 100px,
    rgba(59, 130, 246, 0.03) 100px,
    rgba(59, 130, 246, 0.03) 101px
  );
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.section-header.light {
  color: var(--text-primary);
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   WHAT IS KPRICER SECTION
   =================================== */
.what-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.what-visual {
  position: relative;
  height: 500px;
  z-index: 1;
  overflow: visible;
}

.flip-cards {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.flip-card {
  width: 320px;
  min-height: 220px;
  height: 220px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card:nth-child(2) {
  margin-left: 80px;
}

.flip-card:nth-child(3) {
  margin-left: 40px;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  min-height: 220px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--transition-smooth);
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 220px;
  box-sizing: border-box;
  overflow: hidden;
  contain: layout style paint;
}

.flip-card-front {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.flip-card-front i {
  font-size: 2rem;
  color: var(--primary-accent);
  margin: 0;
  padding: 0;
  display: block;
}

.flip-card-front span {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  display: block;
  text-align: center;
}

.flip-card-back {
  background: var(--gradient-primary);
  transform: rotateY(180deg);
}

.card-data {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 36px;
}

.data-value-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.data-amount {
  font-weight: 600;
  color: var(--text-primary);
}

.data-percentage {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  white-space: nowrap;
}

.data-row.total {
  border-bottom: none;
  font-weight: 700;
  padding-top: 14px;
  margin-top: 4px;
}

.data-row.total .data-amount {
  font-weight: 700;
}

.data-row.total .data-percentage {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.strategy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.strategy-item {
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.strategy-item span {
  flex: 1;
}

.strategy-item.active {
  background: rgba(59, 130, 246, 0.3);
  width: 100%;
}

.mcda-radar {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.radar-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}

.radar-fill {
  fill: rgba(255, 255, 255, 0.3);
  stroke: white;
  stroke-width: 2;
}

.mcda-score {
  display: block;
  text-align: center;
  font-weight: 700;
  margin-top: 10px;
}

.connection-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.connection-lines svg {
  width: 100%;
  height: 100%;
}

.line-path {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 2;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset 1.5s var(--transition-smooth);
}

.line-path.animated {
  stroke-dashoffset: 0;
}

/* What Text */
.what-text {
  padding-right: 40px;
  position: relative;
  z-index: 2;
}

.what-text .section-label {
  display: block;
  margin-bottom: 15px;
}

.what-text .section-title {
  text-align: left;
  margin-bottom: 30px;
}

.reveal-text {
  display: block;
}

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

.text-reveals {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.reveal-paragraph {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s var(--transition-smooth);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  display: block;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.reveal-paragraph.visible {
  opacity: 1;
  transform: translateX(0) !important;
}

.what-features {
  display: flex;
  gap: 30px;
}

.mini-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.mini-feature i {
  color: var(--primary-accent);
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */
.section-how {
  background: linear-gradient(
    180deg,
    var(--bg-dark) 0%,
    rgba(30, 58, 138, 0.1) 50%,
    var(--bg-dark) 100%
  );
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
  transform: translateX(-50%);
}

.line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--gradient-primary);
  transition: height 0.1s linear;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 100px;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s var(--transition-smooth);
}

.timeline-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 60px);
}

.timeline-step:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 60px);
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--bg-dark);
  border: 2px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.4s var(--transition-smooth);
}

.timeline-step.visible .step-marker {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-glow);
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-accent);
}

.step-pulse {
  position: absolute;
  inset: -10px;
  border: 1px solid var(--primary-accent);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2s ease-out infinite;
}

.timeline-step.visible .step-pulse {
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.step-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 35px;
  transition: all 0.4s var(--transition-smooth);
}

.timeline-step:hover .step-content {
  border-color: var(--primary-accent);
  transform: translateY(-5px);
}

.step-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-icon i {
  font-size: 1.5rem;
  color: var(--primary-accent);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.step-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
}

.step-visual {
  background: rgba(5, 10, 21, 0.5);
  border-radius: 12px;
  padding: 20px;
}

/* Step Visual Elements */
.input-preview {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
}

.field-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-accent);
}

.field-value.typing::after {
  content: '|';
  animation: blink 1s infinite;
}

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

.scan-animation {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.scan-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary-accent);
  border-radius: 50%;
  animation: scanPulse 2s ease-out infinite;
}

.scan-ring:nth-child(2) {
  animation-delay: 0.5s;
}
.scan-ring:nth-child(3) {
  animation-delay: 1s;
}

@keyframes scanPulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.scan-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.mcda-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.criteria-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.criteria-bar span {
  width: 80px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.criteria-bar .bar {
  flex: 1;
  height: 8px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.criteria-bar .bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: 0;
  transition: width 1s var(--transition-smooth);
}

.timeline-step.visible .criteria-bar[data-value='85'] .bar-fill {
  width: 85%;
}
.timeline-step.visible .criteria-bar[data-value='92'] .bar-fill {
  width: 92%;
}
.timeline-step.visible .criteria-bar[data-value='78'] .bar-fill {
  width: 78%;
}

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

.result-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.result-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 15px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  color: #22c55e;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.section-features {
  background: var(--bg-darker);
}

.bg-orbs {
  position: absolute;
  inset: 0;
}

.bg-orbs::before,
.bg-orbs::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
}

.bg-orbs::before {
  top: 20%;
  left: 10%;
  background: rgba(59, 130, 246, 0.1);
}

.bg-orbs::after {
  bottom: 20%;
  right: 10%;
  background: rgba(30, 58, 138, 0.15);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 35px;
  transition: all 0.5s var(--transition-smooth);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) translateZ(-50px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-accent);
}

.feature-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.5s var(--transition-smooth);
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.4s var(--transition-smooth);
}

.feature-icon i {
  font-size: 1.75rem;
  color: var(--primary-accent);
  transition: transform 0.4s var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
}

.feature-card:hover .feature-icon i {
  color: white;
  transform: rotate(10deg) scale(1.1);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

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

.feature-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================================
   AI ENGINE SECTION
   =================================== */
.section-engine {
  background: var(--bg-darker);
  padding: 200px 0;
}

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

.spotlight {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse at top,
    rgba(59, 130, 246, 0.2) 0%,
    transparent 60%
  );
}

.grid-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 400px;
  background-image: linear-gradient(transparent 0%, var(--bg-darker) 100%),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 50px 50px, 50px 50px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
}

.engine-dashboard {
  position: relative;
  z-index: 1;
}

.dashboard-frame {
  background: rgba(10, 15, 30, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(59, 130, 246, 0.1);
}

.frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  background: rgba(59, 130, 246, 0.05);
  border-bottom: 1px solid var(--border-subtle);
}

.frame-dots {
  display: flex;
  gap: 8px;
}

.frame-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.frame-dots span:nth-child(1) {
  background: #ef4444;
}
.frame-dots span:nth-child(2) {
  background: #fbbf24;
}
.frame-dots span:nth-child(3) {
  background: #22c55e;
}

.frame-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.frame-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #22c55e;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

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

.dash-panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
}

.dash-panel:hover {
  border-color: var(--primary-accent);
  transform: translateY(-3px);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background: rgba(59, 130, 246, 0.05);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.panel-header i {
  color: var(--primary-accent);
}

.panel-body {
  padding: 20px;
}

/* Cost Panel */
.cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.cost-label {
  color: var(--text-muted);
}

.cost-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

.cost-total {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-weight: 600;
}

.total-value {
  color: var(--primary-accent);
  font-family: var(--font-display);
}

/* Competitors Panel */
.competitor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.competitor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 10px;
}

.comp-avatar {
  width: 35px;
  height: 35px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.comp-name {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.comp-price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

.comp-average {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
}

.avg-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-accent);
}

/* MCDA Panel */
.mcda-gauge {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.mcda-gauge svg {
  width: 120px;
  height: 120px;
}

.gauge-bg {
  fill: none;
  stroke: rgba(59, 130, 246, 0.2);
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke: url(#gauge-gradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314.16;
  stroke-dashoffset: 314.16;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 2s var(--transition-smooth);
  opacity: 1;
  visibility: visible;
}

.gauge-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  fill: var(--text-primary);
  text-anchor: middle;
  dominant-baseline: middle;
}

.gauge-label {
  font-size: 10px;
  fill: var(--text-muted);
  text-anchor: middle;
}

.mcda-factors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.factor {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  font-size: 0.8rem;
}

.factor span:first-child {
  color: var(--text-muted);
}

.factor span:last-child {
  color: var(--primary-accent);
  font-weight: 600;
}

/* Strategy Panel */
.strategy-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.strategy-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: all 0.3s var(--transition-smooth);
}

.strategy-option.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary-accent);
}

.strategy-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.strategy-option.active .strategy-name {
  color: var(--text-primary);
  font-weight: 600;
}

.strategy-score {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-accent);
}

.selected-strategy {
  text-align: center;
  padding: 15px;
  background: var(--gradient-primary);
  border-radius: 12px;
}

.selected-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 5px;
}

.selected-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

/* Margin Panel */
.margin-meter {
  margin-bottom: 20px;
}

.meter-track {
  position: relative;
  height: 20px;
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.3) 0%,
    rgba(251, 191, 36, 0.3) 50%,
    rgba(34, 197, 94, 0.3) 100%
  );
  border-radius: 10px;
  overflow: visible;
}

.meter-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #fbbf24 50%, #22c55e 100%);
  border-radius: 10px;
  width: 0;
  transition: width 2s var(--transition-smooth);
  opacity: 1;
  visibility: visible;
  min-width: 0;
}

.meter-marker {
  position: absolute;
  top: -5px;
  left: 0;
  width: 4px;
  height: 30px;
  background: white;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: left 2s var(--transition-smooth);
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.margin-result {
  text-align: center;
  padding: 15px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
}

.margin-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.margin-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #22c55e;
}

/* Result Panel */
.panel-result {
  grid-column: span 1;
}

.final-price {
  text-align: center;
  padding: 20px 0;
}

.price-currency {
  font-size: 1.5rem;
  color: var(--text-muted);
  vertical-align: top;
}

.price-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: #fbbf24;
}

.price-cents {
  font-size: 1.5rem;
  color: #fbbf24;
  vertical-align: top;
}

.price-confidence {
  margin: 20px 0;
}

.confidence-bar {
  height: 8px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.confidence-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: 0;
  transition: width 2s var(--transition-smooth);
  opacity: 1;
  visibility: visible;
  min-width: 0;
}

.confidence-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  display: block;
}

.price-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  color: #22c55e;
  font-weight: 600;
}

.dashboard-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

/* ===================================
   USE CASES SECTION
   =================================== */
.section-usecases {
  background: var(--bg-dark);
}

.usecases-wrapper {
  position: relative;
  overflow: hidden;
  pointer-events: auto;
}

.usecases-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  will-change: transform;
  transition: transform 0.5s ease-out;
  /* Default LTR: cards flow left to right */
  flex-direction: row;
  position: relative;
  transform: translate3d(0, 0, 0);
}

/* RTL: Keep cards in same order (E-Commerce first, then SaaS, etc.) */
/* Use direction: rtl to make cards flow from right to left naturally */
:root[dir='rtl'] .usecases-track,
:dir(rtl) .usecases-track {
  flex-direction: row;
  direction: rtl;
}

.usecase-card {
  flex: 0 0 350px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.4s var(--transition-smooth);
}

.usecase-card:hover {
  border-color: var(--primary-accent);
  transform: translateY(-5px);
}

.usecase-icon {
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.4s var(--transition-smooth);
}

.usecase-icon i {
  font-size: 2rem;
  color: var(--primary-accent);
}

.usecase-card:hover .usecase-icon {
  background: var(--gradient-primary);
}

.usecase-card:hover .usecase-icon i {
  color: white;
}

.usecase-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.usecase-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
}

.usecase-stat {
  padding: 20px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 16px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 5px;
}

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

.usecase-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  /* Default LTR: prev button on left, next on right */
  flex-direction: row;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* RTL: Reverse button order visually */
:root[dir='rtl'] .usecase-controls,
:dir(rtl) .usecase-controls {
  flex-direction: row-reverse;
}

.usecase-btn {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
}

.usecase-btn:hover {
  background: var(--gradient-primary);
  border-color: var(--primary-accent);
}

.usecase-btn i {
  pointer-events: none;
  user-select: none;
}

/* RTL: Keep arrows in same direction, no visual flip needed */
/* Arrows maintain their original direction in RTL mode */

.usecase-dots {
  display: flex;
  gap: 10px;
  /* Default LTR: dots flow left to right */
  flex-direction: row;
}

/* RTL: Reverse dots order visually so first dot appears on right */
:root[dir='rtl'] .usecase-dots,
:dir(rtl) .usecase-dots {
  flex-direction: row-reverse;
}

.usecase-dots .dot {
  width: 10px;
  height: 10px;
  background: var(--border-subtle);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.usecase-dots .dot.active {
  background: var(--primary-accent);
  width: 30px;
  border-radius: 5px;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.section-testimonials {
  background: var(--bg-darker);
}

.bg-blur-1,
.bg-blur-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(150px);
}

.bg-blur-1 {
  top: 10%;
  left: -10%;
  background: rgba(59, 130, 246, 0.1);
}

.bg-blur-2 {
  bottom: 10%;
  right: -10%;
  background: rgba(30, 58, 138, 0.15);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
  margin-bottom: 80px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--transition-smooth);
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card:hover {
  border-color: var(--primary-accent);
  transform: translateY(-5px);
}

.quote-icon {
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.quote-icon i {
  font-size: 1.25rem;
  color: var(--primary-accent);
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

.author-avatar {
  width: 55px;
  height: 55px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-info {
  flex: 1;
}

.author-name {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
}

.author-role {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.author-company {
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent);
}

/* Trusted Logos */
.trusted-logos {
  text-align: center;
  position: relative;
  z-index: 1;
}

.trusted-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.logos-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.logo-item {
  opacity: 0.5;
  transition: opacity 0.3s var(--transition-smooth);
}

.logo-item:hover {
  opacity: 1;
}

.logo-item span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ===================================
   CTA SECTION
   =================================== */
.section-cta {
  padding: 200px 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg-dark) 0%,
    rgba(30, 58, 138, 0.3) 50%,
    var(--bg-dark) 100%
  );
}

.cta-particles {
  position: absolute;
  inset: 0;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.2) 0%,
    transparent 50%
  );
  filter: blur(60px);
  animation: ctaGlow 4s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

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

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--primary-light);
  margin-bottom: 30px;
}

.cta-badge i {
  color: var(--primary-accent);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 50px;
}

/* Calculator Preview */
.cta-visual {
  margin-bottom: 50px;
}

.calculator-preview {
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: rgba(59, 130, 246, 0.05);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 600;
}

.calc-dots {
  display: flex;
  gap: 6px;
}

.calc-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.calc-dots span:nth-child(1) {
  background: #ef4444;
}
.calc-dots span:nth-child(2) {
  background: #fbbf24;
}
.calc-dots span:nth-child(3) {
  background: #22c55e;
}

.calc-body {
  padding: 25px;
  position: relative;
}

.calc-input {
  margin-bottom: 20px;
}

.calc-input label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 15px;
}

.input-group span {
  color: var(--text-muted);
}

.input-group input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  outline: none;
  text-align: center;
}

.calc-result {
  text-align: center;
  padding: 25px;
  background: var(--gradient-primary);
  border-radius: 16px;
  margin-top: 30px;
}

.calc-result .result-label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.calc-result .result-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
}

.calc-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.calc-sparkles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-accent);
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

.calc-sparkles span:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.calc-sparkles span:nth-child(2) {
  top: 40%;
  right: 15%;
  animation-delay: 0.5s;
}
.calc-sparkles span:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 1s;
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-cta-primary {
  padding: 18px 40px;
  background: var(--gradient-primary);
  color: var(--text-primary);
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
  transition: all 0.4s var(--transition-smooth);
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.5);
}

.btn-cta-secondary {
  padding: 18px 40px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.4s var(--transition-smooth);
}

.btn-cta-secondary:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--primary-accent);
}

.btn-cta-secondary i {
  color: var(--primary-accent);
}

/* CTA Trust */
.cta-trust {
  display: flex;
  justify-content: center;
  gap: 40px;
}

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

.trust-item i {
  color: #22c55e;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--bg-darker);
  padding: 80px 0 40px;
  position: relative;
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-logo .logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo .logo-icon img {
  display: block;
}

.footer-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  align-items: center;
  color: var(--text-primary);
}

.footer-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
}

.social-link:hover {
  background: var(--gradient-primary);
  border-color: var(--primary-accent);
  color: white;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 0;
  font-size: 0.95rem;
  transition: color 0.3s var(--transition-smooth);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-badges {
  display: flex;
  gap: 20px;
}

.footer-badges .badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  font-size: 0.8rem;
}

.footer-badges .badge i {
  color: var(--primary-accent);
}

.footer-branding {
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.8;
  text-align: center;
  transition: opacity 0.3s ease;
}

.footer-branding:hover {
  opacity: 1;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    height: 500px;
    order: -1;
  }

  .floating-card {
    display: none;
  }

  .what-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .what-visual {
    order: -1;
    height: 400px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
  }

  .connection-lines {
    display: none;
  }

  .flip-cards {
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  .flip-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .flip-card:nth-child(2),
  .flip-card:nth-child(3) {
    margin-left: 0 !important;
  }

  .what-text {
    padding-right: 0;
    padding-left: 0;
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    clear: both;
  }

  .what-text .section-title {
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
    margin-bottom: 25px;
  }

  .text-reveals {
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    clear: both;
  }

  .reveal-paragraph {
    text-align: center;
    max-width: 100%;
    padding: 0 15px;
    margin-bottom: 20px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
    transform: none !important;
    opacity: 1 !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1;
    clear: both;
    line-height: 1.8 !important;
  }

  .reveal-paragraph.visible {
    transform: none !important;
    opacity: 1 !important;
  }

  .what-features {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .timeline-line {
    left: 30px;
  }

  .timeline-step {
    padding-left: 100px !important;
    padding-right: 0 !important;
    flex-direction: row !important;
  }

  .step-marker {
    left: 30px !important;
    transform: translateX(-50%);
  }

  .step-content {
    padding: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .step-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .step-desc {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .hero {
    padding: 80px 0 40px;
  }

  .hero-content {
    padding: 0 20px;
    text-align: center;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.4;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
  }

  .title-line {
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 0.5em;
  }

  .title-line:last-child {
    margin-bottom: 0;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
  }

  .hero-visual {
    height: 350px;
  }

  .orb-container {
    width: 250px;
    height: 250px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 15px;
  }

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

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
  }

  .stat {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 150px;
    text-align: center;
  }

  .stat-value-wrapper {
    justify-content: center;
    flex-wrap: nowrap;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-suffix {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.8rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    text-align: center;
    line-height: 1.4;
  }

  .flip-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .flip-card {
    width: 100%;
    max-width: 320px;
    min-height: 200px;
    height: auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 20px;
  }

  .data-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .data-value-group {
    flex-wrap: nowrap;
  }

  .flip-card:nth-child(2),
  .flip-card:nth-child(3) {
    margin-left: 0 !important;
  }

  .what-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .what-visual {
    order: -1;
    height: auto;
    min-height: 350px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
  }

  .connection-lines {
    display: none;
  }

  .flip-cards {
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: auto;
    min-height: 300px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  .flip-card {
    width: 100%;
    max-width: 320px;
    min-height: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
  }

  .flip-card:nth-child(2),
  .flip-card:nth-child(3) {
    margin-left: 0 !important;
  }

  .flip-card-inner {
    min-height: 200px;
    height: 100%;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 15px;
    min-height: 200px;
    height: 100%;
    justify-content: center;
  }

  .flip-card-front i {
    font-size: 1.75rem;
  }

  .flip-card-front span {
    font-size: 0.95rem;
  }

  .what-text {
    padding-right: 0;
    padding-left: 0;
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    clear: both;
  }

  .what-text .section-title {
    text-align: center;
    font-size: 1.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
    margin-bottom: 25px;
  }

  .text-reveals {
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    clear: both;
  }

  .reveal-paragraph {
    text-align: center;
    max-width: 100%;
    padding: 0 10px;
    font-size: 0.95rem;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    transform: none !important;
    opacity: 1 !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1;
    clear: both;
    box-sizing: border-box;
  }

  .reveal-paragraph.visible {
    transform: none !important;
    opacity: 1 !important;
  }

  .what-features {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
  }

  .mini-feature {
    flex: 0 0 auto;
    min-width: 140px;
  }

  .section-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
  }

  .section-subtitle {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dash-panel,
  .dashboard-panel {
    padding: 20px;
    min-height: auto;
  }

  .panel-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .panel-body {
    padding: 15px 0;
  }

  .cost-item,
  .competitor-item,
  .factor,
  .strategy-option {
    flex-wrap: wrap;
    gap: 8px;
  }

  .gauge-container {
    max-width: 100%;
    height: auto;
  }

  .engine-dashboard {
    padding: 20px;
  }

  .usecase-card {
    flex: 0 0 300px;
    min-width: 280px;
    max-width: 100%;
  }

  .usecase-title,
  .usecase-desc {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
  }

  .feature-title,
  .feature-desc {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .cta-trust {
    flex-direction: column;
    gap: 15px;
  }

  .cta-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
  }

  .cta-subtitle {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
  }

  .calculator-preview {
    max-width: 100%;
    padding: 20px;
  }

  .calc-input {
    width: 100%;
  }

  .calc-input input {
    width: 100%;
    font-size: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-badges {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-main {
    padding: 0 15px;
  }

  .footer-desc {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
  }

  .footer-col {
    margin-bottom: 30px;
  }

  .footer-col h4 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .footer-col a {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .step-content {
    padding: 25px;
  }

  .feature-card {
    padding: 25px;
  }

  .testimonial-card {
    padding: 25px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Hero Stats - Column layout for small mobile */
  .hero-stats {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .stat {
    width: 100%;
    max-width: 200px;
    min-width: auto;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .stat-suffix {
    font-size: 0.9rem;
  }

  .stat-label {
    font-size: 0.75rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }
}

/* iPhone SE and smaller devices (375px) */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .title-line {
    margin-bottom: 0.5em;
  }

  .title-line:last-child {
    margin-bottom: 0;
  }

  .hero-subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-suffix {
    font-size: 0.85rem;
  }

  .stat-label {
    font-size: 0.7rem;
    line-height: 1.3;
    padding: 0 5px;
  }

  .hero-stats {
    gap: 12px;
  }

  .stat {
    max-width: 180px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-ctas {
    gap: 12px;
  }

  .btn {
    font-size: 0.875rem;
    padding: 12px 20px;
  }

  .nav-container {
    padding: 0 10px;
  }

  .container {
    padding: 0 10px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .nav {
    padding: 12px 0;
  }

  .mobile-link {
    font-size: 1.1rem;
  }

  /* Performance optimizations for small screens */
  .hero-visual {
    height: 300px;
  }

  .orb-container {
    width: 200px;
    height: 200px;
  }

  .floating-card {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .what-visual {
    height: auto;
    min-height: 300px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
  }

  .connection-lines {
    display: none;
  }

  .flip-cards {
    gap: 15px;
    min-height: 250px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  .flip-card {
    max-width: 100%;
    min-height: 180px;
    height: 180px;
    position: relative;
    box-sizing: border-box;
    margin-left: 0 !important;
  }

  .flip-card-inner {
    min-height: 180px;
    height: 100%;
  }

  .flip-card-front,
  .flip-card-back {
    min-height: 180px;
    height: 100%;
    justify-content: center;
  }

  .flip-card-front i {
    font-size: 1.5rem;
  }

  .flip-card-front span {
    font-size: 0.875rem;
  }

  .what-text {
    padding: 0 15px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
  }

  .text-reveals {
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
  }

  .reveal-paragraph {
    font-size: 0.875rem;
    line-height: 1.8 !important;
    padding: 0 10px;
    margin-bottom: 20px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
    transform: none !important;
    opacity: 1 !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1;
    clear: both;
  }

  .reveal-paragraph.visible {
    transform: none !important;
    opacity: 1 !important;
  }

  .what-features {
    gap: 10px;
    margin-top: 20px;
  }

  .mini-feature {
    min-width: 120px;
    font-size: 0.8rem;
  }
}

/* Animations for scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Print Styles */
@media print {
  .nav,
  .scroll-indicator,
  .cursor,
  .cursor-follower,
  .loader {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
