/* ==========================================================================
   Ninja Digital Investigations — design system
   Mirrors the Ninja Digital / seecop.com token set (dark default).
   ========================================================================== */

:root {
  --background: #08080c;
  --foreground: #f4f4f7;
  --surface: #0e0e14;
  --surface-elevated: #15151d;
  --surface-hover: #1c1c26;
  --muted: #15151d;
  --muted-foreground: #a1a1b5;
  --subtle-foreground: #8a8a9e;
  --border: #262634;
  --border-strong: #3a3a4d;
  --ring: #818cf8;

  --brand: #6366f1;            /* Ninja Digital indigo */
  --brand-strong: #4f46e5;
  --brand-soft: #818cf8;
  --brand-accent: #22d3ee;     /* cyan */

  --ndi: #e11d48;              /* Ninja Digital Investigations crimson */
  --ndi-soft: #fb7185;
  --ndi-accent: #f59e0b;       /* forensic amber */
  --ndi-accent-soft: #fbbf24;

  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #38bdf8;

  --radius: 0.625rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-pill: 999px;

  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px #00000080;
  --shadow-md: 0 4px 20px #0000008c;
  --shadow-lg: 0 20px 60px #0009;
  --shadow-glow: 0 0 0 1px #6366f14d, 0 10px 50px #6366f152;

  --max: 1200px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: dark;
}

/* Light theme (optional toggle) */
[data-theme="light"] {
  --background: #fbfbfd;
  --foreground: #101018;
  --surface: #ffffff;
  --surface-elevated: #f4f4f8;
  --surface-hover: #ececf3;
  --muted: #f4f4f8;
  --muted-foreground: #55556a;
  --subtle-foreground: #6a6a7e;
  --border: #e4e4ee;
  --border-strong: #cfcfe0;
  --ring: #4f46e5;
  --brand: #4f46e5;
  --brand-strong: #4338ca;
  --brand-soft: #4f46e5;
  --brand-accent: #0891b2;
  --ndi: #be123c;
  --ndi-soft: #e11d48;
  --ndi-accent: #b45309;
  --ndi-accent-soft: #d97706;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0284c7;
  --shadow-sm: 0 1px 2px #10101814;
  --shadow-md: 0 4px 16px #1010181f;
  --shadow-lg: 0 16px 48px #10101826;
  --shadow-glow: 0 0 0 1px #4f46e526, 0 8px 40px #4f46e51f;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: color-mix(in srgb, var(--ndi) 35%, transparent); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted-foreground); }
.subtle { color: var(--subtle-foreground); }
.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;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 96px; }
.section--tight { padding-block: 64px; }
.section-head { max-width: 720px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
.section-head p { margin-top: 16px; color: var(--muted-foreground); font-size: 1.0625rem; line-height: 1.65; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ndi-soft);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: currentColor; box-shadow: 0 0 12px currentColor;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--background) 72%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--background) 92%, transparent); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 28px; height: 28px; transition: transform 0.3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(18deg); }
.brand-text { display: flex; align-items: baseline; gap: 6px; }
.brand-name { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.02em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--subtle-foreground); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground); white-space: nowrap; transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--foreground); background: var(--surface-hover); }
.nav a[aria-current="page"] { color: var(--foreground); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted-foreground);
  cursor: pointer; transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: var(--foreground); background: var(--surface-hover); border-color: var(--border-strong); }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-pill);
  font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ndi); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--ndi) 32%, transparent); }
.btn--primary:hover { background: color-mix(in srgb, var(--ndi) 88%, #000); box-shadow: 0 10px 32px color-mix(in srgb, var(--ndi) 42%, transparent); }
.btn--ghost { background: var(--surface); color: var(--foreground); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.btn--quiet { background: transparent; color: var(--muted-foreground); border-color: var(--border); }
.btn--quiet:hover { color: var(--foreground); border-color: var(--border-strong); }
.btn--sm { padding: 8px 14px; font-size: 0.8125rem; }
.btn--lg { padding: 14px 26px; font-size: 0.9375rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 72px 40px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 55% at 18% 8%, color-mix(in srgb, var(--ndi) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 45% at 82% 12%, color-mix(in srgb, var(--ndi-accent) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.35;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--ndi-soft), var(--ndi-accent) 55%, var(--ndi-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin-top: 24px; max-width: 34rem; font-size: 1.125rem; line-height: 1.65; color: var(--muted-foreground); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle-foreground); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 14px; height: 14px; color: var(--ndi-soft); }

.hero-visual { position: relative; }
.hero-panel {
  position: relative; border-radius: var(--radius-xl); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 60%, var(--background)));
  padding: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--ndi) 22%, transparent), transparent 60%);
  pointer-events: none;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.panel-title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle-foreground); }
.panel-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.65rem; color: var(--success); }
.panel-live::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; box-shadow: 0 0 8px currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-panel svg { position: relative; width: 100%; height: auto; margin-top: 12px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-family: var(--font-mono); font-size: 0.6rem; color: var(--subtle-foreground); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--border); }
.stat { background: var(--surface); padding: 24px 22px; }
.stat .num { font-family: var(--font-mono); font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: -0.03em; color: var(--foreground); }
.stat .label { margin-top: 6px; font-size: 0.8125rem; color: var(--muted-foreground); }
.stat .sub { margin-top: 2px; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle-foreground); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); padding: 24px; overflow: hidden;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.card:hover { border-color: var(--border-strong); background: var(--surface-elevated); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in srgb, var(--ndi) 12%, transparent);
  color: var(--ndi-soft); border: 1px solid color-mix(in srgb, var(--ndi) 24%, transparent);
}
.card .icon svg { width: 20px; height: 20px; }
.card h3 { margin-top: 18px; font-size: 1.0625rem; letter-spacing: -0.02em; }
.card p { margin-top: 8px; font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); }
.card .tag { margin-top: 16px; display: inline-flex; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle-foreground); }

.card--accent { border-color: color-mix(in srgb, var(--ndi) 30%, var(--border)); }
.card--accent .icon { background: color-mix(in srgb, var(--ndi-accent) 12%, transparent); color: var(--ndi-accent-soft); border-color: color-mix(in srgb, var(--ndi-accent) 26%, transparent); }

/* ---------- Case types ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.875rem; color: var(--muted-foreground); transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.chip:hover { border-color: var(--border-strong); color: var(--foreground); background: var(--surface-hover); }
.chip svg { width: 15px; height: 15px; color: var(--ndi-soft); }

/* ---------- Workflow ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; border-top: 2px solid var(--border); padding-top: 22px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--ndi-soft);
}
.step h3 { margin-top: 10px; font-size: 1.0625rem; }
.step p { margin-top: 8px; font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split .panel { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); padding: 24px; overflow: hidden; }
.checklist { display: grid; gap: 12px; margin-top: 24px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; line-height: 1.55; color: var(--muted-foreground); }
.checklist li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--success); }
.checklist strong { color: var(--foreground); font-weight: 600; }

/* ---------- Case studies ---------- */
.case { display: flex; flex-direction: column; gap: 14px; }
.case .case-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle-foreground); }
.case .case-meta .badge { padding: 4px 8px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); }
.case h3 { font-size: 1.125rem; }
.case p { font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); }
.case .case-result { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.7rem; color: var(--success); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--surface); padding: 48px 40px;
}
.cta-band::before {
  content: ""; position: absolute; inset: -50% 0 auto 0; height: 100%;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--ndi) 30%, transparent), transparent 65%);
  pointer-events: none;
}
.cta-band h2 { position: relative; font-size: clamp(1.75rem, 3vw, 2.5rem); max-width: 40rem; }
.cta-band p { position: relative; margin-top: 12px; max-width: 36rem; color: var(--muted-foreground); font-size: 1.0625rem; }
.cta-band .hero-actions { position: relative; }

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.8125rem; font-weight: 500; color: var(--muted-foreground); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--foreground);
  font-family: inherit; font-size: 0.9375rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--subtle-foreground); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ndi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ndi) 22%, transparent);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.75rem; color: var(--subtle-foreground); line-height: 1.5; }
.form-status { display: none; padding: 12px 14px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--success) 40%, var(--border)); background: color-mix(in srgb, var(--success) 10%, transparent); color: var(--success); font-size: 0.875rem; }
.form-status.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px; }
.footer-brand p { margin-top: 16px; max-width: 22rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle-foreground); }
.footer-col ul { display: grid; gap: 8px; margin-top: 14px; }
.footer-col a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s; }
.footer-col a:hover { color: var(--foreground); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; color: var(--subtle-foreground); }
.footer-bottom a { color: var(--muted-foreground); }
.footer-bottom a:hover { color: var(--foreground); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: 64px 32px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.page-hero p { margin-top: 16px; max-width: 42rem; color: var(--muted-foreground); font-size: 1.0625rem; line-height: 1.65; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--subtle-foreground); }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb span { color: var(--border-strong); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); }
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--ndi-accent) 30%, var(--border)); background: color-mix(in srgb, var(--ndi-accent) 7%, transparent); font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ndi-accent-soft); }
.note strong { color: var(--foreground); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .section { padding-block: 64px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 48px 32px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 64px 0 0 0; z-index: 40;
  background: color-mix(in srgb, var(--background) 96%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 16px 24px; display: none; overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: 14px 12px; border-radius: 10px; font-size: 1rem; font-weight: 500; color: var(--muted-foreground); }
.mobile-menu a:hover { background: var(--surface-hover); color: var(--foreground); }
.mobile-menu .btn { margin-top: 12px; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
