/* ShieldLinks website — brand colors from ~/projects/branding/colors.css */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --sl-navy: #03112E;
  --sl-navy-2: #071C44;
  --sl-deep-blue: #0142A9;
  --sl-blue: #0067D4;
  --sl-sky: #0A9BE6;
  --sl-cyan: #12C9EE;
  --sl-slate: #374562;
  --sl-tagline: #C3CFE6;
  --sl-gradient: linear-gradient(135deg, #0142A9 0%, #0067D4 35%, #0A9BE6 70%, #12C9EE 100%);
  --bg: #F5F8FD;
  --text: #0B1A3A;
  --muted: #4A5A7A;
  --line: #DCE4F2;
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", 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(--sl-blue); }
h1, h2, h3 { font-family: "Poppins", "Montserrat", sans-serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 17, 46, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.nav .brand img { height: 36px; width: auto; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { color: #E6EEFB; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sl-cyan); }
.nav a.lang-switch { font-size: .85rem; color: var(--sl-tagline); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: .3rem .75rem; }
.nav a.lang-switch .on { color: #fff; font-weight: 700; }
.nav a.lang-switch:hover { border-color: var(--sl-cyan); }
.os-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.os-tabs a { text-decoration: none; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; }
.os-tabs a:hover { border-color: var(--sl-sky); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sl-gradient); color: #fff !important; box-shadow: 0 8px 24px rgba(10, 155, 230, .35); }
.btn-ghost { color: #fff !important; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--sl-cyan); }
.nav .btn { padding: .55rem 1.2rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(18, 201, 238, .22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(1, 66, 169, .45), transparent 50%),
    var(--sl-navy);
  padding: 6rem 0 7rem;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sl-cyan); margin-bottom: 1rem; font-weight: 600;
}
.hero p.lead { font-size: 1.15rem; color: var(--sl-tagline); max-width: 38rem; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.gradient-text { background: var(--sl-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-mark { justify-self: center; width: min(360px, 80%); filter: drop-shadow(0 30px 60px rgba(10, 155, 230, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-mark { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
section { padding: 5.5rem 0; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); }
.alt { background: #fff; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 14px 36px rgba(3, 17, 46, .08); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--sl-gradient);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Pillars (dark band) */
.band { background: var(--sl-navy); color: #fff; }
.band .section-head p { color: var(--sl-tagline); }
.pillar { border-top: 3px solid; border-image: var(--sl-gradient) 1; padding-top: 1.4rem; }
.pillar p { color: var(--sl-tagline); }
.pillar .num { font-family: "Poppins", sans-serif; font-size: .85rem; color: var(--sl-cyan); letter-spacing: .15em; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.6rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--sl-gradient); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.step p { color: var(--muted); }

/* CTA */
.cta { background: var(--sl-gradient); color: #fff; border-radius: 22px; padding: 3.5rem; text-align: center; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 36rem; margin: 0 auto 1.8rem; }
.cta .btn { background: #fff; color: var(--sl-deep-blue) !important; }

/* Page header (docs / support) */
.page-hero { background: var(--sl-navy); color: #fff; padding: 4rem 0 3.5rem; }
.page-hero p { color: var(--sl-tagline); max-width: 42rem; margin: 0; }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 230px 1fr; gap: 3rem; padding: 3.5rem 0 5rem; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc h4 { margin: 0 0 .8rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc a { display: block; padding: .3rem 0; color: var(--text); text-decoration: none; font-size: .95rem; }
.toc a:hover { color: var(--sl-blue); }
.doc h2 { margin-top: 2.6rem; padding-top: .5rem; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.6rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .35rem; }
pre {
  background: var(--sl-navy); color: #DDE7F8; padding: 1.1rem 1.3rem; border-radius: 10px;
  overflow-x: auto; font-size: .88rem; line-height: 1.55;
}
:not(pre) > code { background: #E8EEF9; padding: .1em .4em; border-radius: 5px; font-size: .9em; }
.note { border-left: 4px solid var(--sl-sky); background: #EAF5FD; padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.2rem 0; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
th { background: #EEF3FB; }

/* Support */
.contact-card { text-align: left; }
.contact-card a { font-weight: 600; text-decoration: none; }
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.3rem; margin-bottom: .8rem; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .8rem 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--sl-navy); color: var(--sl-tagline); padding: 3.5rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer img { height: 34px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; margin: 0 0 .8rem; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--sl-tagline); text-decoration: none; }
.site-footer a:hover { color: var(--sl-cyan); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; background: var(--sl-navy); color: #fff; }
.notfound img { width: 120px; margin: 0 auto 1.5rem; }
.notfound p { color: var(--sl-tagline); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .docs-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 5rem; }
  .hero-mark { width: 200px; order: -1; }
  .toc { position: static; }
  .nav-toggle { display: block; }
  .nav ul {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--sl-navy); padding: 1.2rem; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav ul.open { display: flex; }
  .cta { padding: 2.5rem 1.5rem; }
}
