/* ==========================================================================
   Hostlint — design system
   Brand mark angle is -18.4349deg (slope -1/3); reused as the --slant motif.
   ========================================================================== */

:root {
  --brand:        #0064FF;
  --brand-ink:    #0047B8;
  --brand-soft:   #E6F0FF;

  --bg:           #ffffff;
  --surface:      #F5F8FC;
  --surface-2:    #ECF2FA;
  --line:         #DCE4EF;
  --line-soft:    #E9EEF6;
  --text:         #0A1020;
  --text-2:       #3D4A61;
  --muted:        #64748B;

  --ink:          #060B18;   /* dark band background, both themes */
  --ink-2:        #0D1729;
  --ink-line:     #1C2942;
  --ink-text:     #E9EEF7;
  --ink-muted:    #94A6C2;

  --slant:        -18.4349deg;
  --radius:       10px;
  --radius-lg:    16px;
  --wrap:         1180px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand:      #3D86FF;
    --brand-ink:  #6BA3FF;
    --brand-soft: #10203B;

    --bg:         #060B18;
    --surface:    #0C1526;
    --surface-2:  #111C32;
    --line:       #1C2942;
    --line-soft:  #16223A;
    --text:       #E9EEF7;
    --text-2:     #B7C4D8;
    --muted:      #8496B1;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(2.3rem, 1.3rem + 3.2vw, 3.65rem); letter-spacing: -0.036em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); letter-spacing: -0.032em; }
h3 { font-size: 1.13rem; letter-spacing: -0.018em; }
p  { margin: 0 0 1.05em; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- brand lockup ------------------------------------------------ */

/* The wordmark is the same rendered lockup the client area uses, so the two
   are identical rather than merely similar. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-img { height: 30px; width: auto; display: block; }
@media (prefers-color-scheme: dark) {
  .site-header .brand-img { content: url("/assets/logo-lockup-dark.png"); }
}
.site-footer .brand-img { height: 28px; }

/* ---------- header ------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 2rem; height: 66px; }
.nav-links {
  display: flex; align-items: center; gap: 1.7rem;
  margin-left: auto; font-size: .945rem;
}
.nav-links a { color: var(--text-2); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-sep { width: 1px; height: 22px; background: var(--line); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav { height: 60px; }
  .nav-links {
    position: fixed; inset: 60px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.4rem;
    max-height: calc(100dvh - 60px); overflow-y: auto;
    display: none;
  }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links .btn { margin-top: 1rem; justify-content: center; border-bottom: none; }
  .nav-sep { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 9px;
    background: var(--bg); color: var(--text); cursor: pointer;
  }
  #nav:checked ~ .nav-links { display: flex; }
}

/* ---------- buttons ----------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .68rem 1.25rem; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #04101f; } .btn-primary:hover { color: #04101f; } }

.btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--text-2); background: var(--surface); }

.btn-on-ink { background: #fff; color: var(--ink); }
.btn-on-ink:hover { background: #dfe8f5; color: var(--ink); }
.btn-ghost-ink { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-ghost-ink:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.07); }

.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }

/* ---------- sections ---------------------------------------------------- */

section { padding: 5.5rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }
.section-tight { padding: 3.5rem 0; }

.eyebrow {
  display: block; margin-bottom: .9rem;
  font-size: .765rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brand);
}
.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

.lede { font-size: 1.16rem; color: var(--text-2); max-width: 60ch; }

/* ---------- hero -------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: var(--ink-text);
  padding: 5.5rem 0 6rem;
  position: relative; overflow: hidden;
}
.hero::after {            /* slanted brand wash, echoes the logo angle */
  content: ""; position: absolute; top: -30%; right: -14%;
  width: 46%; height: 170%;
  background: linear-gradient(180deg, rgba(0,100,255,.22), rgba(0,100,255,0));
  transform: skewX(var(--slant));
  pointer-events: none;
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero .eyebrow { color: #6BA3FF; }
.hero .lede { color: var(--ink-muted); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: 4rem; align-items: center; position: relative; z-index: 1;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  margin-top: 2.6rem; padding-top: 1.7rem;
  border-top: 1px solid var(--ink-line);
  font-size: .875rem; color: var(--ink-muted);
}
.hero-meta strong { display: block; color: #fff; font-size: .96rem; font-weight: 600; }
@media (max-width: 900px) {
  .hero { padding: 3.6rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* stack diagram (hero visual) */
.stack { display: grid; gap: .62rem; }
.layer {
  display: flex; align-items: center; gap: 1rem;
  padding: .95rem 1.15rem;
  border: 1px solid var(--ink-line); border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  transform: skewX(var(--slant));
}
.layer > * { transform: skewX(calc(var(--slant) * -1)); }
.layer .lb { font-size: .93rem; font-weight: 600; color: #fff; }
.layer .ls { font-size: .8rem; color: var(--ink-muted); margin-left: auto; font-family: var(--mono); }
.layer .lx {
  width: 30px; height: 30px; flex: none; border-radius: 7px;
  display: grid; place-items: center;
  background: rgba(0,100,255,.16); color: #6BA3FF;
}
.layer .lx svg { width: 16px; height: 16px; }
.layer.is-brand { border-color: rgba(0,100,255,.5); background: rgba(0,100,255,.13); }
@media (max-width: 480px) { .layer .ls { display: none; } }

/* ---------- cards / grids ----------------------------------------------- */

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative; overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
}
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card .ico {
  width: 38px; height: 38px; border-radius: 9px; margin-bottom: 1.05rem;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.card .ico svg { width: 20px; height: 20px; }

/* product cards get the slant accent from the mark */
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; border-color: var(--brand); }
.card-link::before {
  content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 6px;
  background: var(--brand); transform: skewX(var(--slant));
  opacity: 0; transition: opacity .15s;
}
.card-link:hover::before { opacity: 1; }
.card-more {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1rem; font-size: .9rem; font-weight: 600; color: var(--brand);
}
.card-more svg { width: 14px; height: 14px; }

/* ---------- feature rows ------------------------------------------------ */

.frow { display: grid; grid-template-columns: 34px 1fr; gap: 1rem; align-items: start; }
.frow + .frow { margin-top: 1.9rem; }
.frow .fi {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.frow .fi svg { width: 18px; height: 18px; }
.frow h3 { margin-bottom: .3rem; }
.frow p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- spec table -------------------------------------------------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 460px; }
thead th {
  text-align: left; font-weight: 600; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  padding: .85rem 1.15rem; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
td { padding: .85rem 1.15rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; white-space: nowrap; }
td.mono, .mono { font-family: var(--mono); font-size: .88rem; }

/* ---------- stat strip -------------------------------------------------- */

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg);
}
.stat { padding: 1.5rem 1.4rem; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: none; }
.stat .k { font-size: 1.42rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.stat .v { font-size: .875rem; color: var(--muted); margin-top: .15rem; }
@media (max-width: 780px) {
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

/* ---------- CTA band ---------------------------------------------------- */

.cta {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.2rem 2.6rem;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; top: -40%; right: -6%; width: 34%; height: 180%;
  background: linear-gradient(180deg, rgba(0,100,255,.3), rgba(0,100,255,0));
  transform: skewX(var(--slant)); pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 20ch; }
.cta p { color: var(--ink-muted); max-width: 58ch; }
.cta .hero-cta { margin-top: 1.6rem; }

/* ---------- prose (legal + long form) ----------------------------------- */

.prose { max-width: 74ch; }
.prose h2 { font-size: 1.32rem; margin-top: 2.6rem; }
.prose h3 { font-size: 1.03rem; margin-top: 1.7rem; }
.prose ul { padding-left: 1.15rem; color: var(--text-2); }
.prose li { margin-bottom: .45rem; }
.prose .updated { color: var(--muted); font-size: .9rem; }
.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.05rem 1.25rem; margin: 1.6rem 0;
  font-size: .95rem; color: var(--text-2);
}
.callout strong { color: var(--text); }

/* ---------- footer ------------------------------------------------------ */

.site-footer {
  background: var(--ink); color: var(--ink-muted);
  padding: 4rem 0 2.2rem; font-size: .93rem;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem; padding-bottom: 2.6rem;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; margin-bottom: 1rem; font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.foot-note { color: var(--ink-muted); max-width: 32ch; margin: 1rem 0 0; font-size: .9rem; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  padding-top: 1.8rem; border-top: 1px solid var(--ink-line);
  font-size: .86rem;
}
.foot-bottom a { color: var(--ink-muted); }

/* ---------- misc -------------------------------------------------------- */

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: .78rem; font-weight: 600;
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding-left: 1.75rem; margin-bottom: .6rem;
  color: var(--text-2); font-size: .96rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .46em;
  width: 9px; height: 5px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- capability grid --------------------------------------------
   Replaces the old spec table. Scroll-reveal uses animation-timeline so it
   needs no JavaScript, which keeps the CSP at script-src 'none'.
   ----------------------------------------------------------------------- */

.caps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 1000px) { .caps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px)  { .caps { grid-template-columns: 1fr; } }

.cap {
  position: relative; overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.35rem 1.5rem;
  transition: border-color .18s ease, transform .18s ease;
}
.cap strong {
  display: block; margin-bottom: .28rem;
  font-size: 1rem; letter-spacing: -0.02em; color: var(--text);
}
.cap span:last-child {
  display: block; font-size: .9rem; line-height: 1.45; color: var(--muted);
}
.cap .ci {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 1.05rem;
  border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  transition: background .18s ease, color .18s ease;
}
.cap .ci svg { width: 20px; height: 20px; }

/* the slant motif sweeps in from the corner on hover */
.cap::after {
  content: ""; position: absolute; top: 0; right: -60%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 9%, transparent));
  transform: skewX(var(--slant));
  transition: right .35s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.cap:hover { border-color: var(--brand); transform: translateY(-3px); }
.cap:hover::after { right: -12%; }
.cap:hover .ci { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .cap:hover .ci { color: #04101f; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cap {
      animation: capIn linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}
@keyframes capIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
