/* Axiom Gate — site styles. Plain CSS, no build step. */

:root {
  --ink: #0f2233;          /* headings, logo */
  --text: #2c3e4f;         /* body copy */
  --muted: #5b6b7a;        /* secondary copy */
  --line: #e2e7ec;         /* borders */
  --bg: #ffffff;
  --bg-soft: #f5f7f9;      /* alternating sections */
  --accent: #0f6b64;       /* deep teal: links, buttons */
  --accent-hover: #0b524d;
  --accent-soft: #e6f2f0;
  --warn-bg: #fff7e6;
  --warn-line: #f0c36d;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em;
}
.logo svg { width: 30px; height: 30px; flex: none; }
.logo:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: .96rem; font-weight: 500;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .btn { margin-left: 8px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px; border-radius: 8px;
  font: 600 .98rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--accent);
  background: var(--accent); color: #fff;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }
.site-nav a.btn { color: #fff; padding: 9px 16px; }
.site-nav a.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section-head { max-width: 680px; margin-bottom: 40px; }

.hero { padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero h1 { max-width: 820px; }
.hero .lede { font-size: 1.22rem; }

.page-hero { padding: clamp(56px, 8vw, 88px) 0 clamp(32px, 5vw, 48px); border-bottom: 1px solid var(--line); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: #c5d3dc; box-shadow: 0 6px 24px rgba(15,34,51,.07); color: inherit; }
.card .more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: .95rem; }

.tag {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; margin: 0 6px 12px 0;
}

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 24px; left: 28px;
  font: 600 .9rem/1 var(--sans); color: var(--accent); letter-spacing: .08em;
}

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Case studies ---------- */
.case { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
@media (max-width: 820px) { .case-grid { grid-template-columns: 1fr; gap: 16px; } }
.case dl { margin: 0; }
.case dt { font-weight: 600; color: var(--ink); margin-top: 18px; }
.case dt:first-child { margin-top: 0; }
.case dd { margin: 4px 0 0; }
.status {
  display: inline-block; font-size: .85rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 4px 10px;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #d6e0e8; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: #b8c6d2; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-grid .two { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 11px 13px; border: 1.5px solid #cfd8e0; border-radius: 8px; background: #fff;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 4px; padding: 12px 14px; border-radius: 8px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--accent-soft); color: var(--accent-hover); }
.form-status.err { background: #fdecec; color: #8a1f1f; }
.form-status.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #6b4a00; }

.aside-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.aside-box + .aside-box { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .93rem; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.narrow { max-width: 720px; }
.more-link { margin-top: 32px; }

[hidden] { display: none !important; }
