:root {
  --p: #9146FF;
  --p-dark: #7c2bff;
  --p-soft: #f1eafe;
  --p-soft2: #e3d3fb;
  --bg: #fafafa;
  --card: #ffffff;
  --text: #1a1a24;
  --text-soft: #555562;
  --text-mute: #8b8b95;
  --border: #ececf1;
  --border-strong: #d8d8e0;
  --shadow-sm: 0 1px 2px rgba(20, 20, 40, 0.04);
  --shadow-md: 0 4px 16px rgba(20, 20, 40, 0.06);
  --shadow-lg: 0 12px 40px rgba(20, 20, 40, 0.10);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv01", "cv02";
}

a { color: var(--p); text-decoration: none; transition: color 0.15s; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--p-soft);
  color: var(--p-dark);
  padding: 2px 6px;
  border-radius: 5px;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.2px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #a166ff 0%, #7c2bff 100%);
  border-radius: 7px;
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 8px rgba(124, 43, 255, 0.25);
}
nav.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
nav.site-nav a {
  color: var(--text-soft);
  font-weight: 500;
}
nav.site-nav a:hover {
  color: var(--p);
  text-decoration: none;
}

/* ========== HERO ========== */
.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--p-soft);
  color: var(--p-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1.2px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #9146FF 0%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero .lead {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.hero-meta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.3px;
}

/* Smaller hero variant for inner pages */
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 24px 30px;
  text-align: center;
}
.hero-inner h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1px;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero-inner .lead {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ========== BUTTONS ========== */
.cta-row {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--p);
  color: white;
  box-shadow: 0 4px 14px rgba(145, 70, 255, 0.25);
}
.btn-primary:hover {
  background: var(--p-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(145, 70, 255, 0.32);
}
.btn-secondary {
  background: white;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--p);
  color: var(--p);
  text-decoration: none;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 15px;
  color: var(--p);
  transition: gap 0.15s;
}
.link-arrow:hover {
  gap: 8px;
  text-decoration: none;
}

/* ========== SECTIONS ========== */
section.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 70px 24px;
}
section.section-narrow {
  max-width: 760px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-soft);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.section-cta {
  text-align: center;
  margin-top: 30px;
}
.section h2.text-left {
  text-align: left;
  font-size: 26px;
  margin-bottom: 16px;
}
.prose-lead {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 16px;
}
.prose {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}
.prose strong { color: var(--text); font-weight: 600; }

/* ========== STEPS (how it works) ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--p-soft2);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  background: var(--p-soft);
  color: var(--p-dark);
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
}
.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.step p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ========== FEATURES GRID ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--p-soft2);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--p-soft);
  border-radius: 10px;
  font-size: 20px;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.feature p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ========== STATS STRIP ========== */
.stats-strip {
  background: linear-gradient(135deg, #9146FF 0%, #6a2dca 100%);
  color: white;
  margin: 30px 0;
}
.stats-strip-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 50px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  font-family: 'JetBrains Mono', monospace;
}
.stat-lbl {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}

/* ========== BOTTOM CTA ========== */
.cta-bottom {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 70px 24px;
  text-align: center;
}
.cta-bottom h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.cta-bottom p {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 28px;
}

/* ========== DEEP-DIVE FEATURE LIST (features.html) ========== */
.feature-deep {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.feature-deep:last-child { border-bottom: none; }
.feature-deep-icon {
  width: 64px;
  height: 64px;
  background: var(--p-soft);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.feature-deep h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.feature-deep p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 10px;
}
.feature-deep p:last-child { margin-bottom: 0; }

/* ========== PIPELINE (how-it-works) ========== */
.pipeline-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 28px 0;
  position: relative;
}
.pipeline-step::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 70px;
  bottom: -28px;
  width: 2px;
  background: var(--border-strong);
}
.pipeline-step:last-child::before { display: none; }
.pipeline-step-num {
  width: 60px;
  height: 60px;
  background: var(--p);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(145, 70, 255, 0.25);
}
.pipeline-step h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  margin-top: 12px;
}
.pipeline-step p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 8px;
}

/* ========== TECH STACK ========== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tech-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.tech-item-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.tech-item-role {
  font-size: 12px;
  color: var(--text-mute);
}

/* ========== USE CASES ========== */
.use-case {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.use-case:hover {
  border-color: var(--p-soft2);
  box-shadow: var(--shadow-sm);
}
.use-case-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.use-case-icon {
  width: 52px;
  height: 52px;
  background: var(--p-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.use-case h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.use-case-tag {
  display: inline-block;
  background: var(--p-soft);
  color: var(--p-dark);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.2px;
}
.use-case p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 10px;
}
.use-case ul {
  margin: 12px 0 4px 22px;
}
.use-case li {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ========== FAQ ========== */
.faq {
  border-bottom: 1px solid var(--border);
}
.faq:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  list-style: none;
  padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 22px;
  color: var(--p);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq[open] summary::after {
  content: '−';
}
.faq summary:hover { color: var(--p); }
.faq-body {
  padding: 0 0 22px 0;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.65;
}
.faq-body p { margin-bottom: 8px; }
.faq-body p:last-child { margin-bottom: 0; }

/* ========== CHANGELOG ========== */
.release {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.release:last-child { border-bottom: none; }
.release-version {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: var(--p-dark);
  font-size: 16px;
}
.release-tag {
  display: inline-block;
  background: var(--p-soft);
  color: var(--p-dark);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0.2px;
}
.release-body h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.release-body ul {
  margin-left: 22px;
}
.release-body li {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 4px;
}

/* ========== CONTACT BLOCK ========== */
.contact-block {
  background: linear-gradient(135deg, #f7f3ff 0%, #ede0ff 100%);
  border: 1px solid var(--p-soft2);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-bottom: 40px;
}
.contact-block h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.contact-block p {
  color: var(--text-soft);
  margin-bottom: 16px;
  font-size: 15px;
}
.contact-block .email {
  display: inline-block;
  background: white;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--p-dark);
}
.contact-block .email:hover {
  text-decoration: none;
  border-color: var(--p);
}

/* ========== LEGAL TYPOGRAPHY ========== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 24px 60px;
}
.legal-page .meta {
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: 28px;
}
.legal-page h1 {
  font-size: 36px;
  letter-spacing: -0.8px;
  font-weight: 800;
  margin-bottom: 8px;
}
.legal-page h2 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--p-dark);
  font-weight: 700;
}
.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.legal-page ul {
  margin: 8px 0 8px 24px;
}
.legal-page li {
  margin-bottom: 4px;
}
.legal-page hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #f3f3f7;
  border-top: 1px solid var(--border);
  padding: 40px 24px 36px;
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.site-footer-meta {
  font-size: 13px;
  color: var(--text-mute);
}
.site-footer-meta a {
  color: var(--text-mute);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer-meta a:hover { color: var(--p); }
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
}
.footer-links a {
  color: var(--text-soft);
  font-weight: 500;
}
.footer-links a:hover { color: var(--p); text-decoration: none; }

/* ========== RESPONSIVE ========== */
@media (max-width: 920px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .site-header-inner { flex-direction: column; gap: 10px; padding: 12px 18px; }
  nav.site-nav { gap: 14px; font-size: 13px; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 50px 20px 36px; }
  .hero h1 { font-size: 32px; letter-spacing: -0.8px; }
  .hero .lead { font-size: 16px; }
  .hero-inner { padding: 40px 20px 20px; }
  .hero-inner h1 { font-size: 28px; }
  .hero-inner .lead { font-size: 15px; }
  section.section { padding: 50px 20px; }
  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 15px; }
  .steps, .features-grid, .tech-grid { grid-template-columns: 1fr; }
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); padding: 36px 20px; gap: 18px; }
  .stat-num { font-size: 28px; }
  .feature-deep { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .feature-deep-icon { width: 52px; height: 52px; font-size: 24px; border-radius: 12px; }
  .pipeline-step { grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; }
  .pipeline-step-num { width: 48px; height: 48px; font-size: 15px; }
  .pipeline-step::before { left: 24px; top: 56px; }
  .release { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .cta-bottom { padding: 50px 20px; }
  .cta-bottom h2 { font-size: 24px; }
  .cta-bottom p { font-size: 15px; }
  .legal-page h1 { font-size: 28px; }
  .legal-page { padding: 36px 20px 50px; }
}
