/* Astrix marketing site: shared overrides on top of the Start Bootstrap theme (css/styles.css, Bootstrap 5.2.3).
   Ported from the Lexora template (Site Template/css/lexora.css), prefix ax-. Colours follow the logo's violet-to-blue X.
   Shared components (nav, buttons, cards, sections, FAQ, CTA, footer) are first; homepage-only blocks are marked below. */
:root {
  --ax-navy: #0b1230;
  --ax-navy-2: #141c45;
  --ax-ink: #1a2038;
  --ax-muted: #566079;
  --ax-violet: #4a4fa3;
  --ax-blue: #2f6fb0;
  --ax-blue-light: #6fa8dc;
  --ax-line: #e3e7f0;
  --ax-bg-soft: #f5f7fb;
  --ax-threat: #b42318;
  --ax-warn: #9a5b00;
  --ax-ok: #146c43;
  --ax-grad: linear-gradient(90deg, #4a4fa3, #2f6fb0);
  --bs-primary: #2f6fb0;
  --bs-primary-rgb: 47, 111, 176;
  --bs-link-color: #2f6fb0;
  --bs-link-hover-color: #4a4fa3;
}

/* scroll-padding keeps anchor targets and keyboard focus clear of the sticky header */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { color: var(--ax-ink); background: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
/* The theme's h-100 caps body at one viewport, which would end the sticky header after the first screen */
body.h-100 { height: auto !important; min-height: 100%; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2000; background: #fff; color: var(--ax-navy); padding: .6rem 1rem; border-radius: .4rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }

:focus-visible, .btn:focus-visible { outline: 3px solid var(--ax-blue); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }

.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn-ax { background: var(--ax-grad); color: #fff; border: 0; font-weight: 600; }
.btn-ax:hover, .btn-ax:focus { color: #fff; filter: brightness(1.12); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.55); font-weight: 600; }
.btn-ghost:hover, .btn-ghost:focus { color: var(--ax-navy); background: #fff; }
.btn-outline-ax { color: var(--ax-navy); border: 1px solid var(--ax-line); font-weight: 600; background: #fff; }
.btn-outline-ax:hover, .btn-outline-ax:focus { color: var(--ax-navy); border-color: var(--ax-blue); }

/* Navbar: stick the header, because <header> is only as tall as the nav and gives a sticky nav no room to travel */
body > header { position: sticky; top: 0; z-index: 1020; }
@media print { body > header { position: static; } }
.ax-nav { background: #fff; border-bottom: 1px solid var(--ax-line); }
.ax-nav .navbar-brand img { height: 44px; width: auto; display: block; }
.ax-nav .nav-link { color: var(--ax-ink); font-weight: 500; }
.ax-nav .nav-link:hover, .ax-nav .nav-link:focus { color: var(--ax-blue); }
.ax-nav .nav-link.active, .ax-nav .nav-link[aria-current="page"] { color: var(--ax-violet); font-weight: 700; }
@media (min-width: 992px) { .ax-nav .nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ax-violet); } }
.ax-nav.scrolled { box-shadow: 0 2px 14px rgba(11,18,48,.08); }
@media (max-width: 991.98px) {
  .ax-nav .navbar-collapse.show { max-height: calc(100vh - 70px); overflow-y: auto; }
  .ax-nav .navbar-nav { padding-top: .75rem; }
  .ax-nav .nav-link { padding-block: .7rem; }
  .ax-nav .ax-nav-actions { padding: .75rem 0 .5rem; border-top: 1px solid var(--ax-line); }
}

/* Sections */
.ax-section { padding-block: 5rem; }
.ax-soft { background: var(--ax-bg-soft); }
.ax-dark { background: var(--ax-navy); color: #fff; }
.ax-dark .text-muted-ax { color: rgba(255,255,255,.75); }
.ax-section h2 { letter-spacing: -.015em; font-weight: 800; }
.text-muted-ax { color: var(--ax-muted); }
.ax-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--ax-violet); }
.ax-dark .ax-eyebrow, .ax-hero .ax-eyebrow { color: var(--ax-blue-light); }
.ax-head { max-width: 720px; }
/* Small utilities, so pages need no inline style="" (keeps a strict style-src CSP possible) */
.ax-measure { max-width: 660px; }
.ax-caps { text-transform: uppercase; letter-spacing: .08em; }
.text-violet { color: var(--ax-violet); }

.ax-icon { width: 3rem; height: 3rem; border-radius: .75rem; background: var(--ax-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.ax-icon .ic { width: 1.5rem; height: 1.5rem; }

.ax-card { background: #fff; border: 1px solid var(--ax-line); border-radius: 1rem; padding: 1.75rem; height: 100%; }
.ax-card h3 { font-size: 1.15rem; font-weight: 700; }
.ax-dark .ax-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.ax-dark .ax-card p, .ax-dark .ax-card li { color: rgba(255,255,255,.82); }

.ax-feat { list-style: none; padding: 0; margin: 0; }
.ax-feat li { padding: .5rem 0 .5rem 1.6rem; border-top: 1px solid var(--ax-line); font-size: .95rem; color: var(--ax-muted); position: relative; }
.ax-feat li:first-child { border-top: 0; }
.ax-feat li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .55rem; height: .55rem; border-radius: 2px; background: var(--ax-grad); }
.ax-feat strong { color: var(--ax-ink); }
.ax-dark .ax-feat li { border-color: rgba(255,255,255,.14); }
.ax-dark .ax-feat strong { color: #fff; }

.ax-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.ax-tags li { font-size: .85rem; font-weight: 600; color: var(--ax-navy); background: #fff; border: 1px solid var(--ax-line); border-radius: .5rem; padding: .35rem .7rem; }
.ax-dark .ax-tags li { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }

.ax-note { font-size: .875rem; color: var(--ax-muted); }
.ax-dark .ax-note { color: rgba(255,255,255,.7); }

.ax-cta { background: radial-gradient(700px 300px at 90% 0%, rgba(111,168,220,.35), transparent 60%), linear-gradient(150deg, var(--ax-navy), #232a6b); color: #fff; border-radius: 1.25rem; padding: 3.5rem 1.5rem; }
.ax-cta p { color: rgba(255,255,255,.85); }
.ax-cta .btn-light { color: var(--ax-navy); font-weight: 700; }
.ax-cta a:not(.btn) { color: #fff; }

/* FAQ (native <details>, works without JavaScript) */
.ax-faq { max-width: 860px; }
.ax-faq details { background: #fff; border: 1px solid var(--ax-line); border-radius: .75rem; margin-bottom: .75rem; }
.ax-faq summary { font-weight: 600; cursor: pointer; color: var(--ax-navy); padding: 1rem 3rem 1rem 1.25rem; list-style: none; position: relative; }
.ax-faq summary::-webkit-details-marker { display: none; }
.ax-faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--ax-blue); }
.ax-faq details[open] summary::after { content: "\2212"; }
.ax-faq details > div { padding: 0 1.25rem 1.1rem; color: var(--ax-muted); }
.ax-faq details > div p:last-child { margin-bottom: 0; }

/* Footer */
.ax-footer { background: var(--ax-navy); color: rgba(255,255,255,.8); }
.ax-footer img { height: 44px; width: auto; }
.ax-footer a { color: #fff; text-decoration: none; }
.ax-footer a:hover, .ax-footer a:focus { text-decoration: underline; }
.ax-footer li { padding-block: .2rem; }
.ax-footer-title { color: #fff; font-weight: 600; margin-bottom: .5rem; }

/* ---------- Homepage ---------- */

/* Hero */
.ax-hero { background: radial-gradient(900px 420px at 85% 0%, rgba(74,79,163,.5), transparent 60%), linear-gradient(160deg, var(--ax-navy), var(--ax-navy-2)); color: #fff; }
.ax-hero h1 { letter-spacing: -.02em; }
.ax-hero .lead { color: rgba(255,255,255,.85); }
.ax-hero-points { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .92rem; color: rgba(255,255,255,.8); }
.ax-hero-points li { display: flex; align-items: center; gap: .45rem; }
.ax-hero-points .ic { color: var(--ax-blue-light); }

/* Illustrative threat-model panel (hero) */
.ax-panel { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); border-radius: 1rem; padding: 1.25rem; }
.ax-panel-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .75rem; font-size: .8rem; color: rgba(255,255,255,.72); }
.ax-panel-head strong { color: #fff; font-size: .9rem; }
.ax-panel svg { display: block; width: 100%; height: auto; }
.ax-findings { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .6rem; }
.ax-findings li { background: rgba(255,255,255,.07); border-radius: .6rem; padding: .7rem .85rem; font-size: .85rem; color: rgba(255,255,255,.82); }
.ax-findings strong { color: #fff; display: block; font-size: .92rem; }
.ax-sev { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .1rem .45rem; border-radius: .3rem; margin-right: .35rem; vertical-align: 1px; }
.ax-sev.crit { background: #fbd5d1; color: #7a1a10; }
.ax-sev.high { background: #fde5c4; color: #6b3d00; }
.ax-caption { font-size: .78rem; color: rgba(255,255,255,.6); margin: .75rem 0 0; }

/* Problem */
.ax-problem { border-left: 4px solid var(--ax-violet); padding: .25rem 0 .25rem 1.1rem; height: 100%; }
.ax-problem h3 { font-size: 1.05rem; font-weight: 700; }
.ax-impact { background: #fff; border: 1px solid var(--ax-line); border-radius: 1rem; padding: 1.5rem 1.75rem; }
/* Rising bars: each bar and its ::before spacer share the free height, so the chart scales with the card */
.ax-cost { display: flex; flex-direction: column; padding-block: 1.25rem; }
.ax-cost-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; flex-grow: 1; min-height: 4.25rem; }
.ax-cost-list li { display: flex; flex-direction: column; }
.ax-cost-list li::before { content: ""; flex: 82 1 0; }
.ax-cost-list i { display: block; flex: 18 1 0; border-radius: .25rem .25rem 0 0; background: var(--ax-ok); }
.ax-cost-list li:nth-child(2)::before { flex-grow: 60; }
.ax-cost-list li:nth-child(2) i { flex-grow: 40; background: var(--ax-blue); }
.ax-cost-list li:nth-child(3)::before { flex-grow: 30; }
.ax-cost-list li:nth-child(3) i { flex-grow: 70; background: var(--ax-threat); }
.ax-cost-list li:nth-child(4)::before { flex-grow: 0; }
.ax-cost-list li:nth-child(4) i { flex-grow: 100; background: var(--ax-threat); }
.ax-cost-list strong { font-size: .85rem; font-weight: 600; padding-top: .3rem; border-top: 1px solid var(--ax-line); }
.ax-cost-note { font-size: .8rem; color: var(--ax-muted); margin: .5rem 0 0; }

/* Inputs (product intro) */
.ax-inputs { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); list-style: none; margin: 0; padding: 0; }
.ax-inputs li { display: flex; gap: .75rem; align-items: flex-start; background: #fff; border: 1px solid var(--ax-line); border-radius: .75rem; padding: .85rem 1rem; }
.ax-inputs .ic { color: var(--ax-blue); margin-top: .1rem; }
.ax-inputs strong { display: block; font-size: .95rem; color: var(--ax-navy); }
.ax-inputs span { font-size: .85rem; color: var(--ax-muted); }

/* Capabilities: featured + compact cards */
.ax-cap-lead { background: linear-gradient(160deg, var(--ax-navy), var(--ax-navy-2)); color: #fff; border: 0; }
.ax-cap-lead p { color: rgba(255,255,255,.82); }
.ax-cap-lead .ax-tags li { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.ax-card a.ax-more { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.ax-cap-lead a.ax-more { color: var(--ax-blue-light); }

/* Architecture diagram */
.ax-diagram { background: #fff; border: 1px solid var(--ax-line); border-radius: 1rem; padding: 1rem; }
.ax-diagram svg { display: block; width: 100%; height: auto; }
/* Keep diagram text legible on phones: the figure scrolls inside itself, the page does not. */
.ax-diagram-scroll { overflow-x: auto; }
.ax-diagram-scroll svg { min-width: 620px; }
.ax-diagram-scroll--sm svg { min-width: 460px; }
.ax-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: .75rem 0 0; padding: 0; font-size: .82rem; color: var(--ax-muted); }
.ax-legend li { display: flex; align-items: center; gap: .4rem; }
.ax-legend i { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--ax-blue); }
.ax-legend i.tb { border-top: 2px dashed var(--ax-threat); }
.ax-legend i.th { flex: none; width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--ax-threat); }
.ax-arch-list dt { font-weight: 700; color: var(--ax-navy); }
.ax-arch-list dd { color: var(--ax-muted); margin-bottom: 1rem; }
.ax-arch-list dd:last-child { margin-bottom: 0; }
.ax-arch-note { display: grid; grid-template-columns: 9rem 1fr; gap: .5rem 1.5rem; align-items: baseline; margin-top: 2rem; padding: 1.5rem 1.75rem; background: var(--ax-bg-soft); border-radius: 1rem; }
@media (max-width: 767.98px) { .ax-arch-note { grid-template-columns: 1fr; } }

/* How it works */
.ax-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.ax-steps li { position: relative; background: #fff; border: 1px solid var(--ax-line); border-radius: 1rem; padding: 1.5rem 1.25rem; }
.ax-steps .num { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ax-grad); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.ax-steps h3 { font-size: 1.1rem; font-weight: 700; }
.ax-steps p { font-size: .92rem; color: var(--ax-muted); }
.ax-steps p.why { font-size: .85rem; border-top: 1px solid var(--ax-line); padding-top: .6rem; margin-bottom: 0; }
@media (min-width: 1200px) {
  .ax-steps li:not(:last-child)::after { content: ""; position: absolute; top: 2.7rem; right: -1rem; width: 1rem; border-top: 2px solid var(--ax-blue-light); }
}
@media (max-width: 1199.98px) { .ax-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .ax-steps { grid-template-columns: 1fr; } }

/* Frameworks table */
.ax-table { width: 100%; border-collapse: separate; border-spacing: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.16); border-radius: 1rem; overflow: hidden; }
.ax-table th, .ax-table td { padding: .95rem 1.1rem; vertical-align: top; border-top: 1px solid rgba(255,255,255,.12); }
.ax-table thead th { border-top: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.65); }
.ax-table tbody th { color: #fff; font-weight: 700; white-space: nowrap; }
.ax-table td { color: rgba(255,255,255,.82); }
@media (max-width: 575.98px) {
  .ax-table thead { display: none; }
  .ax-table tbody th, .ax-table td { display: block; }
  .ax-table td { border-top: 0; padding-top: 0; }
}

/* Manual vs Astrix */
.ax-compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ax-line); border-radius: 1rem; overflow: hidden; background: #fff; }
.ax-compare > div { padding: 1.5rem 1.75rem; }
.ax-compare > div + div { border-left: 1px solid var(--ax-line); background: #f7f8fe; }
.ax-compare h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ax-compare ul { list-style: none; margin: 0; padding: 0; }
.ax-compare li { padding: .6rem 0; border-top: 1px solid var(--ax-line); display: flex; gap: .75rem; font-size: .95rem; }
.ax-compare li:first-child { border-top: 0; }
.ax-compare .ic { box-sizing: border-box; width: 1.5rem; height: 1.5rem; padding: .3rem; border-radius: 50%; stroke-width: 3; margin-top: -.05rem; }
.ax-compare .manual .ic { color: var(--ax-threat); background: #fdecea; }
.ax-compare .astrix .ic { color: var(--ax-ok); background: #e3f3ea; }
@media (max-width: 767.98px) {
  .ax-compare { grid-template-columns: 1fr; }
  .ax-compare > div + div { border-left: 0; border-top: 1px solid var(--ax-line); }
}

/* Use cases */
.ax-usecase { display: flex; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--ax-line); height: 100%; }
.ax-usecase .ax-icon { flex: none; margin: 0; width: 2.6rem; height: 2.6rem; }
.ax-usecase h3 { font-size: 1.05rem; font-weight: 700; }
.ax-usecase p { color: var(--ax-muted); margin-bottom: 0; font-size: .95rem; }

/* Teams */
.ax-team { height: 100%; padding: 1.5rem; border-radius: 1rem; background: #fff; border: 1px solid var(--ax-line); border-top: 4px solid var(--ax-violet); }
.ax-team h3 { font-size: 1.05rem; font-weight: 700; }
.ax-team p.role { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ax-blue); font-weight: 700; margin-bottom: .4rem; }

/* Trust commitments */
.ax-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: 1rem; overflow: hidden; }
.ax-trust li { background: var(--ax-navy); padding: 1.4rem 1.5rem; }
.ax-trust strong { display: flex; gap: .55rem; align-items: center; color: #fff; margin-bottom: .35rem; }
.ax-trust .ic { color: var(--ax-blue-light); }
.ax-trust span { font-size: .92rem; color: rgba(255,255,255,.78); }
@media (max-width: 991.98px) { .ax-trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .ax-trust { grid-template-columns: 1fr; } }

@media (max-width: 575.98px) {
  .ax-section { padding-block: 3.5rem; }
  .ax-hero h1 { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
