@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Sora:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --ink: #e8eef4;
  --ink-soft: #93a8b8;
  --paper: #0a1016;
  --surface: #121a22;
  --surface-2: #18232e;
  --line: #2a3a48;
  --accent: #2ec4b6;
  --accent-deep: #1a9e92;
  --accent-soft: rgba(46, 196, 182, 0.14);
  --warm: #e08a4f;
  --ok: #3dba6e;
  /* product accents */
  --welvet: #2ec4b6;
  --octo: #a78bfa;
  --w2a: #fbbf24;
  --app: #34d399;
  --code-bg: #060a0e;
  --code-ink: #d7e2ec;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Sora", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 68rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(46, 196, 182, 0.16) 0%, transparent 55%),
    radial-gradient(700px 400px at 100% 0%, rgba(40, 70, 100, 0.35) 0%, transparent 50%),
    var(--paper);
  min-height: 100vh;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: #7ee0d6; }
img { max-width: 100%; height: auto; display: block; }
code, .mono { font-family: var(--font-mono); font-size: 0.9em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(10, 16, 22, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  align-items: center;
  justify-content: flex-end;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-links a.ext {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--accent);
  background: var(--surface-2);
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--accent-soft);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 0.9rem;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-toggle-bars span { top: 50%; transform: translateY(-50%); }
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
body.nav-open .nav-toggle-bars span { opacity: 0; }
body.nav-open .nav-toggle-bars::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
body.nav-open .nav-toggle-bars::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.main { min-height: 60vh; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  padding: 3.5rem 1.25rem 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.hero-brand img {
  width: clamp(4.5rem, 12vw, 6.5rem);
  height: auto;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.75rem;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: var(--ink);
}
h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 2.2rem 0 0.75rem;
}
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.btn-primary { background: var(--accent); color: #041014; }
.btn-primary:hover { background: #5ed9cd; color: #041014; }
.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.panel h3 { margin-top: 0; }
.panel p { color: var(--ink-soft); margin: 0.4rem 0 1rem; }
.panel .meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.stack { display: grid; gap: 1rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0; }
.pill {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

pre, .codeblock {
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  border: 1px solid var(--line);
}

.book-frame {
  width: 100%;
  min-height: 78vh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.note {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 0.9rem 1rem;
  border-radius: 0 12px 12px 0;
  margin: 1rem 0;
}
.note.warn {
  border-left-color: var(--warm);
  background: rgba(224, 138, 79, 0.12);
}
.product-logo {
  width: min(10rem, 40%);
  margin: 0 0 1rem;
}

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(800px 280px at 10% 0%, rgba(46, 196, 182, 0.08), transparent 55%),
    rgba(6, 10, 14, 0.92);
  padding: 3.25rem 1.25rem 1.75rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 2.25rem 2rem;
  align-items: start;
}
.footer-brand { max-width: 22rem; }
.footer-logo {
  display: inline-flex;
  margin-bottom: 0.9rem;
}
.footer-tagline {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.site-footer h4 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.footer-col a {
  display: inline-block;
  width: fit-content;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.15s, transform 0.15s;
}
.footer-col a:hover {
  color: var(--ink);
  transform: translateX(2px);
}
.footer-legal {
  max-width: var(--max);
  margin: 2.25rem auto 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}
.footer-legal a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 1.25rem;
    top: calc(100% + 0.35rem);
    min-width: 12.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
    align-items: stretch;
    z-index: 50;
  }
  body.nav-open .nav-links a {
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
  }
}
@media (min-width: 1101px) {
  .nav-toggle { display: none !important; }
}

/* ============================================================
   Professional landing components
   ============================================================ */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.75rem 1.25rem;
}
.section.alt {
  max-width: none;
  padding: 3.75rem 1.25rem;
  background:
    radial-gradient(1000px 400px at 15% -20%, rgba(46, 196, 182, 0.08), transparent 60%),
    var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section.alt > .section-inner { max-width: var(--max); margin: 0 auto; }

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--accent-soft);
  border: 1px solid rgba(46, 196, 182, 0.32);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.section-desc {
  color: var(--ink-soft);
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 2.25rem;
}
.section-desc.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center { text-align: center; }
.section-head-center .section-label { text-align: center; }

/* ---- Hero ---- */
.hero-pro {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.25rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(46, 196, 182, 0.18), transparent 55%),
    radial-gradient(700px 360px at 90% 20%, rgba(167, 139, 250, 0.1), transparent 50%);
}
.hero-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 196, 182, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 196, 182, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at center 30%, black 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center 30%, black 40%, transparent 78%);
  pointer-events: none;
  animation: grid-breathe 10s ease-in-out infinite;
}
@keyframes grid-breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.hero-pro-inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
}
.hero-pro img.hero-logo {
  width: clamp(4.25rem, 11vw, 6rem);
  height: auto;
  margin: 0 auto 0.85rem;
  animation: hero-rise 0.7s ease-out both;
}
.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  color: var(--ink);
  animation: hero-rise 0.7s ease-out 0.05s both;
}
.hero-pro h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  background: linear-gradient(135deg, #ffffff 20%, #7ee0d6 65%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-rise 0.7s ease-out 0.1s both;
}
.hero-pro .lede {
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
  animation: hero-rise 0.7s ease-out 0.16s both;
}
.hero-pro .lede strong { color: var(--ink); }
.cta-row.center { justify-content: center; }
.hero-cta-main {
  margin-top: 0.25rem;
  animation: hero-rise 0.7s ease-out 0.22s both;
}
.hero-social {
  margin-top: 0.85rem;
  animation: hero-rise 0.7s ease-out 0.28s both;
}
.hero-social .btn {
  padding: 0.58rem 1rem;
  font-size: 0.86rem;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Pillars ---- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover { border-color: rgba(46, 196, 182, 0.4); transform: translateY(-2px); }
.pillar .ic {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.pillar h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.65; }

/* ---- Product cards ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.product-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  background: radial-gradient(ellipse at top left, var(--glow, transparent), transparent 60%);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card:hover::before { opacity: 1; }
.product-card.pc-welvet { --glow: rgba(46, 196, 182, 0.14); }
.product-card.pc-welvet:hover { border-color: rgba(46, 196, 182, 0.45); }
.product-card.pc-octo { --glow: rgba(167, 139, 250, 0.14); }
.product-card.pc-octo:hover { border-color: rgba(167, 139, 250, 0.45); }
.product-card.pc-w2a { --glow: rgba(251, 191, 36, 0.12); }
.product-card.pc-w2a:hover { border-color: rgba(251, 191, 36, 0.4); }
.product-card.pc-app { --glow: rgba(52, 211, 153, 0.12); }
.product-card.pc-app:hover { border-color: rgba(52, 211, 153, 0.4); }
.product-card .pc-ic {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.5rem;
  position: relative;
}
.pc-welvet .pc-ic { background: rgba(46, 196, 182, 0.16); }
.pc-octo .pc-ic { background: rgba(167, 139, 250, 0.16); }
.pc-w2a .pc-ic { background: rgba(251, 191, 36, 0.14); }
.pc-app .pc-ic { background: rgba(52, 211, 153, 0.14); }
.product-card h3 { margin: 0; font-size: 1.3rem; position: relative; }
.product-card .pc-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
}
.product-card p { margin: 0; color: var(--ink-soft); line-height: 1.68; flex: 1; position: relative; }
.product-card .pc-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: gap 0.2s;
}
.product-card .pc-link:hover { gap: 0.65rem; }
.pc-welvet .pc-link { color: var(--welvet); }
.pc-octo .pc-link { color: var(--octo); }
.pc-w2a .pc-link { color: var(--w2a); }
.pc-app .pc-link { color: var(--app); }

/* ---- Capability cards ---- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.cap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.cap:hover { border-color: rgba(46, 196, 182, 0.35); transform: translateY(-2px); }
.cap .cap-ic { font-size: 1.8rem; margin-bottom: 0.75rem; }
.cap h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.cap p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }
.sg-copy {
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
}
.proof-foot {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 1.5rem auto 0;
  max-width: 40rem;
  line-height: 1.6;
}
.book-band {
  border-color: rgba(46, 196, 182, 0.28);
  background:
    radial-gradient(ellipse at center, rgba(46, 196, 182, 0.1), transparent 70%),
    var(--surface);
}
.book-band .section-label { margin-bottom: 0.75rem; }

/* ---- Feature checklist ---- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--ink-soft);
  line-height: 1.55;
}
.feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.feature-list li strong { color: var(--ink); font-weight: 600; }

/* ---- Split (text + visual) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split .shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.split .shots img {
  border-radius: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  width: 100%;
  transition: border-color 0.2s, transform 0.2s;
}
.split .shots img:hover {
  border-color: rgba(52, 211, 153, 0.45);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .hero-pro::before,
  .hero-pro img.hero-logo,
  .hero-brand-name,
  .hero-pro h1,
  .hero-pro .lede,
  .hero-cta-main,
  .hero-social { animation: none !important; }
}

/* ---- Store / status pills ---- */
.store-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.store-pill:hover { border-color: var(--accent); color: var(--accent); }
.store-pill.live { border-color: rgba(52, 211, 153, 0.4); color: var(--app); }

/* ---- CTA band ---- */
.cta-band {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(167, 139, 250, 0.1), transparent 70%),
    var(--surface);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 24px;
  padding: 3rem 2rem;
}
.cta-band h2 { font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 0.85rem; }
.cta-band p { color: var(--ink-soft); margin: 0 auto 1.5rem; max-width: 34rem; }

/* ---- Stat band (proof by numbers) ---- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 0.75rem;
  text-align: center;
}
.stat .stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat .stat-label {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.stat.s-octo .stat-num { color: var(--octo); }
.stat.s-w2a .stat-num { color: var(--w2a); }
.stat.s-app .stat-num { color: var(--app); }

/* ---- Data table (bench / coverage) ---- */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table thead th {
  background: var(--surface-2);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-weight: 600;
}
.data-table tbody td:not(:first-child) { font-family: var(--font-mono); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:last-child { background: var(--surface-2); }
.data-table caption {
  caption-side: bottom;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
  padding-top: 0.7rem;
  text-align: left;
}

/* ---- Buttons: brand variants ---- */
.btn-yt { background: #ff0000; color: #fff; }
.btn-yt:hover { background: #d90000; color: #fff; }
.btn-li { background: #0a66c2; color: #fff; }
.btn-li:hover { background: #08529b; color: #fff; }
.btn-gh { background: #24292e; color: #fff; border: 1px solid rgba(255,255,255,0.16); }
.btn-gh:hover { background: #30363d; color: #fff; }
.btn .ic-inline { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.15em; }

/* ---- Research: audio / report cards ---- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}
.audio-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s, transform 0.2s;
}
.audio-card:hover { border-color: rgba(167, 139, 250, 0.4); transform: translateY(-2px); }
.audio-card .ac-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--octo);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}
.audio-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.audio-card p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.6; }
.audio-card audio {
  width: 100%;
  margin-top: 0.2rem;
  border-radius: 10px;
  color-scheme: dark;
}
.ac-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.3rem; }
.ac-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
}
.ac-link:hover { border-color: var(--octo); color: var(--octo); }

/* ---- Social buttons (footer) ---- */
.social-row { display: flex; gap: 0.55rem; margin-top: 1.15rem; }
.social-btn {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-soft);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social-btn-yt:hover { color: #ff4444; border-color: #ff4444; background: rgba(255, 68, 68, 0.12); }
.social-btn-li:hover { color: #4d9fe6; border-color: #4d9fe6; background: rgba(77, 159, 230, 0.12); }
.social-btn svg { width: 1.1rem; height: 1.1rem; }

@media (max-width: 1000px) {
  .stat-band { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .pillar-grid, .product-grid, .cap-grid, .research-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}
