/* ==========================================
   AI-CRM Landing Page - Dark Tech Aesthetic
   ========================================== */

:root {
  /* Core colors */
  --bg-primary: #07080a;
  --bg-secondary: #0d0f14;
  --bg-tertiary: #12151c;

  /* Neon accents */
  --neon-cyan: #00f5ff;
  --neon-cyan-dim: #00f5ff40;
  --neon-cyan-glow: #00f5ff20;
  --neon-magenta: #ff00e5;
  --neon-magenta-dim: #ff00e540;
  --neon-magenta-glow: #ff00e520;

  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a7b4;
  --text-tertiary: #5c6170;

  /* Gradients */
  --gradient-main: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-magenta) 100%);
  --gradient-subtle: linear-gradient(135deg, var(--neon-cyan-dim) 0%, var(--neon-magenta-dim) 100%);

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);

  /* Typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* Base reset for landing page */
.landing-page {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================
   Animated Backgrounds
   ========================================== */

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, var(--neon-cyan-glow) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, var(--neon-magenta-glow) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 60% 80%, var(--neon-cyan-glow) 0%, transparent 50%);
  animation: meshFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, -2%) scale(1.02); }
  66% { transform: translate(-1%, 1%) scale(0.98); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' 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;
}

/* ==========================================
   Navigation
   ========================================== */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(7, 8, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.5rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: iconPulse 3s ease-in-out infinite;
}

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

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 0.625rem 1.25rem !important;
  background: var(--gradient-main) !important;
  border-radius: 8px;
  font-weight: 600 !important;
  color: var(--bg-primary) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--neon-cyan-dim);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero-section {
  position: relative;
  z-index: 1;
  padding: calc(var(--section-padding) + 4rem) 2rem var(--section-padding);
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

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

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--neon-cyan-dim); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
}

.title-line:nth-child(1) {
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.title-line:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gradient-main);
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--bg-primary);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--neon-cyan-dim);
}

.cta-primary.large {
  padding: 1.25rem 2.5rem;
  font-size: 1.15rem;
  border-radius: 14px;
}

.cta-arrow {
  transition: transform 0.2s;
}

.cta-primary:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.play-icon {
  font-size: 0.75rem;
  color: var(--neon-cyan);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   Hero Video
   ========================================== */

.hero-video-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.video-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.frame-glow {
  position: absolute;
  inset: -2px;
  background: var(--gradient-main);
  border-radius: 22px;
  opacity: 0.6;
  filter: blur(20px);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.frame-border {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
              var(--gradient-main) border-box;
  pointer-events: none;
  z-index: 2;
}

.hero-video {
  width: 100%;
  display: block;
  border-radius: 20px;
}

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

.video-reflection {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--bg-secondary) 0%, transparent 100%);
  opacity: 0.5;
}

.video-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.caption-icon {
  color: var(--neon-cyan);
}

/* ==========================================
   Features Section
   ========================================== */

.features-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

.features-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

/* ==========================================
   Feature Cards
   ========================================== */

.feature-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.feature-content.reversed {
  grid-template-columns: 1.2fr 1fr;
}

.feature-content.reversed .feature-text {
  order: 2;
}

.feature-content.reversed .feature-video-wrapper {
  order: 1;
}

.feature-text {
  padding: 2rem 0;
}

.feature-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.accent-cyan .feature-label {
  color: var(--neon-cyan);
}

.accent-magenta .feature-label {
  color: var(--neon-magenta);
}

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.feature-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feature-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.highlight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.accent-cyan .highlight-dot {
  background: var(--neon-cyan);
}

.accent-magenta .highlight-dot {
  background: var(--neon-magenta);
}

.feature-video-wrapper {
  position: relative;
}

.video-glow {
  position: absolute;
  inset: -20px;
  border-radius: 30px;
  filter: blur(40px);
  opacity: 0.3;
  z-index: -1;
  transition: opacity 0.3s;
}

.accent-cyan .video-glow {
  background: var(--neon-cyan);
}

.accent-magenta .video-glow {
  background: var(--neon-magenta);
}

.feature-card:hover .video-glow {
  opacity: 0.5;
}

.feature-video {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   CTA Section
   ========================================== */

.cta-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 2rem;
  text-align: center;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, var(--neon-magenta-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(20px);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-buttons {
  margin-bottom: 1.5rem;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ==========================================
   Footer
   ========================================== */

.landing-footer {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 3rem;
}

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

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-column a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ==========================================
   Animations
   ========================================== */

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

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1024px) {
  .feature-content,
  .feature-content.reversed {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-content.reversed .feature-text,
  .feature-content.reversed .feature-video-wrapper {
    order: unset;
  }

  .feature-text {
    text-align: center;
  }

  .feature-highlights {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

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

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .cta-content {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .landing-nav {
    padding: 1rem;
  }

  .hero-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-video-container {
    padding: 0 1rem;
  }

  .features-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .features-grid {
    gap: 4rem;
  }
}
