/* ==========================================================================
   Forensic AI — design tokens
   Direction: evidence board / case file, not "AI SaaS purple gradient".
   Display: Archivo (heavy, condensed feel) · Body: IBM Plex Sans
   Data/labels: IBM Plex Mono — every number on this page reads like a
   logged measurement, not decoration.
   ========================================================================== */

:root {
  --ink: #0e0f11;
  --ink-soft: #17181b;
  --ink-line: rgba(255, 255, 255, 0.12);
  --ink-line-strong: rgba(255, 255, 255, 0.22);
  --paper: #ece9e1;
  --paper-line: rgba(14, 15, 17, 0.14);
  --paper-line-strong: rgba(14, 15, 17, 0.26);

  --accent: #4b1c71;        /* brand purple — filled buttons, badges, light-bg text */
  --accent-on-dark: #b892e6;/* lighter tint for text/lines sitting directly on --ink */
  --accent-ink: #ffffff;
  --alert: #c1432b;         /* flagged / synthetic-detected marker */

  --muted-dark: #9a988c;
  --muted-light: #5c5a4f;

  --radius-sm: 6px;
  --radius-md: 12px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --display: 'Archivo', var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; }

.section-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- tag / eyebrow: reads like a case-file label, not a pill ---- */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}
.on-light .tag,
.section-copy .tag,
.center-copy .tag { color: var(--accent); }

/* ================================ NAVBAR ================================ */
.navbar {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(14, 15, 17, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.navbar-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  color: #f2f0e8;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--accent-on-dark);
  color: var(--accent-on-dark);
  font-family: var(--mono);
  font-weight: 700;
  border-radius: 4px;
  font-size: 13px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfccc0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent-on-dark); }
.nav-cta {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 700;
}
.nav-cta:hover { background: #5f2690; }
.nav-toggle { display: none; border: 1px solid var(--ink-line-strong); border-radius: 4px; background: transparent; cursor: pointer; width: 40px; height: 36px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #f2f0e8; margin: 4px auto; }

/* ================================= HERO ================================= */
.hero {
  background: var(--ink);
  color: #f2f0e8;
  padding: 88px 0 96px;
}
.hero-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 20px 0 22px;
  max-width: 620px;
}
.hero h1 em { font-style: normal; color: var(--accent-on-dark); }
.hero p { font-size: 18px; color: #b7b4a6; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #5f2690; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #f2f0e8; border-color: var(--ink-line-strong); }
.btn-secondary:hover { border-color: var(--accent-on-dark); color: var(--accent-on-dark); }

.hero-readout { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-readout div { font-family: var(--mono); }
.hero-readout span { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #7d7b6f; margin-bottom: 4px; }
.hero-readout strong { font-size: 15px; font-weight: 600; color: #f2f0e8; }

/* ---- signature element: the evidence-frame card ---- */
.evidence-frame {
  position: relative;
  padding: 26px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
}
.evidence-frame::before,
.evidence-frame::after,
.frame-corner-b::before,
.frame-corner-b::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--accent-on-dark);
}
.evidence-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.evidence-frame::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.frame-corner-b::before { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.frame-corner-b::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.exhibit-tag {
  position: absolute;
  top: 18px; right: -10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 12px 5px 16px;
  transform: rotate(3deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.evidence-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--ink-line); }
.evidence-header .small-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #7d7b6f; }
.evidence-header h2 { font-family: var(--display); font-size: 24px; margin: 4px 0 0; color: #f2f0e8; letter-spacing: -0.01em; }
.status-pill { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--alert); color: var(--alert); border-radius: 4px; white-space: nowrap; }

.scan-area {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(rgba(184,146,230,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,146,230,0.08) 1px, transparent 1px),
    #101113;
  background-size: 24px 24px, 24px 24px, auto;
  border: 1px solid var(--ink-line);
  overflow: hidden;
}
.face-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 148px; height: 148px; border-radius: 50%;
  border: 1.5px dashed rgba(184,146,230,0.55);
}
.scan-line {
  position: absolute; left: 24px; right: 24px; height: 1px;
  background: var(--accent-on-dark);
  box-shadow: 0 0 16px var(--accent-on-dark);
  animation: scan 3s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 28px; } 50% { top: 230px; } }
.coord-ticks span {
  position: absolute; font-family: var(--mono); font-size: 10px; color: #625f52;
}
.score-readout {
  position: absolute; right: 14px; bottom: 14px;
  padding: 12px 14px;
  background: rgba(14,15,17,0.85);
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--radius-sm);
  text-align: right;
}
.score-readout span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #9a988c; }
.score-readout strong { display: block; font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--alert); letter-spacing: -0.01em; }

.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 16px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.metrics-grid div { padding: 12px 14px; background: var(--ink-soft); }
.metrics-grid span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #7d7b6f; }
.metrics-grid strong { display: block; margin-top: 4px; font-family: var(--mono); font-size: 14px; color: #f2f0e8; }

/* ---- intro strip ---- */
.intro-strip {
  padding: 46px 0;
  background: var(--ink);
  color: #f2f0e8;
  border-top: 1px solid var(--ink-line);
}
.intro-strip p {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(21px, 3vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #d9d6c9;
}
.intro-strip strong { color: var(--accent-on-dark); font-weight: 700; }

/* ============================ LIGHT SECTIONS ============================ */
.on-light { background: var(--paper); color: var(--ink); }
.split-section, .use-cases, .plans-section { padding: 96px 0; }

.section-copy h2, .center-copy h2, .demo-copy h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 16px 0;
}
.section-copy p, .center-copy p, .demo-copy p { color: var(--muted-light); font-size: 17px; max-width: 46ch; }
.center-copy { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.center-copy p { margin: 0 auto; }

.split-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: start; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); }
.feature-card { background: var(--paper); padding: 26px; }
.feature-index { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.05em; }
h3 { font-family: var(--display); margin: 14px 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
article p { color: var(--muted-light); margin: 0; font-size: 15px; }

/* ---- workflow: dark, genuinely a numbered sequence ---- */
.workflow-section { padding: 96px 0; background: var(--ink); color: #f2f0e8; }
.workflow-section .center-copy p { color: #b7b4a6; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); counter-reset: step; }
.workflow-grid article { background: var(--ink-soft); padding: 26px; position: relative; }
.workflow-grid article span { display: block; font-family: var(--mono); font-size: 13px; color: var(--accent-on-dark); margin-bottom: 12px; }
.workflow-grid h3 { color: #f2f0e8; }
.workflow-grid p { color: #9a988c; font-size: 14px; }

/* ---- use cases ---- */
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); }
.use-grid article { background: var(--paper); padding: 26px; }
.use-grid article:first-child { grid-column: span 2; }
.use-grid .feature-index { display: inline-block; margin-bottom: 6px; }

/* ---- security: dark case-file panel ---- */
.security-section { padding: 0 0 96px; background: var(--paper); }
.security-card {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 36px;
  padding: 46px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #f2f0e8;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink-line);
}
.security-card h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; margin: 16px 0; }
.security-card p { color: #b7b4a6; max-width: 46ch; }
.security-list { display: grid; gap: 1px; align-content: start; background: var(--ink-line); border: 1px solid var(--ink-line); }
.security-list span {
  padding: 15px 16px;
  background: var(--ink-soft);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.security-list span::before { content: '—'; color: var(--accent-on-dark); }

/* ---- plans: case-folder tabs ---- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card {
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  background: var(--paper);
  position: relative;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(75, 28, 113, 0.14);
}
.plan-card.featured:hover {
  border-color: var(--accent-on-dark);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.plan-card h3 { font-size: 22px; }
.plan-card p { min-height: 44px; }
.plan-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.plan-card li { font-size: 14px; color: var(--muted-light); padding-left: 18px; position: relative; }
.plan-card li::before { content: '·'; position: absolute; left: 0; color: var(--accent); font-weight: 700; font-size: 18px; line-height: 0.9; top: -2px; }
.plan-card a { display: inline-flex; margin-top: 22px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.plan-card.featured { background: var(--ink); color: #f2f0e8; border-color: var(--ink); }
.plan-card.featured h3, .plan-card.featured p, .plan-card.featured li { color: #d9d6c9; }
.plan-card.featured li::before { color: var(--accent-on-dark); }
.plan-card.featured a { color: var(--accent-on-dark); border-color: var(--accent-on-dark); }
.plan-card.featured::after {
  content: 'RECOMMENDED';
  position: absolute; top: -1px; right: 22px;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 10px;
}

/* ---- demo ---- */
.demo-section { padding: 96px 0 110px; background: var(--ink); color: #f2f0e8; }
.demo-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 46px; align-items: start; }
.demo-copy h2 { color: #f2f0e8; }
.demo-copy p { color: #b7b4a6; }
.demo-form { padding: 30px; border-radius: var(--radius-md); background: var(--ink-soft); border: 1px solid var(--ink-line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #9a988c; margin-bottom: 16px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  font: 15px/1.4 var(--sans);
  color: #f2f0e8;
  outline: none;
  background: #101113;
}
input::placeholder, textarea::placeholder { color: #625f52; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-on-dark); box-shadow: 0 0 0 3px rgba(184,146,230,0.18); }
select { color: #f2f0e8; }
.form-note { font-family: var(--mono); color: #7d7b6f; font-size: 12px; margin-top: 4px; }

/* ---- footer ---- */
.footer {
  padding: 30px 0 40px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  color: var(--muted-light);
  background: var(--paper);
  border-top: 1px solid var(--paper-line);
  font-size: 13px;
}
.footer p { margin: 10px 0 0; }
.footer .brand { color: var(--ink); }
.footer .brand-mark { border-color: var(--ink); color: var(--ink); }
.footer-meta { text-align: right; display: grid; gap: 6px; }
.footer-meta p { margin: 0; }
.footer-meta a { color: var(--muted-light); text-decoration: underline; text-underline-offset: 2px; }
.footer-meta a:hover { color: var(--accent); }

/* ---- reveal animation: understated ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scan-line { animation: none; }
}

/* ================================ MOBILE ================================ */
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; background: var(--ink); border-top: 1px solid var(--ink-line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 6px; }
  .hero-grid, .split-section, .demo-grid, .security-card { grid-template-columns: 1fr; }
  .workflow-grid, .use-grid, .plans-grid { grid-template-columns: 1fr 1fr; }
  .use-grid article:first-child { grid-column: auto; }
}

@media (max-width: 620px) {
  .section-shell, .navbar-inner { width: min(100% - 24px, 1180px); }
  .feature-grid, .workflow-grid, .use-grid, .plans-grid, .form-row { grid-template-columns: 1fr; }
  .scan-area { min-height: 220px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .exhibit-tag { right: 8px; }
}
