/* ══════════════════════════════════════════════════════════════
   JDesigns Strategist — shared site design system
   One canonical token set + component library for every marketing
   page (home, work-with-me, case studies, systems pages, etc).
   Brand is unchanged: dark forest green, serif/sans pairing.
   What's new: full-bleed chapter bands, monospace meta labels,
   a dashboard-style metrics panel, numbered process cards, a
   scramble-text reveal, and a much bigger hero scale.
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:           #07100a;
  --bg-deep:      #050b07;
  --surface:      #0d1a10;
  --surface2:     #111f15;
  --border:       rgba(30,50,37,0.7);
  --border-green: rgba(46,194,126,.22);
  --green:        #2ec27e;
  --green-dim:    rgba(46,194,126,.08);
  --green-glow:   rgba(46,194,126,.06);
  --text:         #ffffff;
  --sage:         #c4dccb;
  --muted:        #8aab96;
  --faint:        #1e3225;
  --danger:       #e05a3a;
  --radius:       14px;
  --page:         760px;
  --wide:         1040px;
  --font-serif:   Georgia, 'Times New Roman', serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Scroll progress ── */
.story-progress{position:fixed; top:0; left:0; height:2.5px; width:0%; background:var(--green); z-index:200; box-shadow:0 0 10px rgba(46,194,126,.5); transition:width .08s linear;}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,16,10,0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--wide); margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--green);
  border: 1px solid var(--border-green); border-radius: 999px;
  padding: 7px 14px 7px 12px; background: var(--green-dim);
  white-space: nowrap; transition: border-color .15s, background .15s;
}
.nav-logo:hover { border-color: var(--green); background: rgba(46,194,126,.14); }
.nav-logo .mark { font-family: var(--font-serif); font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  padding: 5px 12px; border-radius: 999px; transition: color .15s, background .15s; white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--green); }
.nav-cta {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: #07100a;
  background: var(--green); padding: 8px 16px; border-radius: 999px;
  transition: opacity .15s, transform .12s; white-space: nowrap;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }
.nav-dropdown { position: relative; cursor: pointer; }
.nav-dropdown::after { content:''; position:absolute; top:100%; left:0; width:100%; height:6px; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 150px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35); flex-direction: column; gap: 2px; z-index: 150;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-item { font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 7px 12px; border-radius: 8px; white-space: nowrap; transition: color .15s, background .15s; }
.nav-dropdown-item:hover { color: var(--text); background: var(--bg); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 8px; border: 1px solid var(--border); background: transparent; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--sage); position: relative; transition: background .15s; }
.nav-toggle span::before, .nav-toggle span::after { content:''; position:absolute; left:0; width:16px; height:1.5px; background:var(--sage); transition: transform .15s; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle:hover { border-color: var(--border-green); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px; box-shadow: 0 16px 32px rgba(0,0,0,.35);
  }
  .nav-links.open { display: flex; }
  .nav-links.open .nav-link, .nav-links.open .nav-cta { width: 100%; justify-content: space-between; padding: 14px; border-radius: 10px; font-size: 14px; }
  .nav-links.open .nav-link::after { content: '→'; opacity: .5; }
  .nav-links.open .nav-dropdown-menu { display: flex; position: static; border: none; padding: 0 0 0 14px; box-shadow: none; background: transparent; }
  .nav-links.open .nav-dropdown-item { padding: 10px 14px; font-size: 13px; }
}

/* ── Page / band layout system ── */
.page { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.band { width: 100%; position: relative; }
.band-inner { max-width: var(--page); margin: 0 auto; padding: 64px 24px; }
.band-inner.wide { max-width: var(--wide); }
.band-alt { background: var(--surface); border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.band-deep { background: var(--bg-deep); }
@media (max-width: 580px) { .band-inner { padding: 48px 20px; } }

/* ── Chapter label (monospace section marker) ── */
.chapter-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--faint);
}
.chapter-label .num { color: var(--green); font-weight: 700; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px; padding: 13px 26px; border-radius: 999px;
  background: var(--green); color: #07100a; font-size: 13.5px; font-weight: 700; letter-spacing: 0.03em;
  transition: opacity .15s, transform .12s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px; padding: 13px 26px; border-radius: 999px;
  background: transparent; border: 1px solid var(--border-green); color: var(--muted); font-size: 13.5px; font-weight: 600;
  transition: border-color .15s, color .15s, background .15s;
}
.btn-secondary:hover { border-color: var(--green); color: var(--text); background: var(--green-dim); }

/* ── Hero (full statement scale) ── */
.hero-full { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; padding: 110px 0 60px; }
.hero-full::before {
  content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; max-width: 140vw;
  background: radial-gradient(circle, rgba(46,194,126,.16) 0%, transparent 65%);
  pointer-events: none; z-index: 0; animation: driftGlow 11s ease-in-out infinite;
}
@keyframes driftGlow { 0%,100%{ transform:translateX(-50%) scale(1); opacity:.85; } 50%{ transform:translateX(-46%) scale(1.08); opacity:1; } }
.hero-full > * { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 22px;
}
.hero-full h1 {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 7.4vw, 5.6rem); line-height: 1.04; margin-bottom: 24px; max-width: 16ch;
}
.hero-sub { font-size: clamp(14px, 1.6vw, 17px); color: var(--sage); line-height: 1.7; margin-bottom: 32px; max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-stat { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.hero-stat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: pulseDot 1.8s ease-in-out infinite; }
@keyframes pulseDot{0%,100%{opacity:1; box-shadow:0 0 0 0 rgba(46,194,126,.5);} 50%{opacity:.5; box-shadow:0 0 0 5px rgba(46,194,126,0);}}
@media (max-width: 640px) { .hero-full { min-height: 62vh; padding: 90px 0 40px; } }

/* ── Scramble text (JS toggles chars; CSS just needs tabular width stability) ── */
[data-scramble] { font-variant-numeric: tabular-nums; }

/* ── Dashboard metrics panel (bynar-style readout) ── */
.dash-panel {
  position: relative; border: 1px solid var(--border-green); border-radius: 18px;
  background: var(--surface); padding: 28px 26px;
}
.dash-panel::before, .dash-panel::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-color: var(--green); border-style: solid; opacity: .7;
}
.dash-panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 18px 0 0 0; }
.dash-panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 18px 0; }
.dash-live {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 18px;
}
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px 22px; }
.dash-metric { position: relative; padding-bottom: 10px; }
.dash-metric::after { content:''; position:absolute; left:0; bottom:0; width:36px; height:2px; background:linear-gradient(90deg,var(--green),transparent); }
.dash-metric .n { display:block; font-family: var(--font-mono); font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--green); font-variant-numeric: tabular-nums; text-shadow: 0 0 20px rgba(46,194,126,.4); }
.dash-metric .l { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-top: 6px; display: block; }

/* ── Numbered process cards (hobro-style journey grid) ── */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.process-card {
  position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; background: var(--surface); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.process-card::after {
  content: ''; position: absolute; top: -50%; right: -25%; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(46,194,126,.12), transparent 70%); opacity: 0; transition: opacity .3s;
}
.process-card:hover { transform: translateY(-4px); border-color: var(--border-green); box-shadow: 0 14px 34px rgba(46,194,126,.1); }
.process-card:hover::after { opacity: 1; }
.process-card .num { font-family: var(--font-mono); font-size: 11.5px; color: var(--green); letter-spacing: .1em; }
.process-card h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 400; margin: 12px 0 9px; line-height: 1.3; }
.process-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Link cards ── */
.link-stack { display: flex; flex-direction: column; gap: 10px; }
.link-card {
  display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px; transition: border-color .15s, transform .12s, box-shadow .15s;
}
.link-card:hover { border-color: var(--border-green); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(46,194,126,.07); }
.link-card-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: var(--green-dim); border: 1px solid var(--border-green); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.link-card-body { flex: 1; min-width: 0; }
.link-card-title { font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 3px; }
.link-card-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.link-card-meta { font-size: 11px; color: var(--green); margin-top: 4px; }
.link-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.price-badge { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.price-free { background: transparent; border: 1px solid var(--green); color: var(--green); }
.price-paid { background: var(--green); color: #07100a; }
.arrow { color: var(--muted); font-size: 14px; transition: color .15s, transform .15s; }
.link-card:hover .arrow { color: var(--green); transform: translateX(3px); }

/* ── Blog / content cards ── */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .12s, box-shadow .15s; }
.blog-card:hover { border-color: var(--border-green); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(46,194,126,.07); }
.blog-card-tag-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blog-card-tag { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.blog-card-date { font-size: 11px; color: var(--muted); }
.blog-card-title { font-family: var(--font-serif); font-size: 16px; font-weight: 400; color: var(--text); line-height: 1.35; }
.blog-card-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.blog-card-arrow { font-size: 12px; color: var(--green); margin-top: 4px; }

/* ── Testimonial ── */
.testimonial-block { background: var(--surface); border: 1px solid var(--border-green); border-radius: 16px; padding: 26px 24px; }
.testimonial-stars { font-size: 13px; letter-spacing: 2px; color: var(--green); margin-bottom: 10px; }
.testimonial-quote { font-family: var(--font-serif); font-size: 16px; color: var(--sage); line-height: 1.65; font-style: italic; margin-bottom: 14px; }
.testimonial-author { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ── Socials ── */
.social-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 12.5px; font-weight: 500; color: var(--muted); transition: border-color .15s, background .15s, color .15s; }
.social-pill:hover { border-color: var(--green); background: var(--green-dim); color: var(--text); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 32px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-left { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-link { font-size: 12px; color: var(--muted); transition: color .15s; }
.footer-link:hover { color: var(--green); }
@media (max-width: 420px) { .footer { flex-direction: column; align-items: flex-start; } }

/* ── Reveal-on-scroll ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ── Persistent CTA (desktop only) ── */
.sticky-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  display: inline-flex; align-items: center; gap: 7px; padding: 13px 22px; border-radius: 999px;
  background: var(--green); color: #07100a; font-size: 13px; font-weight: 700; letter-spacing: .03em;
  box-shadow: 0 8px 28px rgba(46,194,126,.35); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.sticky-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta:hover { opacity: .88; }
@media (max-width: 899px) { .sticky-cta { display: none; } }

/* ── Profile header ── */
.profile-header { display: flex; align-items: center; gap: 16px; }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--green); flex-shrink: 0; }
.profile-name { font-size: 19px; font-weight: 700; line-height: 1.2; }
.profile-handle { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
@media (max-width: 420px) { .profile-avatar { width: 76px; height: 76px; } }

/* ── Category pills, view-all, process card as link ── */
.process-card { display: block; }
.category-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.cat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--muted); transition: border-color .15s, color .15s, background .15s; }
.cat-pill:hover { border-color: var(--green); color: var(--text); background: var(--green-dim); }
.cat-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.view-all { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--green); border: 1px solid var(--border-green); border-radius: 999px; padding: 9px 18px; transition: background .15s, border-color .15s; }
.view-all:hover { background: var(--green-dim); border-color: var(--green); }

/* ── Knowledge Hub block ── */
.hub-block { display: flex; gap: 24px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px 28px; position: relative; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.hub-block::before { content: ''; position: absolute; top: 0; right: 0; width: 220px; height: 220px; background: radial-gradient(circle, rgba(46,194,126,.07) 0%, transparent 70%); pointer-events: none; }
.hub-block:hover { border-color: var(--border-green); box-shadow: 0 8px 32px rgba(46,194,126,.07); }
.hub-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--green-dim); border: 1px solid var(--border-green); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.hub-body { flex: 1; }
.hub-body h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 400; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.hub-body p { font-size: 13.5px; color: var(--sage); line-height: 1.65; margin-bottom: 18px; }
.hub-nodes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.hub-node { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
@media (max-width: 580px) { .hub-block { flex-direction: column; gap: 16px; } .hub-icon { width: 44px; height: 44px; font-size: 1.2rem; } }

/* ── Help / closing CTA block ── */
.help-block { background: var(--surface); border: 1px solid var(--border-green); border-radius: 16px; padding: 32px 24px; text-align: center; }
.help-block h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; margin-bottom: 8px; }
.help-block p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 22px; max-width: 420px; margin-left: auto; margin-right: auto; }
