/* ═══════════════════════════════════════════════════════════════
   Agentcsx Landing Page — Style System
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-dark: #07080f;
  --bg-card: #0d0f1a;
  --bg-card-hover: #12152a;
  --border: rgba(255,255,255,0.06);
  --text-primary: #f1f3f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --gradient-main: linear-gradient(135deg, #6366f1, #3b82f6, #06b6d4);
  --gradient-text: linear-gradient(135deg, #6366f1 0%, #3b82f6 40%, #06b6d4 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', -apple-system, system-ui, sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ═══════════ BUTTONS ═══════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: var(--font);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 24px rgba(99,102,241,0.3), 0 0 0 1px rgba(99,102,241,0.2);
}

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

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.btn-nav {
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.2);
  padding: 8px 20px;
  font-size: 14px;
}

.btn-nav:hover {
  background: rgba(99,102,241,0.25);
  border-color: rgba(99,102,241,0.4);
}

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn-xl { padding: 20px 40px; font-size: 18px; border-radius: 16px; }

/* ═══════════ NAVBAR ═══════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s;
}

.navbar.scrolled {
  background: rgba(7,8,15,0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ═══════════ HERO ═══════════ */

.hero {
  position: relative;
  padding: 160px 0 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-indigo);
  top: -200px;
  left: -100px;
  animation: float 20s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
  top: 0;
  right: -150px;
  animation: float 25s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  bottom: -100px;
  left: 30%;
  animation: float 22s ease-in-out infinite 3s;
}

.hero-grid {
  position: absolute;
  inset: 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: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

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

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Screenshot */
.hero-screenshot {
  position: relative;
  margin-top: 60px;
  max-width: 1000px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.screenshot-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.15), transparent 60%);
  pointer-events: none;
}

.screenshot-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 120px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  background: var(--bg-card);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* ═══════════ SOCIAL PROOF ═══════════ */

.social-proof {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 24px;
}

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

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

.proof-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

/* ═══════════ FEATURES ═══════════ */

.features {
  padding: 120px 0;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

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

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

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.feature-card-lg {
  grid-column: span 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

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

.feature-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #fca5a5;
}

/* ═══════════ HOW IT WORKS ═══════════ */

.how-it-works {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-dark), #0a0d1a, var(--bg-dark));
}

.steps {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px;
  border-radius: var(--radius);
  transition: all 0.3s;
}

.step:hover {
  background: rgba(99,102,241,0.05);
}

.step-number {
  font-size: 48px;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-width: 80px;
  line-height: 1;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(180deg, rgba(99,102,241,0.3), rgba(6,182,212,0.3));
  margin-left: 70px;
}

/* ═══════════ CTA SECTION ═══════════ */

.cta-section {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}

.cta-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-indigo);
  top: -100px;
  left: 20%;
  animation: float 18s ease-in-out infinite;
}

.cta-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  bottom: -100px;
  right: 20%;
  animation: float 22s ease-in-out infinite reverse;
}

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

.cta-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════ FOOTER ═══════════ */

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 48px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ═══════════ ANIMATIONS ═══════════ */

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 768px) {
  .nav-links { display: none; }
  
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-lg {
    grid-column: span 1;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

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

  .step {
    flex-direction: column;
    gap: 12px;
  }

  .step-connector {
    margin-left: 32px;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
  }

  .proof-logos {
    flex-direction: column;
    gap: 16px;
  }

  .proof-divider {
    display: none;
  }
}
