/* ============================================
   PromptBeat — Commercial Landing Page
   ============================================ */

:root {
  --bg: #09090b;
  --surface: #131316;
  --surface2: #1a1a1f;
  --text: #fafafa;
  --text2: #a1a1aa;
  --text3: #71717a;
  --border: #27272a;
  --radius: 16px;
  --max-w: 1140px;

  /* Brand gradient */
  --g1: #7c3aed;
  --g2: #2563eb;
  --g3: #06b6d4;
  --g4: #10b981;
  --gradient: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  --gradient-text: linear-gradient(135deg, var(--g1), var(--g3), var(--g4));
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--g1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto;
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 11, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: -1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
  z-index: 1;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg {
  width: 100%;
  height: 100%;
}

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

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

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

.btn-nav-ghost {
  border: 1px solid rgba(255,255,255,0.3) !important;
  color: var(--text2) !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
}
.btn-nav-ghost:hover { border-color: var(--g1) !important; color: var(--g1) !important; }

.btn-nav {
  background: var(--gradient) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu span {
  width: 24px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-lg { padding: 14px 32px; font-size: 16px; }

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}

.btn-ghost:hover { color: var(--text); border-color: var(--text3); }

.btn-block { width: 100%; justify-content: center; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 140px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.15) 0%, rgba(37, 99, 235, 0.08) 40%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-pill {
  display: inline-block;
  padding: 8px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-sub {
  font-size: 20px;
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

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

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

.hero-stat span {
  font-size: 13px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* Hero flow diagram */
.hero-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 64px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}
.flow-row { position: relative; }
.flow-row-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 12px;
  padding: 3px 10px;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 6px;
}
.flow-row-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.flow-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.flow-node {
  text-align: center;
  padding: 20px 28px;
}

.flow-icon { font-size: 36px; margin-bottom: 8px; }

.flow-label { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

.flow-sub {
  font-size: 13px;
  color: var(--text3);
}

.flow-sub code {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.flow-sub code.code-prompt {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}

.flow-arrow {
  width: 80px;
  height: 2px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
}

.flow-pulse {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g1);
  box-shadow: 0 0 12px var(--g1);
  animation: pulse-move 2s ease-in-out infinite;
}

.pulse-delay { animation-delay: 1s; }

.flow-sub-action {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}

.action-approve {
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.action-deny {
  padding: 3px 10px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.action-edit {
  padding: 3px 10px;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.action-chat {
  padding: 3px 10px;
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

@keyframes pulse-move {
  0%, 100% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

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

/* ============ AGENTS BAR ============ */
.agents-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.agents-label {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 28px;
}

.agents-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.agent-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
}

.agent-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
}

.agent-claude { background: linear-gradient(135deg, #d97706, #ea580c); }
.agent-aider  { background: linear-gradient(135deg, #059669, #10b981); }
.agent-codex  { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.agent-goose  { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.agent-gemini { background: linear-gradient(135deg, #4285f4, #669df6); }
.agent-copilot { background: linear-gradient(135deg, #1f6feb, #58a6ff); }

/* ============ FEATURES ============ */
.features {
  padding: 120px 0;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before { opacity: 1; }

.feat-1::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.feat-2::before { background: linear-gradient(90deg, #7c3aed, #2563eb); }
.feat-3::before { background: linear-gradient(90deg, #06b6d4, #10b981); }
.feat-4::before { background: linear-gradient(90deg, #ef4444, #f97316); }
.feat-5::before { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.feat-6::before { background: linear-gradient(90deg, #2563eb, #06b6d4); }

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

.feat-1 .feature-icon-wrap { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.feat-2 .feature-icon-wrap { background: rgba(124, 58, 237, 0.15); color: #8b5cf6; }
.feat-3 .feature-icon-wrap { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.feat-4 .feature-icon-wrap { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.feat-5 .feature-icon-wrap { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.feat-6 .feature-icon-wrap { background: rgba(37, 99, 235, 0.15); color: #3b82f6; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* More features strip */
.more-features {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding: 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.mf-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
}

.mf-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text3);
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content { flex: 1; }

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

.step-content p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 12px;
}

.step-code {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  font-family: 'SF Mono', monospace;
  font-size: 13px;
  color: #c084fc;
}

.step-platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.step-platforms span {
  padding: 4px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}

.step-actions {
  display: flex;
  gap: 8px;
}

.sa-approve { padding: 4px 12px; background: rgba(16, 185, 129, 0.15); color: #34d399; border-radius: 6px; font-size: 12px; font-weight: 600; }
.sa-deny { padding: 4px 12px; background: rgba(239, 68, 68, 0.15); color: #f87171; border-radius: 6px; font-size: 12px; font-weight: 600; }
.sa-edit { padding: 4px 12px; background: rgba(37, 99, 235, 0.15); color: #60a5fa; border-radius: 6px; font-size: 12px; font-weight: 600; }
.sa-auto { padding: 4px 12px; background: rgba(124, 58, 237, 0.15); color: #c084fc; border-radius: 6px; font-size: 12px; font-weight: 600; }

.step-connector {
  width: 2px;
  height: 40px;
  background: var(--border);
  margin-left: 23px;
}

/* ============ AI CHAT ============ */
.ai-chat-section {
  padding: 120px 0;
}

.ai-chat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.ai-chat-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-chat-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-demo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.chat-demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.chat-demo-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}

.chat-demo-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 90%;
}

.chat-user {
  background: rgba(124, 58, 237, 0.15);
  color: #c084fc;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-ai {
  background: var(--surface2);
  color: var(--text2);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ai-chat-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ai-chat-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.ai-chat-feature:hover {
  border-color: var(--g1);
  transform: translateX(4px);
}

.acf-icon {
  font-size: 24px;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border-radius: 10px;
}

.ai-chat-feature h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ai-chat-feature p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

/* ============ PLATFORMS ============ */
/* ============ PLATFORMS & DOWNLOAD ============ */
.download-section {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.download-card:nth-child(1) { grid-column: 1 / 3; }
.download-card:nth-child(2) { grid-column: 3 / 5; }
.download-card:nth-child(3) { grid-column: 5 / 7; }
.download-card:nth-child(4) { grid-column: 2 / 4; }
.download-card:nth-child(5) { grid-column: 4 / 6; }

.download-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--g1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.download-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
}
.dl-apple { background: rgba(167, 139, 250, 0.12); color: #c4b5fd; }
.dl-android { background: rgba(61, 220, 132, 0.12); color: #3ddc84; }
.dl-watch { background: rgba(251, 146, 60, 0.12); color: #fb923c; }
.dl-wearos { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
.dl-web { background: rgba(167, 139, 250, 0.12); color: #a78bfa; }

.download-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-card p {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.download-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #c084fc;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.download-badge-active {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.5);
  color: #e0c3fc;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.download-badge-active:hover {
  background: rgba(124, 58, 237, 0.4);
  border-color: rgba(124, 58, 237, 0.7);
}


/* ============ CTA ============ */
.cta-card {
  text-align: center;
  padding: 80px 40px;
  background: var(--gradient);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta-card h2 {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  position: relative;
}

.cta-card p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  position: relative;
}

.cta-actions {
  position: relative;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-banner {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

/* ============ QUICKSTART ============ */
.quickstart {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.code-block {
  max-width: 640px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.code-dots { display: flex; gap: 6px; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.code-title { font-size: 12px; color: var(--text3); flex: 1; }

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.copy-btn:hover {
  color: #c084fc;
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.1);
}

.code-block pre {
  padding: 24px;
  margin: 0;
  background: #0c0c0e;
  overflow-x: auto;
}

.code-block code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.8;
}

.c-comment { color: #4b5563; }
.c-cmd { color: #a78bfa; }

/* ============ FAQ ============ */
.faq-section {
  padding: 120px 0;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--surface);
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.faq-item[open] {
  border-color: rgba(124, 58, 237, 0.4);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text3);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212';
  color: #a78bfa;
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text3);
  line-height: 1.7;
  margin: 0;
}

/* ============ FOOTER ============ */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text3);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
  justify-content: flex-end;
}

.footer-links h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 40px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text3);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card:nth-child(1),
  .download-card:nth-child(2),
  .download-card:nth-child(3),
  .download-card:nth-child(4),
  .download-card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-links .btn-nav, .nav-links .btn-nav-ghost { width: 100%; text-align: center; }
  .mobile-menu { display: flex; }
  .mobile-menu.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .mobile-menu.open span:nth-child(2) { opacity: 0; }
  .mobile-menu.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat strong { font-size: 22px; }
  .hero-stat-divider { display: none; }

  .hero-flow { flex-direction: column; gap: 0; }
  .flow-row-nodes { flex-direction: column; gap: 0; }
  .flow-arrow { width: 2px; height: 40px; }
  .flow-pulse { animation: pulse-move-v 2s ease-in-out infinite; }
  .pulse-delay { animation: pulse-move-v 2s ease-in-out infinite; animation-delay: 1s; }

  .section-header h2 { font-size: 28px; }
  .section-header p { font-size: 15px; }

  .features-grid { grid-template-columns: 1fr; }
  .ai-chat-grid { grid-template-columns: 1fr; }
  .agents-logos { gap: 24px; flex-wrap: wrap; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; gap: 32px; }

  .cta-card { padding: 48px 24px; }
  .cta-card h2 { font-size: 24px; }
}

@keyframes pulse-move-v {
  0%, 100% { top: 0; left: -3px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 8px); left: -3px; opacity: 0; }
}

@media (max-width: 480px) {
  .download-grid { grid-template-columns: 1fr; }
  .agents-logos { flex-direction: column; gap: 16px; }
  .hero h1 { font-size: 30px; }
  .more-features { gap: 8px; }
}
