/* ===========================================================
   TortLogix — turnkey stylesheet (no framework, no CDN)
   =========================================================== */

:root {
  --ink: #0B0F19;
  --ink2: #0F172A;
  --slate600: #334155;
  --slate500: #64748B;
  --slate200: #E2E8F0;
  --slate50: #F8FAFC;
  --white: #FFFFFF;
  --trust: #1E40AF;
  --cobalt: #2563EB;
  --verify: #059669;
  --verify2: #10B981;
  --amber: #D97706;

  --font-display: "Plus Jakarta Sans", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --nav-height: 68px;
  --container: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
table { border-collapse: collapse; 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;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
@media (max-width: 640px) {
  .section { padding: 64px 0; }
}
.scroll-offset { scroll-margin-top: var(--nav-height); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--trust); }
.btn-outline-dark {
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.btn-outline-dark:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}
.btn-nav {
  background: var(--cobalt);
  color: var(--white);
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 6px;
}
.btn-nav:hover { background: var(--trust); }

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.navbar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11,15,25,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.brand-name, .footer-brand span { display: none; }
.brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.footer-brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate200);
}
.nav-links a:hover { color: var(--white); }

.nav-cta { display: inline-flex; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  padding: 8px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  background: rgba(11,15,25,0.96);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  color: var(--slate200);
  font-size: 14px;
  font-weight: 500;
}
.mobile-menu.open { display: flex; }
.mobile-menu .btn-nav { justify-content: center; margin-top: 4px; }

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding-top: calc(var(--nav-height) + 96px);
  padding-bottom: 128px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 12% 15%, rgba(37,99,235,0.20), transparent 55%),
    radial-gradient(560px circle at 88% 0%, rgba(16,185,129,0.13), transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--verify2);
  border: 1px solid rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.1);
  border-radius: 999px;
  padding: 7px 14px;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 40px;
  line-height: 1.1;
  margin-top: 24px;
}
@media (min-width: 640px) { .h1 { font-size: 48px; } }
@media (min-width: 1024px) { .h1 { font-size: 54px; line-height: 1.08; } }

.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(226,232,240,0.9);
  max-width: 620px;
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.proof-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 32px;
  font-size: 13.5px;
  color: rgba(226,232,240,0.9);
}
@media (min-width: 640px) {
  .proof-list { grid-template-columns: 1fr 1fr; }
}
.proof-item { display: flex; align-items: center; gap: 10px; }
.proof-item svg { flex-shrink: 0; }

/* ---------- Section headers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--trust);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 30px;
  color: var(--ink2);
  margin-top: 12px;
}
@media (min-width: 640px) { .h2 { font-size: 36px; } }
.section-lede {
  margin-top: 16px;
  font-size: 15px;
  color: var(--slate600);
  line-height: 1.65;
}
.section-head { max-width: 640px; }

/* ---------- Pillars grid ---------- */
.bg-muted { background: var(--slate50); }
.pillars {
  margin-top: 56px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--slate200);
  border-radius: 10px;
  padding: 28px;
}
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.pillar-icon.blue { background: rgba(30,64,175,0.1); }
.pillar-icon.cobalt { background: rgba(37,99,235,0.1); }
.pillar-icon.green { background: rgba(5,150,105,0.1); }
.pillar-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink2);
  margin-top: 20px;
}
.pillar-card p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--slate600);
}

/* ---------- Dockets table ---------- */
.table-wrap {
  margin-top: 40px;
  border: 1px solid var(--slate200);
  border-radius: 10px;
  overflow-x: auto;
}
.dockets-table { min-width: 880px; text-align: left; }
.dockets-table thead tr {
  background: var(--ink2);
  color: var(--slate200);
}
.dockets-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 14px 20px;
}
.dockets-table td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink2);
  border-top: 1px solid var(--slate200);
}
.dockets-table tbody tr:nth-child(even) { background: var(--slate50); }
.docket-name { font-weight: 600; }
.docket-mdl { color: var(--slate600); font-variant-numeric: tabular-nums; }
.docket-criteria, .docket-delivery { color: var(--slate600); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status.active { color: var(--verify); }
.status.active .status-dot { background: var(--verify); }
.status.limited { color: var(--amber); }
.status.limited .status-dot { background: var(--amber); }
.status.custom { color: var(--trust); }
.status.custom .status-dot { background: var(--trust); }

.table-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--slate500);
}

/* ---------- Pipeline timeline ---------- */
.timeline {
  margin-top: 56px;
  position: relative;
  border-left: 1px solid var(--slate200);
  margin-left: 12px;
  padding-left: 0;
}
.timeline-item {
  position: relative;
  padding-left: 36px;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 0 4px var(--slate50);
}
.timeline-dot.final { background: var(--verify); }
.timeline-step {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate500);
}
.timeline-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink2);
  margin-top: 4px;
}
.timeline-item p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--slate600);
  max-width: 640px;
}

/* ---------- Integrations ---------- */
.integrations-section { text-align: center; border-top: 1px solid var(--slate200); }
.integrations-section .section-head { margin: 0 auto; }
.logo-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logo-grid { grid-template-columns: repeat(6, 1fr); } }
.logo-tile {
  border: 1px solid var(--slate200);
  border-radius: 10px;
  padding: 28px 20px;
  display: flex; align-items: center; justify-content: center;
}
.logo-tile img {
  max-width: 100%;
  max-height: 75px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Contact form ---------- */
.contact-section {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(37,99,235,0.18), transparent 55%),
    radial-gradient(500px circle at 85% 0%, rgba(16,185,129,0.12), transparent 50%);
  pointer-events: none;
}
.contact-section .container { position: relative; max-width: 900px; }
.contact-lede {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(226,232,240,0.85);
  max-width: 620px;
}

.intake-form {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 28px;
}
@media (min-width: 640px) {
  .intake-form { grid-template-columns: 1fr 1fr; padding: 32px; }
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate200);
  margin-bottom: 6px;
}
.field input, .field select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-family: var(--font-body);
}
.field input::placeholder { color: var(--slate500); }
.field input:focus, .field select:focus {
  border-color: var(--cobalt);
  outline: none;
}
.field select[multiple] { height: 112px; }
.field-hint { margin-top: 6px; font-size: 12px; color: var(--slate500); }
.field-error {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  color: #FCA5A5;
}
.field-error.show { display: block; }

.form-submit-row { margin-top: 4px; }
.form-disclaimer {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--slate500);
  line-height: 1.6;
  max-width: 560px;
}
.form-status {
  margin-top: 12px;
  font-size: 13px;
  min-height: 18px;
}
.form-status.success { color: var(--verify2); }
.form-status.error { color: #FCA5A5; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink2);
  color: var(--slate200);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
  padding: 64px 24px;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
}
.footer-desc {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--slate500);
  line-height: 1.6;
  max-width: 280px;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--slate500);
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 12px; font-size: 13.5px; }
.footer-links a:hover { color: var(--white); }
.footer-compliance {
  font-size: 12.5px;
  color: var(--slate500);
  line-height: 1.65;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom .container {
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 12.5px;
  color: var(--slate500);
}
