/* ============================================================
   OPREP — Layout
   Nav, hero, sections, grids, cards, footer.
   Component styles used across all pages.
   ============================================================ */

/* ── Nav ────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 20, 0.85);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border-bottom: 1px solid var(--line-dim);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand svg {
  color: var(--accent);
}

.nav-brand .wordmark {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-mid);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  color: var(--text);
  padding: 6px;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    padding: 20px 28px;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .nav-cta {
    display: none;
  }
}

/* ── Hero (full-bleed image, text overlaid on top) ──────── */

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  filter: brightness(0.62) saturate(0.85);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--bg) 0%,
    var(--bg) 42%,
    rgba(12, 14, 20, 0.68) 68%,
    rgba(12, 14, 20, 0.36) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s-11) 28px var(--s-9);
  display: flex;
  flex-direction: column;
  min-height: 86vh;
  box-sizing: border-box;
}

.hero-text {
  max-width: 560px;
}

.hero-readout {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: var(--s-6);
}

.hero h1 {
  margin: 0 0 var(--s-5);
  max-width: 18ch;
}

.hero h1 u {
  text-decoration: none;
  color: var(--accent);
}

.hero-sub {
  font-size: 19px;
  color: var(--text-mid);
  max-width: 56ch;
  margin: 0 0 var(--s-7);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
}

.hero-meta {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  font-size: var(--fs-caption);
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.hero-meta .dot {
  width: 6px;
  height: 6px;
}

.hero-meta .d-a { background: var(--accent); }
.hero-meta .d-o { background: var(--ops); }
.hero-meta .d-w { background: var(--warn); }

.hero-bottom {
  margin-top: auto;
  padding-top: var(--s-8);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 1.5px;
  color: var(--text-dim);
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }
  .hero-inner {
    min-height: auto;
    padding: var(--s-9) var(--s-5) var(--s-8);
  }
  .hero h1 { max-width: none; }
}

/* ── Generic section ────────────────────────────────────── */

section {
  padding: var(--s-10) 0;
  border-bottom: 1px solid var(--line);
}

section.no-border {
  border-bottom: none;
}

.section-head {
  max-width: 780px;
  margin: 0 0 var(--s-8);
}

.section-head.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head .eyebrow {
  margin-bottom: var(--s-5);
}

.section-head h2 {
  margin-bottom: var(--s-4);
}

.section-head p {
  font-size: 17px;
  max-width: 60ch;
}

/* ── Proof band ─────────────────────────────────────────── */

.proof-band {
  padding: 0;
  background: var(--bg-deep);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .proof-grid { grid-template-columns: 1fr; } }

.proof-item {
  min-height: 112px;
  padding: var(--s-5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
}

.proof-item span {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 2px;
  color: var(--accent);
}

.proof-item strong {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}

/* ── Problem (editorial 2-column, no cards) ─────────────── */

.problem-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s-9);
  align-items: start;
}

@media (max-width: 900px) {
  .problem-inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}

.problem-intro .eyebrow {
  margin-bottom: var(--s-5);
}

.problem-intro h2 {
  margin-bottom: var(--s-4);
}

.problem-intro p {
  font-size: 17px;
  max-width: 42ch;
}

.problem-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.problem-item {
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-5);
  align-items: baseline;
}

.problem-item .num {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 2px;
  color: var(--danger);
  text-transform: uppercase;
}

.problem-item h3 {
  font-size: 18px;
  margin-bottom: var(--s-3);
  color: var(--text);
}

.problem-item p {
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .problem-item {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }
}

/* ── Solution (full-bleed, sharp) ───────────────────────── */

.solution {
  padding: var(--s-10) 0;
  border-bottom: 1px solid var(--line-dim);
}

.solution-head {
  max-width: 1200px;
  margin: 0 auto var(--s-7);
  padding: 0 28px;
}

.solution-head .eyebrow {
  margin-bottom: var(--s-4);
}

.solution-head h2 {
  max-width: 22ch;
  margin-bottom: var(--s-4);
}

.solution-head p {
  font-size: 17px;
  max-width: 60ch;
}

.solution-screen {
  max-width: 1440px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  overflow: hidden;
}

.solution-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.solution-caption {
  max-width: 1440px;
  margin: var(--s-3) auto 0;
  padding: 0 28px;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 1.5px;
  color: var(--text-dim);
}

/* ── Evidence flow ──────────────────────────────────────── */

.evidence-flow {
  background: var(--bg);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

@media (max-width: 900px) { .flow-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow-steps { grid-template-columns: 1fr; } }

.flow-step {
  position: relative;
  padding: var(--s-6);
  min-height: 220px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
}

.flow-step::after {
  content: "";
  position: absolute;
  top: var(--s-6);
  right: var(--s-5);
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.flow-step:last-child::after {
  display: none;
}

@media (max-width: 900px) {
  .flow-step:nth-child(2)::after { display: none; }
}

@media (max-width: 560px) {
  .flow-step::after { display: none; }
}

.flow-step span {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: var(--s-6);
}

.flow-step h3 {
  font-size: 17px;
  margin-bottom: var(--s-3);
}

.flow-step p {
  font-size: 13px;
  line-height: 1.7;
}

/* ── How it works (4 stages) ────────────────────────────── */

.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

.stage {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: var(--s-6);
  position: relative;
}

.stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.stage:nth-child(2)::before { background: var(--ops); }
.stage:nth-child(3)::before { background: var(--warn); }
.stage:nth-child(4)::before { background: var(--purple); }

.stage-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: var(--s-5);
  text-transform: uppercase;
}

.stage-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--s-4);
}

.stage ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stage li {
  font-size: 13px;
  color: var(--text-mid);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-dim);
}

.stage li:last-child {
  border: 0;
}

/* ── Capabilities (6 cards) ─────────────────────────────── */

.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .caps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .caps-grid { grid-template-columns: 1fr; } }

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color var(--t-base);
  display: flex;
  flex-direction: column;
}

.cap-card:hover {
  border-color: var(--accent);
}

.cap-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.cap-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.95);
  transition: filter var(--t-base);
}

.cap-card:hover .cap-thumb img {
  filter: brightness(1) saturate(1);
}

.cap-body {
  padding: var(--s-5) var(--s-6) var(--s-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cap-label {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

.cap-card h3 {
  font-size: 17px;
  margin-bottom: var(--s-3);
}

.cap-card p {
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}

.cap-stats {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-dim);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--line);
  letter-spacing: 0.5px;
}

/* ── Intelligence products ──────────────────────────────── */

.products {
  background: var(--bg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

@media (max-width: 980px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product-item {
  min-height: 124px;
  padding: var(--s-5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-item span {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 1.5px;
  color: var(--accent);
}

.product-item strong {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}

/* ── Sovereign (dramatic dark band) ─────────────────────── */

.sovereign {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-11) 0;
}

.sovereign-head {
  max-width: 1200px;
  margin: 0 auto var(--s-8);
  padding: 0 28px;
}

.sovereign-head .eyebrow {
  margin-bottom: var(--s-5);
}

.sovereign-head h2 {
  max-width: 18ch;
  margin-bottom: var(--s-4);
}

.sovereign-head p {
  font-size: 17px;
  max-width: 60ch;
}

.pillars {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}

.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.pillar:nth-child(2)::before { background: var(--ops); }
.pillar:nth-child(3)::before { background: var(--warn); }
.pillar:nth-child(4)::before { background: var(--purple); }

.pillar-label {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
  display: block;
}

.pillar h3 {
  font-size: 16px;
  margin-bottom: var(--s-3);
  color: var(--text);
  letter-spacing: -0.01em;
}

.pillar p {
  font-size: 13px;
  line-height: 1.6;
}

.deployment-strip {
  max-width: 1200px;
  margin: var(--s-7) auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) { .deployment-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .deployment-strip { grid-template-columns: 1fr; } }

.deployment-item {
  padding: var(--s-5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--bg-deep);
}

.deployment-item:last-child {
  border-right: 1px solid var(--line);
}

@media (max-width: 900px) {
  .deployment-item:nth-child(2) { border-right: 1px solid var(--line); }
  .deployment-item:nth-child(n+3) { border-top: 0; }
}

@media (max-width: 560px) {
  .deployment-item {
    border-right: 1px solid var(--line);
  }
  .deployment-item:nth-child(n+2) { border-top: 0; }
}

.deployment-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

.deployment-item strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}

.deployment-note {
  max-width: 1200px;
  margin: var(--s-5) auto 0;
  padding: 0 28px;
  font-size: 14px;
  color: var(--text-mid);
}

/* ── CTA section ────────────────────────────────────────── */

.cta {
  padding: var(--s-11) 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.cta-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}

.cta-inner .eyebrow {
  margin-bottom: var(--s-4);
}

.cta h2 { margin-bottom: var(--s-4); }

.cta p {
  font-size: 18px;
  margin: 0 auto var(--s-7);
  max-width: 60ch;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  padding: var(--s-8) 0 var(--s-7);
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--s-7);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 14px;
}

.footer-links {
  display: flex;
  gap: var(--s-7);
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: var(--fs-small);
  margin-bottom: 14px;
  color: var(--text);
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--s-7) auto 0;
  padding: var(--s-5) 28px 0;
  border-top: 1px solid var(--line-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
