/* ==========================================================================
   MATTEO MALDINI — QUANTITATIVE TRADING
   Main stylesheet
   ========================================================================== */

:root {
  --bg-deep: #050810;
  --bg-mid: #0a0f1c;
  --bg-card: #0f1626;
  --bg-glass: rgba(15, 22, 38, 0.55);
  --line: rgba(180, 200, 230, 0.08);
  --line-strong: rgba(180, 200, 230, 0.18);

  --text: #e8eef7;
  --text-mute: #98a4b8;
  --text-dim: #5d6a7e;

  --gold: #d4af37;
  --gold-soft: #f1d472;
  --cyan: #4ee2ec;
  --cyan-deep: #1f8d96;
  --emerald: #34d399;
  --crimson: #ef4444;
  --violet: #8b5cf6;

  --grad-primary: linear-gradient(135deg, #d4af37 0%, #f1d472 50%, #4ee2ec 100%);
  --grad-secondary: linear-gradient(135deg, #4ee2ec 0%, #8b5cf6 100%);
  --grad-text: linear-gradient(180deg, #ffffff 0%, #98a4b8 100%);

  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  --shadow-glow-gold: 0 0 60px rgba(212, 175, 55, 0.25);
  --shadow-glow-cyan: 0 0 60px rgba(78, 226, 236, 0.18);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --max-width: 1280px;
  --header-h: 80px;
}

/* Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 900px) { body { cursor: auto; } }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select {
  font-family: inherit;
  background: transparent;
  border: 0;
  color: inherit;
  outline: none;
}
::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }

/* Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h4 { font-size: 1.25rem; }
p  { color: var(--text-mute); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--gold); opacity: 0.6;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.serif-italic { font-style: italic; font-family: var(--font-display); }

/* Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
section { position: relative; padding: clamp(72px, 10vw, 140px) 0; }

.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { justify-content: center; margin-bottom: 18px; }
.section-head p { margin-top: 18px; font-size: 1.05rem; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Background canvas / particles
   -------------------------------------------------------------------------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 20% 10%, rgba(78, 226, 236, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.07), transparent 45%),
    var(--bg-deep);
}
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.7; }
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
}

/* Custom cursor
   -------------------------------------------------------------------------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
  mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.55); transition: width 0.4s, height 0.4s, transform 0.06s linear, opacity 0.3s; }
body.cursor-hover .cursor-ring { width: 64px; height: 64px; border-color: var(--gold); }
body.cursor-hover .cursor-dot { background: var(--gold); }
@media (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }

/* Scroll progress
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--grad-primary);
  z-index: 9998;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-deep);
  display: grid; place-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-mark {
  width: 84px; height: 84px; margin: 0 auto 24px; position: relative;
}
.loader-mark::before, .loader-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--gold);
  animation: loader-spin 1.6s cubic-bezier(0.5, 0.1, 0.3, 1) infinite;
}
.loader-mark::after {
  border-color: var(--cyan); animation-delay: -0.8s; inset: 8px;
}
.loader-text {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.4em; color: var(--text-mute);
}
@keyframes loader-spin {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(5, 8, 16, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: transform 0.4s ease, background 0.3s ease;
}
.header.scrolled { background: rgba(5, 8, 16, 0.85); }
.header.hidden { transform: translateY(-100%); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.01em;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-primary);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.logo-mark::after {
  content: "M"; font-family: var(--font-display); font-weight: 600;
  font-size: 18px; color: var(--bg-deep);
}
.logo-mark::before {
  content: ""; position: absolute; inset: -2px;
  background: conic-gradient(from 0deg, transparent, var(--gold), transparent);
  animation: logo-spin 6s linear infinite;
}
@keyframes logo-spin { to { transform: rotate(360deg); } }
.logo-name { font-weight: 500; }
.logo-name span { color: var(--gold); }

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 10px 16px; font-size: 0.9rem;
  color: var(--text-mute); transition: color 0.3s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans); font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.btn-primary {
  background: var(--grad-primary); color: var(--bg-deep);
  box-shadow: 0 12px 40px -12px rgba(212, 175, 55, 0.55);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, #fff, var(--cyan));
  opacity: 0; transition: opacity 0.4s ease; z-index: -1;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -10px rgba(212, 175, 55, 0.75); }
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn .arrow { transition: transform 0.3s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

.menu-toggle {
  display: none; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line-strong);
  align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 18px; height: 1px; background: var(--text); position: relative;
  transition: background 0.2s;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--text);
  transition: transform 0.3s ease;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav, .header .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(5, 8, 16, 0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  transform: translateY(-100%); transition: transform 0.55s cubic-bezier(0.7, 0, 0.3, 1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2rem; color: var(--text);
}
.mobile-menu a:hover { color: var(--gold); }

/* Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh; padding-top: calc(var(--header-h) + 64px);
  display: flex; align-items: center; position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } }

.hero-headline {
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 1.02; font-weight: 400;
}
.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line span { display: inline-block; transform: translateY(110%); animation: rise 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero-headline .line:nth-child(2) span { animation-delay: 0.5s; }
.hero-headline .line:nth-child(3) span { animation-delay: 0.7s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  margin-top: 28px; max-width: 540px;
  font-size: 1.1rem; line-height: 1.7;
  opacity: 0; animation: fade-in 0.8s 1.1s ease forwards;
}
@keyframes fade-in { to { opacity: 1; } }

.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; opacity: 0; animation: fade-in 0.8s 1.3s ease forwards; }
.hero-meta {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 40px;
  opacity: 0; animation: fade-in 0.8s 1.5s ease forwards;
}
.hero-meta .stat-num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.hero-meta .stat-lbl { display: block; margin-top: 6px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }

/* Hero visual: animated chart */
.hero-visual {
  position: relative; aspect-ratio: 1 / 1; max-width: 580px;
  justify-self: end;
}
@media (max-width: 1000px) { .hero-visual { justify-self: center; aspect-ratio: 4 / 3; } }
.hero-visual::before {
  content: ""; position: absolute; inset: 6%;
  background: radial-gradient(circle at 50% 50%, rgba(78, 226, 236, 0.18), transparent 70%);
  filter: blur(40px);
}
.hero-orb {
  position: absolute; inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.12), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(78, 226, 236, 0.1), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  animation: orb-float 8s ease-in-out infinite;
}
@keyframes orb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-chart-canvas { width: 100%; height: 100%; display: block; }

.orbital-ring {
  position: absolute; inset: 0;
  border: 1px dashed rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  animation: ring-rotate 40s linear infinite;
}
.orbital-ring::after {
  content: ""; position: absolute; top: -6px; left: 50%;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold);
  transform: translateX(-50%);
}
.orbital-ring.r2 { inset: 8%; animation-duration: 28s; animation-direction: reverse; border-color: rgba(78,226,236,0.2); }
.orbital-ring.r2::after { background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
@keyframes ring-rotate { to { transform: rotate(360deg); } }

.tickers-floating {
  position: absolute; pointer-events: none;
  font-family: var(--font-mono); font-size: 0.8rem;
}
.ticker-card {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-soft);
  animation: card-float 6s ease-in-out infinite;
}
.ticker-card .sym { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-mute); letter-spacing: 0.1em; }
.ticker-card .price { font-family: var(--font-mono); font-size: 1rem; color: var(--text); }
.ticker-card .delta { font-family: var(--font-mono); font-size: 0.72rem; }
.ticker-card .delta.up { color: var(--emerald); }
.ticker-card .delta.dn { color: var(--crimson); }
.ticker-card.t1 { top: 8%; left: -8%; animation-delay: -2s; }
.ticker-card.t2 { top: 60%; right: -10%; animation-delay: -4s; }
.ticker-card.t3 { bottom: 6%; left: 4%; animation-delay: -6s; }
@keyframes card-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-12px) translateX(6px); }
  66% { transform: translateY(8px) translateX(-4px); }
}

/* Marquee
   -------------------------------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 28px 0;
  background: rgba(15, 22, 38, 0.4);
}
.marquee-track {
  display: flex; gap: 64px; white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--text-dim); display: inline-flex; align-items: center; gap: 64px;
}
.marquee-track span::after {
  content: "✦"; color: var(--gold); font-size: 0.9em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Pillars
   -------------------------------------------------------------------------- */
.pillars { padding-top: clamp(48px, 7vw, 96px); }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.4s, background 0.4s;
}
.pillar::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(212, 175, 55, 0.12), transparent 50%);
  opacity: 0; transition: opacity 0.4s ease;
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(212, 175, 55, 0.35); }
.pillar:hover::before { opacity: 1; }
.pillar-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(78, 226, 236, 0.1));
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; margin-bottom: 22px;
  position: relative;
}
.pillar-icon svg { width: 24px; height: 24px; stroke: var(--gold); }
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 0.94rem; }
.pillar-num {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-dim); letter-spacing: 0.16em;
}

/* Method visualization
   -------------------------------------------------------------------------- */
.method-viz {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.method-viz svg { width: 100%; height: 100%; }
.method-viz::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(78, 226, 236, 0.08), transparent 50%);
}

.method-list { display: grid; gap: 18px; margin-top: 32px; }
.method-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.method-row:last-child { border-bottom: 0; }
.method-row .num {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em;
  color: var(--gold);
}
.method-row h4 { margin-bottom: 6px; }
.method-row p { font-size: 0.95rem; }

/* Stats / Performance
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 48px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
@media (max-width: 900px) {
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label {
  margin-top: 10px; font-size: 0.82rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute);
}
.stat-desc { margin-top: 14px; font-size: 0.92rem; color: var(--text-dim); }

/* Heritage / lineage timeline
   -------------------------------------------------------------------------- */
.lineage {
  position: relative; padding: 48px 0;
}
.lineage-line {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
}
.lineage-item {
  display: grid; grid-template-columns: 1fr 80px 1fr;
  gap: 24px; align-items: center; padding: 36px 0;
  position: relative;
}
.lineage-item:nth-child(odd) .lineage-content { text-align: right; }
.lineage-item:nth-child(odd) .lineage-content { grid-column: 1; }
.lineage-item:nth-child(odd) .lineage-empty { grid-column: 3; }
.lineage-dot {
  grid-column: 2; justify-self: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15), 0 0 30px rgba(212, 175, 55, 0.4);
}
.lineage-content h4 { margin-bottom: 6px; }
.lineage-content .yr { font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan); letter-spacing: 0.18em; }
.lineage-content p { font-size: 0.94rem; margin-top: 8px; }

@media (max-width: 800px) {
  .lineage-line { left: 22px; }
  .lineage-item { grid-template-columns: 44px 1fr; }
  .lineage-item:nth-child(odd) .lineage-content,
  .lineage-item:nth-child(even) .lineage-content {
    grid-column: 2; text-align: left;
  }
  .lineage-empty { display: none; }
  .lineage-dot { grid-column: 1; }
}

/* Testimonials
   -------------------------------------------------------------------------- */
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1000px) { .testi-grid { grid-template-columns: 1fr; } }
.testi {
  background: var(--bg-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform 0.4s ease, border-color 0.3s;
}
.testi:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.3); }
.testi blockquote { font-size: 1rem; line-height: 1.7; color: var(--text); }
.testi blockquote::before {
  content: "“"; font-family: var(--font-display); font-size: 4rem;
  color: var(--gold); line-height: 0.6; display: block; margin-bottom: 12px;
}
.testi-author {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
}
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  display: grid; place-items: center; color: var(--bg-deep);
  font-family: var(--font-display); font-weight: 600;
}
.testi-meta .name { font-size: 0.95rem; color: var(--text); }
.testi-meta .role { font-size: 0.8rem; color: var(--text-dim); }

/* Community card
   -------------------------------------------------------------------------- */
.community {
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(78, 226, 236, 0.06), transparent 50%),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px);
  position: relative; overflow: hidden;
}
.community::before {
  content: ""; position: absolute; top: -50%; right: -30%;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 65%);
  filter: blur(40px);
}
.community-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; position: relative; }
@media (max-width: 900px) { .community-grid { grid-template-columns: 1fr; } }
.network-canvas { width: 100%; aspect-ratio: 1 / 1; }

/* CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner h2 { margin-bottom: 18px; }
.cta-banner p { max-width: 600px; margin: 0 auto 32px; }

/* Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.footer-brand p { margin-top: 18px; max-width: 320px; font-size: 0.92rem; }
.footer h5 {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.92rem; color: var(--text-mute); transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--text-dim);
  flex-wrap: wrap; gap: 16px;
}
.socials { display: flex; gap: 14px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

/* Reveal animations
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

/* Page hero (other pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--header-h) + 100px) 0 80px;
  position: relative;
  text-align: center;
}
.page-hero h1 { max-width: 900px; margin: 18px auto 22px; }
.page-hero p { max-width: 680px; margin: 0 auto; font-size: 1.1rem; }
.crumbs {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.16em; color: var(--text-dim); text-transform: uppercase;
}
.crumbs a { color: var(--text-mute); transition: color 0.3s; }
.crumbs a:hover { color: var(--gold); }

/* Profile / About page
   -------------------------------------------------------------------------- */
.profile-card {
  background: var(--bg-glass); border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative; overflow: hidden;
}
.profile-portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.18), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(78, 226, 236, 0.15), transparent 50%),
    var(--bg-card);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.profile-portrait::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(212, 175, 55, 0.12));
}
.profile-portrait .initials {
  font-family: var(--font-display); font-size: 6rem;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.profile-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 24px;
}
.profile-stats .pstat {
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.profile-stats .pstat .v { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.profile-stats .pstat .l { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-top: 4px; }

.bio-text p { margin-bottom: 18px; font-size: 1.02rem; line-height: 1.8; }
.bio-text p:first-child::first-letter {
  font-family: var(--font-display); font-size: 3.6rem; float: left;
  line-height: 0.85; padding: 6px 14px 0 0; color: var(--gold);
}

.tabs { display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tab {
  padding: 14px 22px; font-size: 0.9rem; color: var(--text-mute);
  border-bottom: 2px solid transparent; transition: color 0.3s, border-color 0.3s;
}
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-up 0.4s ease; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Performance / Results page
   -------------------------------------------------------------------------- */
.perf-board {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.perf-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.perf-tabs { display: flex; gap: 6px; background: rgba(255,255,255,0.03); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.perf-tabs button {
  padding: 8px 18px; border-radius: 999px; font-size: 0.82rem; color: var(--text-mute);
  transition: background 0.3s, color 0.3s;
}
.perf-tabs button.active { background: var(--grad-primary); color: var(--bg-deep); }
.perf-chart { aspect-ratio: 16 / 8; }
.perf-table {
  margin-top: 32px; width: 100%; border-collapse: collapse;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.perf-table th, .perf-table td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line);
}
.perf-table th { color: var(--text-dim); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
.perf-table td.up { color: var(--emerald); }
.perf-table td.dn { color: var(--crimson); }
.perf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 800px) { .perf-cards { grid-template-columns: 1fr; } }
.pcard {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: rgba(255,255,255,0.02);
}
.pcard .lbl { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.pcard .val { font-family: var(--font-display); font-size: 2rem; margin-top: 8px; }
.pcard .val.gold { color: var(--gold); }
.pcard .val.cyan { color: var(--cyan); }
.pcard .val.emerald { color: var(--emerald); }

/* FAQ
   -------------------------------------------------------------------------- */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--text);
  transition: color 0.3s;
}
.faq-q:hover { color: var(--gold); }
.faq-q .ico {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform 0.4s ease, border-color 0.3s, background 0.3s;
}
.faq-item.open .faq-q .ico { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); color: var(--bg-deep); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.55s ease, margin-top 0.4s ease;
}
.faq-item.open .faq-a { max-height: 500px; margin-top: 16px; }
.faq-a p { font-size: 0.98rem; line-height: 1.75; }

/* Articles / Blog
   -------------------------------------------------------------------------- */
.article-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 1000px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--bg-glass); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); border-color: rgba(212, 175, 55, 0.35); }
.article-cover {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  background: var(--bg-card);
}
.article-cover svg { width: 100%; height: 100%; }
.article-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--bg-glass));
}
.article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-tag {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 10px;
}
.article-card h3 { font-size: 1.2rem; margin-bottom: 12px; line-height: 1.3; }
.article-card p { font-size: 0.92rem; flex: 1; }
.article-meta {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim);
}
.article-meta .read { color: var(--gold); }

/* Single article body */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 56px 0 18px; }
.prose h3 { margin: 36px 0 14px; }
.prose p { color: var(--text); font-size: 1.06rem; line-height: 1.85; margin-bottom: 22px; }
.prose blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 24px; margin: 28px 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--text);
}
.prose ul { margin-bottom: 22px; padding-left: 0; }
.prose ul li {
  position: relative; padding-left: 28px; margin-bottom: 12px;
  color: var(--text-mute);
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 14px; height: 1px; background: var(--gold);
}
.prose code, .prose pre {
  font-family: var(--font-mono); background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 2px 8px; font-size: 0.92em; color: var(--cyan);
}
.prose pre { padding: 22px; overflow-x: auto; margin: 24px 0; }

/* Contact form
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info ul { margin-top: 32px; display: grid; gap: 18px; }
.contact-info li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  align-items: start; padding: 18px 0; border-top: 1px solid var(--line);
}
.contact-info li .ico {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(212, 175, 55, 0.08); display: grid; place-items: center;
  border: 1px solid var(--line-strong);
}
.contact-info li .ico svg { stroke: var(--gold); width: 18px; height: 18px; }
.contact-info li .lbl { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.contact-info li .val { color: var(--text); }

.form {
  background: var(--bg-glass); border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.field { margin-bottom: 22px; position: relative; }
.field label {
  display: block; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 1rem; color: var(--text);
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--gold); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.checkbox {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.88rem; color: var(--text-mute); margin-bottom: 28px;
  cursor: pointer;
}
.checkbox input { display: none; }
.checkbox .box {
  width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 4px;
  flex-shrink: 0; margin-top: 3px; position: relative; transition: background 0.3s, border-color 0.3s;
}
.checkbox input:checked + .box { background: var(--gold); border-color: var(--gold); }
.checkbox input:checked + .box::after {
  content: "✓"; position: absolute; inset: 0;
  display: grid; place-items: center; color: var(--bg-deep); font-size: 12px;
}

/* Process / steps
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 36px 28px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-glass); counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--gold); letter-spacing: 0.18em;
}
.step h4 { margin: 18px 0 10px; }
.step p { font-size: 0.94rem; }

/* Tickers strip
   -------------------------------------------------------------------------- */
.ticker-strip {
  display: flex; gap: 0; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(15, 22, 38, 0.6);
}
.ticker-row { display: flex; gap: 40px; padding: 14px 24px; animation: marquee 60s linear infinite; white-space: nowrap; }
.ticker-row .it { font-family: var(--font-mono); font-size: 0.84rem; display: inline-flex; gap: 10px; }
.ticker-row .it .pair { color: var(--text); }
.ticker-row .it .px { color: var(--text-mute); }
.ticker-row .it .ch { color: var(--emerald); }
.ticker-row .it .ch.dn { color: var(--crimson); }

/* Helper utility
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-8 { margin-top: 64px; }
.divider { height: 1px; background: var(--line); margin: 80px 0; }

/* Responsive helpers
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-meta { gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
