/* =============================================================
   AI Captain — Marketing Website Styles
   ============================================================= */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #060a13;
  --bg-dark: #0a1121;
  --bg-card: #111827;
  --bg-card-hover: #1a2438;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.25);
  --accent-dark: #0099bb;
  --purple: #7c3aed;
  --purple-glow: rgba(124, 58, 237, 0.2);
  --green: #10b981;
  --orange: #f59e0b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: #1e293b;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #33ddff; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: #fff; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 16px auto 0;
}
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: #33ddff;
  color: #000;
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(6, 10, 19, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}
.nav-brand img { width: 32px; height: 32px; border-radius: 6px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}

/* Hero two-column split */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  background: rgba(17, 24, 39, 0.6);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero image */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
}

.hero-visual {
  margin-top: 72px;
  position: relative;
}
.hero-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  margin: 0 auto;
}

/* ---------- Logos / Social Proof ---------- */
.social-proof {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.proof-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.proof-item strong { color: var(--text-muted); font-size: 1.1rem; }

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 60px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.feature-icon.code { background: rgba(0, 212, 255, 0.12); color: var(--accent); }
.feature-icon.review { background: rgba(124, 58, 237, 0.12); color: var(--purple); }
.feature-icon.research { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.feature-icon.plan { background: rgba(245, 158, 11, 0.12); color: var(--orange); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }
.feature-cmd {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
}

/* ---------- How It Works ---------- */
.steps {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- Showcase / Two-column ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 60px;
}
.showcase-text .section-label { margin-bottom: 8px; }
.showcase-text h2 { margin-bottom: 16px; }
.showcase-text p { color: var(--text-muted); margin-bottom: 24px; }
.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.showcase-list .check {
  color: var(--green);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.showcase-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.showcase-visual img {
  width: 100%;
}
.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }
.code-window-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-muted);
  overflow-x: auto;
}
.code-window-body .prompt { color: var(--accent); }
.code-window-body .cmd { color: var(--purple); }
.code-window-body .arg { color: var(--text); }
.code-window-body .comment { color: var(--text-dim); }

/* ---------- Pricing ---------- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  position: relative;
}
.pricing-card.featured::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 100px;
}
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 16px 0 8px;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.pricing-features li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .icon { color: var(--green); flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 60px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  text-align: left;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  font-size: 1.3rem;
  transition: transform 0.3s;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(124, 58, 237, 0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { color: var(--text-muted); max-width: 500px; margin: 0 auto 32px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 280px;
}
.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: var(--text-dim);
  font-size: 1.1rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--accent); }

/* ---------- Hero Agents Row ---------- */
.hero-agents {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.agent-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.15));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.agent-logo:hover {
  filter: drop-shadow(0 0 14px var(--accent-glow));
  transform: scale(1.08);
}
.agent-connector {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.6;
  user-select: none;
}

/* ---------- Agents Strip ---------- */
.agents-strip {
  background: var(--bg-dark);
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.agents-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.agents-strip-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.agents-strip-node img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3));
}
.agents-strip-node--center {
  padding: 16px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 0 24px var(--accent-glow);
  background: rgba(0, 212, 255, 0.04);
}
.agents-strip-node--center img {
  width: 64px;
  height: 64px;
}
.agents-strip-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.agents-strip-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 160px;
}

/* ---------- Flow Diagram ---------- */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 48px auto 48px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 900px;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  min-width: 100px;
}
.flow-node img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.flow-node--captain {
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 20px var(--accent-glow);
  background: rgba(0, 212, 255, 0.04);
}
.flow-node--done {
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.06);
}
.flow-node-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.flow-arrow {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
  user-select: none;
}
.flow-node-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.flow-node-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 140px;
}
.flow-node-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

/* ---------- Feature Agent Badge ---------- */
.feature-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.feature-agent-badge img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.powered-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ---------- Pricing Card Agent ---------- */
.pricing-card-agent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.pricing-card-agent img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* ---------- Button Images ---------- */
.btn img {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-content { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-agents { justify-content: center; }
  .hero-image img { max-width: 480px; }
  .showcase { grid-template-columns: 1fr; gap: 40px; }
  .showcase.reverse .showcase-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; }
  .agents-strip-inner { gap: 24px; }
  .agents-strip-node img { width: 44px; height: 44px; }
  .agents-strip-node--center img { width: 52px; height: 52px; }
  .flow-diagram { gap: 12px; padding: 24px; }
  .flow-node { padding: 12px; min-width: 80px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 120px 0 60px; }
  .hero-image img { max-width: 100%; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 10, 19, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .hero-actions { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-agents { gap: 10px; }
  .agent-logo { width: 36px; height: 36px; }
  .agent-connector { font-size: 1.1rem; }
  .agents-strip-inner { flex-direction: column; gap: 20px; }
  .agents-strip-node--center { padding: 12px 16px; }
  .flow-diagram { flex-direction: column; padding: 20px; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-node-split { flex-direction: column; }
}
