/* ============================================================
   PARCELOMICS — Shared Stylesheet v3
   Dark precision: forest-black · electric green
   Fraunces display / IBM Plex Mono / DM Sans body
   ============================================================ */

:root {
  --bg:         #0B1512;
  --surface:    #111D17;
  --surface2:   #162219;
  --border:     #1E3329;
  --border2:    #254533;
  --text:       #E2F0E8;
  --muted:      #6B9E7C;
  --accent:     #4ADE80;
  --accent-dim: #166534;
  --amber:      #D4A853;
  --slate:      #7B9EA8;
  --mono:       'IBM Plex Mono', monospace;
  --display:    'Fraunces', serif;
  --body:       'DM Sans', sans-serif;
  --max:        1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,21,18,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-wordmark span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-divider { width: 1px; height: 18px; background: var(--border2); }
.nav-cta {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--bg) !important;
  background: var(--accent);
  padding: 8px 18px;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #22c55e; text-decoration: none !important; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-primary:hover { background: #22c55e; text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 15px;
  padding: 12px 24px;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── SECTIONS ── */
.section { padding: 96px 48px; }
.section-inner { max-width: var(--max); }
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before { content:''; display:block; width:20px; height:1px; background:var(--accent); }
.section-h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-h2 em { font-style: italic; color: var(--accent); }
.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ── DETAIL GRID ── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.detail-card { background: var(--bg); padding: 40px; }
.detail-card:nth-child(odd) { background: var(--surface); }
.detail-card .detail-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-dim);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.detail-card h3 { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.2; }
.detail-card p { font-size: 16px; color: var(--muted); line-height: 1.75; }

/* ── NAMED DELIVERABLES ── */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: var(--max);
}
.deliverable-doc {
  border: 1px solid var(--border2);
  border-top: 3px solid var(--accent);
  background: var(--surface);
  padding: 28px;
  transition: background 0.2s, border-color 0.2s;
}
.deliverable-doc:hover { background: var(--surface2); border-color: var(--accent); }
.deliverable-doc .doc-type {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.deliverable-doc h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}
.deliverable-doc p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.deliverable-doc .doc-action {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* ── STAT STRIP ── */
.stat-strip {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px;
}
.stat-strip-inner {
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}
.stat-cell { background: var(--surface2); padding: 32px; }
.stat-cell .stat-n {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.stat-cell .stat-n.amber { color: var(--amber); }
.stat-cell .stat-n.slate { color: var(--slate); }
.stat-cell .stat-l { font-size: 15px; color: var(--muted); line-height: 1.5; }
.stat-cell .stat-l strong { color: var(--text); font-weight: 500; display: block; }

/* ── FEE STRUCTURE PANEL ── */
.fee-panel {
  max-width: var(--max);
  border: 1px solid var(--border2);
  background: var(--surface2);
  position: relative;
}
.fee-panel::before {
  content: 'HOW FEES WORK';
  position: absolute;
  top: -1px; left: 24px;
  background: var(--surface2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
  padding: 0 8px;
}
.fee-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.fee-step {
  background: var(--surface2);
  padding: 32px 28px;
}
.fee-step-n {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 600;
  color: var(--border2);
  line-height: 1;
  margin-bottom: 14px;
}
.fee-step h4 { font-size: 17px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.fee-step p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.fee-step p strong { color: var(--accent); font-weight: 500; }
.fee-footer {
  padding: 20px 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  line-height: 1.7;
}
.fee-footer strong { color: var(--text); }

/* ── DATA ACCESS PANEL ── */
.data-panel {
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.data-panel-cell { background: var(--surface); padding: 40px; }
.data-panel-cell .dp-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.data-panel-cell h3 { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 14px; line-height: 1.2; }
.data-panel-cell p { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.data-panel-cell p strong { color: var(--text); font-weight: 500; }
.data-panel-cell p:last-child { margin-bottom: 0; }

/* ── PRODUCT HERO ── */
.product-hero {
  padding: 120px 48px 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
}
.product-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(transparent, var(--bg));
}
.product-hero-inner { position: relative; z-index: 1; max-width: var(--max); }
.product-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.product-hero-inner h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 800px;
}
.product-hero-inner h1 em { font-style: italic; color: var(--accent); }
.product-hero-inner .hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* ── FADE UP ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px;
}
.footer-inner {
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .nav-wordmark { font-size: 18px; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 16px; color: var(--muted); }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  max-width: var(--max);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-family: var(--mono); font-size: 12px; color: var(--accent-dim); }

/* ── CTA SECTION ── */
.cta-section {
  background: var(--bg);
  padding: 96px 48px;
  text-align: left;
}
.cta-section .section-h2 { max-width: 680px; margin: 0 0 20px; }
.cta-section .section-sub { margin: 0 0 36px; max-width: 580px; }
.cta-section .section-label { justify-content: flex-start; }

/* ── SHARED FOOTER NAV ── */
.shared-footer-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── MARQUEE ── */
.marquee-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-block; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; padding: 0 28px; }
.marquee-track span.a { color: var(--accent); }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── ROA CALLOUT ── */
.roa-callout {
  max-width: var(--max);
  border: 1px solid var(--accent-dim);
  background: var(--surface2);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.roa-callout::before {
  content: 'FIRST DELIVERABLE';
  position: absolute;
  top: -1px; left: 24px;
  background: var(--surface2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
  padding: 0 8px;
}
.roa-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}
.roa-title em { font-style: italic; color: var(--accent); }
.roa-body p { font-size: 17px; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.roa-body p strong { color: var(--text); font-weight: 500; }
.roa-body p:last-child { margin-bottom: 0; }

/* ── RESPONSIVE ── */
/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }

@media (max-width: 960px) {
  nav { padding: 0 24px; }

  /* Show hamburger, hide nav links by default */
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: rgba(11,21,18,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links li a:hover { color: var(--text); text-decoration: none; }

  /* Keep CTA button styled but full-width on mobile */
  .nav-links .nav-cta {
    display: inline-block;
    margin-top: 12px;
    width: auto;
    text-align: center;
    padding: 10px 20px;
    background: var(--accent);
    color: var(--bg) !important;
    font-size: 16px;
    border-bottom: none !important;
  }
  /* Hide dividers in mobile menu */
  .nav-links .nav-divider { display: none; }

  .section { padding: 64px 24px; }
  .product-hero { padding: 120px 24px 60px; }
  .detail-grid { grid-template-columns: 1fr; }
  .deliverables-grid { grid-template-columns: 1fr 1fr; }
  .fee-steps { grid-template-columns: 1fr; }
  .data-panel { grid-template-columns: 1fr; }
  .stat-strip { padding: 32px 24px; }
  .stat-strip-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .roa-callout { grid-template-columns: 1fr; gap: 24px; }
  footer { padding: 40px 24px; }
  .cta-section { padding: 64px 24px; }
}
@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── CAPABILITY REFINEMENTS (added v0.3.1) ── */
.capabilities {
  background: var(--bg);
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.capability-grid {
  max-width: var(--max);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.capability-card {
  background: var(--surface);
  padding: 40px 32px;
}
.capability-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 18px;
}
.capability-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 14px;
}
.capability-card p:last-child { margin-bottom: 0; }
.capability-card strong { color: var(--text); font-weight: 600; }
.capability-footer {
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 20px 28px;
  background: var(--surface2);
  border-left: 2px solid var(--accent);
}
.capability-footer p {
  font-size: 14px;
  color: var(--slate);
  font-family: var(--mono);
  margin: 0;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .capability-grid { grid-template-columns: 1fr; }
}

.nav-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.nav-tagline {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #6B9E7C);
  margin-top: 3px;
  -webkit-text-fill-color: initial;
  background: none;
  background-clip: initial;
}
@media (max-width: 768px) {
  .nav-tagline { display: none; }
}


/* ── Active nav state ───────────────────────────────────── */
.nav-links a.active {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
}


/* ── Nav dropdowns (desktop hover / mobile tap-to-expand) ───────── */
.has-dropdown {
  position: relative;
}
.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 0;
}
.dd-caret {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  color: var(--accent-dim);
  transform: rotate(90deg);
  transition: transform 0.18s ease, color 0.18s ease;
  position: relative;
  top: -1px;
}
.has-dropdown:hover .dd-caret,
.has-dropdown.expanded .dd-caret {
  color: var(--accent);
  transform: rotate(270deg);
}

/* The submenu panel itself */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 10px 32px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  z-index: 200;
}
/* Hover-gap cushion — an invisible top pad so the menu doesn't close
   when the cursor crosses from the parent to the submenu. */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
}
.nav-dropdown li {
  list-style: none;
  margin: 0;
}
.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  border-bottom: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown li a:hover {
  color: var(--text);
  background: var(--surface2);
}

/* ── Mobile: tap-to-expand inline dropdowns ────────────────────── */
@media (max-width: 960px) {
  .has-dropdown {
    position: static;
  }
  .has-dropdown > a {
    justify-content: space-between;
    width: 100%;
  }
  .dd-caret {
    font-size: 14px;
    color: var(--muted);
  }
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 8px 16px;
    margin-top: 0;
    min-width: 0;
    transition: none;
  }
  .nav-dropdown::before { display: none; }
  .has-dropdown.expanded .nav-dropdown {
    display: block;
  }
  .nav-dropdown li a {
    padding: 10px 0;
    font-size: 14px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
  }
  .nav-dropdown li:last-child a {
    border-bottom: none;
  }
  /* On mobile the hover preview never triggers; caret rotation only happens
     when .expanded class is toggled by the tap handler. */
  .has-dropdown:hover .dd-caret { transform: rotate(90deg); color: var(--muted); }
  .has-dropdown.expanded .dd-caret { transform: rotate(270deg); color: var(--accent); }
}


/* ── Section variant: tighter vertical rhythm for content-dense pages ── */
.section-compact {
  padding: 72px 48px;
}
@media (max-width: 960px) {
  .section-compact {
    padding: 56px 24px;
  }
}

/* ── Deliverable stats rail — quick numerical reinforcement below each
      deliverable description ── */
.deliv-stats {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border2);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.deliv-stats strong {
  color: var(--accent);
  font-weight: 600;
}
.deliv-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .deliv-stats {
    gap: 10px 0;
    flex-direction: column;
  }
  .deliv-stats span { white-space: normal; }
}
