/* ========================================
   Web4 AI Agent — Design System
   Style: Flat Design / Futuristic Tech
   Colors: Indigo (#6366F1) + Emerald (#10B981)
   Fonts: Orbitron (headings) + Exo 2 (body)
   ======================================== */

@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap");

/* ── CSS Variables ── */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #818cf8;
  --cta: #10b981;
  --cta-hover: #059669;
  --bg-dark: #0b0f1a;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(99, 102, 241, 0.15);
  --glow-primary: rgba(99, 102, 241, 0.4);
  --glow-cta: rgba(16, 185, 129, 0.4);
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Exo 2", sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 200ms ease;
}

/* ── Reset & Foundations ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Animations ── */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px var(--glow-primary);
  }
  50% {
    box-shadow:
      0 0 40px var(--glow-primary),
      0 0 60px rgba(99, 102, 241, 0.2);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--cta);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(120px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(120px) rotate(-360deg);
  }
}

@keyframes particle-float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) translateX(-5px);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-30px) translateX(15px);
    opacity: 0.7;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ── Utility ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--cta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.28);
}

.footer .navbar-logo img {
  width: 64px;
  height: 64px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 8px;
}

.nav-social-link {
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
}

.nav-social-link:hover {
  color: var(--primary-light);
  transform: translateY(-2px);
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  cursor: pointer;
}

.navbar-links a:hover {
  color: var(--text-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cta-hover);
  box-shadow: 0 0 24px var(--glow-cta);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: 14px;
}

.navbar-cta {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 24px;
  animation: fade-in-up 0.6s ease;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--cta);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fade-in-up 0.6s ease 0.1s both;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 40px;
  animation: fade-in-up 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-in-up 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  animation: fade-in-up 0.6s ease 0.4s both;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: fade-in-up 0.8s ease 0.3s both;
}

.hero-orb {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    var(--primary),
    var(--primary-dark)
  );
  position: relative;
  animation: float 6s ease-in-out infinite;
  box-shadow:
    0 0 80px var(--glow-primary),
    inset 0 0 60px rgba(0, 0, 0, 0.3);
}

.hero-orb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-orb::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(129, 140, 248, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero-ring {
  position: absolute;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero-ring-1 {
  width: 480px;
  height: 480px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-ring-2 {
  width: 560px;
  height: 560px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 1s;
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--cta);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  margin: -5px 0 0 -5px;
  animation: orbit 8s linear infinite;
  box-shadow: 0 0 12px var(--glow-cta);
}

.orbit-dot:nth-child(2) {
  animation-delay: -2.66s;
  background: var(--primary-light);
  box-shadow: 0 0 12px var(--glow-primary);
}

.orbit-dot:nth-child(3) {
  animation-delay: -5.33s;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
}

/* ── Background Particles ── */
.bg-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bg-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0.3;
  animation: particle-float 6s ease-in-out infinite, background-drift 15s linear infinite;
}

@keyframes background-drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
  100% { transform: translate(0, 0); }
}

/* ── Features Section ── */
.features {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1225 100%);
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cta));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-light);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── How It Works ── */
.how-it-works {
  background: var(--bg-dark);
}

.how-header {
  text-align: center;
  margin-bottom: 80px;
}

.how-header .section-subtitle {
  margin: 0 auto;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps-container::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--cta),
    var(--primary)
  );
  opacity: 0.3;
}

a.step-card {
  text-align: center;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.step-card:hover {
  transform: translateY(-10px);
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-light);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.step-card:hover .step-number {
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--glow-primary);
  background: rgba(99, 102, 241, 0.15);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-action-hint {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.step-card:hover .step-action-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ── Showcase / Demo ── */
.showcase {
  background: linear-gradient(180deg, #0d1225 0%, var(--bg-dark) 100%);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.showcase-content {
  order: 1;
}

.showcase-visual {
  order: 2;
}

.showcase-terminal {
  background: #0d1117;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  height: 400px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-family: "Exo 2", monospace;
}

.terminal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  font-family: "Exo 2", monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow: hidden;
}

.terminal-history {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.terminal-history::-webkit-scrollbar {
  width: 4px;
}

.terminal-history::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

.terminal-cursor {
  width: 8px;
  height: 18px;
  background: var(--cta);
  animation: blink-caret 1s step-end infinite;
}

.terminal-chips {
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.terminal-chip:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  color: var(--text-primary);
}

.showcase-features-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.showcase-feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--cta);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Pricing Section ── */
.pricing {
  background: var(--bg-dark);
}

.pricing-header {
  text-align: center;
  margin-bottom: 64px;
}

.pricing-header .section-subtitle {
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}



.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), var(--bg-card));
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--cta));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 100px;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-feature svg {
  width: 18px;
  height: 18px;
  color: var(--cta);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* ── CTA Section ── */
.cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12),
    rgba(16, 185, 129, 0.08)
  );
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary),
    var(--cta),
    transparent
  );
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color var(--transition);
  cursor: pointer;
}

.footer-socials a:hover {
  color: var(--primary-light);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

/* ── Scroll Reveal System ── */
.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

.reveal-up { transform: translateY(40px); }
.reveal-down { transform: translateY(-40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.9); }

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Staggered Delays (up to 12 items) */
.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; }

/* ── Deploy Modal ── */
.deploy-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 24px;
}

.deploy-overlay.active {
  opacity: 1;
  visibility: visible;
}

.deploy-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.deploy-overlay.active .deploy-modal {
  transform: translateY(0) scale(1);
}

.deploy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 0;
}

.deploy-modal-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.deploy-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
  display: flex;
}

.deploy-close:hover {
  color: var(--text-primary);
}

.deploy-modal-body {
  padding: 28px 32px 32px;
}

/* Steps indicator */
.deploy-steps-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.deploy-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.deploy-step-dot.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
}

.deploy-step-dot.completed {
  border-color: var(--cta);
  background: var(--cta);
  color: #fff;
}

.deploy-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background 0.3s ease;
}

.deploy-step-line.completed {
  background: var(--cta);
}

/* Form styles */
.deploy-form-group {
  margin-bottom: 20px;
}

.deploy-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.deploy-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.deploy-input:focus {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.deploy-input::placeholder {
  color: var(--text-muted);
}

textarea.deploy-input {
  resize: vertical;
  min-height: 80px;
}

.deploy-select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: all var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.deploy-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.deploy-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.deploy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.deploy-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.deploy-actions .btn {
  flex: 1;
}

/* Deploy Step Panels */
.deploy-panel {
  display: none;
}

.deploy-panel.active {
  display: block;
  animation: fade-in-up 0.3s ease;
}

/* ── Deployment Progress (Step 2) ── */
.deploy-progress-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.deploy-progress-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  opacity: 0.3;
  transition: all 0.4s ease;
}

.deploy-progress-item.active {
  opacity: 1;
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.15);
}

.deploy-progress-item.completed {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.2);
}

.deploy-progress-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
  transition: all 0.3s ease;
}

.deploy-progress-item.completed .deploy-progress-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--cta);
}

.deploy-progress-icon svg {
  width: 18px;
  height: 18px;
}

.deploy-progress-text {
  flex: 1;
}

.deploy-progress-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.deploy-progress-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.deploy-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.deploy-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--cta));
  border-radius: 4px;
  width: 0%;
  transition: width 0.6s ease;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

.deploy-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

/* ── Agent Dashboard (Step 3) ── */
.agent-dashboard {
  margin-top: 8px;
}

.agent-id-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.agent-id-dot {
  width: 10px;
  height: 10px;
  background: var(--cta);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
  box-shadow: 0 0 8px var(--glow-cta);
}

.agent-id-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.agent-id-value {
  font-family: 'Exo 2', monospace;
  font-size: 0.9rem;
  color: var(--cta);
  font-weight: 600;
}

.agent-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.agent-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.agent-stat-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.agent-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-heading);
}

.agent-log {
  background: #0D1117;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius);
  padding: 16px;
  font-family: 'Exo 2', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-height: 180px;
  overflow-y: auto;
}

.agent-log-entry {
  display: flex;
  gap: 10px;
  opacity: 0;
  animation: fade-in-up 0.3s ease forwards;
}

.agent-log-time {
  color: var(--text-muted);
  flex-shrink: 0;
}

.agent-log-msg {
  color: var(--primary-light);
}

.agent-log-msg.success {
  color: var(--cta);
}

.agent-config-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.agent-config-item {
  font-size: 0.85rem;
}

.agent-config-key {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-heading);
}

.agent-config-val {
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 40px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-orb {
    width: 280px;
    height: 280px;
  }
  .hero-ring-1 {
    width: 380px;
    height: 380px;
  }
  .hero-ring-2 {
    width: 440px;
    height: 440px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .steps-container::before {
    display: none;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .showcase-visual {
    order: -1;
  }
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .navbar-links {
    display: none;
  }
  .navbar-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    gap: 16px;
  }
  .menu-toggle {
    display: block;
  }
  .section {
    padding: 72px 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .cta-box {
    padding: 48px 24px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn-large {
    width: 100%;
  }
  .steps-container {
    grid-template-columns: 1fr;
  }
}
