/* Onyx Counsel marketing site. Palette mirrors the Onyx Dashboard light theme,
 * warmed with the brand logo's flame gradient (deep orange to gold) as the accent
 * and a money-green reserved for dollar figures. Blue stays the CTA/action color. */

:root {
  --bg: #f6f5f3;
  --ink: #1d1d1f;
  --ink-soft: #525257;
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --card: #ffffff;
  --dark: #0d0d12;
  --dark-card: #17171d;
  --dark-ink: #f5f5f7;
  --dark-ink-soft: #a1a1a8;
  --border: rgba(0, 0, 0, 0.08);

  /* Brand flame, sampled from the logo (top to bottom) */
  --flame-red: #d6521c;
  --flame: #e8731e;
  --flame-gold: #efa326;
  --flame-grad: linear-gradient(180deg, #d6521c 0%, #e8731e 52%, #efa326 100%);
  --flame-soft: rgba(232, 115, 30, 0.10);

  /* Money green, reserved for dollar figures */
  --money: #0e9d67;
  --money-bright: #34d399;

  --radius: 24px;
  --radius-lg: 32px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Aave-style italic serif accent inside headlines, painted with the flame gradient */
.serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  background: var(--flame-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Eyebrow badge, flame-tinted */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--flame-soft); border: 1px solid rgba(232, 115, 30, 0.22);
  font-size: 14px; font-weight: 600; color: var(--flame-red);
}
.dark-panel .eyebrow {
  background: rgba(232, 115, 30, 0.14);
  border-color: rgba(232, 115, 30, 0.32);
  color: var(--flame-gold);
}

/* Pill buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-light { background: rgba(255, 255, 255, 0.1); color: var(--dark-ink); }

/* Dark mega-panel */
.dark-panel {
  background: var(--dark); color: var(--dark-ink);
  border-radius: var(--radius-lg);
  margin: 24px; padding: 96px 0;
}

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.dark-panel .card {
  background: var(--dark-card);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Headline scale */
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
section { padding: 80px 0; }
.section-sub { font-size: 19px; color: var(--ink-soft); max-width: 640px; }
.dark-panel .section-sub { color: var(--dark-ink-soft); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { height: 38px; width: auto; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 10px 22px; font-size: 15px; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 64px;
  background:
    radial-gradient(ellipse 62% 52% at 78% 2%, rgba(232, 115, 30, 0.13), transparent 60%),
    radial-gradient(ellipse 72% 58% at 22% 6%, rgba(0, 113, 227, 0.11), transparent 62%);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }

/* Animated growth curve: a full blue-to-green line trails in from off-screen and
   out the other side over a static subdued track, while the graph gently breathes */
.hero-graph {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56%;
  z-index: 0; pointer-events: none;
  transform-origin: 50% 100%;
  animation: graph-breathe 7s ease-in-out infinite, graph-fade-in 1s ease forwards;
}
.hero-graph svg { width: 100%; height: 100%; display: block; }
.graph-track, .graph-trail {
  fill: none; stroke: url(#g-line); stroke-width: 3;
  vector-effect: non-scaling-stroke; stroke-linecap: round;
}
.graph-track { stroke-width: 2.5; opacity: 0.22; }
.graph-trail {
  stroke-dasharray: 0.9 1.5;
  filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.5));
  animation: graph-trail 8s linear infinite;
}
/* One trail (0.9) crosses, fully exits, then a long gap (1.5 > on-screen width)
   leaves the screen empty before the next line enters. Shift = one full period. */
@keyframes graph-trail { from { stroke-dashoffset: 2.4; } to { stroke-dashoffset: 0; } }
@keyframes graph-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.045); } }
@keyframes graph-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .graph-trail { animation: none; stroke-dasharray: none; opacity: 0.5; }
  .hero-graph { animation: none; }
}
.hero-logo { height: 132px; width: auto; margin-bottom: -4px; }
.hero-sub { font-size: 20px; color: var(--ink-soft); max-width: 600px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero-cards { display: flex; align-items: flex-end; justify-content: center; margin-top: 40px; }
.float-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  width: 270px; padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
}
.fc-1 { transform: rotate(-5deg) translateY(14px); }
.fc-2 { z-index: 2; transform: scale(1.06); margin: 0 -4px; }
.fc-3 { transform: rotate(5deg) translateY(14px); text-align: center; align-items: center; }
.fc-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.fc-big { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.fc-money { color: var(--money); }
.fc-metric { color: var(--flame); }
.fc-note { font-size: 13px; color: var(--ink-soft); }
.fc-spark { width: 100%; height: 56px; }
@media (max-width: 980px) and (min-width: 761px) {
  .float-card { width: 220px; padding: 22px; }
  .fc-big { font-size: 32px; }
}
@media (max-width: 760px) {
  .hero-logo { height: 104px; }
  .hero-cards { flex-direction: column; align-items: center; gap: 16px; }
  .fc-1, .fc-3 { display: none; }
  .fc-2 { margin: 0; transform: none; }
}

/* ---------- Proof of work ---------- */
.proof {
  background:
    radial-gradient(circle at 88% 12%, rgba(232, 115, 30, 0.16), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(14, 157, 103, 0.12), transparent 40%),
    var(--dark);
}
.proof .eyebrow { margin-bottom: 20px; }
.proof h2 { margin-bottom: 16px; }
.proof-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 48px;
}
@media (max-width: 820px) { .proof-grid { grid-template-columns: 1fr; } }
/* Center a lone final card when the grid holds an odd number of stats */
.proof-grid .stat-card:last-child:nth-child(odd) {
  grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px);
}
@media (max-width: 820px) {
  .proof-grid .stat-card:last-child:nth-child(odd) { width: 100%; }
}
.stat { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; display: block; }
.stat-money { color: var(--money-bright); }
.stat-metric { color: var(--flame-gold); }
.stat em { font-style: normal; font-size: 22px; color: var(--dark-ink-soft); }
.stat-what { margin-top: 10px; font-size: 16px; }
.stat-so { margin-top: 8px; font-size: 15px; color: var(--dark-ink-soft); }
.proof-total { text-align: center; margin-top: 48px; font-size: 20px; font-weight: 600; }
.proof-total { color: var(--money-bright); }

/* ---------- Shared light-section rhythm ---------- */
.outcomes .eyebrow, .how .eyebrow, .no-ai .eyebrow, .founder .eyebrow,
.promise .eyebrow, .values .eyebrow { margin-bottom: 20px; }
.outcomes h2, .how h2, .no-ai h2, .promise h2, .values h2 { margin-bottom: 16px; }

/* ---------- Outcomes ---------- */
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.outcome-grid .card { border-top: 3px solid var(--border); }
.outcome-grid .card:nth-child(1), .outcome-grid .card:nth-child(2) { border-top-color: var(--money); }
.outcome-grid .card:nth-child(3) { border-top-color: var(--accent); }
.outcome-grid .card h3 { margin-bottom: 10px; }
.outcome-grid .card:nth-child(1) h3, .outcome-grid .card:nth-child(2) h3 { color: var(--money); }
.outcome-grid .card:nth-child(3) h3 { color: var(--accent); }
.outcome-grid .card p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 820px) { .outcome-grid { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--flame-grad); color: #fff;
  font-weight: 700; font-size: 18px; margin-bottom: 16px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- How it works CTA ---------- */
.how-cta { text-align: center; margin-top: 8px; }

/* ---------- No AI (cool slate panel for mid-page contrast) ---------- */
.no-ai {
  margin: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ebedf3 0%, #e4e7ef 100%);
  border: 1px solid rgba(29, 29, 31, 0.06);
}
.noai-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.noai-cols h3 { margin-bottom: 14px; }
.noai-not ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.noai-not li { margin-bottom: 10px; }
.noai-do p { color: var(--ink-soft); }
@media (max-width: 820px) { .noai-cols { grid-template-columns: 1fr; } }

/* ---------- Values / foundation ---------- */
.values {
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(232, 115, 30, 0.05), transparent 60%);
}
.values-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.values-intro { margin: 0 auto; }
.values-list {
  list-style: none; padding: 0;
  max-width: 760px; width: 100%; margin: 48px auto 0;
  text-align: left;
}
.value-item {
  display: flex; gap: 20px;
  padding: 28px 0; border-top: 1px solid var(--border);
}
.value-item:first-child { border-top: none; padding-top: 8px; }
.value-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--flame-grad); color: #fff; font-weight: 700; font-size: 18px;
}
.value-body h3 { margin-bottom: 8px; }
.value-meaning { color: var(--ink-soft); font-size: 16px; }
.value-verse {
  margin-top: 12px;
  font-family: var(--font-serif); font-style: italic;
  color: var(--ink-soft); font-size: 15.5px;
}
.value-ref {
  font-family: var(--font-sans); font-style: normal; font-weight: 700;
  font-size: 13px; color: var(--flame-red); margin-right: 8px;
}
.values-close {
  max-width: 720px; margin: 48px auto 0; text-align: center;
  font-size: 22px; line-height: 1.5; color: var(--ink);
}
.values-close strong { color: var(--flame-red); font-weight: 700; }
@media (max-width: 560px) {
  .value-item { gap: 14px; }
  .values-close { font-size: 19px; }
}

/* ---------- Promise panel ---------- */
.promise {
  background:
    radial-gradient(circle at 82% 18%, rgba(232, 115, 30, 0.18), transparent 46%),
    linear-gradient(160deg, #0d0d12, #101529);
}
.promise-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.promise .section-sub { max-width: 680px; margin-bottom: 32px; }

/* ---------- Reviews marquee ---------- */
.reviews { overflow: hidden; }
.reviews-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.reviews-head h2 .stars { color: #f5b301; font-size: 0.75em; letter-spacing: 4px; vertical-align: middle; }
.reviews-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.reviews-link:hover { text-decoration: underline; }
.marquee { overflow: hidden; margin-top: 40px; }
.marquee-track { display: flex; gap: 24px; width: max-content; animation: reviews-scroll 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes reviews-scroll { to { transform: translateX(-50%); } }
.review-card { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.review-stars { color: #f5b301; letter-spacing: 2px; }
.review-card blockquote { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.review-card figcaption { font-weight: 600; font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- Founder ---------- */
.founder-inner { max-width: 720px; }
.founder-text p { color: var(--ink-soft); font-size: 17px; margin-top: 16px; max-width: 640px; }

/* ---------- FAQ ---------- */
.faq .eyebrow { margin-bottom: 20px; }
.faq h2 { margin-bottom: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 20px 24px;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 17px;
  list-style: none; position: relative; padding-right: 36px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 26px; font-weight: 400;
  color: var(--flame); transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 96px 0; }
.final-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.final-inner h2 { max-width: 760px; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--card); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--flame-grad);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
.footer-brand .brand { margin-bottom: 16px; }
.entity { color: var(--ink-soft); font-size: 14.5px; max-width: 520px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--ink); }
.copyright { margin-top: 40px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Legal pages (terms, privacy) ---------- */
.legal-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 243, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.legal-nav .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.legal-back { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.legal-back:hover { color: var(--ink); }
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }
.legal-callout {
  background: var(--flame-soft); border: 1px solid rgba(232, 115, 30, 0.2);
  border-radius: 16px; padding: 4px 24px 20px; margin: 24px 0;
}
.legal-callout h2 { margin-top: 20px; }
.legal-footer { border-top: 1px solid var(--border); text-align: center; padding: 28px 24px; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- CTA microcopy ---------- */
.cta-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.dark-panel .cta-note { color: var(--dark-ink-soft); }
.how .cta-note { margin-top: 12px; }

/* ---------- Industry strip (warm panel) ---------- */
.industries {
  margin: 24px;
  padding: 64px 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 20%, rgba(239, 163, 38, 0.10), transparent 45%),
    linear-gradient(135deg, rgba(232, 115, 30, 0.09), rgba(239, 163, 38, 0.05));
  border: 1px solid rgba(232, 115, 30, 0.14);
}
.industries-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.industries .eyebrow { margin-bottom: 2px; }
.industries-title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 720px; margin-top: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  box-shadow: 0 2px 10px rgba(214, 82, 28, 0.06);
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--flame-grad); flex-shrink: 0;
}
.chip:hover { border-color: rgba(232, 115, 30, 0.5); color: var(--flame-red); transform: translateY(-1px); }
.industries-note { color: var(--ink-soft); font-size: 15px; max-width: 520px; }

/* ---------- Findings preview ---------- */
.findings-wrap { display: flex; justify-content: center; margin: 8px 0 32px; }
.findings-card { width: 100%; max-width: 520px; padding: 28px; }
.findings-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.findings-title { font-weight: 700; font-size: 17px; }
.findings-badge {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--flame-red); background: var(--flame-soft);
  padding: 4px 10px; border-radius: 999px;
}
.findings-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 15.5px; color: var(--ink-soft);
}
.findings-val { font-weight: 700; color: var(--money); font-variant-numeric: tabular-nums; }
.findings-total { border-bottom: none; color: var(--ink); font-weight: 600; }
.findings-total .findings-val { color: var(--money); }
.findings-note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Final CTA tagline ---------- */
.final-tagline { font-size: 19px; color: var(--ink-soft); margin-top: -8px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.revealed { opacity: 1; transform: none; }
@media (min-width: 761px) {
  .float-card.reveal.revealed.fc-1 { transform: rotate(-5deg) translateY(14px); }
  .float-card.reveal.revealed.fc-2 { transform: scale(1.06); }
  .float-card.reveal.revealed.fc-3 { transform: rotate(5deg) translateY(14px); }
}
