/* a13e marketing — components.css
 * Shared chrome + section components used across all marketing pages.
 * Depends on tokens.css.
 */

/* ===== Layout utilities ===== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-sm { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

@media (max-width: 768px) {
  .container, .container-sm { padding: 0 24px; }
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--r-2);
  font-family: inherit;
  font-weight: 500;
  font-size: var(--fs-14);
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur-2) var(--ease-std),
              color var(--dur-2) var(--ease-std),
              border-color var(--dur-2) var(--ease-std),
              transform 80ms var(--ease-std);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #d4ff5c; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--slate-900); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: 0.8; }
.btn-ghost:hover { opacity: 1; }
.btn-lg { padding: 14px 22px; font-size: var(--fs-16); }
.btn-sm { padding: 8px 12px; font-size: var(--fs-12); }

/* ===== Wordmark / lockup ===== */

.wm {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  line-height: 1;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.lockup .sep {
  width: 1px;
  background: var(--slate-500);
  align-self: stretch;
}
.lockup .product {
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ===== Site nav (sticky, dark-first, blur) ===== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: rgba(11, 14, 19, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-800);
  color: var(--paper);
}
.site-nav .nav-left { display: flex; align-items: center; gap: 32px; }
.site-nav .nav-links { display: flex; gap: 24px; font-size: var(--fs-14); }
.site-nav a { text-decoration: none; color: var(--slate-300); }
.site-nav a:hover { color: var(--paper); }
.site-nav a.active { color: var(--paper); font-weight: 500; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--slate-700);
  color: var(--paper);
  padding: 6px 10px;
  border-radius: var(--r-2);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
}

@media (max-width: 768px) {
  .site-nav { padding: 14px 24px; }
  .site-nav .nav-left { gap: 16px; }
  .site-nav .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--slate-800);
  }
}

/* ===== Hero ===== */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 32px 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(183, 189, 199, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}
.hero-swarm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; }
.hero h1 {
  margin-top: 16px;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 960px;
  text-wrap: balance;
  color: var(--paper);
}
.hero-lede {
  max-width: 640px;
  margin-top: 24px;
  font-size: var(--fs-18);
  line-height: 1.55;
  color: var(--slate-300);
}
.hero-lede b { color: var(--paper); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero { padding: 64px 24px 80px; }
}

/* ===== Stat strip ===== */

.stat-strip {
  background: var(--ink);
  border-top: 1px solid var(--slate-800);
  color: var(--paper);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.stat { border-left: 1px solid var(--slate-800); padding-left: 16px; }
.stat-num {
  font-size: var(--fs-40);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
  line-height: 1;
}
.stat-label {
  font-size: var(--fs-12);
  color: var(--slate-500);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
}

@media (max-width: 960px) {
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-strip .stat:nth-child(4),
  .stat-strip .stat:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 640px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Product row ===== */

.product-row {
  padding: 80px 32px;
  border-bottom: 1px solid var(--paper-3);
}
.product-row-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.product-row h2 {
  margin-top: 20px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
.product-row-body {
  margin-top: 16px;
  font-size: var(--fs-18);
  color: var(--slate-700);
  line-height: 1.55;
  max-width: 520px;
}
.product-row-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.product-bullets {
  background: var(--paper-2);
  border-radius: var(--r-3);
  padding: 24px;
  border: 1px solid var(--paper-3);
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-bullets li {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.product-bullets .num {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--slate-500);
  min-width: 28px;
}
.product-bullets .title { font-weight: 600; font-size: 15px; }
.product-bullets .body { font-size: var(--fs-14); color: var(--slate-700); margin-top: 2px; line-height: 1.5; }

@media (max-width: 960px) {
  .product-row { padding: 64px 24px; }
  .product-row-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Services strip ===== */

.services {
  padding: 80px 32px;
  background: var(--paper);
}
.services-inner { max-width: 1200px; margin: 0 auto; }
.services h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 720px;
  text-wrap: balance;
}
.services-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--paper-3);
  border-radius: var(--r-3);
}
.service-card h4 { margin: 0; font-size: var(--fs-18); font-weight: 600; }
.service-card p { margin: 8px 0 0; font-size: var(--fs-14); color: var(--slate-700); line-height: 1.55; }

@media (max-width: 768px) {
  .services { padding: 64px 24px; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== Motto band ===== */

.motto-band {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 32px;
  text-align: center;
}
.motto-band .latin {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(36px, 5vw, 48px);
  letter-spacing: 0.01em;
  color: var(--paper);
  text-wrap: balance;
  line-height: 1.1;
}
.motto-band .gloss {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 20px;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 32px 24px;
  border-top: 1px solid var(--slate-800);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand p { font-size: var(--fs-13); color: var(--slate-500); max-width: 320px; line-height: 1.5; margin-top: 12px; }
.footer-brand .motto-line {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}
.footer-col .col-title {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-500);
  margin-bottom: 10px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--paper); text-decoration: none; font-size: var(--fs-13); }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.footer-base {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--slate-800);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--slate-500);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 32px 24px 20px; }
  .footer-base { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Index-page inline-style replacements ===== */

/* Nav wordmark */
.nav-wm { color: var(--paper); font-size: 22px; }

/* Hero eyebrow muted */
.eyebrow-muted { color: var(--slate-500); }

/* Ghost button colour overrides */
.btn-ghost-paper { color: var(--paper); }
.btn-ghost-ink   { color: var(--ink); }

/* Lockup sizing helpers */
.lockup-top    { margin-top: 12px; }
.wm-lg         { font-size: 28px; }
.sep-md        { height: 24px; }
.product-lg    { font-size: 26px; }

/* Footer wordmark */
.footer-wm { font-size: 28px; color: var(--paper); }

/* Footer-base link strip */
.footer-base-links { display: flex; gap: 16px; }
.footer-base-links a { color: inherit; text-decoration: none; }
