/* ========================================
   FORENSALYTICS — SHARED STYLESHEET
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Nunito+Sans:wght@300;400;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --fa-red: #FF3830;
  --fa-orange: #FFBA00;
  --fa-yellow: #FFD600;
  --fa-green: #A8E600;
  --fa-teal: #4DFFBB;
  --mech-cyan: #00BCD4;
  --mech-blue: #1E88E5;
  --grep-green: #7CCB3B;
  --drift-yellow: #FFD600;
  --agent-cyan: #00BCD4;
  --dark: #080A0C;
  --dark-2: #0D1018;
  --dark-3: #111520;
  --dark-4: #0a0e16;
  --border: rgba(255,255,255,0.15);
  --border-med: rgba(255,255,255,0.2);
  --text-muted: rgba(255,255,255,0.35);
  --text-mid: rgba(255,255,255,0.6);
  --text-bright: rgba(255,255,255,0.9);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ---- CURSOR ---- */
.cursor {
  width: 8px; height: 8px;
  background: var(--fa-orange);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: opacity 0.2s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,186,0,0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

/* ---- NAVIGATION ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,10,12,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--fa-orange);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--fa-orange); transition: width 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #fff; }
.nav-cta {
  background: transparent;
  border: 1px solid rgba(255,186,0,0.4);
  color: var(--fa-orange);
  padding: 9px 24px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--fa-orange); color: var(--dark); border-color: var(--fa-orange); }

/* ---- SHARED TYPOGRAPHY ---- */
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--fa-orange);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before { content:''; width:20px; height:1px; background:var(--fa-orange); }
.section-label.no-rule::before { display: none; }
.section-label.cyan { color: var(--mech-cyan); }
.section-label.cyan::before { background: var(--mech-cyan); }
.section-label.green { color: var(--grep-green); }
.section-label.green::before { background: var(--grep-green); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--fa-orange); }
.section-body {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 640px;
}
.section-body.wide { max-width: 800px; }

/* ---- BUTTONS ---- */
.btn-primary {
  background: linear-gradient(135deg, var(--fa-red), var(--fa-orange));
  color: var(--dark);
  border: none;
  padding: 16px 44px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: none;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,56,48,0.3); }
.btn-outline {
  border: 1px solid rgba(255,186,0,0.4);
  color: var(--fa-orange);
  padding: 16px 44px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: none;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s;
  background: transparent;
}
.btn-outline:hover { background: var(--fa-orange); color: var(--dark); }
.btn-ghost {
  color: var(--text-mid);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: color 0.2s;
  cursor: none;
}
.btn-ghost:hover { color: #fff; }
.btn-ghost .arrow {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  font-size: 14px;
}
.btn-ghost:hover .arrow { border-color: var(--fa-orange); background: rgba(255,186,0,0.1); }

/* ---- TAGS ---- */
.tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--fa-orange);
  margin-bottom: 6px;
}
.footer-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  list-style: none;
  justify-content: center;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fa-orange); }
.footer-right {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.footer-right a { color: var(--text-muted); text-decoration: none; }
.footer-right a:hover { color: var(--fa-orange); }

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ---- KEYFRAMES ---- */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(1.3); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- INNER PAGE HERO ---- */
.page-hero {
  padding: 120px 60px 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(255,56,48,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(255,186,0,0.03) 0%, transparent 60%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, black, transparent);
}
.page-hero-content { position: relative; z-index: 1; max-width: 760px; }
.page-hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--fa-orange);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
  opacity: 0; animation: fadeUp 0.7s 0.1s forwards;
}
.page-hero-eyebrow::before { content:''; width:20px; height:1px; background:var(--fa-orange); }
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.7s 0.25s forwards;
}
.page-hero-title em { font-style: italic; color: var(--fa-orange); }
.page-hero-sub {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 560px;
  opacity: 0; animation: fadeUp 0.7s 0.4s forwards;
}

/* ---- DIVIDER LINE ---- */
.hr-line {
  height: 1px;
  background: var(--border);
  margin: 0 60px;
}

/* ---- CTA SECTION ---- */
.cta-section {
  padding: 72px 60px;
  text-align: center;
  position: relative;
  background: var(--dark-2);
}
.cta-section::before {
  content:''; position:absolute; top:0; left:0; right:0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,186,0,0.3), transparent);
}
.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.cta-title em { font-style: italic; color: var(--fa-orange); }
.cta-sub {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 40px;
  max-width: 460px;
  margin-left: auto; margin-right: auto;
  line-height: 1.8;
}
.cta-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid rgba(255,186,0,0.3);
}
.cta-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 20px;
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  outline: none;
}
.cta-input::placeholder { color: var(--text-muted); }
.cta-submit {
  background: linear-gradient(135deg, var(--fa-red), var(--fa-orange));
  border: none;
  padding: 16px 28px;
  color: var(--dark);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: none;
  transition: opacity 0.2s;
}
.cta-submit:hover { opacity: 0.9; }

/* ---- SHARED CURSOR SCRIPT STUB ---- */
/* Cursor behavior injected per page via inline <script> */

/* ================================================
   RESPONSIVE — TABLET (≤900px) + MOBILE (≤600px)
   ================================================ */

/* Hide custom cursor on touch devices */
@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  a, button, select, input, textarea { cursor: auto !important; }
}

/* ---- TABLET ≤900px ---- */
@media (max-width: 900px) {
  /* Nav */
  nav { padding: 16px 24px; gap: 16px; }
  .nav-links { display: none; }
  .nav-cta { padding: 8px 16px; font-size: 10px; letter-spacing: 1px; }

  /* Mobile hamburger */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
  }
  .nav-hamburger span {
    display: block;
    width: 22px; height: 1px;
    background: var(--fa-orange);
    transition: all 0.3s;
  }

  /* Page hero */
  .page-hero { padding: 90px 24px 48px; }
  .page-hero-title { font-size: 26px; }
  .page-hero-sub { font-size: 13px; }

  /* Section padding */
  .section-title { font-size: 24px; }
  .section-body { font-size: 13px; }
  .cta-section { padding: 52px 24px; }
  .cta-title { font-size: 24px; }
  .cta-sub { font-size: 13px; }
  .hr-line { margin: 0 24px; }

  /* Footer */
  footer {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 32px;
    text-align: center;
  }
  .footer-links { justify-content: center; gap: 16px 28px; }
  .footer-right { text-align: center; }

  /* CTA form */
  .cta-form { flex-direction: column; max-width: 100%; }
  .cta-input { border-bottom: 1px solid rgba(255,186,0,0.2); }
  .cta-submit { width: 100%; padding: 16px; }

  /* Buttons */
  .btn-primary, .btn-outline { padding: 14px 28px; font-size: 10px; letter-spacing: 2px; }
}

/* ---- MOBILE ≤600px ---- */
@media (max-width: 600px) {
  nav { padding: 14px 20px; }

  .page-hero { padding: 100px 20px 52px; }
  .page-hero-title { font-size: 22px; line-height: 1.2; }
  .page-hero-sub { font-size: 13px; max-width: 100%; }

  .section-title { font-size: 22px; }
  .section-body { font-size: 13px; }

  .cta-section { padding: 60px 20px; }
  .cta-title { font-size: 22px; }
  .cta-sub { font-size: 13px; }

  .btn-primary, .btn-outline {
    padding: 13px 24px;
    font-size: 10px;
    letter-spacing: 1.5px;
    width: 100%;
    text-align: center;
    display: block;
  }
  .btn-ghost { font-size: 10px; }

  footer { padding: 36px 20px; }
  .footer-links { gap: 14px 20px; }
}
