/* ===== AI Automation Xpress — Custom Styles ===== */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary palette */
  --primary-50:  #eef2ff;
  --primary-100: #dbe4ff;
  --primary-200: #bfcfff;
  --primary-300: #93aeff;
  --primary-400: #6366f1;
  --primary-500: #4f46e5;
  --primary-600: #4338ca;
  --primary-700: #3730a3;

  /* Accent / Electric */
  --accent-400: #818cf8;
  --accent-500: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.35);

  /* Cyan highlight */
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;

  /* Surfaces (dark) */
  --surface-950: #030712;
  --surface-900: #0a0f1e;
  --surface-800: #111827;
  --surface-700: #1e293b;
  --surface-600: #334155;

  /* Text */
  --text-primary:   #f8fafc;
  --text-secondary:  #94a3b8;
  --text-muted:      #64748b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-card:    linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(139,92,246,0.05) 100%);
  --gradient-glow:    radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99,102,241,0.12), transparent 40%);

  /* Misc */
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--surface-950);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface-900); }
::-webkit-scrollbar-thumb {
  background: var(--surface-600);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-400); }

/* ---------- Typography ---------- */
.heading-display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Glow Border Cards ---------- */
.glow-card {
  position: relative;
  background: var(--surface-800);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition-base);
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0), rgba(99,102,241,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: var(--transition-base);
  pointer-events: none;
}

.glow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 8px 32px rgba(99,102,241,0.15), 0 0 0 1px rgba(99,102,241,0.1);
}

.glow-card:hover::before {
  background: linear-gradient(135deg, var(--primary-400), var(--cyan-400));
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}

.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--primary-400);
  background: rgba(99,102,241,0.08);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

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

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

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 8s ease-in-out infinite;
}

/* Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px; height: 500px;
  background: rgba(99,102,241,0.2);
  top: -10%; right: -5%;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: rgba(6,182,212,0.15);
  bottom: -10%; left: -5%;
  animation-delay: -7s;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: rgba(139,92,246,0.15);
  top: 40%; left: 30%;
  animation-delay: -14s;
}

/* ---------- Section Styles ---------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(99,102,241,0.1);
  color: var(--primary-400);
  border: 1px solid rgba(99,102,241,0.2);
}

/* ---------- Service Icon Container ---------- */
.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(99,102,241,0.1);
  color: var(--primary-400);
  font-size: 1.5rem;
  transition: var(--transition-base);
}

.glow-card:hover .service-icon {
  background: rgba(99,102,241,0.2);
  transform: scale(1.1);
}

/* ---------- Process Timeline ---------- */
.process-step {
  position: relative;
  padding-left: 48px;
}

.process-step::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 44px;
  bottom: -24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-400), transparent);
}

.process-step:last-child::before { display: none; }

.process-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Pricing ---------- */
.pricing-card {
  position: relative;
  background: var(--surface-800);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 40px 32px;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 20px 60px rgba(99,102,241,0.15);
}

.pricing-card.popular {
  border-color: var(--primary-400);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));
  box-shadow: 0 0 60px rgba(99,102,241,0.1);
}

.pricing-card.popular::after {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-list li svg {
  flex-shrink: 0;
  color: var(--cyan-400);
}

/* ---------- Industry Card ---------- */
.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-800);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition-base);
  text-align: center;
  cursor: default;
}

.industry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 8px 24px rgba(99,102,241,0.1);
}

.industry-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.8rem;
  background: rgba(99,102,241,0.1);
  transition: var(--transition-base);
}

.industry-card:hover .industry-icon {
  background: rgba(99,102,241,0.2);
  transform: scale(1.1);
}

/* ---------- Founder / About ---------- */
.founder-image-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(99,102,241,0.3);
  box-shadow: 0 0 60px rgba(99,102,241,0.15);
  flex-shrink: 0;
}

.founder-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Contact Form ---------- */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface-800);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition-base);
  outline: none;
}

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

.form-input:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Footer ---------- */
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-base);
}

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

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

/* ---------- Keyframes ---------- */
@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 15px) scale(1.02); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,0.2); }
  50% { box-shadow: 0 0 40px rgba(99,102,241,0.4); }
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------- Stats Counter ---------- */
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem !important; }
  .stat-number { font-size: 2.5rem; }
  .price-value { font-size: 3rem; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.open { display: flex; }

  .nav-link { font-size: 1.2rem; }

  .hero h1 { font-size: 2.2rem !important; }

  .founder-image-wrapper {
    width: 200px;
    height: 200px;
  }

  .stat-number { font-size: 2rem; }
  .price-value { font-size: 2.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem !important; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
