/* Datum Forensics — site styles
   Colors are defined once here. Change --accent to re-color the whole site. */
:root {
  --bg: #0A0E13;
  --surface: #0F151C;
  --surface-2: #0C1117;
  --line: #1C2530;
  --line-2: #22303D;
  --field: #2A3644;
  --text: #E6EDF3;
  --text-2: #D3DCE5;
  --muted: #B4C0CC;
  --dim: #8C99A6;
  --accent: #2CC6E6;
  --accent-hi: #7FE3F5;
  --on-accent: #04121A;
  --warn: #F2B84B;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.gridbg { background-image: linear-gradient(rgba(44,198,230,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(44,198,230,.06) 1px, transparent 1px); background-size: 48px 48px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; padding: 15px 26px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hi); color: var(--on-accent); }
.btn-ghost { border-color: var(--field); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-sm { font-size: 14px; padding: 10px 16px; }
.btn-danger { border-color: #6B2A2A; color: #F3B4B4; background: transparent; }
.btn-danger:hover { background: #2A1414; color: #FFD3D3; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(10,14,19,.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 3px; color: var(--text); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-links .btn { color: var(--on-accent); padding: 11px 20px; font-size: 15px; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -1px; }
.hero .lead { max-width: 540px; font-size: 19px; }

/* Finding card illustration */
.finding { margin: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.finding-top { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--dim); }
.finding-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; padding: 5px 9px; border-radius: 5px; background: rgba(44,198,230,.12); color: var(--accent); }
.finding-title { font-family: var(--display); font-size: 22px; font-weight: 600; }
.kv { display: grid; grid-template-columns: 110px 1fr; row-gap: 10px; column-gap: 16px; font-size: 13px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; font-family: var(--mono); color: var(--text-2); word-break: break-all; }
.hex { border: 1px dashed var(--field); border-radius: 10px; padding: 14px 16px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: #9FB0BF; background: #0B1016; white-space: pre; overflow-x: auto; }
.finding-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pending { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--warn); }

/* Sections */
.section { padding-top: 104px; padding-bottom: 96px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; }
.h2-sm { font-size: 34px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); line-height: 1.6; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.steps li { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; display: flex; flex-direction: column; gap: 10px; }
.steps .num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.steps .t { font-family: var(--display); font-size: 20px; font-weight: 600; }
.steps .d { font-size: 15px; line-height: 1.55; color: var(--muted); }

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle { max-width: 1000px; margin: 0 auto; padding: 96px 32px; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.principle .big { font-family: var(--display); font-size: clamp(32px, 4.2vw, 46px); font-weight: 600; line-height: 1.15; }
.principle .lead { max-width: 640px; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 32px 0 0; padding: 0; font-family: var(--mono); font-size: 14px; }
.chips li { padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); }

.teaser { display: block; text-decoration: none; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background-color: var(--surface); }
.teaser-inner { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 32px; text-align: center; }
.play { width: 92px; height: 92px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; border: 0; }
.teaser:hover .play { background: var(--accent-hi); }
.teaser-title { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--text); }
.teaser-meta { font-family: var(--mono); font-size: 13px; color: var(--dim); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 56px; }
.qa { padding: 22px 0; border-bottom: 1px solid var(--line); }
.qa .q { font-family: var(--display); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.qa .a { color: var(--muted); line-height: 1.6; }

.cta { border: 1px solid var(--line-2); border-radius: 18px; padding: 60px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; background-color: var(--surface); }
.cta h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--dim); }
.foot .brand img { width: 28px; height: 28px; border-radius: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-links a { color: var(--dim); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* Page head (inner pages) */
.page-head { display: flex; flex-direction: column; gap: 16px; padding-top: 72px; padding-bottom: 40px; }
.page-head h1 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.1; }
.page-head .lead { max-width: 700px; }

/* Demo */
.demo-grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-bottom: 88px; }
.demo-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.player { aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--line-2); border-radius: 16px; background-color: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; overflow: hidden; }
.player video { width: 100%; height: 100%; background: #000; display: block; }
.now { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.now .t { font-family: var(--display); font-size: 20px; font-weight: 600; }
.chapters { flex: 1 1 320px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.chapters h2 { padding: 12px 14px 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--dim); font-weight: 400; }
.chapters ol { list-style: none; margin: 0; padding: 0; }
.chapter { display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 14px; border-radius: 10px; font: inherit; cursor: pointer; background: transparent; border: 1px solid transparent; color: var(--text); text-align: left; }
.chapter:hover { background: rgba(44,198,230,.05); }
.chapter[aria-current="true"] { background: rgba(44,198,230,.10); border-color: var(--accent); }
.chapter .n { font-family: var(--mono); font-size: 13px; color: var(--accent); min-width: 26px; }
.chapter .ct { font-weight: 600; font-size: 15px; display: block; }
.chapter .cd { font-size: 13px; color: #9AA7B4; line-height: 1.45; display: block; margin-top: 4px; }

/* Forms */
.form-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 72px; padding-bottom: 96px; }
.form-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.form-intro h1 { font-size: clamp(36px, 4vw, 48px); line-height: 1.1; }
.form-card { flex: 999 1 560px; min-width: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 36px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.lbl { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.lbl .req { color: var(--accent); }
.fld { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--field); border-radius: 8px; padding: 13px 14px; }
.fld:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea.fld { resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.errors { border: 1px solid #6B2A2A; background: #1A0F10; color: #F3B4B4; border-radius: 10px; padding: 14px 18px; font-size: 14px; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }
.success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 56px 16px; }
.success h2 { font-size: 28px; }
.success p { color: var(--muted); max-width: 440px; line-height: 1.6; }
.process { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.process li { display: flex; gap: 16px; }
.process .dot { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-family: var(--mono); font-size: 14px; display: flex; align-items: center; justify-content: center; }
.process b { display: block; }
.process span span { font-size: 15px; color: #9AA7B4; }
.contact-lines { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.contact-lines span { display: flex; align-items: center; gap: 12px; color: var(--text-2); }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 10px; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; font-size: 14px; font-weight: 500; padding: 11px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); border: 1px solid var(--field); }
.pill input:checked + span { background: rgba(44,198,230,.14); color: var(--accent-hi); border-color: var(--accent); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* FAQ */
.faq-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 72px; padding-bottom: 96px; }
.faq-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.faq-side h1 { font-size: clamp(36px, 4vw, 48px); line-height: 1.1; }
.faq-list { flex: 999 1 620px; min-width: 0; border-top: 1px solid var(--line); }
.filter { font: inherit; font-size: 14px; font-weight: 500; padding: 11px 16px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--muted); border: 1px solid var(--field); }
.filter[aria-pressed="true"] { background: rgba(44,198,230,.14); color: var(--accent-hi); border-color: var(--accent); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; font-family: var(--display); font-size: 20px; font-weight: 600; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 26px; color: var(--accent); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { padding: 0 48px 26px 0; line-height: 1.7; color: var(--muted); }

/* Prose pages (privacy, errors) */
.prose { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.prose h1 { font-size: 44px; margin-bottom: 24px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--muted); line-height: 1.7; }
.prose p + p { margin-top: 14px; }

/* Admin */
.admin { display: flex; flex-wrap: wrap; min-height: 100vh; }
.admin-nav { flex: 1 1 220px; max-width: 260px; border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); }
.admin-nav .brand { padding: 0 8px 24px; }
.admin-nav .brand img { width: 32px; height: 32px; border-radius: 7px; }
.admin-nav .brand span { font-size: 18px; letter-spacing: 2px; }
.admin-nav .brand small { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 1px; }
.admin-nav a.item { padding: 11px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; display: flex; justify-content: space-between; }
.admin-nav a.item:hover { color: var(--text); background: rgba(255,255,255,.03); }
.admin-nav a.item[aria-current="page"] { background: rgba(44,198,230,.10); color: var(--text); font-weight: 600; }
.admin-nav form { margin-top: auto; }
.admin-main { flex: 999 1 640px; min-width: 0; padding: 32px 40px; display: flex; flex-direction: column; gap: 24px; }
.admin-main h1 { font-size: 32px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .fld { padding: 11px 14px; font-size: 14px; width: auto; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: 8px; color: var(--muted); border: 1px solid transparent; text-decoration: none; }
.tabs a[aria-current="page"] { background: #18212B; color: var(--text); border-color: var(--field); }
.tabs a span { font-family: var(--mono); color: var(--dim); margin-left: 6px; }
.table-box { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; background: var(--surface); }
table.data { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; color: #9AA7B4; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; font-weight: 500; padding: 14px 16px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
table.data td { padding: 14px 16px; border-bottom: 1px solid #161E27; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.date { font-family: var(--mono); font-size: 13px; color: #9AA7B4; white-space: nowrap; }
table.data td a.name { color: var(--text); font-weight: 600; text-decoration: none; }
table.data td a.name:hover { color: var(--accent); }
table.data td.actions { white-space: nowrap; text-align: right; }
table.data td.actions form { display: inline; }
.empty { padding: 48px; text-align: center; color: var(--dim); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(154,167,180,.14); color: var(--muted); white-space: nowrap; }
.badge.New { background: rgba(242,184,75,.14); color: var(--warn); }
.badge.In { background: rgba(167,139,250,.14); color: #C4B5FD; }
.badge.Approved, .badge.Replied { background: rgba(44,198,230,.14); color: var(--accent-hi); }
.flash { border: 1px solid var(--accent); background: rgba(44,198,230,.08); color: var(--accent-hi); border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.detail { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.detail .panel { flex: 999 1 520px; min-width: 0; }
.detail .side { flex: 1 1 300px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.panel dl { display: grid; grid-template-columns: 160px 1fr; row-gap: 14px; column-gap: 20px; margin: 0; font-size: 15px; }
.panel dt { color: var(--dim); }
.panel dd { margin: 0; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login .panel { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero-grid { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .cta { padding: 36px 24px; }
  .form-card { padding: 24px; }
  .nav-links { gap: 16px; }
  .admin-nav { max-width: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-main { padding: 24px 20px; }
  .panel dl { grid-template-columns: 1fr; row-gap: 4px; }
  .panel dd { margin-bottom: 10px; }
}
