/* ═══════════════════════════════════════════════════════
   EMPATHIQ.TECH — SHARED STYLES v2.0
   Design: Dark Scientific Precision
   Fonts: Fraunces (editorial serif) + DM Mono + DM Sans
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
  --bg:        #060a14;
  --bg2:       #09101f;
  --bg3:       #0c1528;
  --card:      #0f1b30;
  --card2:     #122038;
  --teal:      #00c9a7;
  --teal2:     #00ffe4;
  --teal-dim:  rgba(0,201,167,0.12);
  --gold:      #e2b84a;
  --gold-dim:  rgba(226,184,74,0.12);
  --red:       #e05a5a;
  --white:     #eeeae3;
  --muted:     rgba(238,234,227,0.52);
  --faint:     rgba(238,234,227,0.24);
  --rule:      rgba(0,201,167,0.1);
  --rule2:     rgba(238,234,227,0.07);
  --ff-head:   'Fraunces', Georgia, serif;
  --ff-mono:   'DM Mono', monospace;
  --ff-body:   'DM Sans', system-ui, sans-serif;
  --nav-h:     68px;
  --max:       1280px;
  --pad:       clamp(24px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }

/* GRAIN */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.3;
}

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(6,10,20,0.88);
  backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--rule2);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  border: 1.5px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 11px; color: var(--teal);
  letter-spacing: 1px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.nav-logo-text {
  font-family: var(--ff-mono); font-size: 14px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--white); font-weight: 500;
}
.nav-logo-tld { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  transition: color 0.2s; padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); border-bottom-color: var(--teal); }
.nav-cta {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--bg); background: var(--teal);
  text-decoration: none; padding: 9px 20px; border: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: var(--teal2); box-shadow: 0 0 24px rgba(0,201,167,0.35); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); margin: 5px 0; transition: 0.3s; }

/* ── LAYOUT ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.pt-nav { padding-top: var(--nav-h); }
section { padding: 100px var(--pad); }
.section-inner { max-width: var(--max); margin: 0 auto; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; display: block; width: 24px; height: 1px;
  background: var(--teal);
}
.display {
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(44px, 5.5vw, 84px);
  line-height: 1.05; letter-spacing: -1.5px;
}
.display em { font-style: italic; color: var(--teal); }
.heading {
  font-family: var(--ff-head); font-weight: 600;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.15; letter-spacing: -0.5px;
}
.heading em { font-style: italic; color: var(--teal); }
.subheading {
  font-family: var(--ff-head); font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.3;
}
.lead {
  font-size: clamp(16px, 1.4vw, 19px); font-weight: 300;
  color: var(--muted); line-height: 1.75; max-width: 640px;
}
.body-text { font-size: 15px; color: var(--muted); line-height: 1.75; }
.mono { font-family: var(--ff-mono); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: none; transition: all 0.25s;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.btn-lg { padding: 16px 36px; font-size: 12px; }
.btn-sm { padding: 10px 22px; font-size: 10px; }
.btn-primary { background: var(--teal); color: var(--bg); }
.btn-primary:hover { background: var(--teal2); box-shadow: 0 8px 32px rgba(0,201,167,0.3); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--rule); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { box-shadow: 0 8px 32px rgba(226,184,74,0.3); transform: translateY(-2px); }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--rule2);
  padding: 36px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--rule); transform: translateY(-3px); }
.card-teal { border-left: 3px solid var(--teal); }
.card-gold { border-left: 3px solid var(--gold); }
.card-top-teal { border-top: 2px solid var(--teal); }

/* ── TAGS / BADGES ── */
.tag {
  display: inline-block;
  font-family: var(--ff-mono); font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; padding: 5px 12px;
  border-radius: 2px;
}
.tag-teal { color: var(--teal); border: 1px solid rgba(0,201,167,0.3); background: var(--teal-dim); }
.tag-gold { color: var(--gold); border: 1px solid rgba(226,184,74,0.3); background: var(--gold-dim); }
.tag-white { color: var(--muted); border: 1px solid var(--rule2); }

/* ── DIVIDERS ── */
.h-rule { height: 1px; background: var(--rule2); margin: 0; }
.h-rule-teal { height: 1px; background: linear-gradient(to right, var(--teal), transparent); opacity: 0.3; }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--rule2);
  padding: 52px var(--pad);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px;
  align-items: start;
}
.footer-brand .nav-logo-text { font-size: 18px; letter-spacing: 4px; }
.footer-brand p { font-size: 13px; color: var(--faint); line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-nav h4 { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav ul a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-nav ul a:hover { color: var(--teal); }
.footer-legal { text-align: right; }
.footer-legal .tag-gold { display: inline-block; margin-bottom: 12px; }
.footer-legal p { font-size: 11px; color: var(--faint); line-height: 1.7; }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); }
.form-input, .form-select, .form-textarea {
  background: var(--card); border: 1px solid var(--rule2);
  color: var(--white); font-family: var(--ff-body); font-size: 14px;
  padding: 13px 18px; outline: none; width: 100%;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none; border-radius: 0;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal); background: var(--card2);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--faint); }
.form-textarea { min-height: 130px; resize: vertical; font-family: var(--ff-body); }
.form-select option { background: var(--card2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%; padding: 17px; margin-top: 8px;
  background: var(--teal); color: var(--bg);
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; border: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: all 0.25s;
}
.form-submit:hover { background: var(--teal2); box-shadow: 0 8px 32px rgba(0,201,167,0.3); }

/* ── UTILS ── */
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.text-teal  { color: var(--teal);  }
.text-gold  { color: var(--gold);  }
.text-muted { color: var(--muted); }
.text-faint { color: var(--faint); }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 72px var(--pad); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .nav-mobile-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg2); padding: 24px var(--pad);
    border-bottom: 1px solid var(--rule2);
  }
}

/* ── PAGE HERO SHARED ── */
.page-hero {
  min-height: 60vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: calc(var(--nav-h) + 80px) var(--pad) 80px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule2);
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; width: 100%; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(0,201,167,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* ── PROGRESS INDICATOR ── */
.reading-progress {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  height: 2px; background: var(--rule2); z-index: 199;
}
.reading-progress-bar {
  height: 100%; background: var(--teal); width: 0%;
  transition: width 0.1s linear;
}
