/* Bostra Security — landing page
   Dark, technical, scanner/severity motif. Self-contained brand (not zlef). */

:root {
  --bg: #070b0e;
  --bg-soft: #0c1216;
  --panel: #0f161b;
  --panel-2: #131c22;
  --line: #1d2a31;
  --line-soft: #16212733;
  --txt: #e7eef0;
  --txt-dim: #93a3a8;
  --txt-faint: #5d6f76;
  --acc: #54f0c8;          /* signal green-cyan */
  --acc-2: #37c9e6;        /* probe blue */
  --acc-deep: #0e4b3f;
  --warn: #ffb454;         /* severity amber */
  --crit: #ff5d6c;         /* critical */
  --radius: 14px;
  --maxw: 1120px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background */
.grid-bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(84,240,200,.10), transparent 60%),
    radial-gradient(900px 500px at 10% 12%, rgba(55,201,230,.07), transparent 60%),
    linear-gradient(transparent 0, transparent 39px, var(--line-soft) 40px),
    linear-gradient(90deg, transparent 0, transparent 39px, var(--line-soft) 40px);
  background-size: auto, auto, 40px 40px, 40px 40px;
  mask-image: radial-gradient(circle at 50% 22%, black, transparent 92%);
}
.scan-line {
  position: fixed; left: 0; right: 0; height: 140px; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(84,240,200,.05), transparent);
  animation: scan 9s linear infinite;
  pointer-events: none;
}
@keyframes scan { 0% { top: -160px; } 100% { top: 110%; } }
@media (prefers-reduced-motion: reduce) { .scan-line { display: none; } }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 16px clamp(18px, 5vw, 40px);
  max-width: var(--maxw); margin: 0 auto;
  width: 100%;
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(7,11,14,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .3s var(--ease);
}
.nav.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--acc); }
.brand-mark { width: 26px; height: 26px; }
.brand-text { font-weight: 700; letter-spacing: -.02em; font-size: 18px; color: var(--txt); }
.brand-slash { color: var(--acc); margin: 0 1px; }
.brand-sub { color: var(--txt-dim); font-weight: 500; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; }
.nav-links a { color: var(--txt-dim); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--txt); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--acc); transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 10px;
  background: var(--acc); color: #04110d;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  box-shadow: 0 6px 22px rgba(84,240,200,.18);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(84,240,200,.3); }
.btn-sm { padding: 9px 16px; font-size: 14px; margin-left: 0; box-shadow: none; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-ghost {
  background: transparent; color: var(--txt);
  border-color: var(--line); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); box-shadow: none; }
.btn-acc { background: var(--acc); }
.btn-block { width: 100%; }
.offer .btn-block { background: transparent; color: var(--txt); border-color: var(--line); box-shadow: none; margin-top: auto; }
.offer .btn-block:hover { border-color: var(--acc); color: var(--acc); }
.offer .btn-acc { background: var(--acc); color: #04110d; }
.offer .btn-acc:hover { color: #04110d; }

/* ---------- HERO ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 9vw, 100px) clamp(18px, 5vw, 40px) clamp(40px, 7vw, 80px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.eyebrow { display: none; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px); line-height: 1.04;
  font-weight: 700; letter-spacing: -.025em; margin-bottom: 22px;
}
.lede { font-size: clamp(16px, 1.8vw, 19px); color: var(--txt-dim); max-width: 46ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; }
.hero-meta li {
  font-family: var(--mono); font-size: 13px; color: var(--txt-dim);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel);
}
.hero-meta li::before { content: '▸ '; color: var(--acc); }

/* Terminal card */
.hero-card { perspective: 1200px; }
.term {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.03);
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.hero-card:hover .term { transform: rotateY(0deg) rotateX(0deg); }
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.25);
}
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3940; }
.term-bar span:nth-child(1) { background: #ff5d6c; }
.term-bar span:nth-child(2) { background: #ffb454; }
.term-bar span:nth-child(3) { background: #54f0c8; }
.term-bar b { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--txt-faint); font-weight: 500; }
.term-body { padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.85; overflow-x: auto; }
.term-body code { white-space: pre; }
.c-dim { color: var(--txt-faint); }
.c-ok { color: var(--acc); }
.c-warn { color: var(--warn); }
.c-acc { color: var(--acc-2); }
.term-body b { color: var(--txt); font-weight: 600; }
.term-body .c-warn b { color: var(--warn); }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 40px); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.kicker {
  font-family: var(--mono); font-size: 13px; color: var(--acc);
  text-transform: lowercase; letter-spacing: .04em;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.02em; margin: 12px 0 14px; line-height: 1.1; }
.section-head p { color: var(--txt-dim); font-size: 17px; }

/* Cards 3 */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--acc-deep); background: var(--panel-2); }
.card-ico {
  font-family: var(--mono); font-size: 22px; color: var(--acc);
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--acc-deep); border-radius: 12px;
  background: rgba(84,240,200,.05); margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { color: var(--txt-dim); font-size: 15px; }

/* ---------- OFFERS ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.offer {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s var(--ease), border-color .25s;
}
.offer:hover { transform: translateY(-4px); }
.offer-feature {
  background: linear-gradient(180deg, rgba(84,240,200,.06), var(--panel));
  border-color: var(--acc-deep);
  box-shadow: 0 24px 60px rgba(84,240,200,.08);
}
.offer-flag {
  position: absolute; top: -11px; left: 24px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  color: #04110d; background: var(--acc); padding: 4px 11px; border-radius: 100px;
}
.offer-top { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.offer-tag {
  font-family: var(--mono); font-size: 12px; color: var(--txt-dim);
  text-transform: uppercase; letter-spacing: .06em;
}
.offer h3 { font-size: 22px; margin: 10px 0 12px; letter-spacing: -.01em; }
.offer-price .amt { font-size: 30px; font-weight: 700; color: var(--acc); letter-spacing: -.02em; }
.offer-feature .offer-price .amt { color: var(--acc); }
.offer-d { color: var(--txt-dim); font-size: 14.5px; margin-bottom: 18px; }
.offer-list { list-style: none; margin-bottom: 24px; display: grid; gap: 10px; }
.offer-list li { font-size: 14px; color: var(--txt); padding-left: 24px; position: relative; }
.offer-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--acc); font-weight: 700; font-family: var(--mono);
}

/* ---------- PRICING MATRIX ---------- */
.matrix { position: relative; }
.matrix-table {
  width: 100%; border-collapse: separate; border-spacing: 6px;
  font-family: var(--mono); font-size: 14px;
}
.matrix-table th, .matrix-table td { padding: 14px 12px; text-align: center; border-radius: 9px; }
.matrix-table thead th {
  background: var(--panel-2); color: var(--txt); border: 1px solid var(--line);
  font-weight: 600; font-size: 13px;
}
.matrix-table .corner { background: transparent; border-color: transparent; color: var(--txt-faint); text-align: left; font-weight: 500; }
.matrix-table tbody th {
  background: var(--panel); border: 1px solid var(--line);
  text-align: left; color: var(--txt); font-weight: 500; white-space: nowrap;
}
.lv { color: var(--txt); border: 1px solid var(--line); font-weight: 600; transition: transform .2s, filter .2s; }
.lv:hover { transform: scale(1.06); filter: brightness(1.15); }
.lv1 { background: rgba(84,240,200,.08); color: var(--acc); }
.lv2 { background: rgba(55,201,230,.10); color: var(--acc-2); }
.lv3 { background: rgba(255,180,84,.12); color: var(--warn); }
.lv4 { background: rgba(255,93,108,.14); color: var(--crit); }
.matrix-y { display: none; }
.matrix-note { margin-top: 20px; color: var(--txt-faint); font-size: 13.5px; max-width: 62ch; }

/* ---------- STEPS ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease);
}
.step:hover { border-color: var(--acc-deep); transform: translateY(-3px); }
.step-n { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--acc); display: block; margin-bottom: 10px; letter-spacing: .06em; opacity: .7; }
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { color: var(--txt-dim); font-size: 13.5px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
  padding: 4px 20px; transition: border-color .2s;
}
.faq details[open] { border-color: var(--acc-deep); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '+'; font-family: var(--mono); color: var(--acc);
  font-size: 20px; transition: transform .25s var(--ease); line-height: 1;
}
.faq details[open] summary::before { transform: rotate(45deg); }
.faq p { color: var(--txt-dim); font-size: 15px; padding: 0 0 18px 28px; }

/* ---------- CTA BAND ---------- */
.cta-band {
  max-width: var(--maxw); margin: 0 auto clamp(40px,7vw,80px); padding: clamp(48px,7vw,80px) 32px;
  text-align: center; border-radius: 20px;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(84,240,200,.14), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.02em; margin-bottom: 14px; }
.cta-band p { color: var(--txt-dim); font-size: 18px; margin-bottom: 30px; }

/* ---------- FOOTER ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 36px clamp(18px,5vw,40px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-brand p { color: var(--txt-faint); font-size: 14px; margin-top: 8px; max-width: 38ch; }
.footer-meta { display: flex; flex-direction: column; gap: 6px; text-align: right; font-size: 14px; color: var(--txt-faint); }
.footer-meta a { color: var(--txt-dim); }
.footer-meta a:hover { color: var(--acc); }

/* ---------- REVEAL ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { order: -1; max-width: 480px; }
  .term { transform: none; }
  .cards-3, .offers { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .matrix-table { font-size: 12.5px; }
  .matrix-table th, .matrix-table td { padding: 11px 7px; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .footer-meta { text-align: left; }
  .matrix { overflow-x: auto; }
  .matrix-table { min-width: 460px; }
}
