/* ==========================================================================
   HedgeFundAI — shared public-site design system.

   This is the SAME visual language as the landing page (/): the landing page
   keeps its design inline as the canonical reference, and this stylesheet
   ports that exact token palette, navigation, button system, section grammar,
   light/dark bands, and footer so every interior public page — pricing,
   request-access, safety, privacy, terms, contact, beta-agreement — reads as
   one premium product. Interior-only primitives (page hero, prose column,
   info/plan/form cards) are built from the same tokens.

   Keep values in sync with the landing page's inline <style> in
   public-website/fixture-shell/index.html.
   ========================================================================== */

:root {
  color-scheme: dark;
  /* Black surfaces (dark bands) */
  --ink-0: #050807;
  --ink-1: #0a0e0c;
  --ink-2: #0f1311;
  --ink-3: #141a17;
  --ink-4: #1c241f;
  --ink-5: #28332c;
  /* Off-white surfaces (light bands) */
  --paper-0: #ffffff;
  --paper-1: #f8f9f5;
  --paper-2: #f1f3ee;
  --paper-3: #e8ebe5;
  --paper-4: #d8dcd5;
  --paper-ink: #0b0f0d;
  --paper-ink-soft: #1d2421;
  --paper-muted: #5a625d;
  --paper-muted-strong: #404742;
  /* Emerald (brand) */
  --em-50:  #ecfdf5;
  --em-100: #d1fae5;
  --em-200: #a7f3d0;
  --em-300: #6ee7b7;
  --em-400: #34d399;
  --em-500: #10b981;
  --em-600: #059669;
  --em-700: #047857;
  --em-800: #065f46;
  --em-900: #064e3b;
  /* Soft white text on dark */
  --w-0: #ffffff;
  --w-1: #f5f7f5;
  --w-2: #e2e8e3;
  --w-3: #aeb4ae;
  --w-4: #767d76;
  --w-5: #4f554f;
  /* Effects */
  --em-glow: rgba(52, 211, 153, .35);
  --em-glow-soft: rgba(52, 211, 153, .14);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 12px 32px rgba(0,0,0,.40);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.50);
  --shadow-em: 0 12px 40px rgba(16,185,129,.18);
  --shadow-light: 0 1px 2px rgba(15,30,22,.04), 0 8px 24px rgba(15,30,22,.06);
  --shadow-light-lg: 0 24px 60px rgba(15,30,22,.10), 0 4px 12px rgba(15,30,22,.06);
  /* Geometry */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --max: 1180px;
  /* Section rhythm */
  --section-y: 96px;
  --section-y-tight: 72px;
  --section-head-mb: 44px;
  --card-pad: 28px;

  /* Backward-compatible aliases (older page-level styles referenced these). */
  --ink: var(--ink-0);
  --panel: #0f1713;
  --line: rgba(255, 255, 255, .1);
  --text: var(--w-1);
  --muted: var(--w-3);
  --green: var(--em-500);
  --green-soft: var(--em-100);
}

/* Reset / base ---------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink-1); }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--w-1);
  background: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "cv11" on;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -.003em;
}
a { color: var(--em-300); text-decoration: none; }
a:hover { color: var(--em-200); }
button { font: inherit; }
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
details summary:focus-visible {
  outline: 3px solid var(--em-300);
  outline-offset: 3px;
  border-radius: 10px;
}
::selection { background: var(--em-700); color: var(--w-0); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Section grammar ------------------------------------------------------- */
section { padding: var(--section-y) 0; position: relative; }
section.tight { padding: var(--section-y-tight) 0; }
section + section { border-top: 1px solid var(--ink-4); }
section + section.band--light { border-top: 1px solid var(--paper-3); }
section.band--light + section { border-top: 1px solid var(--paper-3); }

/* Section head — left aligned, max 720px, one of two color modes -------- */
.section-head { margin-bottom: var(--section-head-mb); max-width: 720px; }
.section-eyebrow,
.eyebrow {
  display: inline-block;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--em-400); font-weight: 700;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -.018em;
  font-weight: 660;
  color: var(--w-0);
}
.section-head h2 .accent,
.accent {
  background: linear-gradient(180deg, var(--em-200) 0%, var(--em-500) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-head p {
  margin: 0;
  color: var(--w-3);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 600px;
}

/* Light bands ----------------------------------------------------------- */
.band--light {
  background: linear-gradient(180deg, var(--paper-1) 0%, var(--paper-2) 100%);
  color: var(--paper-ink);
}
.band--light.with-accent::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 12% 8%, rgba(16,185,129,.06) 0%, rgba(16,185,129,0) 60%),
    radial-gradient(ellipse 60% 40% at 88% 90%, rgba(16,185,129,.06) 0%, rgba(16,185,129,0) 60%);
}
.band--light .container { position: relative; z-index: 1; }
.band--light .section-eyebrow,
.band--light .eyebrow { color: var(--em-700); }
.band--light .section-head h2 { color: var(--paper-ink); }
.band--light .section-head h2 .accent,
.band--light .accent {
  background: linear-gradient(180deg, var(--em-600) 0%, var(--em-800) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.band--light .section-head p { color: var(--paper-muted-strong); }

/* Cube mark ------------------------------------------------------------- */
.cube { display: inline-block; vertical-align: middle; }
.cube--sm { width: 22px; height: 22px; filter: drop-shadow(0 0 6px var(--em-glow-soft)); }

/* Nav ------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 14, 12, .68);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; max-width: var(--max); margin: 0 auto; gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--w-1); font-weight: 660; font-size: 16px; letter-spacing: -.005em;
}
.brand:hover { color: var(--w-0); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--w-3); font-size: 13.5px; font-weight: 500;
  letter-spacing: -.002em;
}
.nav-links a:hover { color: var(--w-1); }
.nav-links a[aria-current="page"] { color: var(--em-300); }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--ink-5); background: rgba(10,14,12,.8);
  font-size: 11.5px; color: var(--w-3); letter-spacing: .01em;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--em-400);
  box-shadow: 0 0 8px var(--em-glow);
  animation: pillPulse 2.8s ease-in-out infinite;
}
@keyframes pillPulse {
  0%, 100% { opacity: .7; }
  50%      { opacity: 1; box-shadow: 0 0 14px rgba(52,211,153,.6); }
}

/* Buttons --------------------------------------------------------------- */
.btn,
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: -.002em;
  cursor: pointer; text-decoration: none;
  border: 1px solid var(--ink-5);
  background: transparent; color: var(--w-1);
  transition: transform .14s ease, box-shadow .18s ease, background-color .14s ease, border-color .14s ease;
}
.btn:hover,
.button:hover {
  text-decoration: none;
  border-color: var(--em-600);
  background: rgba(16,185,129,.06);
  transform: translateY(-1px);
}
.btn.primary,
.button.primary {
  background: linear-gradient(180deg, var(--em-400) 0%, var(--em-600) 100%);
  border-color: var(--em-500);
  color: var(--ink-0);
  font-weight: 640;
  box-shadow: 0 10px 28px rgba(16,185,129,.32), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn.primary:hover,
.button.primary:hover {
  background: linear-gradient(180deg, var(--em-300) 0%, var(--em-500) 100%);
  border-color: var(--em-400);
  box-shadow: 0 14px 36px rgba(16,185,129,.46), inset 0 1px 0 rgba(255,255,255,.28);
  transform: translateY(-2px);
}
.btn.outline,
.button.outline {
  background: transparent;
  border-color: rgba(255,255,255,.22);
  color: var(--w-1);
}
.btn.outline:hover,
.button.outline:hover {
  border-color: var(--em-400);
  background: rgba(16,185,129,.06);
}
.btn:disabled,
.button:disabled { opacity: .6; cursor: default; transform: none; }

/* On light bands, ghost buttons flip to ink-on-paper. */
.band--light .btn:not(.primary),
.band--light .button:not(.primary) {
  background: transparent; color: var(--paper-ink); border-color: var(--paper-4);
}
.band--light .btn:not(.primary):hover,
.band--light .button:not(.primary):hover {
  border-color: var(--em-600); background: rgba(16,185,129,.06); color: var(--paper-ink);
}
.btn-row, .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions { margin-top: 28px; }

/* Interior page hero (dark band, same treatment as the landing hero) ---- */
.page-hero {
  position: relative;
  padding: 92px 0 72px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(255,255,255,.035) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #0e1411 0%, var(--ink-1) 100%);
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero .hero-halo {
  position: absolute;
  top: -220px; right: -140px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(52,211,153,.24) 0%, rgba(16,185,129,.09) 32%, rgba(16,185,129,0) 62%);
  filter: blur(8px);
  animation: haloBreath 8s ease-in-out infinite alternate;
}
.page-hero .hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(52,211,153,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,211,153,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 78% 20%, black 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 78% 20%, black 0%, transparent 78%);
}
@keyframes haloBreath {
  0%   { opacity: .55; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.08); }
}
.page-hero .container { position: relative; z-index: 1; max-width: 820px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(52,211,153,.32);
  color: var(--em-200);
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 20px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--em-300);
  box-shadow: 0 0 10px var(--em-glow);
  animation: pillPulse 2.4s ease-in-out infinite;
}
.page-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -.022em;
  font-weight: 660;
  color: var(--w-0);
}
.page-lede {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.6;
  color: var(--w-3);
  max-width: 620px;
}

/* Prose (long-form legal / info copy on a light band) ------------------- */
.prose { max-width: 780px; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 40px 0 12px;
  font-size: 22px; font-weight: 640; letter-spacing: -.01em; line-height: 1.25;
  color: var(--paper-ink);
}
.prose h3 {
  margin: 26px 0 8px;
  font-size: 16px; font-weight: 640; color: var(--paper-ink);
}
.prose p {
  margin: 0 0 14px;
  color: var(--paper-muted-strong);
  font-size: 15.5px; line-height: 1.7;
}
.prose a { color: var(--em-700); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--em-800); }
.prose strong { color: var(--paper-ink); font-weight: 640; }
.prose ul {
  list-style: none; padding: 0; margin: 4px 0 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.prose ul li {
  position: relative; padding-left: 24px;
  color: var(--paper-ink-soft); font-size: 15px; line-height: 1.6;
}
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(135deg, var(--em-400), var(--em-700));
  box-shadow: 0 0 10px rgba(16,185,129,.4);
}

/* Emerald notice callout (light band) ----------------------------------- */
.notice {
  margin: 0 0 28px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16,185,129,.30);
  background: linear-gradient(180deg, var(--em-50) 0%, #e2f5eb 100%);
  color: var(--em-900);
  font-size: 14.5px; line-height: 1.6;
  box-shadow: var(--shadow-light);
  position: relative;
}
.notice strong { color: var(--em-900); font-weight: 700; }

/* Info cards (contact methods, feature groups) -------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 4px 0 8px;
}
.info-card {
  background: var(--paper-0);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  padding: var(--card-pad);
  box-shadow: var(--shadow-light);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.info-card:hover {
  border-color: var(--em-500);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(16,185,129,.14), 0 4px 14px rgba(15,30,22,.06);
}
.info-card .info-tag {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--em-700); font-weight: 700;
}
.info-card h2 { margin: 0; font-size: 18px; font-weight: 640; color: var(--paper-ink); letter-spacing: -.006em; }
.info-card p { margin: 0; color: var(--paper-muted-strong); font-size: 14.5px; line-height: 1.6; }
.info-card a { color: var(--em-700); text-decoration: underline; text-underline-offset: 3px; }

/* Paper doc card (wraps a prose column when a contained surface reads better) */
.doc-card {
  background: var(--paper-0);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 44px);
  box-shadow: var(--shadow-light-lg);
  max-width: 860px;
}
.doc-card .prose { max-width: none; }

/* Footer ---------------------------------------------------------------- */
footer.site {
  border-top: 1px solid var(--ink-4);
  background: var(--ink-0);
  padding: 36px 0 40px;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 22px; flex-wrap: wrap;
}
.footer-row nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-row nav a { color: var(--w-3); font-size: 12.5px; }
.footer-row nav a:hover { color: var(--w-1); }
.footer-safety {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--ink-4);
  font-size: 11.5px;
  color: var(--w-4);
  letter-spacing: .01em;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-safety a { color: var(--w-3); text-decoration: underline; text-underline-offset: 3px; }

/* Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  :root { --section-y: 80px; --section-y-tight: 60px; --section-head-mb: 36px; }
  .page-hero { padding: 76px 0 60px; }
}
@media (max-width: 640px) {
  :root { --section-y: 60px; --section-head-mb: 26px; --card-pad: 22px; }
  .container { padding: 0 22px; }
  .nav-inner { padding: 12px 22px; }
  .nav-links.nav-links--menu { display: none; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-safety { flex-direction: column; }
}
