/* ==========================================================================
   Blue Sentinel marketing site — design system
   Self-contained (no external fonts/CDNs) so it runs in an air-gapped Docker.
   Rebrand: change --brand / --brand-2 below and the wordmark in the headers.
   ========================================================================== */

:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --panel: #0f1826;
  --panel-2: #131f31;
  --stroke: rgba(75, 85, 99, 0.4);
  --stroke-soft: rgba(75, 85, 99, 0.25);
  --text: #e6edf6;
  --muted: #93a4bd;
  --faint: #64748b;
  --brand: #22d3ee;
  --brand-2: #38bdf8;
  --brand-ink: #06222b;
  --accent: #a855f7;
  --ok: #34d399;
  --warn: #fbbf24;
  --crit: #ef4444;
  --high: #f97316;
  --med: #eab308;
  --low: #22c55e;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

/* Ambient gradient glow behind the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(900px 500px at 10% 4%, rgba(56, 189, 248, 0.10), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #080d18 100%);
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.text-muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0.72rem 1.25rem; border-radius: 11px;
  font-weight: 700; font-size: 0.92rem; cursor: pointer;
  border: 1px solid transparent; transition: transform 120ms ease, filter 120ms ease, background 120ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.05); color: var(--brand-ink); }
.btn-ghost { background: rgba(255,255,255,0.03); border-color: var(--stroke); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--text); }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--stroke-soft);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.06rem; color: var(--text); letter-spacing: -0.02em; }
.brand .logo { width: 30px; height: 30px; flex-shrink: 0; }
.brand b { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--stroke); border-radius: 9px; width: 40px; height: 38px; color: var(--text); cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: 74px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.16rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 20px; }
.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 0.82rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: rgba(34, 211, 238, 0.1); color: var(--brand); border: 1px solid rgba(34, 211, 238, 0.35);
  margin-bottom: 20px;
}

/* ---------- generic cards ---------- */
.card {
  background: linear-gradient(160deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.card:hover { border-color: rgba(34, 211, 238, 0.5); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,0.35); }
.card .ico {
  width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.32); margin-bottom: 14px;
}
.card .ico svg { width: 22px; height: 22px; color: var(--brand); }
.card h3 { font-size: 1.08rem; }
.card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--stroke-soft); border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 22px; text-align: center; }
.stat .n { font-size: 1.7rem; font-weight: 800; color: var(--brand); }
.stat .l { font-size: 0.8rem; color: var(--muted); }

/* ---------- deployment cards ---------- */
.deploy-card { position: relative; overflow: hidden; }
.deploy-card .tag { position: absolute; top: 14px; right: 14px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.deploy-card.featured { border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 0 0 1px rgba(34,211,238,0.25), 0 18px 50px rgba(0,0,0,0.4); }
.deploy-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.deploy-card li { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: 0.9rem; padding: 5px 0; }
.deploy-card li svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; margin-top: 3px; }

/* ---------- how it works ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; }
.step .num { counter-increment: step; width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--brand-ink); background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 12px; }
.step .num::before { content: counter(step); }
.step h3 { font-size: 1rem; }
.step p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ---------- product mockups (inline "screenshots") ---------- */
.mock {
  border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #0b1421; border-bottom: 1px solid var(--stroke-soft); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: inline-block; }
.mock-bar i:nth-child(1){ background:#ef4444aa;} .mock-bar i:nth-child(2){ background:#eab308aa;} .mock-bar i:nth-child(3){ background:#22c55eaa;}
.mock-bar span { margin-left: 8px; font-size: 0.72rem; color: var(--faint); font-family: var(--mono); }
.mock-body { padding: 16px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.tile { background: var(--panel); border: 1px solid var(--stroke-soft); border-radius: 10px; padding: 12px; }
.tile .k { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.tile .v { font-size: 1.4rem; font-weight: 800; }
.sevbar { display: flex; height: 9px; border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.sevbar i { display: block; height: 100%; }

.rowtable { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.rowtable th { text-align: left; color: var(--faint); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.07em; padding: 6px 8px; }
.rowtable td { padding: 8px; border-top: 1px solid var(--stroke-soft); color: var(--muted); }
.rowtable td.mono { font-family: var(--mono); color: var(--text); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 5px; font-size: 0.64rem; font-weight: 800; }
.b-crit { background: rgba(239,68,68,0.16); color: #fca5a5; }
.b-high { background: rgba(249,115,22,0.16); color: #fdba74; }
.b-med { background: rgba(234,179,8,0.16); color: #fde047; }
.b-low { background: rgba(34,197,94,0.16); color: #86efac; }

/* ---------- tour rows ---------- */
.tour-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 64px; }
.tour-row:last-child { margin-bottom: 0; }
.tour-row.rev .tour-copy { order: 2; }
.tour-copy h3 { font-size: 1.5rem; }
.tour-copy p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 14px 0 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; color: var(--text); font-size: 0.94rem; }
.checklist li svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }

/* ---------- languages ---------- */
.langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lang { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--panel); font-weight: 700; font-size: 0.86rem; color: var(--text); }
.lang span { color: var(--faint); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--stroke); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; background: var(--panel); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; transition: transform 160ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; font-size: 0.94rem; }

/* ---------- CTA ---------- */
.cta {
  text-align: center; border-radius: 22px; padding: 60px 30px;
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(34,211,238,0.2), transparent 60%),
    linear-gradient(160deg, var(--panel-2), var(--bg-2));
  border: 1px solid rgba(34,211,238,0.35);
}
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; font-size: 1.05rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--stroke-soft); padding: 46px 0 34px; color: var(--muted); font-size: 0.86rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.footer a { display: block; color: var(--muted); padding: 4px 0; }
.footer a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--stroke-soft); padding-top: 22px; color: var(--faint); }

/* ---------- docs page ---------- */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.docs-nav { position: sticky; top: 88px; }
.docs-nav a { display: block; color: var(--muted); font-size: 0.9rem; padding: 7px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.docs-nav a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.docs-nav .grouplabel { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--faint); margin: 18px 12px 6px; }
.docs-content h2 { font-size: 1.6rem; margin-top: 8px; padding-top: 8px; }
.docs-content h3 { font-size: 1.15rem; margin-top: 30px; }
.docs-content p, .docs-content li { color: var(--muted); }
.docs-content ul, .docs-content ol { padding-left: 20px; }
.docs-content li { margin: 5px 0; }
.docs-content code { font-family: var(--mono); font-size: 0.85em; background: rgba(15,23,42,0.8); border: 1px solid var(--stroke-soft); border-radius: 5px; padding: 1px 6px; color: #a5f3fc; }
.docs-content pre { background: #0a0f1c; border: 1px solid var(--stroke); border-radius: 10px; padding: 16px; overflow-x: auto; }
.docs-content pre code { background: none; border: none; padding: 0; color: #cbd5e1; }
.docs-content .note { border-left: 3px solid var(--brand); background: rgba(34,211,238,0.06); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0; }
.docs-content .note strong { color: var(--text); }

/* ---------- reveal on scroll (progressive enhancement) ----------
   Content is visible by default; the hidden→revealed animation only applies
   when JS is present (html.js), so no-JS users and pre-JS paint see everything. */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .tour-row, .tour-row.rev .tour-copy, .docs-layout { grid-template-columns: 1fr; }
  .tour-row.rev .tour-copy { order: 0; }
  .grid-3, .grid-4, .steps, .stats, .tiles, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--stroke); padding: 16px 22px; gap: 6px;
  }
  .nav-links.open a { padding: 8px 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .nav-cta .btn:not(.nav-toggle) { display: none; }
  .docs-nav { position: static; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .steps, .stats, .tiles, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* ============================================================
   Blue Sentinel additions (rebrand): personas, product shots,
   asset placeholders, cloud/marketplace, differentiation callout
   ============================================================ */

/* Numbered process steps already exist (.steps/.step). Personas: */
.persona { display: flex; flex-direction: column; gap: 8px; }
.persona h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 9px; }
.persona h3 .pi { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.32); flex-shrink: 0; }
.persona h3 .pi svg { width: 17px; height: 17px; color: var(--brand); }
.persona p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Product screenshot frame (browser chrome) */
.shot { border: 1px solid var(--stroke); border-radius: 12px; overflow: hidden; background: var(--bg-2); box-shadow: 0 20px 60px rgba(0,0,0,0.45); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #0b1421; border-bottom: 1px solid var(--stroke-soft); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.shot-bar i:nth-child(1){background:#ef4444aa;} .shot-bar i:nth-child(2){background:#eab308aa;} .shot-bar i:nth-child(3){background:#22c55eaa;}
.shot-bar span { margin-left: 8px; font-size: 0.7rem; color: var(--faint); font-family: var(--mono); }
.shot img { display: block; width: 100%; height: auto; }
.shot-cap { font-size: 0.75rem; color: var(--faint); text-align: center; padding: 8px 12px; }

/* Placeholder for real photos / video b-roll the user will drop in */
.asset-ph { border: 1.5px dashed rgba(34,211,238,0.4); border-radius: 12px; background: rgba(34,211,238,0.04); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 30px 20px; color: var(--muted); min-height: 160px; }
.asset-ph .play { width: 48px; height: 48px; border-radius: 50%; background: rgba(34,211,238,0.14); border: 1px solid rgba(34,211,238,0.4); display: flex; align-items: center; justify-content: center; }
.asset-ph .play svg { width: 22px; height: 22px; color: var(--brand); }
.asset-ph b { color: var(--text); font-size: 0.9rem; }
.asset-ph small { font-size: 0.75rem; color: var(--faint); }

/* Product demo — poster image with a play overlay (facade), or a real <video>/<iframe> */
.video-facade {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px; border-radius: 16px; overflow: hidden; text-decoration: none;
  background-size: cover; background-position: center;
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.video-facade:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(0,0,0,0.55); }
.video-facade .vf-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand); background: rgba(6,14,26,0.6); border: 1px solid rgba(34,211,238,0.35);
  padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.video-facade .vf-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 74px; height: 74px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #06222b; background: var(--brand);
  box-shadow: 0 8px 30px rgba(34,211,238,0.5);
  transition: transform .25s ease;
}
.video-facade:hover .vf-play { transform: translate(-50%, -50%) scale(1.08); }
.video-facade .vf-play svg { margin-left: 3px; }
.video-facade .vf-caption {
  position: relative; z-index: 2; padding: 22px 24px; text-align: left;
}
.video-facade .vf-caption b { display: block; color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.video-facade .vf-caption small { color: rgba(226,238,247,0.82); font-size: 0.9rem; line-height: 1.5; }

/* Real embedded video / iframe — 16:9 responsive frame */
.video-frame {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--stroke);
  border-radius: 16px; overflow: hidden; background: #06121f;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }

@media (max-width: 700px) {
  .video-facade { min-height: 300px; }
  .video-facade .vf-play { width: 60px; height: 60px; }
}

/* Cloud / marketplace */
.cloud-note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); padding: 6px 0; }
.cloud-note svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }
.markets { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.market { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--panel); font-weight: 700; }
.market .m-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; flex-shrink: 0; }
.market.aws .m-ico { background: rgba(255,153,0,0.15); color: #ff9900; border: 1px solid rgba(255,153,0,0.4); }
.market.azure .m-ico { background: rgba(79,195,247,0.15); color: #4fc3f7; border: 1px solid rgba(79,195,247,0.4); }
.market small { display: block; font-weight: 500; color: var(--faint); font-size: 0.68rem; }

/* Full-width differentiation callout */
.callout { text-align: center; padding: 70px 24px; border-top: 1px solid var(--stroke-soft); border-bottom: 1px solid var(--stroke-soft); background: radial-gradient(800px 380px at 50% -30%, rgba(56,189,248,0.12), transparent 60%); }
.callout h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.callout p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }

@media (max-width: 940px) { .persona-grid { grid-template-columns: 1fr; } }
