/* =========================================================================
   PEOnomics — Design System Tokens
   Aesthetic: Editorial advisory (Axis Group-adjacent)
   Dark forest-black base, refined serif display, steel-blue conversion accent
   ========================================================================= */

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

:root {
  /* ── Surfaces ──────────────────────────────────────────────── */
  --bg:        #0C0F0A;       /* near-black with subtle green undertone */
  --bg-elev:   #141810;       /* card surface */
  --bg-elev-2: #1C2118;       /* nested surface */
  --bg-warm:   #14110A;       /* warm-toned editorial panel */

  /* ── Borders ──────────────────────────────────────────────── */
  --border:    rgba(255,255,255,.07);
  --border-2:  rgba(255,255,255,.12);
  --border-3:  rgba(255,255,255,.20);

  /* ── Text ─────────────────────────────────────────────────── */
  --text:      #F0F2EC;
  --text-2:    #C7CCBC;
  --muted:     #8A9080;
  --muted-2:   #5A6050;

  /* ── Steel Blue accent (conversion) ──────────────────────── */
  --accent:        #7DA3C7;
  --accent-hover:  #94B5D4;
  --accent-deep:   #5C84A8;
  --accent-dim:    rgba(125,163,199,.12);
  --accent-glow:   rgba(125,163,199,.18);

  /* ── Warm editorial accent (serif highlight) ─────────────── */
  --warm:      #E8C99A;
  --warm-dim:  rgba(232,201,154,.10);

  /* ── Status / signal colors ──────────────────────────────── */
  --positive:  #7DC798;
  --negative:  #E08989;
  --neutral:   #A8A89C;

  /* ── Typography stacks ───────────────────────────────────── */
  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-mono:    'DM Mono', 'SF Mono', ui-monospace, monospace;
  --f-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* ── Spacing scale ───────────────────────────────────────── */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* ── Radius ──────────────────────────────────────────────── */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* ── Container widths ────────────────────────────────────── */
  --w-narrow: 720px;
  --w-prose:  860px;
  --w-page:   1180px;
  --w-wide:   1320px;

  /* ── Motion ──────────────────────────────────────────────── */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --d-fast: .15s;
  --d-med: .25s;
  --d-slow: .45s;
}

/* =========================================================================
   RESET
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;

  /* Atmospheric background — two soft radial gradients */
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(125,163,199,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(232,201,154,.04) 0%, transparent 60%);
  background-attachment: fixed;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--bg); }

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */

/* Editorial display — for big H1s and editorial moments */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-variation-settings: 'opsz' 144;
}

/* Eyebrow — mono label above headings */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-muted {
  color: var(--muted);
}

/* Headlines */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }

h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-size: 17px; }

p { color: var(--text-2); }
p.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 640px;
}

.serif-emph {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  color: var(--warm);
}

/* =========================================================================
   LAYOUT PRIMITIVES
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--w-narrow); margin: 0 auto; padding: 0 24px; }
.container-prose  { max-width: var(--w-prose);  margin: 0 auto; padding: 0 24px; }
.container-wide   { max-width: var(--w-wide);   margin: 0 auto; padding: 0 24px; }

section { padding: var(--s-9) 0; }
section.tight { padding: var(--s-7) 0; }

/* Section divider — subtle horizontal line */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
  border: 0;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  padding: 14px 24px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border-radius: var(--r-md);
  transition: all var(--d-fast) var(--ease-out);
  letter-spacing: 0.005em;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #0C0F0A;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  background: var(--bg-elev-2);
  color: var(--text);
  border-color: var(--border-3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(125,163,199,.35);
}
.btn-outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* Arrow used inside buttons */
.btn .arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--d-fast) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================================
   CARDS
   ========================================================================= */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: border-color var(--d-med) var(--ease-out), transform var(--d-med) var(--ease-out);
}
.card:hover {
  border-color: var(--border-2);
}

.card-link {
  display: block;
  position: relative;
}
.card-link:hover {
  border-color: var(--border-3);
  transform: translateY(-2px);
}

.card-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}

.card-title {
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--s-2);
}

.card-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,15,10,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo .accent { color: var(--accent); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-elev-2);
}
.nav-links a.is-active {
  color: var(--accent);
}
.nav-cta {
  margin-left: 8px;
}

/* Mobile nav toggle (basic; full menu in JS) */
.nav-toggle { display: none; background: none; border: none; color: var(--text); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-mobile-open .nav-mobile {
    display: flex;
  }
  .nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
  }
  .nav-mobile a {
    padding: 14px;
    color: var(--text-2);
    font-size: 15px;
    border-radius: var(--r-sm);
  }
  .nav-mobile a:hover { background: var(--bg-elev-2); color: var(--text); }
  .nav-mobile a.cta {
    color: var(--bg);
    background: var(--accent);
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
  }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s-8) 0 var(--s-6);
  margin-top: var(--s-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand-line {
  font-family: var(--f-display);
  font-size: 22px;
  margin-bottom: var(--s-4);
}
.footer-tagline {
  color: var(--muted);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.55;
}
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-2);
  font-size: 14px;
  transition: color var(--d-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  font-family: var(--f-mono);
  color: var(--muted-2);
}
.footer-disclosure {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
  font-family: var(--f-body);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================================
   DISCLOSURE EYEBROW (per FTC requirements)
   ========================================================================= */
.disclosure-bar {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  padding: 10px 24px;
}
.disclosure-bar a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--border-3);
  text-underline-offset: 3px;
}
.disclosure-bar a:hover { color: var(--accent); }

/* =========================================================================
   UTILITIES
   ========================================================================= */
.center-text { text-align: center; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }

.text-muted { color: var(--muted); }
.text-warm  { color: var(--warm); }
.text-accent { color: var(--accent); }

/* Subtle grid pattern overlay (use sparingly) */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Reveal animation — for first viewport elements */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise   { animation: rise .7s var(--ease-out) both; }
.rise-1 { animation: rise .7s var(--ease-out) .08s both; }
.rise-2 { animation: rise .7s var(--ease-out) .16s both; }
.rise-3 { animation: rise .7s var(--ease-out) .24s both; }
.rise-4 { animation: rise .7s var(--ease-out) .32s both; }
.rise-5 { animation: rise .7s var(--ease-out) .40s both; }
.rise-6 { animation: rise .7s var(--ease-out) .48s both; }

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