/* Certheim marketing site — on-brand with the product palette (blue accent,
   deep navy), self-contained, no build step. */
:root {
  --bg: #0e1116;
  --bg-alt: #131820;
  --bg-card: #1a1f29;
  --bg-elev: #20262f;
  --fg: #e7eaee;
  --fg-muted: #9aa4b2;
  --accent: #4a90c7;
  --accent-2: #6fb1e6;
  --accent-ink: #0a1622;
  --border: #2a313c;
  --ok: #5fdc7a;
  --radius: 10px;
  --maxw: 1320px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--fg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--fg); }
/* Full-bleed with 32px gutters, matching the (full-width) site header, so the
   page scales to the viewport instead of sitting in a narrow centred strip.
   Section backgrounds already span edge-to-edge; this lets their content do the
   same. Prose / form sections opt back into a comfortable reading width with
   .narrow. */
.container { max-width: none; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 1080px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-block + .btn-block { margin-top: .5rem; }  /* space stacked CTAs (Buy now / Request a quote) */

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,17,22,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
/* Header spans the full page width: brand pinned to the far-left corner,
   nav + buttons to the far-right corner. */
.site-header .container { max-width: none; padding-left: 32px; padding-right: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; color: var(--fg); }
.brand-mark { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { color: var(--fg-muted); font-size: 14px; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--fg); }
.nav-toggle { display: none; background: none; border: 0; color: var(--fg); font-size: 22px; cursor: pointer; }

/* Hero */
.hero { padding: 72px 0 40px; background:
  radial-gradient(1100px 480px at 70% -10%, rgba(74,144,199,.18), transparent 60%),
  linear-gradient(180deg, var(--bg), var(--bg)); }
.hero-inner { max-width: 820px; }
.eyebrow { color: var(--accent-2); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); margin-bottom: 18px; }
.lede { font-size: clamp(16px, 2.2vw, 20px); color: var(--fg-muted); max-width: 680px; }
.lede strong { color: var(--fg); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 12px; }
.hero-note { color: var(--fg-muted); font-size: 13px; }
.hero-flow { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 44px; }
.flow-step { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; }
.flow-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px; }
.flow-arrow { color: var(--fg-muted); }

/* Trust bar */
.trustbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
/* Keep the four at-a-glance items grouped (centred), not flung to the page edges
   now that the band is full-bleed. The .trustbar background still spans the width. */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 26px 24px;
  max-width: 1100px; margin: 0 auto; }
.trust-grid > div { display: flex; flex-direction: column; }
.trust-grid strong { color: var(--fg); font-size: 15px; }
.trust-grid span { color: var(--fg-muted); font-size: 13px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(24px, 3.4vw, 34px); text-align: center; }
.section-sub { color: var(--fg-muted); text-align: center; max-width: 680px; margin: 0 auto 38px; font-size: 16px; }

/* Overview */
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.ov-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.ov-card h3 { font-size: 18px; }
.ov-card p { color: var(--fg-muted); margin: 0; font-size: 15px; }

/* Features */
/* 9 features → a clean 3×3 (a 4-wide grid left a ragged row of one). */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature-ico { font-size: 24px; margin-bottom: 10px; }
.feature h3 { font-size: 16px; }
.feature p { color: var(--fg-muted); font-size: 14px; margin: 0; }

/* How it works */
.how-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.how-list li { display: flex; gap: 18px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; }
.how-step { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; }
.how-list h3 { font-size: 18px; margin-bottom: 4px; }
.how-list p { color: var(--fg-muted); margin: 0; }

/* Pricing / editions */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px; display: flex; flex-direction: column; }
.price-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 40px -22px rgba(74,144,199,.6); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price-card h3 { font-size: 22px; }
.price { font-size: 30px; font-weight: 700; margin: 6px 0 2px; }
.price span { font-size: 14px; font-weight: 500; color: var(--fg-muted); }
.price-tag { color: var(--accent-2); font-size: 13px; font-weight: 600; margin: 0 0 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-card li { position: relative; padding: 7px 0 7px 26px; color: var(--fg-muted); font-size: 14px; border-bottom: 1px solid var(--border); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.fineprint { text-align: center; color: var(--fg-muted); font-size: 13px; margin-top: 26px; }

/* Downloads */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dl-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.dl-card h3 { font-size: 18px; }
.dl-card p { color: var(--fg-muted); font-size: 14px; }
.code { background: #0a0d12; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px;
  overflow-x: auto; font-family: var(--mono); font-size: 13px; color: var(--accent-2); margin: 12px 0 14px; }
.code code { color: inherit; }
.dl-tag { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 11px; font-weight: 600;
  color: var(--accent-2); background: rgba(74,144,199,.12); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 9px; letter-spacing: .02em; }
.dl-form { margin-top: 14px; display: grid; gap: 10px; }
.dl-form label { display: grid; gap: 5px; font-size: 13px; color: var(--fg-muted); font-weight: 600; }
.dl-form input { background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; color: var(--fg); font-size: 16px; font-family: var(--font); }
.dl-form input:focus { outline: none; border-color: var(--accent); }
.dl-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-form .form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

/* Architecture diagram */
.arch-diagram { max-width: 1100px; margin: 10px auto 0;
  background: radial-gradient(900px 320px at 50% -8%, rgba(74,144,199,.10), transparent 70%), var(--bg-card);
  border: 1px solid var(--border); border-radius: 18px; padding: 22px;
  box-shadow: 0 18px 44px -18px rgba(0,0,0,.65); overflow-x: auto; }
.arch-diagram svg { width: 100%; min-width: 720px; height: auto; display: block; font-family: var(--font); }
.arch-caption { text-align: center; color: var(--fg-muted); font-size: 14px; margin: 18px auto 0; max-width: 760px; }

/* Get started / docs */
.docs-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.docs-tab { background: var(--bg-card); border: 1px solid var(--border); color: var(--fg-muted);
  border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s ease; }
.docs-tab:hover { color: var(--fg); border-color: var(--accent); }
.docs-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.docs-panel { display: none; }
.docs-panel.active { display: block; }
.docs-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.docs-steps > li { counter-increment: step; position: relative; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px 20px 64px; }
.docs-steps > li::before { content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; }
.docs-steps h3 { font-size: 17px; margin: 0 0 6px; }
.docs-steps p { color: var(--fg-muted); margin: 0 0 10px; font-size: 15px; }
.docs-steps p:last-child { margin-bottom: 0; }
.docs-note { margin-top: 22px; text-align: center; color: var(--fg-muted); font-size: 14px; }
.docs-note a { font-weight: 600; }

/* Inquiry form */
.inquiry-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.inquiry-form label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-muted); margin-bottom: 14px; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px; background: var(--bg); color: var(--fg);
  border: 1px solid var(--border); border-radius: 8px; font: inherit; font-weight: 400; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: -1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.form-status { font-size: 14px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #ff8080; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 44px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-tag { color: var(--fg-muted); font-size: 14px; max-width: 320px; margin: 10px 0 0; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: var(--fg-muted); font-size: 14px; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--fg-muted); font-size: 13px; }

/* Responsive */
@media (max-width: 1040px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .site-header .container { padding-left: 18px; padding-right: 18px; }
  .container { padding: 0 18px; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 4px; padding: 12px 18px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; }
  .site-nav .btn { width: 100%; margin-top: 4px; }
  .nav-toggle { display: block; }
  /* All multi-column grids collapse to one column. The .dl-form selector is
     listed explicitly because its two-class specificity beats a bare .form-row. */
  .overview-grid, .feature-grid, .pricing-grid, .dl-grid, .form-row, .dl-form .form-row { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 44px 0 24px; }
  .price-featured { order: -1; }
  .footer-inner { flex-direction: column; gap: 18px; }
  .footer-legal { flex-direction: column; gap: 6px; align-items: flex-start; }
}
@media (max-width: 420px) {
  .container, .site-header .container { padding-left: 14px; padding-right: 14px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .docs-tabs { gap: 6px; }
  .docs-tab { padding: 8px 12px; }
}
