:root {
  --bg: #050505;
  --surface: #0F0F12;
  --surface-2: #141418;
  --border: #24242A;
  --border-2: #2E2E36;
  --fg: #FFFFFF;
  --fg-2: #A1A1AA;
  --fg-3: #71717A;
  --violet: #7C3AED;
  --violet-glow: rgba(124,58,237,0.25);
  --cyan: #06B6D4;
  --cyan-glow: rgba(6,182,212,0.2);
  --amber: #F59E0B;
  --green: #22C55E;
  --red: #EF4444;
  --radius: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', system-ui, sans-serif; }

/* UTILITIES */
.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: block; } }
.accent { color: var(--violet); }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 17px;
  color: var(--fg); text-decoration: none;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 8px; margin-left: 16px; }
.nav-links a {
  color: var(--fg-2); text-decoration: none;
  font-size: 14px; padding: 6px 12px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--fg); background: var(--surface); }
.nav-actions { display: flex; gap: 8px; margin-left: auto; }
.btn-ghost {
  color: var(--fg-2); text-decoration: none;
  font-size: 14px; padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--border); transition: all 0.15s;
}
.btn-ghost:hover { color: var(--fg); border-color: var(--border-2); background: var(--surface); }
.btn-primary {
  background: var(--violet); color: white; text-decoration: none;
  font-size: 14px; padding: 8px 16px; border-radius: 10px; font-weight: 500;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover { background: #6D28D9; transform: translateY(-1px); }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--fg-2); cursor: pointer; margin-left: auto; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .nav-mobile-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
}

/* HERO */
.hero {
  position: relative;
  padding: 160px 24px 80px;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute; border-radius: 50%;
  filter: blur(120px); pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  top: 80px; left: 50%; transform: translateX(-80%);
}
.hero-glow-2 {
  width: 500px; height: 350px;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  bottom: 200px; right: 5%;
}
.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: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 720px;
  margin-bottom: 56px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 999px; padding: 6px 14px;
  font-size: 13px; color: var(--fg-2); font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--violet); box-shadow: 0 0 8px var(--violet);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.headline-gradient {
  background: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--fg-2);
  line-height: 1.65; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.btn-hero-primary {
  background: var(--violet); color: white; text-decoration: none;
  padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 15px;
  transition: all 0.2s; box-shadow: 0 0 24px rgba(124,58,237,0.4);
}
.btn-hero-primary:hover { background: #6D28D9; transform: translateY(-2px); box-shadow: 0 0 32px rgba(124,58,237,0.5); }
.btn-hero-ghost {
  color: var(--fg-2); text-decoration: none;
  padding: 14px 28px; border-radius: 12px; font-weight: 500; font-size: 15px;
  border: 1px solid var(--border); transition: all 0.2s;
}
.btn-hero-ghost:hover { color: var(--fg); border-color: var(--border-2); background: var(--surface); }
.hero-note { font-size: 13px; color: var(--fg-3); }

/* CODE EDITOR MOCKUP */
.hero-visual {
  position: relative; z-index: 2;
  width: 100%; max-width: 860px;
  margin-bottom: 64px;
}
.editor-frame {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(124,58,237,0.15), 0 32px 64px rgba(0,0,0,0.6), 0 0 80px rgba(124,58,237,0.08);
}
.editor-titlebar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.editor-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }
.editor-title { font-size: 12px; color: var(--fg-3); font-family: 'Space Grotesk', monospace; flex: 1; }
.editor-tabs { display: flex; gap: 4px; }
.tab { font-size: 11px; padding: 4px 10px; border-radius: 6px; color: var(--fg-3); cursor: pointer; }
.tab.active { background: var(--surface); color: var(--fg); }
.editor-body { display: flex; min-height: 380px; }
.editor-sidebar { width: 140px; border-right: 1px solid var(--border); padding: 12px 8px; flex-shrink: 0; }
.sidebar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px;
  font-size: 12px; color: var(--fg-2); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.sidebar-item:hover { background: var(--surface-2); color: var(--fg); }
.sidebar-item.active { background: rgba(124,58,237,0.12); color: var(--fg); }
.editor-main { flex: 1; padding: 16px; overflow: hidden; }
.code-block { margin-bottom: 16px; }
.code-line { font-family: 'Space Grotesk', monospace; font-size: 12px; line-height: 1.8; }
.c-keyword { color: #C792EA; }
.c-var { color: #82AAFF; }
.c-key { color: #F07178; }
.c-str { color: #C3E88D; }
.c-cyan { color: #06B6D4; }
.c-brace { color: var(--fg-2); }
.indent-1 { padding-left: 20px; }
.indent-2 { padding-left: 40px; }
.agent-status-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.agent-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; padding: 5px 10px; border-radius: 999px;
}
.badge-violet { background: rgba(124,58,237,0.12); color: #A78BFA; border: 1px solid rgba(124,58,237,0.2); }
.badge-cyan { background: rgba(6,182,212,0.1); color: #06B6D4; border: 1px solid rgba(6,182,212,0.2); }
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #A78BFA; animation: pulse-dot 1.5s infinite;
}
.preview-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--surface-2); border-radius: 8px;
  font-size: 11px; margin-bottom: 10px;
}
.preview-label { color: var(--fg-3); }
.preview-tabs { display: flex; gap: 4px; }
.pv-tab { color: var(--fg-3); padding: 3px 8px; border-radius: 5px; cursor: pointer; }
.pv-tab.active { background: var(--surface); color: var(--fg); }
.preview-status { display: flex; align-items: center; gap: 4px; margin-left: auto; color: var(--green); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.preview-frame {
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  background: #080810;
  height: 180px;
  padding: 16px;
}
.preview-hero-mock { margin-bottom: 16px; }
.pm-line { background: rgba(255,255,255,0.06); border-radius: 4px; }
.pm-title { height: 12px; width: 60%; margin-bottom: 6px; }
.pm-sub { height: 8px; width: 40%; margin-bottom: 10px; }
.pm-cta { height: 20px; width: 80px; border-radius: 6px; background: rgba(124,58,237,0.3); }
.preview-grid { display: flex; gap: 10px; }
.pm-card { flex: 1; height: 70px; border-radius: 6px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.04); }

/* AGENT FLOAT CARDS */
.agent-float {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite;
}
.agent-float-1 { top: -20px; right: 40px; animation-delay: 0s; }
.agent-float-2 { bottom: 60px; right: -20px; animation-delay: 1.5s; }
.agent-float-3 { top: 50%; left: -30px; animation-delay: 0.8s; }
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.af-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(124,58,237,0.15); display: flex; align-items: center; justify-content: center;
}
.af-icon-cyan { background: rgba(6,182,212,0.15); }
.af-icon-amber { background: rgba(245,158,11,0.15); }
.af-info { display: flex; flex-direction: column; gap: 2px; }
.af-name { font-size: 12px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; }
.af-status { font-size: 10px; color: var(--fg-3); }

/* HERO STATS */
.hero-stats {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.stat {
  padding: 20px 32px; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 700; color: var(--fg);
  background: linear-gradient(135deg, #7C3AED, #06B6D4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 12px; color: var(--fg-3); }
.stat-sep { width: 1px; align-self: stretch; background: var(--border); }

/* SECTION SHARED */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--fg-2); line-height: 1.65; }

/* AGENTS SECTION */
.agents-section { padding: 100px 24px; position: relative; }
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px; max-width: 1100px; margin: 0 auto 48px;
}
.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.agent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.card-violet { border-top: 2px solid var(--violet); }
.card-cyan { border-top: 2px solid var(--cyan); }
.card-amber { border-top: 2px solid var(--amber); }
.card-green { border-top: 2px solid var(--green); }
.ac-icon { margin-bottom: 16px; }
.ac-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; font-family: 'Space Grotesk', sans-serif; }
.ac-desc { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin-bottom: 16px; }
.ac-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-tags span {
  font-size: 11px; padding: 3px 8px;
  border-radius: 6px; background: var(--surface-2); color: var(--fg-3);
  border: 1px solid var(--border);
}
.agents-connectors {
  display: flex; align-items: center; gap: 16px;
  max-width: 600px; margin: 0 auto;
}
.connector-line { flex: 1; height: 1px; background: var(--border); }
.connector-label { font-size: 12px; color: var(--fg-3); text-align: center; }

/* FEATURES SECTION */
.features-section { padding: 100px 24px; background: var(--surface); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; max-width: 1100px; margin: 0 auto;
}
.feature-card {
  display: flex; gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.fc-icon { flex-shrink: 0; margin-top: 2px; }
.fc-content h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; font-family: 'Space Grotesk', sans-serif; }
.fc-content p { font-size: 14px; color: var(--fg-2); line-height: 1.55; }

/* PRICING SECTION */
.pricing-section { padding: 100px 24px; }
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 820px; margin: 0 auto;
}
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px var(--violet-glow), 0 0 40px rgba(124,58,237,0.1);
}
.pc-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--violet); color: white;
  font-size: 11px; font-weight: 600; padding: 4px 14px; border-radius: 999px;
}
.pc-header { margin-bottom: 12px; }
.pc-plan { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); display: block; margin-bottom: 12px; }
.pc-price { display: flex; align-items: baseline; gap: 6px; }
.price-amount { font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 700; }
.price-period { font-size: 15px; color: var(--fg-3); }
.pc-tagline { font-size: 14px; color: var(--fg-2); margin-bottom: 24px; line-height: 1.5; }
.pc-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.pc-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); }
.pc-crossed { color: var(--fg-3) !important; }
.pc-cta {
  display: block; text-align: center; text-decoration: none;
  padding: 13px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--border); color: var(--fg); transition: all 0.2s;
  background: transparent;
}
.pc-cta:hover { border-color: var(--border-2); background: var(--surface-2); }
.pc-cta-primary { background: var(--violet); color: white; border: none; box-shadow: 0 0 20px rgba(124,58,237,0.3); }
.pc-cta-primary:hover { background: #6D28D9; }
code { font-size: 11px; background: rgba(124,58,237,0.15); padding: 2px 6px; border-radius: 4px; color: #A78BFA; }

/* FAQ SECTION */
.faq-section { padding: 100px 24px; background: var(--surface); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg); }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--fg); text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  gap: 16px;
}
.faq-trigger:hover { background: var(--surface); }
.faq-chevron { flex-shrink: 0; transition: transform 0.2s; color: var(--fg-3); }
.faq-trigger.open .faq-chevron { transform: rotate(180deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease, padding 0.25s; }
.faq-body.open { max-height: 200px; padding: 0 20px 18px; }
.faq-body p { font-size: 14px; color: var(--fg-2); line-height: 1.65; }

/* CLOSING SECTION */
.closing-section {
  padding: 120px 24px;
  position: relative; overflow: hidden;
  text-align: center;
}
.closing-bg-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(124,58,237,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.closing-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.closing-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.closing-sub { font-size: 17px; color: var(--fg-2); margin-bottom: 36px; line-height: 1.6; }
.btn-closing {
  display: inline-block; text-decoration: none;
  background: var(--violet); color: white;
  padding: 16px 40px; border-radius: 14px; font-weight: 600; font-size: 16px;
  transition: all 0.2s; box-shadow: 0 0 32px rgba(124,58,237,0.4);
}
.btn-closing:hover { background: #6D28D9; transform: translateY(-2px); }
.closing-note { font-size: 13px; color: var(--fg-3); margin-top: 16px; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px;
}
.footer-links { display: flex; gap: 16px; margin-left: auto; }
.footer-links a { color: var(--fg-3); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--fg-2); }
.footer-copy { font-size: 12px; color: var(--fg-3); width: 100%; margin-top: 8px; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .hero { padding: 120px 16px 60px; }
  .hero-headline { font-size: 36px; }
  .editor-body { flex-direction: column; }
  .editor-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); display: flex; gap: 4px; overflow-x: auto; }
  .sidebar-item { white-space: nowrap; }
  .agent-float { display: none; }
  .hero-stats { flex-direction: column; }
  .stat-sep { width: 80%; height: 1px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-links { margin-left: 0; }
}
