/* ── FONTS imported in HTML ── */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── THEME VARIABLES ── */
:root {
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --bg3: #e8e8ed;
  --surface: #ffffff;
  --border: #d2d2d7;
  --border2: #b0b0b8;
  --text: #1d1d1f;
  --text2: #515154;
  --text3: #86868b;
  --red: #c8272e;
  --red-soft: #fdf1f1;
  --navy: #0f1f5c;
  --navy-soft: #eef1fb;
  --green: #059669;
  --green-soft: #ecfdf5;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg2: #111111;
  --bg3: #1c1c1e;
  --surface: #1c1c1e;
  --border: #2c2c2e;
  --border2: #3a3a3c;
  --text: #f5f5f7;
  --text2: #a1a1a6;
  --text3: #6e6e73;
  --red: #ff453a;
  --red-soft: #2a0a0a;
  --navy: #3a52b0;
  --navy-soft: #0e1020;
  --green: #34d399;
  --green-soft: #052e1a;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 60px;
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="dark"] nav {
  background: rgba(0, 0, 0, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-left { display: flex; align-items: center; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, var(--red) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.logo-mark img { width: 26px; height: 26px; object-fit: contain; }
.logo-text { font-size: 14px; font-weight: 500; color: var(--text); letter-spacing: 0.3px; transition: color 0.3s; }
.logo-sub { font-size: 10px; color: var(--text3); letter-spacing: 1.5px; text-transform: uppercase; margin-top: -2px; transition: color 0.3s; }

/* === NAV LINKS — EDIT COLOR/HOVER HERE === */
.nav-links { display: flex; gap: 4px; }
.nav-links button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000000;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.18s, color 0.18s;
}
[data-theme="dark"] .nav-links button { color: #ffffff; }
.nav-links button:hover { background: #1d1d1f; color: #ffffff; }
[data-theme="dark"] .nav-links button:hover { background: #f5f5f7; color: #000000; }
.nav-links button.active { background: #1d1d1f; color: #ffffff; font-weight: 500; }
[data-theme="dark"] .nav-links button.active { background: #f5f5f7; color: #000000; }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 14px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  color: var(--text2); transition: background 0.2s;
}
.theme-toggle:hover { background: var(--bg3); }
.cta-btn {
  background: var(--navy); color: #fff;
  border: none; padding: 8px 20px; border-radius: 20px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.85; }

/* ── LIVE PRICE TICKER ── */
.price-ticker {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  height: 40px;
}

.ticker-inner {
  display: flex;
  align-items: center;
  height: 100%;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  padding: 0 1rem;
}

.price-ticker:hover .ticker-inner {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 1.5rem;
  border-right: 1px solid var(--border);
  height: 100%;
}

.ticker-item:last-child { border-right: none; }

.ticker-symbol {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

.ticker-symbol.crypto { color: var(--navy); }
[data-theme="dark"] .ticker-symbol.crypto { color: #7b9fff; }
.ticker-symbol.gold { color: #d4a534; }
[data-theme="dark"] .ticker-symbol.gold { color: #ffc107; }

.ticker-price {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

.ticker-change {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.ticker-change.positive { background: rgba(5, 150, 105, 0.12); color: var(--green); }
.ticker-change.negative { background: rgba(200, 39, 46, 0.12); color: var(--red); }
.ticker-change .arrow { font-size: 10px; }

.ticker-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 1rem;
  color: var(--text3);
  font-size: 12px;
}

.ticker-loading-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border2);
  animation: ticker-dot-pulse 1s infinite ease-in-out;
}
.ticker-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.ticker-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes ticker-dot-pulse {
  0%, 80%, 100% { opacity: 0.4; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

.ticker-label {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-right: 1rem;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  flex-shrink: 0;
}

.ticker-label::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ticker-time {
  font-size: 10px;
  color: var(--text3);
  padding-left: 1rem;
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; animation: appear 0.3s ease; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 60px);
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 1200px; margin: 0 auto; padding: 5rem 2.5rem;
  align-items: center; gap: 4rem;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); margin-bottom: 2rem;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--red); }
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1.05; color: var(--text); margin-bottom: 1.75rem; font-weight: 400;
}
.hero h1 em { font-style: italic; color: var(--red); }
.hero-desc { font-size: 16px; color: var(--text2); line-height: 1.8; max-width: 460px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-solid {
  background: var(--text); color: var(--bg);
  border: none; padding: 12px 28px; border-radius: 980px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: opacity 0.2s;
}
.btn-solid:hover { opacity: 0.75; }
.btn-ghost {
  background: none; color: var(--text2);
  border: 1px solid var(--border2); padding: 12px 28px; border-radius: 980px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  cursor: pointer; transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--text2); color: var(--text); }

/* ── HERO CARD ── */
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem; overflow: hidden; position: relative;
}
.hero-card::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--red-soft); z-index: 0; transition: background 0.3s;
}
.hcc { position: relative; z-index: 1; }
.winrate-display { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.winrate-num { font-family: 'DM Serif Display', serif; font-size: 4rem; color: var(--text); line-height: 1; }
.winrate-pct { font-size: 1.5rem; color: var(--red); font-weight: 500; }
.winrate-label { font-size: 11px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.5rem; }
.signal-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; background: var(--bg2); border-radius: 10px;
  margin-bottom: 6px; border: 1px solid var(--border);
}
.signal-pair { font-size: 13px; font-weight: 500; color: var(--text); }
.signal-type { font-size: 10px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.sig-buy { background: rgba(16, 185, 129, 0.1); color: #059669; }
.sig-sell { background: rgba(200, 39, 46, 0.1); color: var(--red); }
.signal-pips { font-size: 13px; color: var(--text2); }
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 1rem;
}
.stat-cell { background: var(--surface); padding: 1rem; text-align: center; }
.stat-n { font-family: 'DM Serif Display', serif; font-size: 1.6rem; color: var(--text); line-height: 1; }
.stat-n span { color: var(--red); }
.stat-l { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ── SECTIONS ── */
.section { max-width: 1200px; margin: 0 auto; padding: 6rem 2.5rem; }
.section-header { margin-bottom: 4rem; }
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--red); }
.eyebrow.center { justify-content: center; }
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--text); font-weight: 400; line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--red); }
.section-desc { color: var(--text2); max-width: 520px; margin-top: 0.75rem; font-size: 15px; }
.text-center { text-align: center; }
.cta-sub { color: var(--text2); max-width: 440px; margin: 0 auto 2rem; font-size: 15px; }
.cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── FEATURE GRID ── */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.feature-cell { background: var(--surface); padding: 2rem; transition: background 0.2s; }
.feature-cell:hover { background: var(--bg2); }
.feature-num { font-family: 'DM Serif Display', serif; font-size: 2rem; color: var(--border2); font-weight: 400; margin-bottom: 1rem; }
.feature-cell h3 { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 0.5rem; }
.feature-cell p { font-size: 13px; color: var(--text2); line-height: 1.7; }

/* ── SERVICES ── */
.service-list {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.service-row {
  background: var(--surface); padding: 2rem 2.5rem;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  transition: background 0.2s;
}
.service-row:hover { background: var(--bg2); }
.service-row.highlight { background: var(--red-soft); }
[data-theme="dark"] .service-row.highlight { background: #180a0a; }
.service-badge {
  display: inline-block; font-size: 10px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 0.6rem;
}
.badge-free { background: var(--navy-soft); color: var(--navy); }
.badge-premium { background: var(--red-soft); color: var(--red); }
[data-theme="dark"] .badge-free { color: #7b9fff; }
.service-row h3 { font-family: 'DM Serif Display', serif; font-size: 1.4rem; font-weight: 400; color: var(--text); margin-bottom: 0.4rem; }
.service-row p { font-size: 13px; color: var(--text2); max-width: 520px; }
.service-features-inline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.75rem; }
.feat-tag { font-size: 11px; color: var(--text2); background: var(--bg2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; }
.service-price { text-align: right; }
.price-main { font-family: 'DM Serif Display', serif; font-size: 1.8rem; font-weight: 400; color: var(--text); }
.price-main span { color: var(--red); }
.price-note { font-size: 11px; color: var(--text3); margin-top: 2px; }
.hfm-service-brand { margin-bottom: 1rem; }
.hfm-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
  color: #111;
  line-height: 1;
}
.hfm-lockup--compact { transform-origin: left center; }
.hfm-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hfm-wordmark-m { color: var(--red); }
.hfm-submark {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #181818;
}

/* ── ABOUT ── */
.about-layout { display: grid; grid-template-columns: 5fr 4fr; gap: 5rem; align-items: start; }
.about-body p { color: var(--text2); margin-bottom: 1.25rem; font-size: 15px; line-height: 1.85; }
.about-body strong { color: var(--text); font-weight: 500; }
.about-aside { position: sticky; top: 80px; }
.aside-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; margin-bottom: 1rem; }
.aside-card h4 { font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--text3); margin-bottom: 0.75rem; }
.aside-note { font-size: 12px; color: var(--text3); margin-top: 0.75rem; line-height: 1.6; }
.broker-badge { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.broker-icon { min-width: 96px; padding: 0.2rem 0; background: transparent; border-radius: 0; display: flex; align-items: center; justify-content: flex-start; flex-shrink: 0; }
.broker-icon .hfm-wordmark { font-size: 2.1rem; }
.broker-icon .hfm-submark { font-size: 0.5rem; letter-spacing: 0.28em; }
.broker-name { font-size: 13px; font-weight: 500; color: var(--text); }
.broker-desc { font-size: 11px; color: var(--text3); }
.who-list { list-style: none; }
.who-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text2); padding: 8px 0; border-bottom: 1px solid var(--border); }
.who-list li:last-child { border-bottom: none; }
.who-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; flex-shrink: 0; }

/* ── FAQ ── */
.faq-wrap { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; text-align: left; gap: 1rem;
  font-family: 'DM Sans', sans-serif;
}
.faq-q-text { font-size: 15px; font-weight: 500; color: var(--text); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text2); flex-shrink: 0;
  transition: transform 0.3s, background 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--red-soft); color: var(--red); border-color: var(--red); }
.faq-body { overflow: hidden; max-height: 0; transition: max-height 0.35s ease, padding 0.3s; }
.faq-item.open .faq-body { max-height: 400px; padding-bottom: 1.25rem; }
.faq-body p { font-size: 14px; color: var(--text2); line-height: 1.8; }

/* ── CONTACT ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-channels { display: flex; flex-direction: column; gap: 0.75rem; }
.channel-group-label {
  margin: 0.75rem 0 0.35rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text3);
}
.channel {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; transition: border-color 0.2s, background 0.2s; cursor: pointer;
}
.channel:hover { background: var(--bg2); }
.ch-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ch-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); }
.ch-value { font-size: 14px; font-weight: 500; color: var(--text); }
.steps-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; }
.steps-card h3 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; font-weight: 400; color: var(--text); margin-bottom: 1.25rem; }
.step { display: flex; gap: 1rem; margin-bottom: 1rem; }
.step:last-child { margin-bottom: 0; }
.step-n { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--red); line-height: 1.4; flex-shrink: 0; width: 20px; }
.step-text { font-size: 13px; color: var(--text2); line-height: 1.7; }
.contact-partner-card {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(247,247,245,0.96));
  border: 1px solid var(--border);
  border-radius: 14px;
}
.contact-partner-copy {
  margin-top: 0.8rem;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text2);
}
.disclaimer-block { margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--red); border-radius: 0 10px 10px 0; }
.disclaimer-block p { font-size: 12px; color: var(--text3); line-height: 1.7; }
.disclaimer-block strong { color: var(--text2); }
/* ── DIVIDER ── */
.hr { height: 1px; background: var(--border); margin: 0 2.5rem; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 2.5rem 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo-mark { width: 26px; height: 26px; border-radius: 6px; }
.footer-copy { font-size: 12px; color: var(--text3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links button { background: none; border: none; cursor: pointer; font-size: 12px; color: var(--text3); font-family: 'DM Sans', sans-serif; transition: color 0.15s; }
.footer-links button:hover { color: var(--text2); }
.footer-disclaimer { flex: 1 1 100%; max-width: none; margin-top: 0.5rem; }

/* ── UTILS ── */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ════════════════════════════════════════════════════════════
   PERFORMANCE PAGE STYLES
   ════════════════════════════════════════════════════════════ */

.perf-loading {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding: 3rem 0; color: var(--text3); font-size: 13px;
}
.loading-dots { display: flex; gap: 6px; }
.loading-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border2);
  animation: dot-pulse 1.2s infinite ease-in-out;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse { 0%,80%,100% { transform: scale(0.7); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

.perf-nodata {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; padding: 3rem 0; color: var(--text3);
}
.nodata-icon { font-size: 2.5rem; opacity: 0.4; }
.perf-nodata p { font-size: 14px; max-width: 360px; text-align: center; }

.today-date-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.today-date-label { font-size: 15px; font-weight: 500; color: var(--text2); }
.session-badge {
  font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.badge-live    { background: rgba(5,150,105,0.12); color: var(--green); }
.badge-recent  { background: var(--bg2); color: var(--text3); border: 1px solid var(--border); }

.perf-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.perf-card { background: var(--surface); padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 6px; }
.perf-card-label { font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--text3); }
.perf-card-value { font-family: 'DM Serif Display', serif; font-size: 1.9rem; font-weight: 400; color: var(--text); line-height: 1.1; }
.value-green { color: var(--green); }
.value-red   { color: var(--red); }

.perf-card-green   { background: var(--green-soft); }
.perf-card-red     { background: var(--red-soft); }
.perf-card-net-pos { background: var(--green-soft); }
.perf-card-net-neg { background: var(--red-soft); }

.history-controls { display: flex; gap: 6px; margin-bottom: 2rem; }
.history-range-btn {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 18px; font-family: 'DM Sans', sans-serif; font-size: 13px;
  color: var(--text2); cursor: pointer; transition: all 0.2s;
}
.history-range-btn:hover  { border-color: var(--text3); color: var(--text); }
.history-range-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.history-list { display: flex; flex-direction: column; gap: 6px; }
.history-row {
  display: grid; grid-template-columns: 90px 1fr auto;
  gap: 1rem; align-items: center;
  padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  transition: background 0.15s;
}
.history-row:hover { background: var(--bg2); }
.history-row-pos { border-left: 3px solid var(--green); }
.history-row-neg { border-left: 3px solid var(--red); }

.history-day { display: flex; flex-direction: column; }
.history-weekday { font-size: 14px; font-weight: 500; color: var(--text); }
.history-date { font-size: 11px; color: var(--text3); }

.history-bar-wrap { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.history-bar { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.bar-pos { background: var(--green); }
.bar-neg { background: var(--red); }

.history-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.history-pips { font-size: 15px; font-weight: 500; min-width: 90px; text-align: right; }
.pips-pos { color: var(--green); }
.pips-neg { color: var(--red); }
.history-wr, .history-trades { font-size: 12px; color: var(--text3); }

.chart-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem; max-height: 380px;
}
.chart-wrap canvas { max-height: 320px; }

.testimonial-rail-shell {
  position: relative;
  overflow: hidden;
}

.testimonial-rail {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
  touch-action: pan-y pinch-zoom;
}

.testimonial-rail::-webkit-scrollbar {
  display: none;
}

.testimonial-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: max-content;
  padding: 4px 0 6px;
}

.testimonial-card {
  flex: 0 0 min(780px, calc(100vw - 2rem));
  width: min(780px, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}

.testimonial-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(15,31,92,0.10), rgba(200,39,46,0.10));
}

.testimonial-avatar--fallback {
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.testimonial-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
}

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 31, 92, 0.12);
  background: rgba(15, 31, 92, 0.04);
  color: var(--navy);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.testimonial-comment {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text2);
}

.testimonial-proof {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 10px;
  min-width: 0;
}

.testimonial-proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.testimonial-proof-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
}

.testimonial-proof-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15,31,92,0.03), rgba(15,31,92,0.01));
  padding: 10px;
  min-height: 100%;
}

.testimonial-proof-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.55);
  pointer-events: none;
}

.testimonial-proof-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.testimonial-proof-image:hover {
  transform: scale(1.02);
}

.testimonial-footnote {
  font-size: 12px;
  color: var(--text3);
}

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  padding: 2rem;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 420px; width: 100%; border-radius: 16px; box-shadow: 0 40px 80px rgba(0,0,0,0.6); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .perf-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card {
    grid-template-columns: 1fr;
    width: calc(100vw - 2rem);
    flex-basis: calc(100vw - 2rem);
  }

  .testimonial-proof-image {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .testimonial-card {
    padding: 14px;
    border-radius: 20px;
  }

  .testimonial-name {
    font-size: 1.2rem;
  }

  .testimonial-comment {
    font-size: 14px;
  }

  .testimonial-proof-frame {
    padding: 8px;
  }
}


/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transition:
    opacity 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal--fade-up    { transform: translateY(32px); }
.reveal--fade-left  { transform: translateX(32px); }
.reveal--fade-right { transform: translateX(-32px); }
.reveal--scale-up   { transform: scale(0.92) translateY(20px); }
.reveal--visible    { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ════════════════════════════════════════════════════════════
   NAV ENHANCEMENTS
   ════════════════════════════════════════════════════════════ */

.nav-progress {
  position: absolute; bottom: -1px; left: 0;
  height: 2px; width: 0%;
  background: var(--red);
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  z-index: 201;
}

nav.nav--scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 4px 20px rgba(0,0,0,0.06);
}
[data-theme="dark"] nav.nav--scrolled {
  background: rgba(0, 0, 0, 0.92) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.3);
}

/* ── FOUNDER SECTION ── */
.founder-layout {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 5rem; align-items: start;
}
.founder-photo-wrap { position: sticky; top: 80px; }
.founder-photo-card {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--bg2); border: 1px solid var(--border);
}
.founder-photo-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 2px;
  background: linear-gradient(160deg, var(--red) 0%, var(--navy) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
  pointer-events: none; z-index: 2;
}
.founder-photo {
  width: 100%; display: block; object-fit: cover; object-position: top center;
  aspect-ratio: 3/4;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.founder-photo-card:hover .founder-photo { transform: scale(1.03); }
.founder-photo-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  z-index: 3;
}
.founder-name { font-family: 'DM Serif Display', serif; font-size: 1.3rem; font-weight: 400; color: #fff; letter-spacing: 0.5px; }
.founder-title { font-size: 12px; color: rgba(255,255,255,0.7); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.founder-body p { color: var(--text2); margin-bottom: 1.25rem; font-size: 15px; line-height: 1.85; }
.founder-body strong { color: var(--text); font-weight: 500; }
.founder-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin: 2rem 0;
}
.founder-stat { background: var(--surface); padding: 1.25rem; text-align: center; }
.founder-stat-n { font-family: 'DM Serif Display', serif; font-size: 2rem; color: var(--text); line-height: 1; }
.founder-stat-n span { color: var(--red); font-size: 1.2rem; }
.founder-stat-l { font-size: 11px; color: var(--text3); margin-top: 4px; letter-spacing: 0.5px; }

/* ── MISSION PAGE ── */
.mission-hero {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 6rem 2.5rem; text-align: center;
}
.mission-hero-inner { max-width: 680px; margin: 0 auto; }
.mission-hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400;
  color: var(--text); line-height: 1.05; margin: 1rem 0;
}
.mission-hero-title em { font-style: italic; color: var(--red); }
.mission-hero-sub { font-size: 16px; color: var(--text2); max-width: 500px; margin: 0 auto; }

.mission-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.mission-card { background: var(--surface); padding: 2.5rem; }
.mission-card--accent { background: var(--red-soft); }
[data-theme="dark"] .mission-card--accent { background: #180a0a; }
.mission-card--dark { background: var(--navy-soft); }
[data-theme="dark"] .mission-card--dark { background: #080e24; }
.mission-card-tag { font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--text3); margin-bottom: 1rem; }
.mission-card-headline { font-family: 'DM Serif Display', serif; font-size: 1.3rem; font-weight: 400; color: var(--text); line-height: 1.4; font-style: italic; }
.mission-card-body { font-size: 14px; color: var(--text2); line-height: 1.8; }

.vision-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.vision-statement-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; position: relative; }
.vision-quote-mark { font-family: 'DM Serif Display', serif; font-size: 5rem; color: var(--red); line-height: 0.5; margin-bottom: 1rem; opacity: 0.3; }
.vision-statement { font-family: 'DM Serif Display', serif; font-size: 1.2rem; font-weight: 400; color: var(--text); line-height: 1.6; font-style: italic; }

.vision-pillars { display: flex; flex-direction: column; gap: 1.5rem; }
.vision-pillar { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.vision-pillar-num { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: var(--red); opacity: 0.4; margin-bottom: 0.5rem; }
.vision-pillar-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 0.4rem; }
.vision-pillar-desc { font-size: 13px; color: var(--text2); line-height: 1.7; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; }
.value-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.value-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 0.5rem; }
.value-desc { font-size: 13px; color: var(--text2); line-height: 1.7; }

.mission-snippet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mission-snippet-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; }
.mission-snippet-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.mission-snippet-label { font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 0.5rem; }
.mission-snippet-text { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 1rem; }
.mission-read-more { font-size: 12px; padding: 6px 14px; }

/* ── HAMBURGER + MOBILE MENU ── */
.burger-btn {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; padding: 8px; flex-shrink: 0;
  transition: background 0.2s;
}
.burger-btn:hover { background: var(--bg3); }
.burger-btn span {
  display: block; height: 1.5px; background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.burger-btn.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; inset: 60px 0 0 0;
  background: var(--bg); z-index: 199;
  flex-direction: column; padding: 1rem 1.25rem 2rem; gap: 4px;
  overflow-y: auto; opacity: 0; transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.mobile-menu button {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 400;
  color: var(--text2); padding: 14px 16px; border-radius: 12px;
  text-align: left; width: 100%;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu button:hover, .mobile-menu button.active { background: var(--bg2); color: var(--text); font-weight: 500; }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 0.5rem 0; }
.mobile-menu-cta button {
  background: var(--navy) !important; color: #fff !important;
  font-weight: 500 !important; text-align: center !important;
  border-radius: 980px !important; font-size: 15px !important;
}

/* ── FULL RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none !important; }
  .nav-right .cta-btn { display: none; }
  .burger-btn { display: flex; }
  .mobile-menu { display: flex; }

  .price-ticker { height: 36px; }
  .ticker-item { padding: 0 1rem; }
  .ticker-symbol { font-size: 11px; }
  .ticker-price { font-size: 12px; }
  .ticker-change { font-size: 10px; padding: 1px 4px; }
  .ticker-label { font-size: 9px; padding-right: 0.75rem; }
  .ticker-time { font-size: 9px; padding-left: 0.75rem; }

  .hero { grid-template-columns: 1fr; padding: 2.5rem 1.25rem 2rem; min-height: auto; gap: 2rem; }
  .hero-visual { display: block; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); margin-bottom: 1.25rem; }
  .hero-desc { font-size: 14px; margin-bottom: 1.5rem; max-width: 100%; }
  .hero-card { padding: 1.5rem; }
  .winrate-num { font-size: 3rem; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-n { font-size: 1.2rem; }
  .stat-cell { padding: 0.75rem 0.5rem; }
  .hero-actions { flex-direction: column; gap: 0.5rem; }
  .hero-actions .btn-solid, .hero-actions .btn-ghost { width: 100%; text-align: center; }

  .section { padding: 3rem 1.25rem; }
  .section-title { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .hr { margin: 0 1.25rem; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-cell { padding: 1.5rem; }

  .about-layout { grid-template-columns: 1fr; gap: 2rem; }
  .about-aside { position: static; }
  .broker-badge { align-items: flex-start; }
  .broker-icon { min-width: 84px; }
  .broker-icon .hfm-wordmark { font-size: 1.75rem; }
  .founder-layout { grid-template-columns: 1fr; gap: 2rem; }
  .founder-photo-wrap { position: static; max-width: 280px; margin: 0 auto; }
  .founder-stats { grid-template-columns: repeat(3, 1fr); }

  .mission-cards-grid { grid-template-columns: 1fr; }
  .vision-layout { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .mission-snippet-grid { grid-template-columns: 1fr; }

  .service-row { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
  .service-price { text-align: left; }

  .perf-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .testimonial-card { width: calc(100vw - 1.5rem); flex-basis: calc(100vw - 1.5rem); }
  .chart-wrap { padding: 1rem; }
  .history-controls { flex-wrap: wrap; }
  .history-range-btn { font-size: 12px; padding: 5px 14px; }

  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .channel { padding: 1rem 1.25rem; }
  .channel-group-label:first-child { margin-top: 0; }
  .ch-value { font-size: 13px; word-break: normal; overflow-wrap: anywhere; }
  .steps-card { padding: 1.5rem; }
  .contact-partner-card { padding: 0.95rem 1rem; margin-bottom: 1.25rem; }
  .hfm-wordmark { font-size: 1.85rem; }
  .hfm-submark { letter-spacing: 0.28em; }
  .faq-wrap { max-width: 100%; }

  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.25rem 2.5rem; }
  .footer-brand { flex-direction: column; gap: 6px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 0.75rem; }

  .btn-solid, .btn-ghost { padding: 11px 22px; font-size: 13px; }
  .cta-row { flex-direction: column; align-items: center; }
  .cta-row .btn-solid, .cta-row .btn-ghost { width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .perf-card { padding: 1rem 1.25rem; }
  .perf-card-value { font-size: 1.5rem; }
  .testimonial-proof-image { min-height: 200px; }
  .feat-tag { font-size: 10px; padding: 2px 8px; }
  .steps-card { padding: 1.25rem; }
  .broker-badge { padding: 0.9rem 1rem; }
  .broker-icon { min-width: 74px; }
  .broker-icon .hfm-wordmark { font-size: 1.55rem; }
}
