:root {
  --navy: #1e3a8a;
  --navy-dark: #1e40af;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-dark); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); }
.nav .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--ink); }
.nav-brand img { height: 30px; width: auto; }
.nav-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.nav-links a { color: var(--text); font-weight: 600; }
.nav-links a:hover { color: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--navy); color: #fff; font-weight: 600;
  padding: 0.85rem 1.6rem; border-radius: 0.55rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.18);
}
.btn:hover { background: var(--navy-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25); }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { text-align: center; padding: 4rem 0 2rem; }
.hero .logo { height: 88px; width: auto; margin: 0 auto 1.5rem; }
.hero h1 { color: var(--ink); font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.15; font-weight: 800; max-width: 20ch; margin: 0 auto 1.5rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2rem; }
.pill { display: inline-flex; align-items: center; gap: 0.55rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 0.5rem 1.1rem; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.section-head h2 { color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 0.6rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.75rem; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1); }
.card .icon { width: 48px; height: 48px; border-radius: 0.6rem; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { color: var(--ink); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--muted); }

/* CTA band */
.cta { text-align: center; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta h2 { color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 0.75rem; }
.cta p { color: var(--muted); font-size: 1.1rem; max-width: 40rem; margin: 0 auto 1.75rem; }

/* Products */
.product { background: #fff; border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05); }
.product h2 { color: var(--ink); font-size: 1.5rem; margin-bottom: 0.2rem; }
.product .tagline { color: var(--navy); font-weight: 600; margin-bottom: 0.75rem; }
.product h3 { color: var(--ink); font-size: 1rem; margin: 1rem 0 0.5rem; }
.product ul { margin: 0 0 1.2rem 1.2rem; color: var(--muted); }
.product ul li { margin-bottom: 0.3rem; }

/* Prose (legal pages) */
.prose { max-width: 46rem; margin: 0 auto; }
.prose h1 { color: var(--ink); font-size: 2rem; font-weight: 800; margin-bottom: 0.35rem; }
.prose .updated { color: var(--muted); margin-bottom: 2rem; }
.prose h2 { color: var(--ink); font-size: 1.2rem; font-weight: 700; margin: 1.8rem 0 0.6rem; }
.prose p { margin-bottom: 0.8rem; }
.prose ul { margin: 0 0 1rem 1.3rem; }
.prose li { margin-bottom: 0.35rem; }

/* Footer */
.footer { background: var(--footer-bg); color: #fff; margin-top: 3rem; }
.footer .container { padding-top: 3rem; padding-bottom: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; font-weight: 700; font-size: 1.1rem; }
.footer-brand img { height: 30px; filter: brightness(0) invert(1); }
.footer p, .footer li { color: var(--footer-text); }
.footer h3 { font-size: 1rem; margin-bottom: 0.8rem; color: #fff; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.45rem; }
.footer a { color: var(--footer-text); }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 2rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.footer-bottom .legal { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.9rem; }
.footer-bottom strong { color: #fff; }

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Floating particle flock (homepage background) */
.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.particle-canvas.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .particle-canvas { display: none; }
}
/* Keep page content above the canvas; transparent areas let the flock show through. */
.hero, .section, .footer { position: relative; z-index: 1; }

/* ===== Editorial homepage ===== */
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.hero { text-align: left; padding: 6.5rem 0 4rem; }
.hero-inner { max-width: 42rem; }
.hero h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  max-width: 15ch;
  margin: 0 0 1.25rem;
}
.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--muted);
  line-height: 1.5;
  max-width: 36rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

.link-arrow { font-weight: 600; color: var(--navy); }
.link-arrow:hover { color: var(--navy-dark); }
.link-arrow::after { content: " \2192"; }

.section-title {
  color: var(--ink);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  max-width: 24ch;
  margin-bottom: 2.5rem;
}

.shipped { display: grid; }
.shipped-item { padding: 1.9rem 0; border-top: 1px solid var(--border); }
.shipped-item:last-child { border-bottom: 1px solid var(--border); }
.shipped-item h3 { color: var(--ink); font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.shipped-item p { color: var(--muted); max-width: 50rem; margin-bottom: 0.75rem; }

.dolist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.do-item h3 { color: var(--ink); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.do-item p { color: var(--muted); }

.cta { text-align: left; }
.cta p { margin: 0 0 1.75rem; }

@media (max-width: 720px) {
  .dolist { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ===== Products page ===== */
.page-title {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.product {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 2rem 0;
  margin: 0;
}
