﻿/* ============================================================
   PINTEAN 2.0 — Animations & Scroll Effects
   ============================================================ */

/* ---- Base reveal states ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity  0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-up   { transform: translateY(40px); }
.reveal-down { transform: translateY(-40px); }
.reveal-left { transform: translateX(-40px); opacity: 0; }
.reveal-left.in-view { transform: translateX(0); opacity: 1; }
.reveal-right { transform: translateX(40px); opacity: 0; }
.reveal-right.in-view { transform: translateX(0); opacity: 1; }
.reveal-scale { transform: scale(0.92); opacity: 0; }
.reveal-scale.in-view { transform: scale(1); opacity: 1; }
.reveal-fade { opacity: 0; transform: none; }
.reveal-fade.in-view { opacity: 1; }

/* Delay utilities */
.d-100 { transition-delay: 0.10s; }
.d-200 { transition-delay: 0.20s; }
.d-300 { transition-delay: 0.30s; }
.d-400 { transition-delay: 0.40s; }
.d-500 { transition-delay: 0.50s; }
.d-600 { transition-delay: 0.60s; }
.d-700 { transition-delay: 0.70s; }

/* ---- Hero section ---- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  overflow: hidden;
}
/* Subtle grid pattern */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(201,168,76,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, black 0%, transparent 100%);
  pointer-events: none;
}
/* Dual ambient glow — gold/right for terminal, blue/left for text */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 600px at 72% 50%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 28% 40%, rgba(61,142,240,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Hero two-column split ---- */
.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
}
/* Override old standalone max-width — grid handles it now */
.hero-split .hero-inner { max-width: none; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 16px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-full);
  width: fit-content;
}
.hero-label::before { content: '(π)'; opacity: 0.7; }
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-1);
}
.hero-headline .line-accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 60%, var(--blue-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text-2);
  line-height: 1.85;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  animation: scroll-hint 2.5s ease-in-out infinite;
  z-index: 1;
}
.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-hint-line 2.5s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.9; transform: translateX(-50%) translateY(6px); }
}
@keyframes scroll-hint-line {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.7; }
}

/* ---- Hero entrance animation ---- */
.hero-label   { animation: hero-slide-up 0.8s 0.1s cubic-bezier(0.16,1,0.3,1) both; }
.hero-headline { animation: hero-slide-up 0.9s 0.25s cubic-bezier(0.16,1,0.3,1) both; }
.hero-sub      { animation: hero-slide-up 0.9s 0.4s cubic-bezier(0.16,1,0.3,1) both; }
.hero-ctas     { animation: hero-slide-up 0.9s 0.55s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes hero-slide-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO TRADING TERMINAL — right-side product preview
   ============================================================ */
.hero-right {
  position: relative;
  z-index: 1;
}
.hero-float-wrap {
  animation: hero-float 6s ease-in-out 1.8s infinite;
}
.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 80px rgba(201,168,76,0.06);
  animation: hero-slide-up 1s 0.65s cubic-bezier(0.16,1,0.3,1) both;
  position: relative;
}
.hero-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* Terminal header (macOS window chrome) */
.hero-term-hd {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.htd {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.htd-r { background: #FF5F57; }
.htd-y { background: #FEBC2E; }
.htd-g { background: #28C840; }
.hero-term-file {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin-left: 10px;
  flex: 1;
}
.hero-term-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: 2px 9px;
  border-radius: var(--r-full);
}

/* Equity curve chart */
.hero-chart-area {
  padding: 16px 18px 10px;
  position: relative;
  z-index: 1;
}
.hero-chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.hero-chart-lbl {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-chart-pct {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.03em;
}
.hero-eq-svg {
  width: 100%;
  height: 86px;
  display: block;
}
/* Area fill fades in after line draws (.eq-draw added by js/live.js on viewport entry) */
.hero-eq-area { opacity: 0; }
.hero-eq-svg.eq-draw .hero-eq-area {
  animation: eq-area-in 0.7s 1.2s ease forwards;
}
@keyframes eq-area-in { to { opacity: 1; } }
/* Line draws itself left→right over ~1.6s when chart enters viewport */
.hero-eq-line {
  stroke-dasharray: 650;
  stroke-dashoffset: 650;
}
.hero-eq-svg.eq-draw .hero-eq-line {
  animation: eq-line-draw 1.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes eq-line-draw { to { stroke-dashoffset: 0; } }
/* Live dot pulse — transform-box needed for SVG scale to work from element center */
.hero-eq-pulse {
  transform-box: fill-box;
  transform-origin: center;
}
.hero-eq-svg.eq-draw .hero-eq-pulse {
  animation: eq-pulse 2s ease-in-out 1.8s infinite;
}
/* Curve annotations — fade in after the line finishes drawing (.eq-done) */
.eq-note { opacity: 0; transition: opacity 0.6s ease; }
.eq-note text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
.eq-note-red circle,
.eq-note-red text   { fill: var(--red); }
.eq-note-green circle,
.eq-note-green text { fill: var(--green); }
.hero-eq-svg.eq-done .eq-note { opacity: 1; }
.hero-eq-svg.eq-done .eq-note-green { transition-delay: 0.25s; }
@keyframes eq-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%       { opacity: 0.06; transform: scale(2.2); }
}

/* Key metrics row */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.hero-metric {
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-right: 1px solid var(--border);
  transition: background 0.2s ease;
}
.hero-metric:last-child { border-right: none; }
.hero-metric:hover { background: var(--surface-2); }
.hm-lbl {
  font-family: var(--font-mono);
  font-size: 0.59rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hm-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.02em;
}
.hm-green { color: var(--green); }

/* Recent trades list */
.hero-trades {
  position: relative;
  z-index: 1;
}
.htr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  transition: background 0.15s ease;
}
.htr:last-child { border-bottom: none; }
.htr:hover { background: var(--surface-2); }
.htr-side {
  width: 20px;
  height: 20px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}
.htr-long  { background: rgba(34,197,94,0.12);  color: var(--green); }
.htr-short { background: rgba(239,68,68,0.12);   color: var(--red); }
.htr-pair  { flex: 1; color: var(--text-2); letter-spacing: 0.03em; }
.htr-r     { font-weight: 700; letter-spacing: 0.03em; }
.htr-w .htr-r { color: var(--gold); }
.htr-l .htr-r { color: var(--text-3); }
.htr-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: var(--r-full);
  flex-shrink: 0;
}
.htt-w { background: rgba(201,168,76,0.1); color: var(--gold); border: 1px solid var(--gold-border); }
.htt-l { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }

/* ---- Stats section ---- */
#stats {
  padding: clamp(80px, 10vw, 120px) 0;
  position: relative;
}
#stats::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(61,142,240,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--surface);
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.stat-item:hover { background: var(--surface-2); }
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-item:hover::before { opacity: 1; }
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-number .stat-accent { color: var(--gold); }
.stat-label {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 200px;
}
.stat-source {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---- Story / Scrollytelling — "O lună din contul lui Andrei" ---- */
#story {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.scrolly { height: 400vh; position: relative; }
.scrolly-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 3vh, 32px);
  padding-top: calc(var(--nav-h) + 12px);
  overflow: hidden;
}
.scrolly-head h2 { max-width: 640px; margin: 10px 0; }
.scrolly-head p  { max-width: 560px; }

/* Chart terminal box */
.scrolly-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 18px 18px;
  position: relative;
}
.scrolly-chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.scrolly-chart-lbl {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scrolly-chart-pct {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}
.scrolly-plot-wrap { position: relative; }
.scrolly-plot { position: relative; }
.scrolly-svg {
  display: block;
  width: 100%;
  height: clamp(220px, 38vh, 420px);
}

/* Axis labels (HTML so they never stretch) */
.scrolly-ax {
  position: absolute;
  left: 6px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  pointer-events: none;
}
.scrolly-ax-d { transform: none; top: auto; bottom: 4px; }
.scrolly-ax-d30 { left: auto; right: 6px; }

/* Beat anchor dots */
.scrolly-bdot {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.scrolly-bdot.on { opacity: 1; }
.sb-green { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.sb-red   { background: var(--red);   box-shadow: 0 0 8px rgba(239,68,68,0.5); }
.sb-gold  { background: var(--gold);  box-shadow: 0 0 8px var(--gold-glow); }

/* Final point — pulses gold when the curve completes */
.scrolly-end-dot {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.scrolly.done .scrolly-end-dot {
  opacity: 1;
  animation: scrolly-pulse 1.6s ease-in-out infinite;
}
@keyframes scrolly-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.55); }
  50%       { box-shadow: 0 0 0 14px rgba(201,168,76,0); }
}

/* Journal annotation cards — overlay layer matches the plot box exactly */
.scrolly-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.scrolly-card {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  transform: translate(-50%, calc(-100% - 16px));
  display: flex;
  align-items: baseline;
  gap: 8px;
  max-width: 240px;
  padding: 7px 12px;
  background: rgba(13, 20, 40, 0.92);
  border: 1px solid var(--border-2);
  border-left-width: 2px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-2);
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.scrolly-card.on { opacity: 1; }
.sc-flip-left { transform: translate(calc(-100% - 16px), -50%); }
.scrolly-card[data-beat="4"],
.scrolly-card[data-beat="5"] { white-space: normal; }
.scrolly-card-day {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  flex-shrink: 0;
}
.sc-green { border-left-color: var(--green); }
.sc-green .scrolly-card-day { color: var(--green); }
.sc-red   { border-left-color: var(--red); }
.sc-red .scrolly-card-day   { color: var(--red); }
.sc-gold  { border-left-color: var(--gold); }
.sc-gold .scrolly-card-day  { color: var(--gold); }

/* Story 2 (DCA): the average-entry line appears once the plan completes */
.s2-avg {
  opacity: 0;
  transition: opacity 0.7s ease 0.15s;
}
.scrolly.done .s2-avg,
.scrolly-static .s2-avg { opacity: 0.65; }

/* Narrative slot + final CTA share one area and crossfade */
.scrolly-foot { position: relative; min-height: clamp(110px, 16vh, 150px); }
.scrolly-narrative { position: absolute; inset: 0; }
.scrolly-line-txt {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.scrolly-line-txt.on { opacity: 1; transform: translateY(0); }
.scrolly-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
  pointer-events: none;
}
.scrolly-cta h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.scrolly.done .scrolly-cta { opacity: 1; pointer-events: all; }
.scrolly.done .scrolly-line-txt { opacity: 0; }

/* Static fallback — prefers-reduced-motion (js/scrolly.js adds .scrolly-static):
   full curve, all annotations visible, narrative as a plain list */
.scrolly-static { height: auto; padding: clamp(60px, 8vw, 100px) 0; }
.scrolly-static .scrolly-stage { position: static; height: auto; overflow: visible; }
.scrolly-static .scrolly-bdot,
.scrolly-static .scrolly-card,
.scrolly-static .scrolly-end-dot { opacity: 1; transition: none; }
/* .scrolly.* needed to outweigh the 3-class .scrolly.done rules above */
.scrolly.scrolly-static .scrolly-end-dot { animation: none; }
.scrolly-static .scrolly-cards {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  pointer-events: all;
}
.scrolly-static .scrolly-card { position: static; transform: none; white-space: normal; max-width: none; }
.scrolly-static .scrolly-foot { min-height: 0; }
.scrolly-static .scrolly-narrative {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.scrolly.scrolly-static .scrolly-line-txt { position: static; opacity: 1; transform: none; text-align: left; pointer-events: all; }
.scrolly-static .scrolly-cta { position: static; opacity: 1; pointer-events: all; align-items: flex-start; text-align: left; }

/* ---- Why section ---- */
#why {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.why-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}
.why-card:hover::after { transform: scaleX(1); }
.why-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.why-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
}
.why-body {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.8;
}

/* ---- Inner page hero ---- */
.inner-hero {
  padding: calc(var(--nav-h) + 80px) 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.inner-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), var(--blue-border), transparent);
}

/* ---- About page specific ---- */
.about-single { max-width: 720px; }
/* Wordmark treatment for the page's own name: lowercase, the "pi" prefix
   in the same gold as the intro overlay's typed "pi" before it flickers
   into the π mark — kept as plain text here, no SVG glyph. Sized well
   below display-lg so it reads as part of the page, not a slab. */
.about-wordmark {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
.about-wordmark-pi { color: var(--gold); }
.about-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}
.about-content section {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.about-content section:last-child { border-bottom: none; }
.about-content h3 {
  margin-bottom: 16px;
}
.about-step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.about-content p {
  color: var(--text-2);
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-content p:last-child { margin-bottom: 0; }
.about-quote {
  border-left: 3px solid var(--gold);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--gold-dim);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold-2);
  line-height: 1.7;
  font-style: italic;
}

/* ---- Contact page specific ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-help-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-help-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}
.contact-help-item::before {
  content: '→';
  color: var(--gold);
  font-family: var(--font-mono);
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-notice {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-border);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ---- Blog page specific ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.blog-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.blog-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-1);
}
.blog-excerpt {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.75;
  flex: 1;
}
.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
}
.blog-read-link {
  color: var(--gold);
  transition: color 0.2s;
}
.blog-read-link:hover { color: var(--gold-2); }

/* ============================================================
   WORKSPACE GRID — terminal-style tiles (library preview)
   ============================================================ */
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.ws-tile {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: border-color 0.25s ease;
}
.ws-tile:hover { border-color: var(--border-2); }
.ws-tile-gold { border-color: var(--gold-border); }
.ws-tile-gold:hover { border-color: rgba(201, 168, 76, 0.4); }
.ws-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ws-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.ws-desc {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}
.ws-spark { width: 100%; height: 36px; overflow: visible; }
.ws-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.ws-price {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* Calculator tile */
.ws-calc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ws-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ws-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ws-input:focus {
  outline: none;
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.ws-calc-out {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ws-out-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
}
.ws-out-row strong {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: none;
}
.calc-err {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--red);
  line-height: 1.5;
}

/* Market sessions tile */
.ws-sess {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}
.ws-sess-city {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.06em;
  width: 36px;
  flex-shrink: 0;
}
.ws-sess-name {
  font-size: 0.68rem;
  color: var(--text-3);
  flex: 1;
}
.ws-sess .sc-status {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
}
.ws-sess.open .sc-status { color: var(--green); }
.ws-sess-time {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ws-sess-time .sc-time {
  font-size: 0.85rem;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  text-transform: none;
}

/* Research feed tile */
.ws-feed {
  list-style: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ws-feed a {
  display: flex;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  line-height: 1.55;
  transition: color 0.2s ease;
}
.ws-feed a:hover { color: var(--text-1); }
.ws-feed-pre { color: var(--gold); flex-shrink: 0; }
.ws-feed-all {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  transition: color 0.2s ease;
}
.ws-feed-all:hover { color: var(--gold-2); }

/* ============================================================
   Reduced motion — skip animations, show final state
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-float-wrap,
  .cursor-blink,
  .hero-eq-pulse {
    animation: none !important;
  }
  .hero-eq-line {
    animation: none !important;
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
  .hero-eq-area,
  .eq-note {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
}
