/* GrowthPad product landing — styles */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent: #7c3aed;
  --accent-soft: #f5f3ff;
  --success: #059669;
  --success-soft: #ecfdf5;
  --dark: #0b1220;
  --dark-surface: #111827;
  --dark-border: rgba(255, 255, 255, 0.08);
  --gradient-hero: linear-gradient(135deg, #0b1220 0%, #1e293b 45%, #1e3a5f 100%);
  --gradient-accent: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --container: min(1120px, calc(100% - 2rem));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: var(--container); margin-inline: auto; }

/* — Nav — */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-accent);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: #fff; }

.nav-maxiconn {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.nav-maxiconn:hover { color: #60a5fa !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

/* — Buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover { box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost-light {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost-light:hover { background: var(--surface-muted); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* — Hero — */
.hero {
  position: relative;
  padding: 140px 0 100px;
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.hero-stat .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.hero-stat .label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Architecture diagram card */
.arch-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.arch-card h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.arch-stack { display: flex; flex-direction: column; gap: 12px; }

.arch-layer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.arch-layer.highlight {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(96, 165, 250, 0.3);
}

.arch-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.arch-icon.brain { background: var(--accent-soft); }
.arch-icon.mcp { background: var(--primary-soft); }
.arch-icon.platform { background: var(--success-soft); }

.arch-layer b { display: block; font-size: 0.9375rem; color: #fff; }
.arch-layer span { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.55); }

.arch-arrow {
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
  padding: 2px 0;
}

/* — Sections — */
.section { padding: 96px 0; }
.section-muted { background: var(--surface-muted); }
.section-dark { background: var(--dark); color: #fff; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head .eyebrow { color: var(--primary); margin-bottom: 12px; }
.section-dark .section-head .eyebrow { color: #60a5fa; }

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.section-dark .section-head p { color: rgba(255, 255, 255, 0.65); }

/* — LLM choice cards — */
.llm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.llm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.llm-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.llm-card.featured {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1), var(--shadow-lg);
}

.llm-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.llm-badge.local { background: var(--success-soft); color: var(--success); }
.llm-badge.cloud { background: var(--primary-soft); color: var(--primary); }

.llm-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.llm-card > p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.llm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.llm-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text);
}

.llm-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.llm-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--primary-soft);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  font-size: 0.9375rem;
  color: var(--text);
}

.llm-note strong { color: var(--primary); }

/* — Capability grid — */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cap-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.cap-icon.blue { background: var(--primary-soft); }
.cap-icon.purple { background: var(--accent-soft); }
.cap-icon.green { background: var(--success-soft); }

.cap-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cap-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cap-card .tools {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
}

/* — Use cases — */
.use-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.use-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: background 0.15s;
}

.use-card:hover { background: rgba(255, 255, 255, 0.06); }

.use-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #60a5fa;
  margin-bottom: 12px;
}

.use-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.use-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}

.use-playbook {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.12);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* — Benefits — */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-card {
  text-align: center;
  padding: 28px 20px;
}

.benefit-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.benefit-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* — How it works — */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 48px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: grid;
  place-items: center;
}

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

.step p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* — Comparison — */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--surface-muted);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table td:first-child { font-weight: 600; }

.compare-table .win { color: var(--success); font-weight: 600; }
.compare-table .lose { color: var(--text-muted); }

/* — CTA — */
.cta {
  padding: 80px 0;
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.0625rem;
}

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

/* — Footer — */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
  padding: 48px 0 32px;
  border-top: 1px solid var(--dark-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* — Reveal animation — */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* — Responsive — */
@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; }
  .arch-card { max-width: 480px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px;
    background: var(--dark);
    border-bottom: 1px solid var(--dark-border);
    gap: 16px;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .llm-grid,
  .use-grid,
  .cap-grid,
  .benefit-grid,
  .steps { grid-template-columns: 1fr; }

  .hero { padding: 120px 0 72px; }
  .section { padding: 72px 0; }

  .footer-grid { grid-template-columns: 1fr; }

  .compare-table { font-size: 0.8125rem; }
  .compare-table th,
  .compare-table td { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
