/* ═══════════════════════════════════════════
   PRODUCTS.CSS — shared design-system layer
   Load: after base.css, before product CSS.
   Bridges base.css token names to the new
   oklch system used by new_index / legal / blog.
═══════════════════════════════════════════ */

/* ─── New oklch tokens ─── */
:root {
  --bg:       oklch(0.975 0.007 75);
  --bg2:      oklch(0.955 0.007 75);
  --bg3:      oklch(0.930 0.008 75);
  --line:     oklch(0.875 0.006 75);
  --text:     oklch(0.14  0.012 250);
  --text-dim: oklch(0.46  0.010 250);
  --text-sub: oklch(0.64  0.008 250);
  --accent:   oklch(0.34  0.08  162);
  --accent-l: oklch(0.34  0.08  162 / 0.09);
  --f-serif:  Georgia, Garamond, "Palatino Linotype", "Times New Roman", serif;
  --f-sans:   system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono:   ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --pad:      max(24px, 5vw);

  /* Bridge: old base.css names → new tokens */
  --panel:       var(--bg2);
  --panel2:      var(--bg3);
  --panel-alt:   var(--bg3);
  --panel-strong: var(--bg3);
  --border:      var(--line);
  --muted:       var(--text-sub);
  --sans:        var(--f-sans);
  --mono:        var(--f-mono);
  --radius:      3px;
  --shadow:      none;
  --shadow2:     none;
  --accent-2:    var(--accent);
  --accent2:     var(--accent);

  /* Status colours — kept for animation use */
  --good: oklch(0.52 0.14 155);
  --warn: oklch(0.62 0.16 75);
  --bad:  oklch(0.52 0.20 20);
  --info: oklch(0.50 0.12 240);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       oklch(0.10  0.010 200);
    --bg2:      oklch(0.135 0.010 200);
    --bg3:      oklch(0.165 0.010 200);
    --line:     oklch(0.24  0.008 200);
    --text:     oklch(0.93  0.005 75);
    --text-dim: oklch(0.66  0.008 200);
    --text-sub: oklch(0.48  0.006 200);
    --accent:   oklch(0.72  0.14  162);
    --accent-l: oklch(0.72  0.14  162 / 0.10);
    --good: oklch(0.72 0.16 155);
    --warn: oklch(0.80 0.16 75);
    --bad:  oklch(0.70 0.22 20);
    --info: oklch(0.70 0.12 240);
  }
}

/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; background: none; border: none; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* ═══════════════════════════════════════════
   SITE HEADER — fixed 60px, matches new_index
═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: oklch(0.975 0.007 75 / 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: oklch(0.10 0.010 200 / 0.92); }
}
.logo-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.logo-mark { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.logo-name {
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.03em; line-height: 1.2;
}
.logo-name small {
  display: block; font-size: 10px; font-weight: 400;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-sub);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.header-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ═══════════════════════════════════════════
   WRAP — clear fixed header, remove old padding
═══════════════════════════════════════════ */
.wrap {
  max-width: none;
  margin: 0;
  padding: 60px 0 0;
}

/* ═══════════════════════════════════════════
   CARD — flat, no glassmorphism
═══════════════════════════════════════════ */
.card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ═══════════════════════════════════════════
   BUTTONS — rectangular, accent-bordered
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--text-sub);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn.primary, .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.btn.primary:hover, .btn-primary:hover { opacity: 0.85; color: var(--bg); }
.btn.ghost, .btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text-sub);
}
.btn.ghost:hover, .btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container,
main .container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ═══════════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════════ */
.site-footer {
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-sub);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  background: var(--bg);
}
.site-footer a {
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s;
}
.site-footer a::after { display: none; }
.site-footer a:hover { color: var(--text); }
.site-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .site-footer { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════
   PRODUCT-SPECIFIC OVERRIDES
   Flatten rounded elements that aren't demos/animations.
   Demo UI shells (terminal, app-shell) keep their
   own visual identity as product mockups.
═══════════════════════════════════════════ */

/* VulnScan */
.threat-card, .threat-note {
  border-radius: 0;
  box-shadow: none;
  border-color: var(--line);
  background: var(--bg2);
}
.threat-card h3 { color: var(--text); }

/* VulnScan: severity cards & ai-reco are demo UI — keep but re-token */
.severity-card { border-radius: 0; }
.severity-card ul li { border-radius: 0; background: var(--bg3); border-color: var(--line); }
.ai-reco { border-radius: 0; background: var(--bg3); }
.ai-reco li { border-radius: 0; background: var(--bg2); border-color: var(--line); }
.scan-progress { border-radius: 0; }
.scan-input { border-radius: 0; }
.scan-button { border-radius: 0; }
.scan-button:not(.disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* DocGuard: problem panel, callout */
.panel { border-radius: 0; box-shadow: none; }
.callout { border-radius: 0; }
.callout-wrap { border-radius: 0; }

/* ConnGuard (af.css): section card */
.hero-main, .hero-side { border-radius: 0; }
.section .card { border-radius: 0; }
.pill { border-radius: 3px; }
.kicker { border-radius: 3px; }

/* DarkWeb monitor: remark, stat cards, siem alerts */
.remark { border-radius: 0; box-shadow: none; border-color: var(--line); background: var(--bg2); }
.stat-card { border-radius: 0; box-shadow: none; border-color: var(--line); background: var(--bg2); }
.siem-alert { border-radius: 0; box-shadow: none; border-color: var(--line); background: var(--bg2); }
.defense-note { border-radius: 0; border-color: var(--line); background: var(--bg2); }

/* Shared product FAQ */
.product-faq .section-head {
  max-width: 720px;
}

.product-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-faq-item {
  padding: 22px;
  background: var(--bg2);
  border: 1px solid var(--line);
}

.product-faq-item h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.product-faq-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

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