/* ============================================
   AUTOSCOL - STYLES
   ============================================
   1. CSS Custom Properties
   2. Reset & Base
   3. Typography & Utilities
   4. Noise Overlay
   5. Navigation
   6. Hero Section
   7. Stats Bar
   8. Features Section
   9. Demo Section
   10. CTA Section
   11. Footer
   12. Keyframes
   13. Responsive
   14. Reduced Motion
   ============================================ */

/* ============================================
   1. CSS Custom Properties
   ============================================ */
:root {
  --bg-deep: #060B18;
  --bg-surface: #0A1120;
  --bg-card: #0D1526;
  --bg-card-hover: #131D33;
  --bg-elevated: #162040;

  --accent-blue: #2D7AFF;
  --accent-blue-light: #5B9AFF;
  --accent-cyan: #00D4FF;
  --accent-green: #00E68A;
  --accent-orange: #FF6B35;
  --accent-red: #FF3B5C;
  --accent-purple: #A855F7;
  --accent-yellow: #FBBF24;

  --text-primary: #F0F4FC;
  --text-secondary: #7B8BA8;
  --text-muted: #4A5568;

  --border: rgba(45, 122, 255, 0.10);
  --border-hover: rgba(45, 122, 255, 0.25);
  --glow-blue: rgba(45, 122, 255, 0.25);
  --glow-cyan: rgba(0, 212, 255, 0.12);

  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.7s;
  --duration-reveal: 0.9s;

  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(45, 122, 255, 0.3);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(45, 122, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(45, 122, 255, 0.5);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ============================================
   3. Typography & Utilities
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-blue);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

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

.yellow-underline {
  position: relative;
  white-space: nowrap;
}
.yellow-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-yellow);
  border-radius: 2px;
  opacity: 0.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-green));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-hero {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s var(--ease-out-expo) forwards;
}
.reveal-hero:nth-child(1) { animation-delay: 0.1s; }
.reveal-hero:nth-child(2) { animation-delay: 0.25s; }
.reveal-hero:nth-child(3) { animation-delay: 0.4s; }
.reveal-hero:nth-child(4) { animation-delay: 0.55s; }

/* ============================================
   4. Noise Overlay
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  mix-blend-mode: overlay;
}

/* ============================================
   5. Navigation
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease,
              backdrop-filter var(--duration-normal) ease;
}

#navbar.scrolled {
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(45, 122, 255, 0.15), rgba(0, 212, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 122, 255, 0.2);
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-secondary);
}
.nav-logo-text span {
  color: var(--text-primary);
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 1px;
  transition: width var(--duration-normal) var(--ease-out-expo);
}
.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: var(--radius-xs);
  background: var(--accent-blue);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--duration-fast) ease,
              transform var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}
.nav-cta:hover {
  background: var(--accent-blue-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(45, 122, 255, 0.35);
}

/* Hamburger */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-fast) ease;
}
#navbar.open .nav-mobile-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#navbar.open .nav-mobile-toggle span:nth-child(2) {
  opacity: 0;
}
#navbar.open .nav-mobile-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   6. Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow--blue {
  width: 600px;
  height: 600px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--glow-blue), transparent 70%);
  animation: heroGlow 8s ease-in-out infinite;
}
.hero-glow--cyan {
  width: 500px;
  height: 500px;
  bottom: -50px;
  left: -100px;
  background: radial-gradient(circle, var(--glow-cyan), transparent 70%);
  animation: heroGlow 8s ease-in-out 4s infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  transform: translateY(var(--parallax-y, 0px));
  will-change: transform;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(0, 230, 138, 0.08);
  border: 1px solid rgba(0, 230, 138, 0.2);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  position: relative;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: all var(--duration-fast) ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-primary:hover::before {
  transform: translateX(100%);
}
.btn-primary:hover {
  background: var(--accent-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45, 122, 255, 0.4);
}
.btn-primary.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
  border-radius: var(--radius-md);
}

.btn-arrow {
  font-size: 18px;
  transition: transform var(--duration-normal) var(--ease-spring);
}
.btn-primary:hover .btn-arrow {
  transform: translateY(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all var(--duration-fast) ease;
}
.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(45, 122, 255, 0.05);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2.5s ease-in-out infinite;
}
.scroll-arrow {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ============================================
   7. Stats Bar
   ============================================ */
.stats-bar {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number.counting {
  background: linear-gradient(90deg, var(--text-primary) 30%, var(--accent-cyan) 50%, var(--text-primary) 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s ease-in-out;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* ============================================
   8. Features Section
   ============================================ */
.features-section {
  padding: 100px 0;
}

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

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
  overflow: hidden;
  contain: content;
}

/* Conic gradient border effect on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}
.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(45, 122, 255, 0.08);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon--blue {
  background: rgba(45, 122, 255, 0.12);
  color: var(--accent-blue);
}
.feature-icon--green {
  background: rgba(0, 230, 138, 0.12);
  color: var(--accent-green);
}
.feature-icon--orange {
  background: rgba(255, 107, 53, 0.12);
  color: var(--accent-orange);
}
.feature-icon--cyan {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-cyan);
}
.feature-icon--red {
  background: rgba(255, 59, 92, 0.12);
  color: var(--accent-red);
}
.feature-icon--purple {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-purple);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   9. Demo Section
   ============================================ */
.demo-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Tabs */
.demo-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.demo-tabs-inner {
  display: flex;
  width: 100%;
  max-width: 500px;
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
}

.demo-tab {
  padding: 12px 28px;
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
}
.demo-tab.active {
  color: var(--text-primary);
}

.demo-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(33.333% - 2.67px);
  height: calc(100% - 8px);
  background: var(--bg-elevated);
  border-radius: var(--radius-xs);
  transition: transform var(--duration-normal) var(--ease-out-expo);
  z-index: 0;
  pointer-events: none;
}
.demo-tab-indicator.pos-1 {
  transform: translateX(100%);
}
.demo-tab-indicator.pos-2 {
  transform: translateX(200%);
}

/* Panels */
.demo-panel {
  transition: opacity var(--duration-slow) ease,
              transform var(--duration-slow) var(--ease-out-expo);
}
.demo-panel.hidden {
  display: none;
}

.demo-container {
  display: grid;
  grid-template-columns: auto 340px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Phone Nav */
.phone-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
  text-align: left;
}
.phone-nav-item:hover {
  background: rgba(45, 122, 255, 0.06);
  color: var(--text-primary);
}
.phone-nav-item.active {
  background: rgba(45, 122, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(45, 122, 255, 0.15);
}
.phone-nav-item svg {
  flex-shrink: 0;
}

/* Phone Frame */
.phone-frame {
  width: 340px;
  height: 700px;
  background: var(--bg-card);
  border: 2px solid rgba(45, 122, 255, 0.15);
  border-radius: 40px;
  padding: 12px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 80px rgba(45, 122, 255, 0.06);
  animation: float 7s ease-in-out infinite;
  flex-shrink: 0;
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: var(--bg-deep);
  border-radius: 0 0 20px 20px;
  margin: 0 auto 8px;
}

.phone-screen {
  width: 100%;
  height: calc(100% - 36px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-deep);
  position: relative;
}

/* Phone screen content transitions */
.phone-screen-content {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.96);
  filter: blur(4px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out-expo), filter 0.5s ease;
  pointer-events: none;
}
.phone-screen-content.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.phone-screen-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 28px;
}

/* Mock Screen Styles */
.mock-screen {
  padding: 20px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mock-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.mock-count {
  font-size: 12px;
  color: var(--text-secondary);
}

.mock-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.mock-badge--green {
  background: rgba(0, 230, 138, 0.12);
  color: var(--accent-green);
}
.mock-badge--yellow {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-yellow);
}
.mock-badge--red {
  background: rgba(255, 59, 92, 0.12);
  color: var(--accent-red);
}
.mock-badge--blue {
  background: rgba(45, 122, 255, 0.12);
  color: var(--accent-blue);
}

.mock-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45,122,255,0.3), rgba(0,212,255,0.2));
  flex-shrink: 0;
}
.mock-avatar--sm {
  width: 36px;
  height: 36px;
}
.mock-avatar--lg {
  width: 64px;
  height: 64px;
}

.mock-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(123, 139, 168, 0.15);
  margin-bottom: 6px;
}
.mock-line--20 { width: 20%; }
.mock-line--25 { width: 25%; }
.mock-line--30 { width: 30%; }
.mock-line--35 { width: 35%; }
.mock-line--40 { width: 40%; }
.mock-line--45 { width: 45%; }
.mock-line--50 { width: 50%; }
.mock-line--55 { width: 55%; }
.mock-line--60 { width: 60%; }
.mock-lines {
  flex: 1;
  min-width: 0;
}

.mock-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-top: auto;
}

/* Map mock */
.mock-map {
  flex: 1;
  position: relative;
  background: rgba(13, 21, 38, 0.8);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.mock-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 122, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 122, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.mock-map-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(45, 122, 255, 0.5);
  animation: pulse 2s ease-in-out infinite;
}
.mock-map-dot--idle {
  background: var(--accent-yellow);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
  animation-delay: 0.5s;
}
.mock-map-dot--self {
  background: var(--accent-green);
  box-shadow: 0 0 16px rgba(0, 230, 138, 0.5);
  width: 16px;
  height: 16px;
}

/* List mock */
.mock-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-xs);
}

/* Stats mock */
.mock-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.mock-stat {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-xs);
}

.mock-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 4px;
}

/* Profile mock */
.mock-profile-card {
  text-align: center;
  padding: 20px;
  margin-bottom: 16px;
}

/* Progress mock */
.mock-progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-progress {
  padding: 0 4px;
}

.mock-bar {
  height: 6px;
  background: rgba(123, 139, 168, 0.1);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.mock-bar-fill {
  height: 100%;
  background: var(--accent-blue);
  border-radius: 3px;
  transition: width 1s var(--ease-out-expo);
}
.mock-bar-fill--cyan {
  background: var(--accent-cyan);
}
.mock-bar-fill--green {
  background: var(--accent-green);
}

.mock-progress-mini {
  width: 48px;
  height: 4px;
  background: rgba(123, 139, 168, 0.1);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Timeline mock */
.mock-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.mock-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  position: relative;
}

.mock-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue);
  position: absolute;
  left: -22px;
  top: 20px;
}
.mock-timeline-dot--green {
  background: var(--accent-green);
}
.mock-timeline-dot--yellow {
  background: var(--accent-yellow);
}

.mock-timeline-content {
  flex: 1;
}

.mock-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Calendar mock */
.mock-calendar {
  flex: 1;
}

.mock-calendar-header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.mock-calendar-header span {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 0;
}

.mock-calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 28px);
  gap: 4px;
}

.mock-cal-block {
  border-radius: 4px;
  opacity: 0.7;
}
.mock-cal-block--blue { background: var(--accent-blue); }
.mock-cal-block--green { background: var(--accent-green); }
.mock-cal-block--orange { background: var(--accent-orange); }
.mock-cal-block--cyan { background: var(--accent-cyan); }

/* Chart mock */
.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  padding: 16px 0;
}

.mock-chart-bar {
  flex: 1;
  background: var(--accent-blue);
  border-radius: 4px 4px 0 0;
  opacity: 0.7;
  min-height: 20px;
}
.mock-chart-bar--cyan {
  background: var(--accent-cyan);
}

.mock-kpi-row {
  display: flex;
  gap: 12px;
}

.mock-kpi {
  flex: 1;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-xs);
  text-align: center;
}

/* Big clock for profesor */
.mock-big-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: var(--accent-blue);
  padding: 32px 0;
  letter-spacing: 2px;
}

.mock-btn-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.mock-btn {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-xs);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.mock-btn--green {
  background: rgba(0, 230, 138, 0.2);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 138, 0.3);
}
.mock-btn--red {
  background: rgba(255, 59, 92, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 59, 92, 0.25);
}

.mock-today-stats {
  display: flex;
  gap: 12px;
}

/* Phone Info */
.phone-info {
  padding: 8px 0;
}

.phone-info-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 20px;
}
.admin-badge {
  background: rgba(45, 122, 255, 0.12);
  color: var(--accent-blue);
}
.profesor-badge {
  background: rgba(0, 230, 138, 0.12);
  color: var(--accent-green);
}
.alumno-badge {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-purple);
}

.phone-info-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.phone-info-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.phone-info-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-info-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 230, 138, 0.12);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ============================================
   10. CTA Section
   ============================================ */
.cta-section {
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(45, 122, 255, 0.12), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

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

.cta-section .section-title {
  margin-bottom: 16px;
}

.cta-section .section-subtitle {
  margin-bottom: 40px;
}

/* ============================================
   11. Footer
   ============================================ */
.site-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}
.footer-links a:hover {
  color: var(--text-primary);
}

/* ============================================
   12. Scroll Progress Bar
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan), var(--accent-green));
  z-index: 10001;
  pointer-events: none;
}

/* ============================================
   13. Cursor Spotlight
   ============================================ */
.cursor-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(600px circle at var(--mouse-x, -100px) var(--mouse-y, -100px), rgba(45,122,255,0.04), transparent 40%);
  transition: opacity 0.3s ease;
}

/* ============================================
   14. Typewriter
   ============================================ */
.typewriter-wrapper {
  display: inline-flex;
  align-items: baseline;
  min-width: 200px;
}

.typewriter-cursor {
  color: var(--accent-cyan);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}

/* ============================================
   15. Marquee Strip
   ============================================ */
.marquee-section {
  padding: 20px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 35s linear infinite;
  width: max-content;
}

.marquee-track--reverse {
  animation-direction: reverse;
}

.marquee-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 0 16px;
  text-transform: uppercase;
}

.marquee-sep {
  color: var(--accent-blue);
  opacity: 0.3;
  font-size: 10px;
}

/* ============================================
   16. Feature Card Spotlight (Stripe-style)
   ============================================ */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%), rgba(45,122,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.feature-card:hover::after {
  opacity: 1;
}

/* ============================================
   17. Phone Nav Auto-rotate Progress
   ============================================ */
.phone-nav-item {
  position: relative;
  overflow: hidden;
}
.phone-nav-item.auto-playing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent-blue);
  animation: navProgress 4s linear forwards;
  z-index: 2;
}

/* ============================================
   18. Enhanced Section Transitions
   ============================================ */
.feature-card.reveal[data-direction="left"] {
  transform: translateX(-30px);
  opacity: 0;
}
.feature-card.reveal[data-direction="right"] {
  transform: translateX(30px);
  opacity: 0;
}
.feature-card.reveal.visible[data-direction="left"],
.feature-card.reveal.visible[data-direction="right"] {
  transform: translateX(0);
  opacity: 1;
}

.stat-item.reveal {
  transform: scale(0.85);
  opacity: 0;
}
.stat-item.reveal.visible {
  transform: scale(1);
  opacity: 1;
}

.phone-frame {
  opacity: 0;
  transform: translateX(40px) translateY(0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.demo-container.visible .phone-frame {
  opacity: 1;
  transform: translateX(0) translateY(0);
  animation: float 7s ease-in-out infinite;
}

/* ============================================
   19. WhatsApp FAB
   ============================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease-out-back), box-shadow 0.3s ease;
  animation: fabBounceIn 0.6s var(--ease-out-back) 2s both;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  animation: whatsappPulse 2s ease-in-out infinite 2.6s;
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--border);
}
.whatsapp-fab:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================
   20. Back to Top
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 92px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  z-index: 9000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* ============================================
   21. WhatsApp Alumnos Section
   ============================================ */
.wa-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.wa-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* WhatsApp Phone Mockup */
.wa-phone-wrapper {
  perspective: 1000px;
}

.wa-phone {
  width: 320px;
  border-radius: 24px;
  background: #111b21;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 80px rgba(37, 211, 102, 0.06);
  border: 2px solid rgba(37, 211, 102, 0.15);
}

.wa-phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #1f2c34;
}

.wa-header-back {
  opacity: 0.6;
}

.wa-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.wa-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wa-header-name {
  font-size: 14px;
  font-weight: 600;
  color: #e9edef;
}

.wa-header-status {
  font-size: 11px;
  color: #8696a0;
}

.wa-header-actions {
  opacity: 0.5;
}

.wa-chat-body {
  padding: 12px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") #0b141a;
}

.wa-date-badge {
  align-self: center;
  font-size: 11px;
  color: #8696a0;
  background: #1f2c34;
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.wa-msg {
  max-width: 85%;
  padding: 8px 10px 4px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
}

.wa-msg p {
  margin: 0 0 2px;
  color: #e9edef;
}

.wa-msg-time {
  font-size: 10px;
  color: #8696a0;
  float: right;
  margin-left: 8px;
  margin-top: 2px;
}

.wa-check {
  color: #53bdeb;
  font-size: 11px;
  letter-spacing: -3px;
}

.wa-msg--received {
  background: #1f2c34;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.wa-msg--sent {
  background: #005c4b;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.wa-msg--animate {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.wa-msg--animate.wa-visible {
  opacity: 1;
  transform: translateY(0);
}

.wa-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #1f2c34;
}

.wa-input-field {
  flex: 1;
  background: #2a3942;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: #8696a0;
}

.wa-input-mic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00a884;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* WA Info Panel */
.wa-info {
  padding: 8px 0;
}

.wa-gradient-text {
  background: linear-gradient(135deg, #25D366, #128C7E, #00a884);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

.wa-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wa-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.wa-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-feature-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.wa-feature-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   22. FAQ Chatbot
   ============================================ */
.chatbot {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9500;
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(45, 122, 255, 0.35);
  transition: transform 0.3s var(--ease-out-back), box-shadow 0.3s ease;
  position: relative;
  border: none;
  cursor: pointer;
  animation: fabBounceIn 0.6s var(--ease-out-back) 3s both;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(45, 122, 255, 0.5);
}

.chatbot-icon-close {
  display: none;
}

.chatbot.open .chatbot-icon-open {
  display: none;
}

.chatbot.open .chatbot-icon-close {
  display: block;
}

.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.chatbot.open .chatbot-badge {
  opacity: 0;
}

/* Chat Panel */
.chatbot-panel {
  position: absolute;
  bottom: 68px;
  left: 0;
  width: 360px;
  max-height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.chatbot.open .chatbot-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent-blue), rgba(0, 212, 255, 0.8));
  flex-shrink: 0;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: block;
}

.chatbot-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

.chatbot-close {
  color: rgba(255, 255, 255, 0.7);
  padding: 4px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.chatbot-close:hover {
  color: #fff;
}

/* Messages */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 300px;
}

.chatbot-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  animation: chatMsgIn 0.3s var(--ease-out-expo);
}

.chatbot-msg p {
  margin: 0;
}

.chatbot-msg--bot {
  background: var(--bg-elevated);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chatbot-msg--user {
  background: var(--accent-blue);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.chatbot-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  animation: chatMsgIn 0.3s var(--ease-out-expo);
}

.chatbot-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s ease-in-out infinite;
}

.chatbot-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chatbot-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* FAQ Buttons */
.chatbot-faq {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chatbot-faq-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(45, 122, 255, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(45, 122, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chatbot-faq-btn:hover {
  background: rgba(45, 122, 255, 0.15);
  border-color: rgba(45, 122, 255, 0.3);
}

.chatbot-faq-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================
   23. Keyframes
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 230, 138, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 230, 138, 0);
  }
}

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

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(8px); }
  60% { transform: translateX(-50%) translateY(4px); }
}

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

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes navProgress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes fabBounceIn {
  from {
    opacity: 0;
    transform: scale(0) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* ============================================
   12b. Contact / Lead Capture Section
   ============================================ */

.contact-section {
  padding: 100px 0;
  position: relative;
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-main);
  color: var(--text-primary);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--accent-red, #FF4D6A);
  box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.12);
}

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

.contact-submit {
  align-self: center;
  margin-top: 8px;
  min-width: 260px;
}

.contact-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(0, 230, 138, 0.08);
  border: 1px solid rgba(0, 230, 138, 0.25);
  border-radius: 12px;
  color: var(--accent-green);
  font-weight: 600;
  font-size: 15px;
  animation: fadeInUp 0.4s ease;
}

.contact-success.visible {
  display: flex;
}

.contact-error {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(255, 77, 106, 0.08);
  border: 1px solid rgba(255, 77, 106, 0.25);
  border-radius: 12px;
  color: var(--accent-red, #FF4D6A);
  font-weight: 500;
  font-size: 14px;
  animation: fadeInUp 0.4s ease;
}

.contact-error.visible {
  display: flex;
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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



/* ============================================
   12b. Contact / Lead Capture
   ============================================ */
.contact-section { padding: 100px 0; position: relative; }
.contact-form { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.02em; }
.form-group .optional { font-weight: 400; color: var(--text-muted); font-size: 11px; }
.form-group input, .form-group textarea {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; font-size: 15px; font-family: var(--font-main);
  color: var(--text-primary); transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  outline: none; width: 100%;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.15); }
.form-group input.error, .form-group textarea.error { border-color: #FF4D6A; box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.12); }
.form-group textarea { resize: vertical; min-height: 80px; }
.contact-submit { align-self: center; margin-top: 8px; min-width: 260px; }
.contact-success { display: none; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; background: rgba(0,230,138,0.08); border: 1px solid rgba(0,230,138,0.25); border-radius: 12px; color: var(--accent-green); font-weight: 600; font-size: 15px; }
.contact-success.visible { display: flex; }
.contact-error { display: none; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; background: rgba(255,77,106,0.08); border: 1px solid rgba(255,77,106,0.25); border-radius: 12px; color: #FF4D6A; font-weight: 500; font-size: 14px; }
.contact-error.visible { display: flex; }
.btn-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   PAIN POINTS
   ============================================ */
.problems-section { padding: 100px 0 60px; }
.problems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.problem-card { background: var(--bg-card); border: 1px solid rgba(255,77,106,0.1); border-radius: 16px; padding: 28px 24px; text-align: center; transition: transform var(--duration-normal) ease, border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease; }
.problem-card:hover { transform: translateY(-4px); border-color: rgba(255,77,106,0.25); box-shadow: 0 8px 32px rgba(255,77,106,0.08); }
.problem-emoji { font-size: 40px; display: block; margin-bottom: 12px; }
.problem-card h3 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.problem-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }
.problem-stat { display: inline-block; padding: 6px 14px; background: rgba(255,77,106,0.1); border: 1px solid rgba(255,77,106,0.2); border-radius: 20px; font-size: 13px; font-weight: 700; color: #FF4D6A; }

/* FEATURES V2 */
.features-grid-12 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card-v2 { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px 20px; transition: transform var(--duration-normal) ease, box-shadow var(--duration-normal) ease; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.feature-card-v2::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 16px 16px 0 0; }
.feature-card-v2[data-accent="blue"]::before { background: linear-gradient(90deg, #2D7AFF, #00D4FF); }
.feature-card-v2[data-accent="green"]::before { background: linear-gradient(90deg, #00E68A, #00D4FF); }
.feature-card-v2[data-accent="orange"]::before { background: linear-gradient(90deg, #FF6B35, #FFC233); }
.feature-card-v2[data-accent="cyan"]::before { background: linear-gradient(90deg, #00D4FF, #2D7AFF); }
.feature-card-v2[data-accent="purple"]::before { background: linear-gradient(90deg, #A855F7, #00D4FF); }
.feature-card-v2[data-accent="yellow"]::before { background: linear-gradient(90deg, #FFC233, #FF6B35); }
.feature-card-v2[data-accent="red"]::before { background: linear-gradient(90deg, #FF4D6A, #FF6B35); }
.feature-card-v2:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.feature-icon-v2 { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-card-v2 h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.feature-card-v2 p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; flex: 1; margin-bottom: 14px; }
.feature-tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; width: fit-content; }
.feature-tag--blue { background: rgba(45,122,255,0.12); color: #2D7AFF; }
.feature-tag--green { background: rgba(0,230,138,0.12); color: #00E68A; }
.feature-tag--orange { background: rgba(255,107,53,0.12); color: #FF6B35; }
.feature-tag--cyan { background: rgba(0,212,255,0.12); color: #00D4FF; }
.feature-tag--purple { background: rgba(168,85,247,0.12); color: #A855F7; }
.feature-tag--yellow { background: rgba(255,194,51,0.12); color: #FFC233; }
.feature-tag--red { background: rgba(255,77,106,0.12); color: #FF4D6A; }

/* COMPARISON */
.comparison-section { padding: 100px 0; }
.comparison-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 900px; margin: 0 auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.comparison-col { padding: 32px 28px; }
.comparison-col--before { background: rgba(255,77,106,0.04); }
.comparison-col--after { background: rgba(0,230,138,0.04); }
.comparison-col-header { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.comparison-col-header h3 { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.comparison-icon { font-size: 22px; }
.comparison-items { display: flex; flex-direction: column; gap: 16px; }
.comparison-item { font-size: 14px; line-height: 1.5; }
.comparison-col--before .comparison-item { color: var(--text-secondary); border-left: 2px solid rgba(255,77,106,0.3); padding-left: 14px; }
.comparison-col--after .comparison-item { color: var(--text-primary); border-left: 2px solid rgba(0,230,138,0.5); padding-left: 14px; font-weight: 500; }

/* TESTIMONIALS */
.testimonials-section { padding: 100px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; transition: transform var(--duration-normal) ease, box-shadow var(--duration-normal) ease; }
.testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.testimonial-stars { color: #FFC233; font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-quote { font-size: 14px; line-height: 1.6; color: var(--text-secondary); font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--text-primary); flex-shrink: 0; }
.testimonial-info { flex: 1; min-width: 120px; }
.testimonial-name { display: block; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.testimonial-role { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.testimonial-badge { padding: 4px 12px; background: rgba(0,230,138,0.1); border: 1px solid rgba(0,230,138,0.2); border-radius: 20px; font-size: 12px; font-weight: 700; color: #00E68A; }

/* PRICING */
.pricing-section { padding: 100px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 820px; margin: 0 auto; align-items: start; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 36px 32px; display: flex; flex-direction: column; position: relative; }
.pricing-card--pro { border: 2px solid transparent; background-image: linear-gradient(var(--bg-card), var(--bg-card)), linear-gradient(135deg, #2D7AFF, #00D4FF); background-origin: border-box; background-clip: padding-box, border-box; transform: scale(1.04); box-shadow: 0 12px 48px rgba(45,122,255,0.15); }
.pricing-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 6px 20px; background: linear-gradient(135deg, #2D7AFF, #00D4FF); border-radius: 20px; font-size: 12px; font-weight: 800; color: #fff; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.pricing-header { text-align: center; margin-bottom: 28px; }
.pricing-name { font-size: 22px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.pricing-target { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.pricing-amount { font-size: 48px; font-weight: 900; color: var(--text-primary); line-height: 1; }
.pricing-card--pro .pricing-amount { background: linear-gradient(135deg, #2D7AFF, #00D4FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pricing-period { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pricing-features li { font-size: 14px; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 10px; }
.pricing-features .check { color: var(--accent-green); font-weight: 700; flex-shrink: 0; }
.pricing-inherit { font-weight: 700; color: var(--text-primary) !important; }
.pricing-limit { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); font-weight: 600; color: var(--text-muted) !important; font-size: 13px !important; }
.pricing-limit--pro { color: var(--accent-cyan) !important; }
.pricing-cta { width: 100%; text-align: center; justify-content: center; }
.pricing-note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 32px; }

/* RESPONSIVE — New sections */
@media (max-width: 1100px) { .features-grid-12 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid-12 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card--pro { transform: scale(1); }
  .comparison-table { grid-template-columns: 1fr; }
  .comparison-col--before { border-bottom: 1px solid var(--border); }
  .contact-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .problems-grid { grid-template-columns: 1fr; }
  .features-grid-12 { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}


/* ============================================
   13. Responsive
   ============================================ */

/* Tablet / Medium */
@media (max-width: 1100px) {
  .wa-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
  }

  .wa-info {
    text-align: center;
  }

  .wa-info .section-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .wa-feature-item {
    text-align: left;
  }

  .demo-container {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 32px;
  }

  .phone-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    order: 2;
  }

  .phone-frame {
    order: 1;
  }

  .phone-info {
    order: 3;
    text-align: center;
  }

  .phone-info-features {
    align-items: center;
  }
}

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

  /* Nav mobile */
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(6, 11, 24, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) ease;
    z-index: 1000;
  }
  .nav-links a {
    font-size: 22px;
  }
  .nav-links a::after {
    display: none;
  }
  #navbar.open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-mobile-toggle {
    display: flex;
  }

  /* Stats */
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .feature-card {
    padding: 24px;
  }

  /* Demo */
  .phone-frame {
    width: 280px;
    height: 580px;
    border-radius: 32px;
    padding: 10px;
  }
  .phone-notch {
    width: 100px;
    height: 24px;
    border-radius: 0 0 16px 16px;
  }
  .phone-screen {
    border-radius: 22px;
    height: calc(100% - 32px);
  }

  .phone-screen-content img {
    border-radius: 22px;
  }

  .phone-nav-item span {
    display: none;
  }
  .phone-nav-item {
    padding: 10px;
  }

  /* WA Phone */
  .wa-phone {
    width: 280px;
  }

  .wa-chat-body {
    min-height: 300px;
  }

  /* Chatbot */
  .chatbot-panel {
    width: 300px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .typewriter-wrapper {
    min-width: 160px;
  }

  .hero h1 {
    font-size: 30px;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 28px;
  }

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

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 24px;
  }

  .demo-tab {
    padding: 10px 16px;
    font-size: 13px;
  }

  .phone-frame {
    width: 260px;
    height: 540px;
  }

  .mock-big-clock {
    font-size: 28px;
  }
}

/* ============================================
   14. Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-hero {
    opacity: 1;
    transform: none;
  }

  .phone-frame {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-content {
    transform: none !important;
  }

  .cursor-spotlight {
    display: none;
  }

  .marquee-track {
    animation: none;
  }

  .typewriter-cursor {
    animation: none;
  }

  .whatsapp-fab {
    animation: none;
    opacity: 1;
  }

  .whatsapp-fab::before {
    animation: none;
  }
}
