/* ============================================================
   Foremai — styles.css  (base + components + utilities)
   One background (--bg-900). No borders/dividers between sections.
   ============================================================ */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg-900); }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  font-feature-settings: var(--font-feat-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul, ol { padding: 0; list-style: none; }
h1,h2,h3,h4,h5 { color: var(--text-primary); font-family: var(--font-display); text-wrap: balance; line-height: var(--lh-heading); }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: var(--tracking-tight); }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: var(--tracking-snug); }
h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: var(--tracking-snug); }
h5 { font-size: var(--fs-h5); font-weight: 600; letter-spacing: var(--tracking-snug); }
p { max-width: var(--measure); text-wrap: pretty; }
code, pre { font-family: var(--font-mono); }
:where(a,button,input,textarea,select,[tabindex]):focus-visible {
  outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-sm);
  box-shadow: var(--focus-ring);
}
::selection { background: var(--accent-soft); color: var(--text-primary); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--text-on-accent);
  padding: var(--space-3) var(--space-5); border-radius: 0 0 var(--radius-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container-xl); margin-inline: auto; padding-inline: var(--gutter); }
.container-2xl { max-width: var(--container-2xl); }
.container-md { max-width: var(--container-md); }
.section { padding-block: var(--section-y); background: transparent; border: 0; position: relative; }
.section + .section { border-top: 0; }
.section--hero, .section--cta { padding-block: var(--section-y-lg); }
.stack > * + * { margin-top: var(--stack); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.lead { font-size: var(--fs-lead); color: var(--text-secondary); max-width: var(--measure-lead); line-height: var(--lh-snug); }
.muted { color: var(--text-muted); }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 720px; margin-bottom: var(--space-12); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: var(--space-4); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: var(--space-6); }
.cols-2 { grid-template-columns: 1fr; }
.cols-3 { grid-template-columns: 1fr; }
.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cols-2 { grid-template-columns: repeat(2,1fr); } .cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) {
  .cols-3 { grid-template-columns: repeat(3,1fr); }
  .cols-4 { grid-template-columns: repeat(4,1fr); }
}
.split { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 1.1fr 0.9fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.9375rem; letter-spacing: var(--tracking-snug);
  min-height: 44px; padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--text-on-accent); box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--accent-hover); color: var(--text-on-accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-default); }
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(255,255,255,.04); color: var(--text-primary); }
.btn-lg { min-height: 52px; padding: var(--space-4) var(--space-8); font-size: 1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.arrow { transition: transform .2s ease; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-1); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
@media (min-width: 640px) { .card { padding: var(--space-8); } }
.card:hover { background: var(--surface-2); border-color: var(--border-default); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-flush:hover { transform: none; }
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--accent-2); margin-bottom: var(--space-5);
}
.icon-chip svg { width: 22px; height: 22px; }

/* ---- default inline icon sizing (SVGs have no intrinsic size) ---- */
.tick svg { width: 18px; height: 18px; }
.link-arrow svg, .arrow { width: 16px; height: 16px; }
.btn svg { width: 18px; height: 18px; }
.footer-social svg { width: 18px; height: 18px; }
.hero-trust svg { width: 16px; height: 16px; }
.badge svg { width: 16px; height: 16px; }
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--text-secondary); }
.card .link-arrow { margin-top: var(--space-5); font-size: var(--fs-small); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-small); font-weight: 500; color: var(--text-secondary);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
  border: 1px solid var(--border-default); background: var(--surface-1);
}
.pill-accent { color: var(--accent-2); border-color: var(--accent-soft); background: var(--accent-soft); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }

/* ---------- Aurora glow (decorative) ---------- */
.aurora { position: absolute; inset: 0; background: var(--grad-aurora); pointer-events: none; z-index: 0; }
.section > .container { position: relative; z-index: 1; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.nav {
  background: var(--surface-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--text-primary); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text-primary); }
.brand .logo { width: 28px; height: 28px; }
.nav-links { display: none; align-items: center; gap: var(--space-2); }
.nav-cta { display: none; align-items: center; gap: var(--space-3); }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav .nav-toggle { display: none; }
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--fs-small); font-weight: 500; color: var(--text-secondary);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-item[data-open="true"] .nav-link { color: var(--text-primary); background: rgba(255,255,255,.04); }
.nav-link[aria-current="page"] { color: var(--text-primary); background: rgba(255,255,255,.05); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s ease; opacity: .7; }
.nav-item[data-open="true"] .nav-link .chev { transform: rotate(180deg); }

/* Mega-menu */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 560px; padding: var(--space-6);
  background: var(--surface-2);
  border: 1px solid var(--border-default); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2);
}
.nav-item[data-open="true"] .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-link { display: block; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
.mega-link:hover { background: rgba(255,255,255,.04); }
.mega-link strong { display: block; color: var(--text-primary); font-size: var(--fs-small); font-weight: 600; }
.mega-link span { display: block; color: var(--text-muted); font-size: var(--fs-small); margin-top: 2px; }

/* Hamburger */
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center; background: none; border: 1px solid var(--border-default);
  border-radius: var(--radius-md); cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* Mobile overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--bg-base);
  padding: var(--space-6) var(--gutter); overflow-y: auto;
  transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
}
.mobile-menu[data-open="true"] { transform: translateX(0); visibility: visible; }
.mobile-head { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mobile-close { background: none; border: 1px solid var(--border-default); border-radius: var(--radius-md); width: 42px; height: 42px; color: var(--text-primary); font-size: 20px; cursor: pointer; }
.m-acc { border-top: 1px solid var(--border-subtle); }
.m-acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) 0; background: none; border: 0; color: var(--text-primary); font-size: 1.0625rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.m-acc-btn .chev { width: 16px; height: 16px; transition: transform .2s ease; }
.m-acc[data-open="true"] .m-acc-btn .chev { transform: rotate(180deg); }
.m-acc-panel { display: none; padding-bottom: var(--space-4); }
.m-acc[data-open="true"] .m-acc-panel { display: block; }
.m-acc-panel a { display: block; padding: var(--space-2) 0; color: var(--text-secondary); font-size: var(--fs-body); }
.mobile-cta { margin-top: var(--space-8); display: grid; gap: var(--space-3); }

/* ---------- Hero ---------- */
.hero-inner { max-width: 820px; }
.hero .eyebrow { margin-bottom: var(--space-5); }
.hero h1 { font-size: var(--fs-display); font-weight: 700; line-height: var(--lh-tight); letter-spacing: var(--tracking-tighter); }
.hero .lead { margin-top: var(--space-6); font-size: var(--fs-lead); }
.hero .btn-row { margin-top: var(--space-8); }
.hero-trust { margin-top: var(--space-10); display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); align-items: center; color: var(--text-muted); font-size: var(--fs-small); }
.hero-trust .tick { color: var(--accent-2); }
.hero-trust span { display: inline-flex; align-items: center; gap: var(--space-2); }

/* ---------- Dashboard / product preview ---------- */
.preview {
  margin-top: var(--space-16); border-radius: var(--radius-2xl); overflow: hidden;
  border: 1px solid var(--border-default); background: var(--grad-surface); box-shadow: var(--shadow-lg);
}
.preview-bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border-subtle); }
.preview-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.preview-bar .title { margin-left: var(--space-4); color: var(--text-muted); font-size: var(--fs-small); font-family: var(--font-mono); }
.preview-body { display: grid; grid-template-columns: 200px 1fr; min-height: 320px; }
@media (max-width: 640px){ .preview-body { grid-template-columns: 1fr; } .preview-side { display: none; } }
.preview-side { border-right: 1px solid var(--border-subtle); padding: var(--space-5); display: grid; gap: var(--space-3); align-content: start; }
.preview-side .s-item { height: 10px; border-radius: var(--radius-pill); background: var(--surface-2); }
.preview-side .s-item.active { background: var(--accent-soft); }
.preview-main { padding: var(--space-6); display: grid; gap: var(--space-4); grid-template-columns: repeat(2,1fr); align-content: start; }
.preview-stat { background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5); }
.preview-stat .k { color: var(--text-muted); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .06em; }
.preview-stat .v { color: var(--text-primary); font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: var(--space-2); }
.preview-stat .v small { color: var(--accent-2); font-size: var(--fs-small); font-weight: 600; }

/* ---------- Logos ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-8) var(--space-12); }
.logos .logo-item { color: var(--text-muted); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; opacity: .7; transition: opacity .2s ease, color .2s ease; display: inline-flex; align-items: center; gap: var(--space-2); }
.logos .logo-item:hover { opacity: 1; color: var(--text-secondary); }
.logos .logo-item svg { width: 20px; height: 20px; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 700px){ .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(170px, auto); } }
.bento .tile { display: flex; flex-direction: column; justify-content: space-between; }
.bento .tile.span-2 { grid-column: span 1; }
@media (min-width: 700px){ .bento .tile.span-2 { grid-column: span 2; } .bento .tile.row-2 { grid-row: span 2; } }
.tile .metric { font-size: clamp(2rem,1.4rem+2vw,3rem); font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tile .metric small { display:block; font-size: var(--fs-small); font-weight: 500; color: var(--text-muted); letter-spacing: 0; margin-top: var(--space-2); }

/* ---------- Stats / trust band ---------- */
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-8); }
@media (min-width: 900px){ .stats { grid-template-columns: repeat(4,1fr); } }
.stat .num { font-size: clamp(2.25rem,1.6rem+2.4vw,3.25rem); font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.stat .num .u { color: var(--accent-2); }
.stat .label { color: var(--text-muted); margin-top: var(--space-3); font-size: var(--fs-small); }

/* ---------- Steps / agent workflow ---------- */
.flow { display: grid; gap: var(--space-6); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 900px){ .flow { grid-template-columns: repeat(4,1fr); position: relative; } }
.flow .node { position: relative; }
.flow .node .step-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-2); font-weight: 700; font-size: var(--fs-small); margin-bottom: var(--space-4); }
.flow .node h4 { margin-bottom: var(--space-2); }

/* ---------- Testimonials ---------- */
.quote-card blockquote { color: var(--text-primary); font-size: var(--fs-h4); line-height: 1.5; font-weight: 500; }
.quote-author { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-accent); display: inline-flex; align-items: center; justify-content: center; color: var(--text-on-accent); font-weight: 700; flex: none; }
.quote-author .who strong { display: block; color: var(--text-primary); font-size: var(--fs-small); }
.quote-author .who span { display: block; color: var(--text-muted); font-size: var(--fs-small); }

/* ---------- Feature split media ---------- */
.media-panel { background: var(--grad-surface); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); padding: var(--space-8); box-shadow: var(--shadow-md); }
.media-panel .row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: var(--fs-small); }
.media-panel .row:last-child { border-bottom: 0; }
.media-panel .row .tick { color: var(--success); flex: none; }
.check-list { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.check-list li { display: flex; gap: var(--space-3); color: var(--text-secondary); }
.check-list .tick { color: var(--accent-2); flex: none; margin-top: 3px; }

/* ---------- Code / terminal ---------- */
.code-card, .term-card { background: #0B0E15; border: 1px solid var(--border-default); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-subtle); }
.code-head .fname { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--fs-small); }
.copy-btn { background: none; border: 1px solid var(--border-default); color: var(--text-secondary); border-radius: var(--radius-sm); padding: var(--space-1) var(--space-3); font-size: var(--fs-micro); cursor: pointer; }
.copy-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }
pre.code { margin: 0; padding: var(--space-5); overflow-x: auto; font-size: var(--fs-small); line-height: 1.7; color: var(--text-secondary); }
.code .k { color: var(--accent); } .code .s { color: var(--accent-2); } .code .c { color: var(--text-faint); } .code .f { color: #B7AEFF; } .code .n { color: var(--success); }
.term-body { padding: var(--space-5); font-family: var(--font-mono); font-size: var(--fs-small); line-height: 1.8; }
.term-body .line .p { color: var(--accent-2); } .term-body .out { color: var(--text-muted); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px){ .price-grid { grid-template-columns: repeat(3,1fr); } }
.price-card { position: relative; }
.price-card.featured { border-color: var(--accent-soft); box-shadow: var(--shadow-glow); }
.price-card .tier { font-weight: 600; color: var(--text-primary); font-size: var(--fs-h4); }
.price-card .amt { font-size: clamp(2.5rem,2rem+2vw,3.5rem); font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: var(--space-4) 0 0; }
.price-card .amt .per { font-size: var(--fs-body); color: var(--text-muted); font-weight: 500; }
.price-card ul { display: grid; gap: var(--space-3); margin: var(--space-6) 0; }
.price-card li { display: flex; gap: var(--space-3); color: var(--text-secondary); font-size: var(--fs-small); }
.price-card li .tick { color: var(--accent-2); flex: none; }
.pop-pill { position: absolute; top: calc(-1 * var(--space-3)); left: 50%; transform: translateX(-50%); background: var(--grad-accent); color: var(--text-on-accent); font-size: var(--fs-micro); font-weight: 700; padding: var(--space-1) var(--space-4); border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: .05em; }
.toggle-wrap { display: inline-flex; align-items: center; gap: var(--space-3); margin: var(--space-6) auto 0; padding: var(--space-1); background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-pill); }
.toggle-wrap button { background: none; border: 0; color: var(--text-muted); font-family: inherit; font-weight: 600; font-size: var(--fs-small); padding: var(--space-2) var(--space-5); border-radius: var(--radius-pill); cursor: pointer; }
.toggle-wrap button[aria-pressed="true"] { background: var(--surface-3); color: var(--text-primary); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); text-align: left; padding: var(--space-6) 0; background: none; border: 0; color: var(--text-primary); font-size: var(--fs-body-lg); font-weight: 600; cursor: pointer; font-family: inherit; }
.faq-q .chev { width: 18px; height: 18px; flex: none; transition: transform .2s ease; color: var(--text-muted); }
.faq-item[data-open="true"] .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding-bottom: var(--space-6); color: var(--text-secondary); }

/* ---------- Security / enterprise ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.badge { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-1); color: var(--text-secondary); font-size: var(--fs-small); font-weight: 600; }
.badge svg { width: 16px; height: 16px; color: var(--accent-2); }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-2xl); padding: clamp(40px,6vw,80px); text-align: center; position: relative; overflow: hidden; border: 1px solid var(--border-subtle); background: var(--surface-1); }
.cta-band .aurora { z-index: 0; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 640px; margin-inline: auto; }
.cta-band .lead { margin: var(--space-4) auto 0; }
.cta-band .btn-row { margin-top: var(--space-8); justify-content: center; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-top: var(--space-8); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: var(--fs-small); color: var(--text-muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--space-2); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text-secondary); }
.breadcrumb [aria-current="page"] { color: var(--text-secondary); }
.breadcrumb .sep { color: var(--text-faint); }

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--space-2); }
.field label { color: var(--text-secondary); font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--tracking-snug); }
.field input, .field textarea, .field select {
  background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); color: var(--text-primary); font-family: inherit; font-size: var(--fs-body); width: 100%;
  min-height: 44px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: var(--focus-ring); outline: none; }
.form-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px){ .form-grid.two { grid-template-columns: 1fr 1fr; } }

/* ---------- Newsletter (footer) ---------- */
.newsletter { display: flex; gap: var(--space-2); max-width: 360px; }
.newsletter input { flex: 1; min-height: 44px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); color: var(--text-primary); font-family: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
.newsletter input:focus { border-color: var(--accent); box-shadow: var(--focus-ring); outline: none; }

/* ---------- Blog / resource list ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card .tag { color: var(--accent-2); font-size: var(--fs-micro); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { margin: var(--space-3) 0; font-size: var(--fs-h4); }
.post-card .meta { margin-top: auto; color: var(--text-muted); font-size: var(--fs-small); padding-top: var(--space-5); }
.post-thumb { height: 160px; border-radius: var(--radius-lg); background: var(--grad-surface); border: 1px solid var(--border-subtle); margin-bottom: var(--space-5); position: relative; overflow: hidden; }
.post-thumb::after { content:""; position:absolute; inset:0; background: var(--grad-aurora); opacity:.5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-base); border-top: 1px solid var(--border-subtle); padding-block: var(--space-20) var(--space-10); }
.footer-grid { display: grid; gap: var(--space-10); grid-template-columns: 1fr; }
@media (min-width: 640px){ .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px){ .footer-grid { grid-template-columns: 1.6fr repeat(4,1fr); } }
.footer-brand p { color: var(--text-muted); font-size: var(--fs-small); margin-top: var(--space-4); max-width: 34ch; }
.footer-col h4 { color: var(--text-primary); font-size: var(--fs-small); margin-bottom: var(--space-4); }
.footer-col a { display: block; color: var(--text-muted); font-size: var(--fs-small); padding: var(--space-1) 0; }
.footer-col a:hover { color: var(--text-secondary); }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-6); }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--border-default); border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); }
.footer-social a:hover { color: var(--text-primary); border-color: var(--border-strong); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: var(--fs-small); }
.footer-bottom .status { display: inline-flex; align-items: center; gap: var(--space-2); }
.footer-bottom .status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ---------- Prose (docs/legal) ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: var(--space-12); margin-bottom: var(--space-4); }
.prose h3 { margin-top: var(--space-8); margin-bottom: var(--space-3); }
.prose p, .prose li { color: var(--text-secondary); }
.prose ul { display: grid; gap: var(--space-2); margin: var(--space-4) 0; }
.prose ul li { display: flex; gap: var(--space-3); }
.prose ul li::before { content: "—"; color: var(--accent-2); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Small-screen refinements ---------- */
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.25rem, 4vw + 1.4rem, 3rem); }
  .preview-main { grid-template-columns: 1fr; }
  .hero .btn-row .btn { flex: 1 1 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
}
