/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font: 'Inter', system-ui, sans-serif;

  /* Colors */
  --bg:        #050c14;
  --bg-2:      #080f1c;
  --bg-card:   #0c1624;
  --bg-card-h: #101d2e;
  --border:    rgba(255,255,255,0.07);
  --border-h:  rgba(14,165,233,0.35);

  --text-1:    #f0f6fc;
  --text-2:    #8fa8c0;
  --text-3:    #5a7897;

  --blue:      #0ea5e9;
  --blue-d:    #0284c7;
  --cyan:      #06b6d4;
  --teal:      #14b8a6;
  --sky:       #38bdf8;

  --success:   #22c55e;
  --warning:   #f59e0b;
  --error:     #ef4444;
  --neutral-1: #1e2d3d;
  --neutral-2: #162436;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Transitions */
  --t: 0.22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 60%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(14,165,233,0.35); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  color: var(--text-1);
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--border-h); color: var(--sky); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); font-size: 15px; font-weight: 500;
  transition: color var(--t);
}
.btn-ghost:hover { color: var(--text-1); }

.btn-ghost-white {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: var(--t);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }

.btn-sm { padding: 9px 20px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; padding: 13px 20px; }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--t), box-shadow var(--t);
}
.nav.scrolled {
  background: rgba(5,12,20,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: var(--space-4);
  height: 68px;
}
.logo-mark {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.logo-text { font-size: 20px; font-weight: 700; color: var(--text-1); }
.nav-links {
  display: flex; align-items: center; gap: var(--space-4);
  flex: 1;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color var(--t);
}
.nav-links a:hover { color: var(--text-1); }
.nav-cta { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }

.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: var(--t); }

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}
.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: var(--space-2);
}
.section-header h2 {
  font-size: clamp(28px,4vw,42px); font-weight: 700; line-height: 1.2;
  color: var(--text-1);
  margin-bottom: var(--space-2);
}
.section-header p {
  font-size: 17px; color: var(--text-2); max-width: 560px; margin: 0 auto;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  padding: calc(68px + var(--space-8)) 0 var(--space-7);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.glow-1 {
  width: 600px; height: 500px; top: -100px; left: -150px;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
}
.glow-2 {
  width: 500px; height: 400px; top: 50px; right: -150px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 20px; margin-bottom: var(--space-3);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 0 3px rgba(34,197,94,0.25)} 50%{box-shadow:0 0 0 6px rgba(34,197,94,0.12)} }

.hero-title {
  font-size: clamp(38px,6vw,72px); font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: var(--space-3);
}
.hero-subtitle {
  font-size: clamp(16px,2vw,19px); color: var(--text-2); max-width: 580px; margin: 0 auto var(--space-4);
}
.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  flex-wrap: wrap; margin-bottom: var(--space-5);
}
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: var(--space-4);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 26px; font-weight: 700; color: var(--text-1); }
.stat-label { font-size: 13px; color: var(--text-3); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* TERMINAL */
.hero-visual { position: relative; margin-top: var(--space-7); }
.agent-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  max-width: 860px; margin: 0 auto;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-red    { background: #ff5f57; }
.t-yellow { background: #ffbd2e; }
.t-green  { background: #28ca41; }
.t-title  { margin-left: 8px; font-size: 13px; color: var(--text-3); font-weight: 500; }
.terminal-body { padding: 20px 24px; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.8; min-height: 260px; }

.t-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 4px; opacity: 0; transform: translateY(4px); transition: opacity 0.3s, transform 0.3s; }
.t-line.visible { opacity: 1; transform: translateY(0); }
.t-prefix { color: var(--cyan); flex-shrink: 0; }
.t-text { color: var(--text-1); }
.t-text.dim { color: var(--text-3); }
.t-text.green { color: #86efac; }
.t-text.blue { color: var(--sky); }
.t-text.yellow { color: #fde68a; }
.t-text.err { color: #fca5a5; }
.t-cursor { display: inline-block; width: 8px; height: 14px; background: var(--cyan); animation: blink 1.1s step-end infinite; vertical-align: middle; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* =============================================
   LOGOS
   ============================================= */
.logos {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-label { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--space-3); }
.logos-row {
  display: flex; align-items: center; justify-content: center; gap: var(--space-5);
  flex-wrap: wrap;
}
.logo-item { font-size: 17px; font-weight: 700; color: var(--text-3); letter-spacing: -0.01em; transition: color var(--t); cursor: default; }
.logo-item:hover { color: var(--text-2); }

/* =============================================
   FEATURES
   ============================================= */
.features { padding: var(--space-8) 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card--large { grid-column: span 2; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.feature-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateY(-3px);
}
.fc-icon {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
}
.fc-blue  { background: rgba(14,165,233,0.12); color: var(--blue); }
.fc-cyan  { background: rgba(6,182,212,0.12);  color: var(--cyan); }
.fc-teal  { background: rgba(20,184,166,0.12); color: var(--teal); }
.fc-sky   { background: rgba(56,189,248,0.12); color: var(--sky);  }

.feature-card h3 { font-size: 18px; font-weight: 600; color: var(--text-1); margin-bottom: var(--space-1); }
.feature-card p  { font-size: 14px; color: var(--text-2); line-height: 1.65; }
.fc-list { margin-top: var(--space-2); padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.fc-list li { font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.fc-list li::before { content:''; width:6px; height:6px; border-radius:50%; background: var(--cyan); flex-shrink:0; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.how {
  padding: var(--space-8) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.steps {
  display: flex; align-items: stretch; gap: 0;
  max-width: 900px; margin: 0 auto;
}
.step {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t), transform var(--t);
}
.step:hover { border-color: var(--border-h); transform: translateY(-3px); }
.step-num {
  font-size: 36px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: var(--space-2);
}
.step h3 { font-size: 17px; font-weight: 600; color: var(--text-1); margin-bottom: var(--space-1); }
.step p  { font-size: 14px; color: var(--text-2); line-height: 1.65; }

.step-connector {
  flex-shrink: 0; width: 40px; align-self: center;
  display: flex; align-items: center; justify-content: center;
}
.step-connector::after {
  content: '→'; font-size: 20px; color: var(--text-3);
}

/* =============================================
   USE CASES
   ============================================= */
.usecases { padding: var(--space-8) 0; }
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.uc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.uc-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.uc-img { overflow: hidden; aspect-ratio: 16/7; }
.uc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.uc-card:hover .uc-img img { transform: scale(1.04); }
.uc-body { padding: var(--space-3); }
.uc-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 8px; display: block;
}
.uc-body h3 { font-size: 17px; font-weight: 600; color: var(--text-1); margin-bottom: 6px; }
.uc-body p  { font-size: 14px; color: var(--text-2); }

/* =============================================
   PRICING
   ============================================= */
.pricing { padding: var(--space-8) 0; }
.pricing-toggle {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.toggle-label { font-size: 14px; font-weight: 500; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.toggle-switch {
  position: relative; width: 48px; height: 26px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 13px; cursor: pointer; transition: background var(--t), border-color var(--t);
}
.toggle-switch.active { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-color: transparent; }
.toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform var(--t);
}
.toggle-switch.active .toggle-knob { transform: translateX(22px); }
.save-badge {
  font-size: 11px; font-weight: 700; color: var(--success);
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
  padding: 2px 8px; border-radius: 20px;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start;
}
.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-4);
  transition: border-color var(--t), transform var(--t);
}
.pricing-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.pricing-card--popular {
  background: linear-gradient(180deg, rgba(14,165,233,0.06) 0%, var(--bg-card) 100%);
  border-color: rgba(14,165,233,0.3);
  transform: translateY(-8px);
}
.pricing-card--popular:hover { transform: translateY(-11px); }

.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 16px; border-radius: 20px; white-space: nowrap;
}
.pc-header { margin-bottom: var(--space-3); }
.pc-header h3 { font-size: 20px; font-weight: 700; color: var(--text-1); margin-bottom: var(--space-1); }
.pc-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.pc-amount { font-size: 42px; font-weight: 800; color: var(--text-1); line-height: 1; }
.pc-period { font-size: 14px; color: var(--text-3); }
.pc-header p { font-size: 14px; color: var(--text-2); }

.pc-features { list-style: none; margin-bottom: var(--space-4); display: flex; flex-direction: column; gap: 10px; }
.pc-features li { font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.pc-features li.muted { color: var(--text-3); }
.check { color: var(--success); font-weight: 700; flex-shrink: 0; }
.cross  { color: var(--text-3); flex-shrink: 0; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { padding: var(--space-8) 0; }
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  transition: border-color var(--t), transform var(--t);
}
.testi-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.stars { color: var(--warning); font-size: 16px; letter-spacing: 2px; margin-bottom: var(--space-2); }
.testi-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: var(--space-3); font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testi-author strong { display: block; font-size: 14px; font-weight: 600; color: var(--text-1); }
.testi-author span  { font-size: 12px; color: var(--text-3); }

/* =============================================
   FAQ
   ============================================= */
.faq { padding: var(--space-8) 0; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item.open { border-color: var(--border-h); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--space-3); background: none; border: none; cursor: pointer;
  color: var(--text-1); font-size: 15px; font-weight: 600; text-align: left;
  font-family: var(--font);
  transition: color var(--t);
}
.faq-q:hover { color: var(--sky); }
.faq-chevron { font-size: 18px; color: var(--text-3); transition: transform var(--t); flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 var(--space-3);
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: var(--space-3); }
.faq-a p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  position: relative; overflow: hidden;
  padding: var(--space-8) 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.08) 0%, rgba(6,182,212,0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-banner-content { position: relative; text-align: center; }
.cta-banner-content h2 { font-size: clamp(28px,4vw,48px); font-weight: 700; line-height: 1.2; margin-bottom: var(--space-2); }
.cta-banner-content p { font-size: 17px; color: var(--text-2); margin-bottom: var(--space-4); }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: var(--space-2); flex-wrap: wrap; }

/* =============================================
   FOOTER
   ============================================= */
.footer { padding: var(--space-7) 0 var(--space-4); }
.footer-inner {
  display: flex; gap: var(--space-7); flex-wrap: wrap;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-4);
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand .logo-text { font-size: 20px; font-weight: 700; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 14px; color: var(--text-3); margin-bottom: var(--space-2); }
.social-links { display: flex; gap: 12px; }
.social-links a { color: var(--text-3); transition: color var(--t); }
.social-links a:hover { color: var(--text-1); }

.footer-links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text-1); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-3); transition: color var(--t); }
.footer-col a:hover { color: var(--text-1); }
.footer-bottom p { font-size: 13px; color: var(--text-3); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--large { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--popular { transform: none; }
  .pricing-card--popular:hover { transform: translateY(-3px); }
  .testi-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-connector { width: auto; height: 24px; }
  .step-connector::after { content: '↓'; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }
  .usecases-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--space-3); }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; gap: var(--space-4); }
  .footer-links { gap: var(--space-4); }
}
