/* ============================================
   SECTIONS — Automation AI
   ============================================ */

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-bg-border);
  padding: 14px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.navbar-logo:hover { opacity: 0.85; }

.footer-logo-link { margin-bottom: 12px; }

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.45));
  transition: filter var(--transition-base);
}

.navbar-logo:hover .logo-mark {
  filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.65));
}

.logo-img {
  display: block;
  width: 36px;
  height: 36px;
}

.logo-wordmark {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.logo-ai {
  font-weight: var(--weight-bold);
  background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-text-primary);
  background: rgba(255,255,255,0.05);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: rgba(8,8,16,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-bg-border);
}

.mobile-menu.open { display: flex; }

.mobile-menu .nav-link {
  padding: 12px 16px;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 8px;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 70%, rgba(124,58,237,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(109,40,217,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 80%);
}

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

.hero-eyebrow {
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

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

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

.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-proof-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.social-proof-avatars {
  display: flex;
  align-items: center;
}

.social-proof-avatars .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-bg-primary);
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--weight-bold);
  color: white;
  margin-left: -8px;
}

.social-proof-avatars .avatar:first-child { margin-left: 0; }

/* Hero Visual */
.hero-visual {
  margin-top: 64px;
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-orb-container {
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orb {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%, #a78bfa 0%, #7c3aed 35%, #4c1d95 60%, #1a0533 85%, transparent 100%);
  box-shadow:
    0 0 60px rgba(124,58,237,0.6),
    0 0 120px rgba(124,58,237,0.3),
    0 0 200px rgba(109,40,217,0.2),
    inset 0 0 60px rgba(167,139,250,0.2);
  animation: orb-pulse-hero 6s ease-in-out infinite;
  position: relative;
}

.hero-orb::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,0.2);
  animation: ring-expand 3s ease-in-out infinite;
}

@keyframes orb-pulse-hero {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(124,58,237,0.6), 0 0 120px rgba(124,58,237,0.3); }
  50% { transform: scale(1.04); box-shadow: 0 0 80px rgba(124,58,237,0.8), 0 0 160px rgba(124,58,237,0.4); }
}

@keyframes ring-expand {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.2; }
}

/* ══════════════════════════════════════════
   TRUSTED BY (Social Proof Bar)
══════════════════════════════════════════ */
.trusted-by {
  padding: 48px 0;
  border-top: 1px solid var(--color-bg-border);
  border-bottom: 1px solid var(--color-bg-border);
  position: relative;
  overflow: hidden;
}

.trusted-by-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  transition: opacity var(--transition-base);
  filter: grayscale(1);
}

.trust-logo:hover {
  opacity: 0.7;
  filter: grayscale(0);
}

.trust-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-brand-400), var(--color-brand-300));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.trust-logo-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

/* ══════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.4), rgba(139,92,246,0.4), transparent);
}

.step-item {
  padding: 32px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-bg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-brand-300);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.step-item:hover .step-number {
  background: rgba(124,58,237,0.15);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 20px rgba(124,58,237,0.2);
}

.step-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   FEATURE HIGHLIGHTS
══════════════════════════════════════════ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--color-bg-border);
}

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-content {}

.feature-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-300);
  margin-bottom: 16px;
}

.feature-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.feature-visual {
  position: relative;
}

.feature-mockup {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.feature-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.5), transparent);
}

.mockup-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

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

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-line {
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
}

.mockup-line.w-full { width: 100%; }
.mockup-line.w-3-4  { width: 75%; }
.mockup-line.w-1-2  { width: 50%; }
.mockup-line.w-2-3  { width: 66%; }
.mockup-line.accent { background: rgba(139,92,246,0.2); width: 40%; }

.mockup-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.chat-bubble.user {
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(139,92,246,0.2);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-bg-border);
  border-bottom-left-radius: 4px;
}

.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-bg-border);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-400);
  animation: typing-dot 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Chart mockup */
.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  margin-top: 16px;
  padding-top: 16px;
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgba(139,92,246,0.2);
  transition: background var(--transition-base);
  position: relative;
}

.chart-bar.highlight {
  background: linear-gradient(180deg, var(--color-brand-400), rgba(124,58,237,0.4));
  box-shadow: 0 0 12px rgba(139,92,246,0.4);
}

/* Content tiles mockup */
.mockup-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.content-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 11px;
  color: var(--color-text-muted);
}

.content-tile-header {
  width: 60%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  margin-bottom: 8px;
}

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

.content-tile-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
}

/* ══════════════════════════════════════════
   STATS
══════════════════════════════════════════ */
.stats-section {
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-section);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-bg-border);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.stats-grid .stat-card {
  background: var(--color-bg-secondary);
}

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ══════════════════════════════════════════
   PRICING
══════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.5) 0%, rgba(109,40,217,0.2) 40%, transparent 70%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  animation: orb-pulse 8s ease-in-out infinite;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.cta-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--color-bg-border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-link:hover { color: var(--color-brand-300); }

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

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-bg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: var(--color-bg-border-hover);
  color: var(--color-brand-300);
  background: rgba(124,58,237,0.08);
}

.social-link svg {
  width: 14px;
  height: 14px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row.reverse { direction: ltr; }

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

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

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

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

  .navbar-nav { display: none; }
  .navbar-actions .btn { display: none; }
  .hamburger { display: flex; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

  .steps-grid::before { display: none; }

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

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

  .trusted-logos {
    gap: 24px;
  }

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

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

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }

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

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

  .hero-orb-container {
    height: 220px;
  }
}
