@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #FFFFFF;
  color: #111827;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #4F46E5; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ─── Colors & Variables ─── */
:root {
  --navy: #1E1B4B;
  --indigo: #4F46E5;
  --indigo-hover: #4338CA;
  --indigo-soft: #EEF2FF;
  --indigo-light: #C7D2FE;
  --bg: #FFFFFF;
  --text: #111827;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --bg-soft: #F9FAFB;
  --radius-card: 10px;
  --radius-btn: 6px;
  --max-w: 1100px;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo img { width: 28px; height: 28px; flex-shrink: 0; }

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  border-radius: var(--radius-btn);
  white-space: nowrap;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  padding: 12px 24px;
  font-size: 15px;
}

.btn-primary:hover {
  background: var(--indigo-hover);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
  border-radius: 8px;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
  padding: 12px 24px;
  font-size: 15px;
}

.btn-outline:hover {
  border-color: var(--navy);
  background: var(--bg-soft);
  text-decoration: none;
  color: var(--navy);
}

/* ─── Hero ─── */
.hero {
  padding: 80px 0 0;
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.03em;
  max-width: 760px;
  margin: 0 auto 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--indigo);
}

.hero p.hero-sub {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ─── Install Block ─── */
.install-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  border-radius: 8px;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 15px;
  color: #A5B4FC;
}

.install-block .npm-prefix { color: #6B7280; }
.install-block .pkg-name { color: #E0E7FF; }

.install-copy {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
  color: #94A3B8;
  font-family: inherit;
  transition: background 0.15s;
}
.install-copy:hover { background: rgba(255,255,255,0.18); color: #fff; }
.install-copy.copied { color: #6EE7B7; }

/* ─── Interactive Demo Shell ─── */
.demo-wrapper {
  background: var(--indigo-soft);
  border-top: 1px solid var(--indigo-light);
  padding: 60px 0 0;
  overflow: hidden;
}

.demo-shell {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px 12px 0 0;
  border: 1.5px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -4px 40px rgba(79,70,229,0.12), 0 0 0 1px rgba(79,70,229,0.06);
  overflow: hidden;
  transform: translateY(0);
}

.demo-chrome {
  background: #F8F9FA;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 0;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.demo-dots {
  display: flex;
  gap: 6px;
  padding-bottom: 14px;
  flex-shrink: 0;
}

.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E5E7EB;
}
.demo-dots span:nth-child(1) { background: #FC8181; }
.demo-dots span:nth-child(2) { background: #F6AD55; }
.demo-dots span:nth-child(3) { background: #68D391; }

.demo-tabs {
  display: flex;
  gap: 2px;
}

.demo-tab {
  background: none;
  border: none;
  border-radius: 6px 6px 0 0;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  border: 1px solid transparent;
  border-bottom: none;
  position: relative;
  bottom: -1px;
}

.demo-tab:hover { color: var(--indigo); }

.demo-tab.active {
  background: #fff;
  color: var(--indigo);
  border-color: var(--border);
  font-weight: 600;
}

.demo-body {
  padding: 24px;
  min-height: 220px;
}

.demo-pane { display: none; }
.demo-pane.active { display: block; }

/* Chat pane */
.msg { margin-bottom: 16px; }

.msg-user {
  background: var(--indigo-soft);
  color: var(--navy);
  border-radius: 18px 18px 4px 18px;
  padding: 12px 18px;
  font-size: 14px;
  display: inline-block;
  max-width: 80%;
  float: right;
  clear: both;
}

.msg-ai {
  clear: both;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 85%;
}

.msg-ai-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.ai-avatar {
  width: 24px;
  height: 24px;
  background: var(--indigo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.tool-pill {
  background: var(--indigo-soft);
  color: var(--indigo);
  border: 1px solid var(--indigo-light);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
}

.msg-bubble {
  background: #F9FAFB;
  border: 1px solid var(--border);
  border-radius: 4px 18px 18px 18px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.feedback-row {
  clear: both;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  margin-left: 32px;
}

.feedback-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.12s;
}
.feedback-btn:hover { background: var(--indigo-soft); border-color: var(--indigo-light); }

.feedback-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Trace pane */
.trace-list { display: flex; flex-direction: column; gap: 8px; }

.trace-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.trace-item.trace-done { border-color: #D1FAE5; background: #F0FDF4; }
.trace-item.trace-running { border-color: var(--indigo-light); background: var(--indigo-soft); }
.trace-item.trace-pending { opacity: 0.5; }

.trace-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.trace-done .trace-icon { background: #6EE7B7; color: #065F46; }
.trace-running .trace-icon { background: var(--indigo); color: #fff; animation: spin 1s linear infinite; }
.trace-pending .trace-icon { background: var(--border); color: var(--text-secondary); }

@keyframes spin { to { transform: rotate(360deg); } }

.trace-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

.trace-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.trace-duration {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Approval pane */
.approval-card {
  border: 1.5px solid #FCD34D;
  background: #FFFBEB;
  border-radius: 10px;
  padding: 24px;
  max-width: 480px;
  margin: 0 auto;
}

.approval-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.approval-action {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.approval-detail {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--mono);
  margin-bottom: 20px;
  line-height: 1.5;
}

.approval-btns { display: flex; gap: 10px; }

.btn-approve {
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.btn-approve:hover { background: #047857; }

.btn-reject {
  background: none;
  color: #DC2626;
  border: 1.5px solid #FCA5A5;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.btn-reject:hover { background: #FEF2F2; }

/* Session pane */
.session-list { display: flex; flex-direction: column; gap: 6px; }

.session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: background 0.12s;
  cursor: pointer;
}

.session-item:hover { background: var(--indigo-soft); border-color: var(--indigo-light); }
.session-item.active-session { background: var(--indigo-soft); border-color: var(--indigo); }

.session-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.session-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.session-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: #D1FAE5;
  color: #065F46;
}
.session-badge.ended { background: var(--bg-soft); color: var(--text-secondary); }

/* ─── Social Proof ─── */
.social-proof {
  padding: 56px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-proof-grid {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.proof-stat {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 20px 32px;
  border-right: 1px solid var(--border);
}

.proof-stat:last-child { border-right: none; }

.proof-stat .number {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.proof-stat .number.indigo { color: var(--indigo); }

.proof-stat .label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

/* ─── Section Headings ─── */
.section-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 12px;
}

.section-heading {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.55;
}

/* ─── Components Section ─── */
.components-section { padding: 100px 0; }

.components-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}

.component-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.component-card:hover {
  box-shadow: 0 4px 20px rgba(79,70,229,0.1);
  border-color: var(--indigo-light);
}

.component-icon {
  width: 44px;
  height: 44px;
  background: var(--indigo-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.component-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.component-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.component-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--indigo);
  background: var(--indigo-soft);
  border: 1px solid var(--indigo-light);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ─── Problem Block ─── */
.problem-block {
  padding: 100px 0;
  background: var(--navy);
  color: #fff;
}

.problem-block .section-tag { color: #A5B4FC; }
.problem-block .section-heading { color: #fff; }
.problem-block .section-sub { color: #94A3B8; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.problem-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 32px 28px;
}

.problem-item .cost {
  font-size: 36px;
  font-weight: 800;
  color: #F87171;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-family: var(--mono);
}

.problem-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.problem-item p {
  font-size: 15px;
  color: #94A3B8;
  line-height: 1.6;
}

/* ─── How It Works ─── */
.how-it-works { padding: 100px 0; }

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.hiw-step { display: flex; flex-direction: column; }

.hiw-number {
  width: 44px;
  height: 44px;
  background: var(--indigo);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.hiw-step h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.hiw-step p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.code-snippet {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--navy);
  color: #A5B4FC;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 16px;
  line-height: 1.6;
}

.code-snippet .kw { color: #C084FC; }
.code-snippet .str { color: #6EE7B7; }
.code-snippet .tag { color: #67E8F9; }

/* ─── Pricing ─── */
.pricing-section { padding: 100px 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
  align-items: start;
}

.pricing-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  position: relative;
  background: #fff;
}

.pricing-card.featured {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.07), 0 8px 32px rgba(0,0,0,0.08);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-plan {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  vertical-align: super;
  margin-right: 2px;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.55;
  min-height: 48px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
}

.pricing-features li {
  font-size: 15px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  content: "✓";
  color: var(--indigo);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── CTA Band ─── */
.cta-band {
  padding: 100px 0;
  background: var(--indigo);
  text-align: center;
  color: #fff;
}

.cta-band h2 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-band p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 40px;
}

.btn-white {
  background: #fff;
  color: var(--indigo);
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
}

.btn-white:hover {
  background: #EEF2FF;
  color: var(--indigo);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ─── Blog ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}

.blog-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}

.blog-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.blog-card-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--indigo);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.blog-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
}

/* ─── Article / Prose ─── */
.article-header {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.article-tag {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--indigo);
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin-bottom: 16px;
}

.article-meta { font-size: 14px; color: var(--text-secondary); }

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.prose h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 12px;
}

.prose p {
  font-size: 17px;
  line-height: 1.75;
  color: #1F2937;
  margin-bottom: 20px;
}

.prose ul, .prose ol { margin: 0 0 20px 24px; }

.prose li {
  font-size: 17px;
  line-height: 1.75;
  color: #1F2937;
  margin-bottom: 8px;
}

.prose strong { font-weight: 700; color: var(--navy); }

.prose blockquote {
  border-left: 3px solid var(--indigo);
  padding: 12px 24px;
  margin: 32px 0;
  background: var(--indigo-soft);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.prose blockquote p { font-size: 18px; font-style: italic; color: var(--navy); margin: 0; }

.prose .callout {
  background: var(--indigo-soft);
  border: 1px solid var(--indigo-light);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin: 32px 0;
}

.prose .callout p { margin: 0; color: #3730A3; }

.prose code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--indigo-soft);
  color: var(--indigo);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ─── Form ─── */
.form-section {
  padding: 80px 0 100px;
  max-width: 540px;
  margin: 0 auto;
}

.form-section h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.form-section .form-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.55;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: auto;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note { font-size: 13px; color: var(--text-secondary); margin-top: 16px; }

/* ─── Page Hero ─── */
.page-hero {
  padding: 80px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── About ─── */
.about-section { padding: 80px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-grid h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.about-grid p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-values { margin-top: 60px; }

.about-values h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

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

.value-card {
  padding: 32px 28px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
}

.value-icon { font-size: 28px; margin-bottom: 16px; }

.value-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Legal Prose ─── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal-content h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-content .legal-date {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 12px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.75;
  color: #1F2937;
  margin-bottom: 16px;
}

.legal-content ul { margin: 0 0 16px 24px; }

.legal-content li {
  font-size: 16px;
  line-height: 1.75;
  color: #1F2937;
  margin-bottom: 6px;
}

/* ─── Press / Careers ─── */
.press-section { padding: 80px 0 100px; }

.press-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.press-section p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 16px;
}

.press-section a { color: var(--indigo); }

.boilerplate-box {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin: 24px 0;
  font-size: 16px;
  line-height: 1.7;
  color: #1F2937;
  max-width: 640px;
}

/* ─── Footer ─── */
.footer {
  background: var(--navy);
  color: #fff;
  padding: 60px 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-logo img { filter: brightness(0) invert(1); }

.footer-tagline {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 15px;
  color: #CBD5E1;
  text-decoration: none;
}

.footer-col ul li a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: #64748B;
  text-align: center;
}

/* ─── Cookie Banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 999;
  padding: 16px 24px;
}

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-inner p { font-size: 14px; color: #CBD5E1; line-height: 1.5; }
.cookie-inner a { color: #A5B4FC; }

/* ─── Success message ─── */
.success-msg {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  border-radius: var(--radius-card);
  padding: 20px 24px;
  font-size: 16px;
  color: #065F46;
  margin-top: 24px;
  display: none;
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }

.section-intro { max-width: 600px; }
.section-intro-center { max-width: 600px; margin: 0 auto; text-align: center; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero h1 { font-size: 42px; }
  .hiw-grid, .problem-grid, .pricing-grid, .components-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: 1fr; max-width: 480px; }
  .blog-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .section-heading { font-size: 32px; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 0; }
  .hero h1 { font-size: 36px; }
  .hero p.hero-sub { font-size: 17px; }
  .page-hero h1 { font-size: 36px; }
  .article-header h1 { font-size: 32px; }
  .nav-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
  .proof-stat { min-width: 50%; padding: 16px; border-right: none; border-bottom: 1px solid var(--border); }
  .proof-stat:last-child { border-bottom: none; }
  .social-proof-grid { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-band h2 { font-size: 32px; }
  .pricing-card { padding: 32px 24px; }
  .legal-content { padding: 40px 0 60px; }
  .demo-tab { padding: 6px 10px; font-size: 11px; }
  .install-block { font-size: 13px; flex-wrap: wrap; justify-content: center; }
}
