/* =====================================================================
   Sentinel Systems — homepage (v2)
   Single stylesheet for the homepage. Replaces home.css, home-pro.css,
   home-refined.css, home-elite.css and home-aurora.css.
   Uses the colour tokens declared in styles.css (:root).
   ===================================================================== */

body.home-v2 { background: var(--navy-900); }
.home-v2 main { overflow-x: clip; }

.home-v2 h1, .home-v2 h2, .home-v2 h3 {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
}
.home-v2 p { margin: 0; }

/* ------------------------------------------------------------ shared */
.h2-section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.h2-section-alt {
  background: var(--navy-850);
  border-block: 1px solid var(--line);
}
.h2-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .9rem;
}
.h2-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.h2-head h2, .h2-split h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); line-height: 1.15; }
.h2-head p { color: var(--text-muted); margin-top: .9rem; font-size: 1.05rem; line-height: 1.6; }
.h2-head-row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; text-align: left; margin-bottom: 2rem;
}
.h2-muted { color: var(--text-muted); line-height: 1.65; margin: 1rem 0 1.5rem !important; }
.h2-center { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }

.h2-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.h2-split-top { align-items: start; }
.h2-prose p { color: var(--text-muted); font-size: 1.075rem; line-height: 1.75; }
.h2-prose p + p { margin-top: 1.1rem; }

.h2-btn-lg { padding: .85rem 1.35rem; font-size: .98rem; border-radius: 10px; }
.h2-btn-lg svg { width: 18px; height: 18px; }

.h2-checks { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .65rem; }
.h2-checks li { position: relative; padding-left: 1.7rem; color: var(--text); }
.h2-checks li::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* -------------------------------------------------------------- hero */
.h2-hero { position: relative; padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.h2-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 20%, rgba(59,130,246,.16), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 100%);
  opacity: .55;
}
.h2-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
.h2-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .8rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(17,28,49,.7);
  font-size: .82rem; color: var(--text-muted); text-decoration: none;
  margin-bottom: 1.6rem;
}
.h2-chip:hover { color: var(--text); border-color: var(--brand); }
.h2-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
.h2-chip-sep { color: var(--text-dim); }
.h2-chip-link { color: var(--brand); font-weight: 500; }

.h2-hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.06; font-weight: 700; max-width: 16ch; }
.h2-lead { margin-top: 1.3rem !important; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-muted); line-height: 1.65; max-width: 54ch; }
.h2-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.h2-proof {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2.75rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--line);
  gap: 1rem;
}
.h2-proof div { margin: 0; }
.h2-proof dt { font-size: .78rem; color: var(--text-dim); order: 2; margin-top: .25rem; }
.h2-proof div { display: flex; flex-direction: column; }
.h2-proof dd { margin: 0; font-family: 'Sora', sans-serif; font-size: 1.55rem; font-weight: 600; color: var(--text); order: 1; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------- hero console */
.h2-console {
  background: var(--navy-800);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
}
.h2-console-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.15rem; border-bottom: 1px solid var(--line);
}
.h2-console-title { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; color: var(--text); }
.h2-console-title svg { width: 16px; height: 16px; color: var(--text-muted); }
.h2-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--ok); font-weight: 500; }
.h2-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: h2-pulse 2s ease-in-out infinite; }
@keyframes h2-pulse { 50% { opacity: .35; } }

.h2-search { display: flex; gap: .5rem; padding: 1.1rem 1.15rem .4rem; }
.h2-search input {
  flex: 1; min-width: 0;
  background: var(--navy-900); border: 1px solid var(--line-strong); border-radius: 9px;
  color: var(--text); padding: .65rem .85rem; font: inherit; font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.h2-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.h2-result { padding: 1rem 1.15rem 1.2rem; min-height: 220px; }
.h2-result .hx-idle { display: grid; gap: 1rem; }
.h2-result .hx-idle-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.h2-result .hx-idle-icon.ok  { background: rgba(52,211,153,.12); color: var(--ok); }
.h2-result .hx-idle-icon.bad { background: rgba(248,113,113,.12); color: var(--bad); }
.h2-result .hx-idle-icon svg { width: 20px; height: 20px; }
.h2-result .hx-idle p { display: grid; gap: .25rem; }
.h2-result .hx-idle p strong { color: var(--text); font-size: .98rem; }
.h2-result .hx-idle p span { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }
.h2-result .hx-meta { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.h2-result .hx-meta li { display: flex; justify-content: space-between; padding: .6rem .85rem; font-size: .88rem; }
.h2-result .hx-meta li + li { border-top: 1px solid var(--line); }
.h2-result .hx-meta span { color: var(--text-muted); }
.h2-result .hx-meta strong { color: var(--text); font-variant-numeric: tabular-nums; }
.h2-result .hx-result-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.h2-result .hx-result-head div { flex: 1; min-width: 0; display: grid; }
.h2-result .hx-result-head strong { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-result .hx-result-head em { font-style: normal; color: var(--text-dim); font-size: .8rem; }
.h2-result .hx-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-700); display: grid; place-items: center; color: var(--text); font-weight: 600; object-fit: cover; }
.h2-result .hx-risk { font-size: .74rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: var(--navy-700); color: var(--text-muted); }
.h2-result .hx-risk.bad  { background: rgba(248,113,113,.14); color: #fca5a5; }
.h2-result .hx-risk.warn { background: rgba(251,191,36,.14); color: #fcd34d; }
.h2-result .hx-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; }
.h2-result .hx-tag { font-size: .76rem; padding: .2rem .55rem; border-radius: 6px; background: var(--navy-700); color: var(--text-muted); }
.h2-result .hx-tag.bad  { color: #fca5a5; }
.h2-result .hx-tag.warn { color: #fcd34d; }
.h2-result .hx-result-link { display: inline-block; margin-top: .9rem; font-size: .88rem; font-weight: 500; }
.h2-result .hx-skeleton { display: grid; gap: .6rem; }
.h2-result .sk-row { display: flex; align-items: center; gap: .6rem; }
.h2-result .sk-dot { width: 40px; height: 40px; border-radius: 50%; }
.h2-result .sk-dot, .h2-result .sk-line { background: linear-gradient(90deg, var(--navy-750), var(--navy-700), var(--navy-750)); background-size: 200% 100%; animation: h2-shimmer 1.2s linear infinite; }
.h2-result .sk-line { height: 10px; border-radius: 4px; }
.h2-result .w40 { width: 40%; } .h2-result .w55 { width: 55%; } .h2-result .w60 { width: 60%; } .h2-result .w70 { width: 70%; }
.h2-result .hx-loading-note { margin-top: .9rem !important; font-size: .85rem; color: var(--text-dim); }
@keyframes h2-shimmer { to { background-position: -200% 0; } }

.h2-console-foot { padding: .75rem 1.15rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-dim); background: rgba(10,17,34,.4); }

/* ------------------------------------------------------- logo strip */
.h2-logos { padding: 2.25rem 0; border-block: 1px solid var(--line); background: var(--navy-850); }
.h2-logos-label { text-align: center; font-size: .82rem; color: var(--text-dim); margin-bottom: 1.25rem !important; }
.h2-logos-track { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; }
.h2-logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: .92rem; opacity: .85; transition: opacity .2s, color .2s; }
.h2-logo:hover { opacity: 1; color: var(--text); }
.h2-logo img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; filter: grayscale(.5); }
.h2-logo:hover img { filter: none; }

/* ------------------------------------------------------------- flow */
.h2-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.h2-flow li { position: relative; padding: 1.5rem; background: var(--navy-800); border: 1px solid var(--line); border-radius: var(--radius); }
.h2-flow li:not(:last-child)::after {
  content: ''; position: absolute; top: 2.15rem; right: -1rem; width: 1rem; height: 1px; background: var(--line-strong);
}
.h2-flow-n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .88rem; margin-bottom: 1rem;
}
.h2-flow h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.h2-flow p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

/* --------------------------------------------------------- features */
.h2-features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--line); gap: 1px;
}
.h2-feature { background: var(--navy-900); padding: 1.85rem; transition: background .2s; }
.h2-feature:hover { background: var(--navy-850); }
.h2-feature-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-strong); color: var(--brand); margin-bottom: 1.1rem; }
.h2-feature-icon svg { width: 19px; height: 19px; }
.h2-feature h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.h2-feature p { color: var(--text-muted); font-size: .93rem; line-height: 1.6; }
.h2-feature code { font-size: .85em; background: var(--navy-750); padding: .1em .35em; border-radius: 4px; }

/* -------------------------------------------------------- flag list */
.h2-flags { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.h2-flags li {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1rem; background: var(--navy-800); border: 1px solid var(--line); border-radius: 10px;
}
.h2-flags li div { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.h2-flags strong { color: var(--text); font-size: .95rem; }
.h2-flags span:not(.h2-flag-dot) { color: var(--text-muted); font-size: .84rem; }
.h2-flag-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--flag); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--flag) 20%, transparent); }
.h2-sev { font-style: normal; font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--navy-700); color: var(--text-muted); flex: none; }
.h2-sev-critical { background: rgba(248,113,113,.16); color: #fca5a5; }
.h2-sev-high     { background: rgba(251,146,60,.14); color: #fdba74; }
.h2-sev-medium   { background: rgba(251,191,36,.12); color: #fcd34d; }
.h2-sev-low      { background: rgba(96,165,250,.12); color: #93c5fd; }

/* ------------------------------------------------------------- code */
.h2-code {
  margin: 0; padding: 1.5rem; background: var(--navy-850); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; line-height: 1.7;
  color: var(--text-muted); overflow-x: auto;
}
.h2-code .c-k { color: #93c5fd; font-weight: 600; }
.h2-code .c-n { color: #fcd34d; }
.h2-code .c-s { color: #86efac; }
.h2-code .c-b { color: #f9a8d4; }

/* ----------------------------------------------------------- addons */
.h2-addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; max-width: 900px; margin: 0 auto; }
.h2-addon { padding: 1.6rem; background: var(--navy-800); border: 1px solid var(--line); border-radius: var(--radius); }
.h2-addon-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.h2-addon-platform { font-size: .76rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.h2-addon-badge { font-size: .72rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; background: rgba(251,191,36,.12); color: #fcd34d; }
.h2-addon h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.h2-addon p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

/* ------------------------------------------------------- principles */
.h2-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.h2-principles div { border-top: 2px solid var(--brand); padding-top: 1.1rem; }
.h2-principles h3 { font-size: 1rem; margin-bottom: .45rem; }
.h2-principles p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

/* ------------------------------------------------------------- news */
.h2-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.h2-news-card {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem;
  background: var(--navy-800); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color .2s, transform .2s;
}
.h2-news-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.h2-news-thumb { display: block; margin: -1.25rem -1.25rem .5rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.h2-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.h2-news-meta { font-size: .78rem; color: var(--text-dim); }
.h2-news-card h3 { font-size: 1.02rem; line-height: 1.35; }
.h2-news-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.55; }

/* -------------------------------------------------------------- FAQ */
.h2-faq { max-width: none; margin: 0; }

/* -------------------------------------------------------- final CTA */
.h2-final {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(59,130,246,.03));
  border: 1px solid rgba(59,130,246,.3); border-radius: 18px;
}
.h2-final h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.h2-final p { color: var(--text-muted); margin-top: .5rem !important; }
.h2-final .h2-cta { margin-top: 0; }

/* -------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .h2-hero-inner, .h2-split { grid-template-columns: 1fr; }
  .h2-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2-flow li::after { display: none; }
  .h2-features, .h2-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .h2-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2-flow, .h2-features, .h2-news, .h2-principles { grid-template-columns: 1fr; }
  .h2-head-row { flex-direction: column; align-items: flex-start; }
  .h2-cta .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .h2-live i, .h2-result .sk-dot, .h2-result .sk-line { animation: none; }
}

.home-v2 .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
