/* lepehr Marketing Homepage Stylesheet - Redesigned Light-First Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Default Light Theme Variables */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.45);
  --border-color: rgba(15, 23, 42, 0.06);
  --border-color-glow: rgba(79, 70, 229, 0.35);
  
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.08);
  --secondary: #8b5cf6;
  --secondary-glow: rgba(139, 92, 246, 0.08);
  --accent: #059669;
  --accent-glow: rgba(5, 150, 105, 0.08);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-disabled: #94a3b8;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-custom: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.5s var(--ease-custom);
  --transition-fast: all 0.2s var(--ease-custom);
  
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;
}

/* Dark Theme Variables Overrides */
body.dark-theme {
  --bg-base: #030712;
  --bg-surface: #0b0f19;
  --bg-card: rgba(15, 23, 42, 0.35);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(59, 130, 246, 0.25);
  
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.15);
  --secondary: #8b5cf6;
  --secondary-glow: rgba(139, 92, 246, 0.15);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.15);
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-disabled: #4b5563;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-x: hidden;
  transition: background-color 0.3s ease;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

body.dark-theme .grain-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
}

.ambient-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08;
  pointer-events: none;
}

body.dark-theme .orb {
  mix-blend-mode: screen;
  opacity: 0.12;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  right: -50px;
  animation: floatOrb 25s ease-in-out infinite alternate;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: var(--secondary);
  top: 20%;
  left: -200px;
  animation: floatOrb 35s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: var(--accent);
  top: 55%;
  right: -150px;
  animation: floatOrb 28s ease-in-out infinite alternate;
}

.dot-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

body.dark-theme .dot-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px);
}

/* Animations Keyframes */
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -40px) scale(1.1); }
  100% { transform: translate(-30px, 60px) scale(0.95); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(79, 70, 229, 0.05); }
  50% { box-shadow: 0 0 25px rgba(79, 70, 229, 0.2); }
}

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

/* Advanced Scroll-Triggered Reveal Suite */
.reveal-element {
  opacity: 0;
  transition: opacity 1s var(--ease-custom), transform 1s var(--ease-custom), filter 1s var(--ease-custom);
  will-change: transform, opacity, filter;
}

/* 1. Slide Up */
.reveal-up {
  transform: translateY(50px);
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Slide Down */
.reveal-down {
  transform: translateY(-50px);
}
.reveal-down.active {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Slide Left */
.reveal-left {
  transform: translateX(-50px);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* 4. Slide Right */
.reveal-right {
  transform: translateX(50px);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* 5. Scale/Zoom Up */
.reveal-scale {
  transform: scale(0.9);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* 6. Blur In */
.reveal-blur {
  filter: blur(12px);
  transform: scale(0.96);
}
.reveal-blur.active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* Custom Interactive Cursor Light */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, rgba(139, 92, 246, 0.03) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 100;
  transition: width 0.5s var(--ease-custom), height 0.5s var(--ease-custom);
}

.cursor-glow.active {
  width: 500px;
  height: 500px;
}

body.dark-theme .cursor-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.03) 50%, transparent 70%);
  mix-blend-mode: screen;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1100px;
  height: 64px;
  z-index: 1000;
  transition: var(--transition-fast);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

body.dark-theme .navbar {
  background-color: rgba(11, 15, 25, 0.45);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(79, 70, 229, 0.15);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08), 0 0 20px rgba(79, 70, 229, 0.05);
}

body.dark-theme .navbar.scrolled {
  background-color: rgba(3, 7, 18, 0.85);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 100%;
  padding: 0 24px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}

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

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

.mobile-cta {
  display: none;
}

.nav-toggle {
  display: none;
}

/* Theme Toggle Button Styles */
.btn-theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.btn-theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.04);
}

body.dark-theme .btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Default Light Mode -> show Moon icon to switch to Dark */
.btn-theme-toggle .sun-icon {
  display: none;
}
.btn-theme-toggle .moon-icon {
  display: block;
}

/* Dark Mode -> show Sun icon to switch to Light */
body.dark-theme .btn-theme-toggle .sun-icon {
  display: block;
}
body.dark-theme .btn-theme-toggle .moon-icon {
  display: none;
}

/* Typography & Headers */
.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-theme .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  font-weight: 400;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

body.dark-theme .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.15);
}

body.dark-theme .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: transparent;
}

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

/* Glassmorphism Card Base */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition-smooth);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 8px 30px rgba(15, 23, 42, 0.03), 
    0 1px 3px rgba(15, 23, 42, 0.01);
}

body.dark-theme .card-glass {
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.card-glass:hover {
  border-color: var(--border-color-glow);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.8),
    0 20px 45px rgba(79, 70, 229, 0.08), 
    0 1px 5px rgba(0, 0, 0, 0.02);
  transform: translateY(-6px);
}

body.dark-theme .card-glass:hover {
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.15),
    0 20px 45px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(59, 130, 246, 0.06);
}

/* Sections */
section {
  padding: 120px 0;
  position: relative;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 120px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.15;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: heroLineFadeIn 0.8s var(--ease-custom) forwards;
}

.hero-line.line-1 {
  animation-delay: 0.2s;
}

.hero-line.line-2 {
  animation-delay: 0.35s;
}

.hero-line.line-3 {
  animation-delay: 0.5s;
}

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

.hero-sub {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  align-items: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-badge svg {
  color: var(--primary);
}

/* Mockup Showcase Wrapper */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
}

.mockup-3d-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(79, 70, 229, 0.03) 50%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

body.dark-theme .mockup-3d-glow {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
}

.mockup-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: var(--transition-smooth);
  animation: floatElement 6s ease-in-out infinite;
}

body.dark-theme .mockup-frame {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(3, 7, 18, 0.8);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
}

.mockup-frame:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  height: 36px;
  background: rgba(15, 23, 42, 0.02);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
}

body.dark-theme .mockup-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.mockup-stat-card {
  background: rgba(15, 23, 42, 0.015);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px;
}

body.dark-theme .mockup-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.mockup-stat-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

/* Stats Bar */
.stats-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.45);
}

body.dark-theme .stats-bar {
  background: rgba(3, 7, 18, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
}

.stat-lbl {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--primary);
  transition: var(--transition-fast);
}

body.dark-theme .feature-icon-container {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.feature-card:hover .feature-icon-container {
  transform: scale(1.1);
  color: white;
  border-color: transparent;
}

.feature-card:nth-child(1) .feature-icon-container { color: var(--primary); }
.feature-card:nth-child(1):hover .feature-icon-container { background: var(--primary); }
.feature-card:nth-child(2) .feature-icon-container { color: var(--secondary); }
.feature-card:nth-child(2):hover .feature-icon-container { background: var(--secondary); }
.feature-card:nth-child(3) .feature-icon-container { color: var(--accent); }
.feature-card:nth-child(3):hover .feature-icon-container { background: var(--accent); }
.feature-card:nth-child(4) .feature-icon-container { color: #f43f5e; }
.feature-card:nth-child(4):hover .feature-icon-container { background: #f43f5e; }
.feature-card:nth-child(5) .feature-icon-container { color: #06b6d4; }
.feature-card:nth-child(5):hover .feature-icon-container { background: #06b6d4; }
.feature-card:nth-child(6) .feature-icon-container { color: #f59e0b; }
.feature-card:nth-child(6):hover .feature-icon-container { background: #f59e0b; }
.feature-card:nth-child(7) .feature-icon-container { color: #6366f1; }
.feature-card:nth-child(7):hover .feature-icon-container { background: #6366f1; }
.feature-card:nth-child(8) .feature-icon-container { color: #84cc16; }
.feature-card:nth-child(8):hover .feature-icon-container { background: #84cc16; }

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* How It Works Section */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  margin-top: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.timeline-progress {
  position: absolute;
  top: 30px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 0;
  width: 0;
  transition: width 1s var(--ease-custom);
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.timeline-step.active .step-num-container {
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

/* Security Section */
.security-section {
  background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.03) 0%, transparent 40%);
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.security-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.security-ring-outer {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px dashed rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body.dark-theme .security-ring-outer {
  border-color: rgba(255, 255, 255, 0.08);
}

.security-ring-inner {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.04);
  background: rgba(15, 23, 42, 0.005);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 30px rgba(15, 23, 42, 0.01);
}

body.dark-theme .security-ring-inner {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.02);
}

.security-center {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.2);
  z-index: 2;
}

body.dark-theme .security-center {
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.crypto-matrix {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  font-family: monospace;
  font-size: 11px;
  color: var(--primary);
  opacity: 0.15;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-theme .crypto-matrix {
  opacity: 0.25;
}

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

.sec-feat-item {
  display: flex;
  gap: 16px;
}

.sec-feat-icon {
  color: var(--accent);
  margin-top: 2px;
}

.sec-feat-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sec-feat-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Dashboard Carousel */
.carousel-container {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
}

body.dark-theme .carousel-container {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.carousel-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.01);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

body.dark-theme .carousel-tabs {
  background: rgba(255, 255, 255, 0.02);
}

.carousel-tab {
  padding: 16px 32px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.carousel-tab:hover {
  color: var(--text-primary);
}

.carousel-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.carousel-slides {
  position: relative;
  height: 380px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 48px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-custom), visibility 0.5s;
  display: flex;
  align-items: center;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.slide-content-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  width: 100%;
  align-items: center;
}

.slide-graphic-mock {
  background: rgba(15, 23, 42, 0.015);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-md);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.dark-theme .slide-graphic-mock {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Pricing Section */
.price-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.toggle-switch {
  width: 50px;
  height: 28px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.08);
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
}

body.dark-theme .toggle-switch {
  background: rgba(255, 255, 255, 0.1);
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch.active .toggle-dot {
  left: 25px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.06);
}

body.dark-theme .pricing-card.popular {
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.pricing-card.popular:hover {
  transform: translateY(-12px);
}

.price-header {
  margin-bottom: 28px;
}

.price-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.price-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.price-period {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  flex-grow: 1;
}

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

.price-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 16px 0;
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon-box {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon-box {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-custom);
}

.faq-answer {
  padding: 8px 0 16px 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* CTA Section */
.cta-banner {
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.06), transparent 60%),
              radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.06), transparent 60%),
              var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.04);
}

body.dark-theme .cta-banner {
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 60%),
              radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.15), transparent 60%),
              var(--bg-surface);
  box-shadow: none;
}

.cta-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

/* Footer Section */
.footer-main {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
}

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

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.footer-bottom-txt {
  font-size: 13px;
  color: var(--text-disabled);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 64px;
  }
  
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-trust {
    justify-content: center;
  }
  
  .mockup-frame {
    transform: none;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .mockup-frame:hover {
    transform: none;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: 32px;
  }
  
  .pricing-card.popular {
    transform: none;
  }
  
  .security-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .section-title {
    font-size: 28px;
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .hero-title {
    font-size: 34px;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .timeline::before {
    display: none;
  }
  
  .slide-content-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .carousel-slides {
    height: auto;
    min-height: 520px;
  }

  .carousel-tabs {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .carousel-tab {
    padding: 12px 24px;
    font-size: 13px;
    flex-shrink: 0;
  }
  
  /* Mobile Responsive Navbar Dropdown */
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
  }

  .hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
    transform-origin: left center;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 
      inset 0 1px 1px rgba(255, 255, 255, 0.4),
      0 20px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 999;
  }

  body.dark-theme .nav-links {
    box-shadow: 
      inset 0 1px 1px rgba(255, 255, 255, 0.05),
      0 20px 40px rgba(0, 0, 0, 0.45);
  }

  .navbar.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .navbar.nav-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(1px, -1px);
  }

  .navbar.nav-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .navbar.nav-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(1px, 1px);
  }

  .mobile-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Responsive fixes */
  .security-ring-outer {
    width: 300px;
    height: 300px;
  }
  .security-ring-inner {
    width: 210px;
    height: 210px;
  }
  .security-center {
    width: 110px;
    height: 110px;
  }
  .cta-banner {
    padding: 48px 24px;
  }
  .mockup-frame {
    width: 100%;
  }
  .carousel-slide {
    padding: 24px;
  }
}

/* Hero Road Animation */
.hero-road-animation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  z-index: 10;
  transition: opacity 0.3s ease;
}

body.scrolled .hero-road-animation {
  opacity: 0;
  pointer-events: none;
}

.road-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, 
    transparent, 
    transparent 15px, 
    var(--text-secondary) 15px, 
    var(--text-secondary) 30px
  );
  opacity: 0.15;
  transform: translateY(-50%);
}

.vehicle {
  position: absolute;
  bottom: 10px;
  font-size: 24px;
  transform: scaleX(-1); /* Flips left-facing emojis to face right */
  will-change: left;
  animation: drive linear infinite;
  user-select: none;
}

/* Custom speed & delay configs for organic driving patterns */
.car-1 {
  animation-duration: 16s;
  animation-delay: -2s;
}

.taxi-1 {
  animation-duration: 20s;
  animation-delay: -8s;
  bottom: 12px;
  font-size: 22px;
}

.truck-1 {
  animation-duration: 26s;
  animation-delay: -5s;
  bottom: 8px;
  font-size: 28px;
}

.truck-2 {
  animation-duration: 32s;
  animation-delay: -14s;
  bottom: 6px;
  font-size: 30px;
}

.bus-1 {
  animation-duration: 24s;
  animation-delay: -18s;
  bottom: 8px;
  font-size: 28px;
}

.car-2 {
  animation-duration: 18s;
  animation-delay: -11s;
  bottom: 11px;
  font-size: 23px;
}

.minivan-1 {
  animation-duration: 21s;
  animation-delay: -3s;
  bottom: 9px;
  font-size: 25px;
}

.police-1 {
  animation-duration: 14s;
  animation-delay: -6s;
  bottom: 10px;
  font-size: 24px;
}

.fire-1 {
  animation-duration: 17s;
  animation-delay: -15s;
  bottom: 8px;
  font-size: 27px;
}

.moto-1 {
  animation-duration: 13s;
  animation-delay: -10s;
  bottom: 12px;
  font-size: 20px;
}

.scooter-1 {
  animation-duration: 19s;
  animation-delay: -12s;
  bottom: 11px;
  font-size: 19px;
}

.tractor-1 {
  animation-duration: 35s;
  animation-delay: -4s;
  bottom: 7px;
  font-size: 26px;
}

@keyframes drive {
  0% {
    left: -100px;
  }
  100% {
    left: calc(100% + 100px);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-title {
    font-size: 28px !important;
  }
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .pricing-card {
    padding: 24px 16px;
  }
  .section-title {
    font-size: 24px;
  }
  .security-ring-outer {
    width: 250px;
    height: 250px;
  }
  .security-ring-inner {
    width: 170px;
    height: 170px;
  }
  .security-center {
    width: 90px;
    height: 90px;
  }
  .security-center svg {
    width: 32px;
    height: 32px;
  }
  .cta-banner {
    padding: 32px 16px;
  }
  .cta-title {
    font-size: 28px !important;
  }
  .cta-desc {
    font-size: 15px !important;
  }
  .carousel-slide {
    padding: 16px;
  }
  .carousel-slides {
    min-height: 480px;
  }
  .mockup-stat-grid {
    grid-template-columns: 1fr;
  }
}
