/* ─────────────────────────────────────────────────────────────────────────────
   NiftyWise — Main Stylesheet
   Covers: tokens, nav, hero, steps, bento, ticker, testimonials,
           simulator widget, final CTA, footer, blog section, ad slots,
           strategies, learn, pricing pages, blog listing, blog post
───────────────────────────────────────────────────────────────────────────── */

/* ── RESET & TOKENS ───────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, video, embed, object { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }

:root {
  --orange:       #FF5C1A;
  --orange-light: #FFF0EA;
  --orange-mid:   #FFD4C0;
  --ink:          #0D0D0D;
  --ink2:         #3A3A3A;
  --muted:        #8C8C8C;
  --line:         #EBEBEB;
  --bg:           #FFFFFF;
  --bg2:          #F8F7F5;
  --green:        #1DB877;
  --red:          #E8453C;
  --blue:         #1A73E8;
  --card-r:       20px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h:        68px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Figtree', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── CUSTOM CURSOR ────────────────────────────────────────────────────────── */
#cursor {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .25s;
  mix-blend-mode: multiply;
}
#cursor.grow { width: 44px; height: 44px; opacity: .35; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px; height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }

.logo {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.8px; color: var(--ink);
  display: flex; align-items: center; gap: 9px;
  text-decoration: none;
}
.logo-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange);
}

nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
nav ul a {
  color: var(--ink2); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: background .18s, color .18s;
  display: block;
}
nav ul a:hover, nav ul a.active { background: var(--bg2); color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger — mobile */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 20px 24px 28px; z-index: 499;
  flex-direction: column; gap: 4px;
}
.nav-mobile a {
  display: block; padding: 12px 16px; border-radius: 10px;
  font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: background .15s;
}
.nav-mobile a:hover { background: var(--bg2); }
.nav-mobile.open { display: flex; }

/* Buttons */
.btn-ghost {
  font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 22px;
  cursor: none; transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn-fill {
  font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 700;
  color: #fff; background: var(--orange);
  border: none; border-radius: 10px; padding: 10px 24px; cursor: none;
  transition: transform .2s var(--ease), box-shadow .2s;
  box-shadow: 0 4px 16px rgba(255,92,26,.28);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,92,26,.38); }

/* ── TICKER ───────────────────────────────────────────────────────────────── */
.ticker-section {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 14px 0;
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 36px; border-right: 1px solid var(--line);
  white-space: nowrap; font-size: 13px;
}
.t-name { color: var(--muted); font-weight: 500; }
.t-val  { color: var(--ink); font-weight: 700; font-family: 'Fraunces', serif; }
.t-up   { color: var(--green); font-weight: 600; font-size: 12px; }
.t-dn   { color: var(--red);   font-weight: 600; font-size: 12px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 0; padding: 0;
}
.hero-left { padding: 80px 64px 80px 52px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-light); color: var(--orange);
  font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 36px;
  animation: slideUp .6s var(--ease) both;
}
h1 {
  font-family: 'Fraunces', serif;
  /* Smooth scale: 38px on small tablets → 76px on large desktop.
     5.5vw hits the 38px floor at ~690px and the 76px cap at ~1382px,
     giving continuous growth across the full tablet-to-desktop range. */
  font-size: clamp(38px, 5.5vw, 76px); font-weight: 900;
  line-height: 1.0; letter-spacing: -2.5px; color: var(--ink);
  animation: slideUp .6s .08s var(--ease) both;
}
h1 em { font-style: italic; font-weight: 300; color: var(--orange); }
.hero-desc {
  font-size: 17px; font-weight: 400; color: var(--muted); line-height: 1.72;
  max-width: 420px; margin: 28px 0 44px;
  animation: slideUp .6s .16s var(--ease) both;
}
.hero-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  animation: slideUp .6s .22s var(--ease) both;
}
.btn-hero {
  font-family: 'Figtree', sans-serif; font-size: 16px; font-weight: 700;
  color: #fff; background: var(--ink); border: none; border-radius: 12px;
  padding: 16px 36px; cursor: none; text-decoration: none;
  transition: transform .2s var(--ease), background .2s;
}
.btn-hero:hover { transform: translateY(-2px); background: var(--orange); }
.hero-store-row { display: flex; gap: 10px; align-items: center; }
.store-btn {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 18px;
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: border-color .2s, transform .2s; cursor: none;
}
.store-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.hero-social-proof {
  display: flex; align-items: center; gap: 14px;
  margin-top: 52px;
  animation: slideUp .6s .3s var(--ease) both;
}
.avatars { display: flex; }
.avatars span {
  width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid #fff;
  margin-left: -10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.proof-text { font-size: 13px; color: var(--muted); line-height: 1.5; }
.proof-text strong { color: var(--ink); }

/* Hero right — phone mockup */
.hero-right {
  height: 100vh; background: var(--bg2); position: relative;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.phone-wrap { position: relative; animation: floatPhone 5s ease-in-out infinite, slideUp .8s .1s var(--ease) both; }
@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.phone {
  width: 280px; background: var(--ink); border-radius: 38px; padding: 18px 14px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 40px 100px rgba(0,0,0,0.35),
              inset 0 0 0 2px rgba(255,255,255,0.04);
  position: relative; z-index: 2;
}
.phone-notch {
  width: 80px; height: 22px; background: var(--ink);
  border-radius: 0 0 14px 14px; margin: 0 auto 12px; position: relative;
}
.phone-notch::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 10px; height: 10px; border-radius: 50%; background: #1a1a1a;
}
.phone-screen { background: #111418; border-radius: 26px; overflow: hidden; padding: 20px 16px 24px; }
.phone-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ph-greeting { font-size: 11px; color: #888; }
.ph-name { font-size: 15px; font-weight: 700; color: #fff; margin-top: 2px; }
.ph-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #ff9a00);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.ph-balance-card {
  background: linear-gradient(135deg, var(--orange) 0%, #ff8c42 100%);
  border-radius: 16px; padding: 18px; margin-bottom: 18px;
  position: relative; overflow: hidden;
}
.ph-balance-card::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px; background: rgba(255,255,255,0.1); border-radius: 50%;
}
.ph-bal-label { font-size: 10px; color: rgba(255,255,255,0.7); font-weight: 500; }
.ph-bal-value { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -1px; margin: 4px 0 12px; font-family: 'Fraunces', serif; }
.ph-bal-row { display: flex; gap: 16px; }
.ph-bal-item { font-size: 10px; color: rgba(255,255,255,0.7); }
.ph-bal-item strong { color: #fff; display: block; font-size: 13px; margin-top: 2px; }
.ph-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.ph-action { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ph-action-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.ph-action-label { font-size: 9px; color: #888; text-align: center; }
.ph-section-label { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.ph-position { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ph-position:last-child { border-bottom: none; }
.ph-pos-left { display: flex; align-items: center; gap: 10px; }
.ph-pos-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; }
.ph-pos-name { font-size: 12px; font-weight: 700; color: #fff; }
.ph-pos-sub  { font-size: 10px; color: #888; }
.ph-pos-right { text-align: right; }
.ph-pos-pnl  { font-size: 12px; font-weight: 700; }
.ph-pos-lots { font-size: 10px; color: #888; }

/* BG deco */
.hero-right-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-circle { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,92,26,.12), transparent 60%); }
.float-card {
  position: absolute; background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.10);
  animation: floatCard 4s ease-in-out infinite; z-index: 3;
}
.float-card:nth-child(2) { animation-delay: -1.5s; }
.float-card:nth-child(3) { animation-delay: -3s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-8px) rotate(var(--r, 0deg)); }
}
.fc-label  { font-size: 10px; color: var(--muted); font-weight: 500; }
.fc-value  { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.5px; font-family: 'Fraunces', serif; }
.fc-change { font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 4px; margin-top: 2px; }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .5px; text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite; z-index: 4;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--muted), transparent); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── SHARED SECTION LAYOUT ────────────────────────────────────────────────── */
.section {
  padding: 120px 52px;
  max-width: 1320px; margin: 0 auto;
}
.s-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--orange); margin-bottom: 18px;
}
.s-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 3.5vw, 56px); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.05; color: var(--ink);
}
.s-title em { font-style: italic; font-weight: 300; color: var(--orange); }
.s-body { font-size: 16px; color: var(--muted); line-height: 1.75; max-width: 480px; margin-top: 18px; }

/* ── STEPS SECTION ────────────────────────────────────────────────────────── */
.steps-section { background: var(--bg2); padding: 120px 0; }
.steps-inner { max-width: 1320px; margin: 0 auto; padding: 0 52px; }
.steps-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; flex-wrap: wrap; margin-bottom: 72px;
}
.steps-track {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--card-r);
  overflow: hidden; background: #fff;
}
.step-item {
  padding: 40px 32px; border-right: 1px solid var(--line);
  position: relative; transition: background .3s; cursor: none;
}
.step-item:last-child { border-right: none; }
.step-item:hover { background: var(--orange-light); }
.step-item.active { background: var(--orange); }
.step-item.active .step-num,
.step-item.active .step-name,
.step-item.active .step-desc { color: #fff; }
.step-item.active .step-icon-wrap { background: rgba(255,255,255,0.2); }
.step-num { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.step-icon-wrap {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px; transition: background .3s;
}
.step-name { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.3px; }
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── FEATURES BENTO GRID ──────────────────────────────────────────────────── */
.bento {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto; gap: 16px; margin-top: 60px;
}
.bento-card {
  background: var(--bg2); border-radius: var(--card-r);
  border: 1px solid var(--line); padding: 40px;
  overflow: hidden; position: relative;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.bento-card:hover {
  border-color: rgba(255,92,26,.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.07);
}
.bc-1 { grid-column: span 7; }
.bc-2 { grid-column: span 5; }
.bc-3 { grid-column: span 4; }
.bc-4 { grid-column: span 4; }
.bc-5 { grid-column: span 4; }
.bc-6 { grid-column: span 12; display: flex; align-items: center; gap: 60px; }
.bento-icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 24px;
}
.bento-title { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.4px; margin-bottom: 10px; }
.bento-desc { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 360px; }
.mini-chart { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.mc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.mc-sym   { font-size: 13px; font-weight: 700; color: var(--ink); }
.mc-price { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 900; letter-spacing: -1px; color: var(--ink); }
.mc-chg   { font-size: 12px; font-weight: 600; color: var(--green); }
.mc-sub   { font-size: 11px; color: var(--muted); }
.spark-line { display: block; width: 100%; height: 56px; overflow: visible; }
.greeks-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.greek-pill { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.gp-symbol  { font-size: 11px; color: var(--muted); font-weight: 600; }
.gp-val     { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 4px; letter-spacing: -.5px; }
.oi-bars    { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.oi-row     { display: flex; align-items: center; gap: 10px; }
.oi-label   { font-size: 11px; font-family: monospace; color: var(--muted); width: 52px; text-align: right; }
.oi-bar-wrap{ flex: 1; background: var(--line); border-radius: 4px; height: 8px; overflow: hidden; }
.oi-bar     { height: 100%; border-radius: 4px; }
.oi-calls .oi-bar { background: var(--green); }
.oi-puts  .oi-bar { background: var(--red);   }
.oi-val   { font-size: 11px; color: var(--muted); width: 40px; }
.pnl-strip { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.pnl-box   { flex: 1; min-width: 90px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.pnl-label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.pnl-val   { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 900; letter-spacing: -0.5px; margin-top: 5px; }
.bc-6-content { flex: 1; }
.bc-6-visual  { flex: 0 0 auto; display: flex; gap: 12px; flex-wrap: wrap; }
.trust-badge  {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.trust-icon { font-size: 22px; }

/* ── TESTIMONIALS ─────────────────────────────────────────────────────────── */
.testimonials-section {
  background: var(--ink); padding: 120px 52px;
  position: relative; overflow: hidden;
}
.testimonials-section::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,92,26,0.12), transparent 60%);
}
.t-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px; max-width: 1320px; margin: 0 auto 60px;
}
.t-header .s-eyebrow { color: var(--orange); }
.t-header .s-title   { color: #fff; }
.reviews-track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 1320px; margin: 0 auto;
}
.review-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--card-r); padding: 28px;
  transition: border-color .3s, transform .3s var(--ease);
}
.review-card:hover { border-color: rgba(255,92,26,.35); transform: translateY(-4px); }
.rc-stars  { color: var(--orange); font-size: 13px; margin-bottom: 18px; letter-spacing: 2px; }
.rc-text   { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 22px; }
.rc-author { display: flex; align-items: center; gap: 12px; }
.rc-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; }
.rc-name   { font-size: 14px; font-weight: 700; color: #fff; }
.rc-role   { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ── EXCHANGE WIDGET ──────────────────────────────────────────────────────── */
.exchange-section {
  padding: 120px 52px; max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.exchange-widget {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 24px; padding: 36px;
}
.ew-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 24px; text-transform: uppercase; letter-spacing: .5px; }
.ew-row {
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; transition: border-color .2s;
}
.ew-row:hover { border-color: var(--orange); }
.ew-currency { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--ink); }
.flag-emoji  { font-size: 22px; }
.ew-amount   {
  font-family: 'Fraunces', serif; font-size: 28px; font-weight: 900;
  color: var(--ink); letter-spacing: -1px;
  background: none; border: none; outline: none; width: 120px; text-align: right; cursor: none;
}
.ew-swap   { display: flex; justify-content: center; margin: 8px 0; }
.swap-btn  {
  width: 40px; height: 40px; border-radius: 50%; background: var(--orange);
  color: #fff; border: none; cursor: none; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease), box-shadow .2s;
  box-shadow: 0 4px 16px rgba(255,92,26,.3);
}
.swap-btn:hover { transform: rotate(180deg); box-shadow: 0 6px 24px rgba(255,92,26,.4); }
.ew-rate { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ew-rate strong { color: var(--ink); font-weight: 700; }
.ew-cta {
  width: 100%; background: var(--ink); color: #fff; border: none; border-radius: 12px;
  padding: 16px; font-size: 16px; font-weight: 700; font-family: 'Figtree', sans-serif;
  cursor: none; margin-top: 16px; transition: background .2s;
}
.ew-cta:hover { background: var(--orange); }

/* ── AD SLOTS ─────────────────────────────────────────────────────────────── */
.ad-slot {
  text-align: center; overflow: hidden;
  background: var(--bg2); border: 1px dashed var(--line); border-radius: 12px;
}
.ad-slot:empty {
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.ad-slot:empty::after {
  content: 'Advertisement'; font-size: 11px; color: var(--muted);
  letter-spacing: .5px; text-transform: uppercase;
}
.ad-slot-leaderboard  { width: 100%; max-height: 90px; margin: 0 auto 40px; }
.ad-slot-rectangle    { width: 300px; min-height: 250px; }
.ad-slot-in-content   { max-width: 728px; min-height: 90px; margin: 40px auto; }

/* ── BLOG SECTION (homepage) ──────────────────────────────────────────────── */
.blog-section { padding: 120px 52px; max-width: 1320px; margin: 0 auto; }
.blog-section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px; margin-bottom: 60px;
}
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.blog-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--card-r);
  overflow: hidden; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.blog-card:hover { border-color: rgba(255,92,26,.25); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.07); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; display: block; background: var(--bg2); }
.blog-card-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--orange-light), var(--bg2)); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.blog-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--orange); margin-bottom: 12px; }
.blog-card-title{ font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.3px; }
.blog-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.blog-card-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--orange-light); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--orange); }
.blog-meta-dot { color: var(--line); }

/* ── FINAL CTA ────────────────────────────────────────────────────────────── */
.final-cta { padding: 80px 52px 120px; max-width: 1320px; margin: 0 auto; text-align: center; }
.fc-box {
  background: var(--orange); border-radius: 32px; padding: 80px;
  position: relative; overflow: hidden;
}
.fc-box::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.08);
}
.fc-box::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 300px; height: 300px; border-radius: 50%; background: rgba(0,0,0,0.06);
}
.fc-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.2); color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
.fc-box h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(38px, 5vw, 64px); font-weight: 900; letter-spacing: -2px;
  color: #fff; line-height: 1.0; margin-bottom: 24px; position: relative; z-index: 1;
}
.fc-box p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 44px; position: relative; z-index: 1; }
.fc-btn {
  display: inline-block; background: #fff; color: var(--orange);
  font-family: 'Figtree', sans-serif; font-size: 17px; font-weight: 800;
  padding: 18px 48px; border-radius: 14px; border: none; cursor: none;
  transition: transform .2s var(--ease), box-shadow .2s;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15); position: relative; z-index: 1;
  text-decoration: none;
}
.fc-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 60px rgba(0,0,0,0.2); }
.fc-note { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 18px; position: relative; z-index: 1; }

/* ── RESPONSIVE UTILITY CLASSES ──────────────────────────────────────────── */
.about-split      { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.learn-stats-row  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0 52px 48px; max-width: 1320px; margin: 0 auto; }
.learn-stat-item  { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; }
.learn-stat-num   { font-family: 'Fraunces', serif; font-size: 40px; font-weight: 900; letter-spacing: -1.5px; line-height: 1; margin-bottom: 6px; }
.learn-stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 60px 52px 40px; }
.footer-top { display: grid; grid-template-columns: 280px repeat(4, 1fr); gap: 40px; margin-bottom: 60px; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 14px; max-width: 220px; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ink); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none; font-size: 16px;
  transition: border-color .2s, color .2s;
}
.footer-social a:hover { border-color: var(--orange); color: var(--orange); }

/* ── SIMULATOR PAGE ───────────────────────────────────────────────────────── */
.sim-page { display: flex; flex-direction: column; height: 100vh; padding-top: var(--nav-h); }
.sim-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; border-bottom: 1px solid var(--line);
  background: #fff; flex-shrink: 0; flex-wrap: wrap; gap: 12px;
}
.sim-scenario-info { display: flex; align-items: center; gap: 16px; }
.sim-scenario-badge {
  padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.sim-scenario-badge.beginner    { background: rgba(29,184,119,.12); color: var(--green); }
.sim-scenario-badge.intermediate{ background: rgba(255,92,26,.12);  color: var(--orange); }
.sim-scenario-badge.advanced    { background: rgba(232,69,60,.12);   color: var(--red); }
.sim-spot { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 900; letter-spacing: -1px; }
.sim-spot-change { font-size: 13px; font-weight: 600; }
.sim-time { font-size: 13px; color: var(--muted); font-weight: 500; }
.sim-controls { display: flex; align-items: center; gap: 8px; }
.sim-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: 10px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; transition: background .2s, border-color .2s;
}
.sim-btn:hover { background: var(--bg2); border-color: var(--ink); }
.sim-btn.primary  { background: var(--ink);    color: #fff; border-color: var(--ink); }
.sim-btn.primary:hover  { background: var(--orange); border-color: var(--orange); }
.sim-btn.danger   { background: var(--red);    color: #fff; border-color: var(--red); }
.sim-btn.scenario { background: var(--orange); color: #fff; border-color: var(--orange); }
.sim-btn.scenario:hover { background: #e04d10; border-color: #e04d10; }
.chart-tf-btn {
  padding: 5px 12px; font-size: 12px; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.15); border-radius: 6px;
  background: rgba(15,23,42,0.75); backdrop-filter: blur(4px);
  cursor: pointer; color: #94a3b8; transition: all .15s; letter-spacing: .3px;
}
.chart-tf-btn.active {
  background: #FF5C1A !important; color: #fff !important;
  border-color: #FF5C1A !important;
  box-shadow: 0 0 0 3px rgba(255,92,26,.30);
}
.chart-tf-btn:hover:not(.active) { border-color: #FF5C1A; color: #fff; background: rgba(255,92,26,.15); }

.sim-body {
  display: grid; grid-template-columns: 360px 1fr 320px;
  flex: 1; min-height: 0; overflow: hidden;
}
/* min-height:0 is critical — lets grid children shrink below content size so overflow-y:auto works */
.sim-panel { overflow-y: auto; min-height: 0; border-right: 1px solid var(--line); }
.sim-panel:last-child { border-right: none; border-left: 1px solid var(--line); }
.sim-panel-header {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted); position: sticky; top: 0;
  background: #fff; z-index: 10;
}

/* Options chain table */
.options-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.options-table th {
  padding: 8px 10px; text-align: center; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
  border-bottom: 1px solid var(--line); position: sticky; top: 41px; background: #fff; z-index: 5;
}
.options-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.options-table tr.atm td { background: var(--orange-light); font-weight: 700; }
.options-table tr:hover td { background: var(--bg2); cursor: pointer; }
.chain-ce { color: var(--green); font-weight: 600; }
.chain-pe { color: var(--red);   font-weight: 600; }
.chain-strike { font-weight: 800; color: var(--ink); font-family: 'Fraunces', serif; font-size: 13px; }
.chain-iv { color: var(--muted); font-size: 11px; }
.chain-delta { color: var(--blue); font-size: 11px; }

/* Chart area */
.sim-chart-area { display: flex; flex-direction: column; }
.sim-chart-wrap { flex: 1; min-height: 0; }
.sim-pnl-bar {
  padding: 18px 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 13px; background: #fff;
}
.sim-pnl-item { display: flex; flex-direction: column; gap: 2px; }
.sim-pnl-label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.sim-pnl-value { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 900; letter-spacing: -0.5px; }

/* Right panel — trade + positions */
.trade-panel { padding: 16px; }
.trade-select {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px;
}
.trade-type-btn {
  padding: 10px; border-radius: 10px; border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 700; background: #fff; cursor: pointer;
  transition: all .2s;
}
.trade-type-btn.ce.active { background: var(--green); border-color: var(--green); color: #fff; }
.trade-type-btn.pe.active { background: var(--red);   border-color: var(--red);   color: #fff; }
.trade-field { margin-bottom: 14px; }
.trade-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; }
.trade-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-weight: 700; font-family: 'Figtree', sans-serif;
  background: #fff; color: var(--ink); cursor: pointer; outline: none;
  transition: border-color .2s;
}
.trade-input:focus { border-color: var(--orange); }
.trade-summary {
  background: var(--bg2); border-radius: 12px; padding: 14px;
  margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px;
}
.trade-summary-row { display: flex; justify-content: space-between; font-size: 13px; }
.trade-summary-row span:last-child { font-weight: 700; }
.order-type-toggle { display: flex; gap: 4px; }
.order-type-btn {
  flex: 1; padding: 7px 0; font-size: 11px; font-weight: 700; letter-spacing: .3px;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer; color: var(--muted); transition: all .15s;
  font-family: 'Figtree', sans-serif;
}
.order-type-btn.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.order-type-btn.active.limit-active { background: var(--orange); border-color: var(--orange); }
.pending-orders-section { margin-top: 4px; }
.pending-order-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: #fff8f0; border: 1px solid var(--orange-mid);
  border-radius: 10px; margin-bottom: 6px; font-size: 12px;
}
.pending-order-label { font-weight: 700; color: var(--orange); }
.pending-order-meta { color: var(--muted); font-size: 11px; margin-top: 2px; }
.pending-cancel-btn {
  padding: 3px 8px; font-size: 11px; font-weight: 700; border: 1.5px solid var(--line);
  border-radius: 6px; background: #fff; cursor: pointer; color: var(--muted);
  font-family: 'Figtree', sans-serif; transition: all .15s;
}
.pending-cancel-btn:hover { border-color: var(--red); color: var(--red); }
.trade-exec-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-buy  { padding: 14px; border: none; border-radius: 12px; background: var(--green); color: #fff; font-size: 14px; font-weight: 800; font-family: 'Figtree', sans-serif; cursor: pointer; transition: opacity .2s; }
.btn-sell { padding: 14px; border: none; border-radius: 12px; background: var(--red);   color: #fff; font-size: 14px; font-weight: 800; font-family: 'Figtree', sans-serif; cursor: pointer; transition: opacity .2s; }
.btn-buy:hover, .btn-sell:hover { opacity: .85; }

/* Positions */
.positions-list { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.position-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px 14px 12px; border-left-width: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}
.position-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.10); }
.position-card.profit { border-left-color: var(--green); }
.position-card.loss   { border-left-color: var(--red); }
.position-card.flat   { border-left-color: var(--muted); }
.position-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.position-tag {
  padding: 3px 10px; border-radius: 100px; font-size: 10px; font-weight: 700; color: #fff;
}
.position-tag.ce { background: var(--green); }
.position-tag.pe { background: var(--red);   }
.position-tag.short { opacity: .75; }
.position-pnl { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 900; letter-spacing: -0.5px; }
.position-details { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 12px; color: var(--muted); }
.position-details > div { display: flex; flex-direction: column; gap: 1px; }
.position-details strong { color: var(--ink); font-size: 13px; }
.pos-detail strong { color: var(--ink); display: block; }
@keyframes exitPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,69,60,0); border-color: var(--red); color: var(--red); }
  50%       { box-shadow: 0 0 0 5px rgba(232,69,60,0.25); }
}
.pos-exit-btn {
  width: 100%; margin-top: 10px; padding: 9px; border-radius: 8px;
  border: 1.5px solid var(--red); background: #fff;
  font-size: 12px; font-weight: 700; cursor: pointer; color: var(--red);
  transition: background .2s, border-color .2s, color .2s;
  animation: exitPulse 2s ease-in-out infinite;
}
.pos-exit-btn:hover { background: var(--red); border-color: var(--red); color: #fff; animation: none; }

/* Time bar below chart */
.sim-time-bar {
  background: #0f172a; border-top: 1px solid #1e293b;
  padding: 7px 12px 10px; flex-shrink: 0;
}
.time-bar-track {
  position: relative; height: 22px; margin: 0 4px;
}
.time-bar-line {
  position: absolute; top: 4px; left: 0; right: 0;
  height: 2px; background: #1e293b; border-radius: 1px;
}
.time-bar-fill {
  position: absolute; top: 4px; left: 0; height: 2px;
  background: var(--orange); border-radius: 1px; transition: width .3s ease;
  width: 0%;
}
.time-bar-needle {
  position: absolute; top: -2px; width: 2px; height: 12px;
  background: var(--orange); border-radius: 1px; margin-left: -1px;
  transition: left .3s ease; left: 0%;
  box-shadow: 0 0 4px rgba(255,92,26,.6);
}
.time-bar-marker {
  position: absolute; top: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.time-bar-tick {
  width: 1px; height: 7px; background: #475569; margin-top: 2px;
}
.time-bar-label {
  font-size: 10px; color: #94a3b8; margin-top: 2px;
  font-family: monospace; white-space: nowrap; font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

/* Panel sub-tabs (Trade | History inside right panel) */
.panel-sub-tabs {
  display: flex; border-bottom: 1px solid var(--line);
}
.panel-sub-tab {
  flex: 1; padding: 10px 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; border: none; background: none; cursor: pointer;
  color: var(--muted); border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.panel-sub-tab.active { color: var(--orange); border-bottom-color: var(--orange); }

/* History panel */
.history-section-header {
  padding: 10px 14px 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; color: var(--muted); letter-spacing: .5px;
}
.history-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.history-table th {
  padding: 6px 10px; text-align: left; font-size: 10px; font-weight: 700;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.history-table td {
  padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--ink);
  vertical-align: middle;
}
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td { background: var(--bg2); }

/* Scenario picker */
.scenario-picker {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.scenario-modal {
  background: #fff; border-radius: 24px; padding: 40px;
  max-width: 860px; width: 100%; max-height: 90vh; overflow-y: auto;
}
.scenario-modal h2 { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.scenario-modal p  { color: var(--muted); margin-bottom: 36px; }
.scenario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.scenario-card {
  border: 1.5px solid var(--line); border-radius: 16px; padding: 24px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.scenario-card:hover { border-color: var(--orange); background: var(--orange-light); }
.scenario-card h3  { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; margin: 12px 0 6px; }
.scenario-card p   { font-size: 13px; color: var(--muted); line-height: 1.6; }
.scenario-card-tags{ display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.scenario-tag { padding: 3px 10px; border-radius: 100px; font-size: 10px; font-weight: 700; text-transform: uppercase; background: var(--bg2); color: var(--muted); }

/* Scenario picker tabs (curated vs historical) */
.scenario-tabs { display: flex; gap: 8px; margin-bottom: 4px; }
.scen-tab {
  padding: 7px 18px; border-radius: 20px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.scen-tab:hover { border-color: var(--orange); color: var(--orange); }
.scen-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.hist-page-btn {
  padding: 6px 14px; border-radius: 8px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.hist-page-btn:hover { border-color: var(--orange); color: var(--orange); }

/* Desktop: restore original 3-column grid layout, hide tab bar */
@media (min-width: 1025px) {
  .sim-tab-bar { display: none !important; }
  .sim-body { display: grid !important; grid-template-columns: 360px 1fr 320px; overflow: hidden; min-height: 0; }
  /* height:100% + min-height:0 allows panels to scroll within the fixed grid height */
  .sim-body > .sim-panel { display: block !important; overflow-y: auto !important; min-height: 0; height: 100% !important; }
  .sim-body > .sim-chart-area { display: flex !important; flex-direction: column; min-height: 0; height: 100% !important; }
  .sim-page { padding-bottom: 0 !important; }
}

/* ── LEARN PAGE ───────────────────────────────────────────────────────────── */
.learn-hero { padding: 80px 52px; max-width: 1320px; margin: 0 auto; }
.learn-hero h1 { margin-bottom: 16px; }
.course-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 48px 0 40px;
}
.filter-btn {
  padding: 8px 18px; border-radius: 100px; border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 600; background: #fff; color: var(--muted);
  cursor: none; transition: all .2s;
}
.filter-btn.active, .filter-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.courses-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding: 0 52px 80px; max-width: 1320px; margin: 0 auto;
}
.course-card {
  border: 1px solid var(--line); border-radius: var(--card-r); overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
  background: #fff;
}
.course-card:hover { border-color: rgba(255,92,26,.25); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.07); }
.course-card-header {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 56px; position: relative;
}
.course-card-body  { padding: 24px; }
.course-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 4px 10px; border-radius: 100px; margin-bottom: 12px; display: inline-block; }
.course-badge.beginner     { background: rgba(29,184,119,.1);  color: var(--green); }
.course-badge.intermediate { background: rgba(255,92,26,.1);   color: var(--orange); }
.course-badge.advanced     { background: rgba(232,69,60,.1);   color: var(--red); }
.course-title  { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.3px; }
.course-desc   { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.course-meta   { display: flex; gap: 16px; font-size: 12px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.course-meta-item { display: flex; align-items: center; gap: 4px; }

/* Progress bar */
.course-progress { margin-top: 12px; }
.progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.progress-bar { height: 6px; background: var(--line); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--orange), #ff9a00); border-radius: 100px; transition: width .6s var(--ease); }

/* ── STRATEGIES PAGE ──────────────────────────────────────────────────────── */
.strategies-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; padding: 0 52px 80px; max-width: 1320px; margin: 0 auto;
}
.strategy-card {
  border: 1px solid var(--line); border-radius: var(--card-r); padding: 28px;
  background: #fff; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.strategy-card:hover { border-color: rgba(255,92,26,.25); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.07); }
.strategy-outlook {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 16px;
}
.strategy-outlook.bullish { background: rgba(29,184,119,.1);  color: var(--green); }
.strategy-outlook.bearish { background: rgba(232,69,60,.1);   color: var(--red); }
.strategy-outlook.neutral { background: rgba(26,115,232,.1);  color: var(--blue); }
.strategy-title { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.3px; }
.strategy-desc  { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.strategy-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-box { background: var(--bg2); border-radius: 10px; padding: 12px; text-align: center; }
.stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.stat-val   { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 900; letter-spacing: -0.3px; }
.payoff-svg { width: 100%; height: 60px; margin: 16px 0; display: block; }

/* ── PRICING PAGE ─────────────────────────────────────────────────────────── */
.pricing-hero { padding: 80px 52px 0; max-width: 860px; margin: 0 auto; text-align: center; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; padding: 60px 52px 80px; max-width: 1100px; margin: 0 auto;
}
.pricing-card {
  border: 1px solid var(--line); border-radius: var(--card-r); padding: 36px;
  background: #fff; transition: border-color .3s, transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--orange); background: var(--ink); color: #fff;
  transform: scale(1.04); box-shadow: 0 24px 80px rgba(0,0,0,0.15);
}
.pricing-card.featured .pricing-feature { color: rgba(255,255,255,0.7); }
.pricing-card.featured .pricing-feature.yes { color: #fff; }
.pricing-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--orange); margin-bottom: 16px; display: block; }
.pricing-plan  { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.pricing-amount{ font-family: 'Fraunces', serif; font-size: 52px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.pricing-period{ font-size: 14px; color: var(--muted); margin-bottom: 32px; margin-top: 4px; }
.pricing-card.featured .pricing-period { color: rgba(255,255,255,0.5); }
.pricing-divider { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.pricing-card.featured .pricing-divider { border-top-color: rgba(255,255,255,0.1); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; margin-bottom: 32px; }
.pricing-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.pricing-feature.yes { color: var(--ink); }
.pricing-feature::before { content: '—'; color: var(--line); font-size: 12px; }
.pricing-feature.yes::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 14px; }
.pricing-cta { width: 100%; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 700; font-family: 'Figtree', sans-serif; cursor: none; border: none; transition: all .2s; }
.pricing-cta.outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.pricing-cta.outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pricing-cta.solid  { background: var(--orange); color: #fff; }
.pricing-cta.solid:hover { background: #e04d10; }

/* ── ANIMATIONS ───────────────────────────────────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .pricing-card.featured { transform: none; }
  .strategies-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  body { cursor: auto; }
  #cursor { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 60px 24px; }
  nav { padding: 0 24px; }
  nav ul { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 80px 24px; }
  .steps-track { grid-template-columns: repeat(3, 1fr); }
  .bento { display: flex; flex-direction: column; }
  .reviews-track { grid-template-columns: 1fr 1fr; }
  .exchange-section { grid-template-columns: 1fr; gap: 48px; }
  footer { padding: 48px 24px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .fc-box { padding: 48px 32px; }
  .final-cta { padding: 40px 24px 80px; }
  .testimonials-section { padding: 80px 24px; }
  .steps-inner { padding: 0 24px; }
  .t-header { margin: 0 0 48px; }
  .blog-section { padding: 80px 24px; }
  .learn-hero { padding: 60px 24px; }
  .learn-stats-row { padding: 0 24px 40px; gap: 20px; grid-template-columns: repeat(2, 1fr); }
  .courses-grid { padding: 0 24px 60px; }
  .strategies-grid { padding: 0 24px 60px; }
  .pricing-grid { padding: 40px 24px 60px; }
  /* Mobile simulator: single column, tab switcher */
  .sim-body { grid-template-columns: 1fr; overflow: visible; }
  .sim-body > .sim-panel,
  .sim-body > .sim-chart-area { display: none; }

  /* Active panel fills all space between topbar and fixed tab-bar.
     Use dvh (dynamic viewport height) to avoid mobile browser chrome issues;
     fall back to vh. The --sim-tb CSS var is set by JS on topbar resize,
     defaulting to 56px for the single-row topbar.                          */
  .sim-body > .sim-panel.sim-tab-active,
  .sim-body > .sim-chart-area.sim-tab-active {
    display: flex; flex-direction: column;
    height: calc(100dvh - var(--nav-h) - var(--sim-topbar-h, 56px) - 52px);
    overflow: hidden; /* children handle their own scroll */
  }
  /* Chart panel scrolls itself differently */
  .sim-body > .sim-chart-area.sim-tab-active { min-height: 0; }

  /* Trade/History panel: sub-tab bar fixed at top, content scrolls below */
  #sim-panel-trade.sim-tab-active .panel-sub-tabs { flex-shrink: 0; }
  #sim-panel-trade.sim-tab-active #trade-subpanel,
  #sim-panel-trade.sim-tab-active #history-subpanel {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0;
  }

  .sim-tab-bar {
    display: flex; border-top: 1px solid var(--line); background: #fff;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    height: 52px;
  }
  .sim-tab-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; border: none; background: none; font-size: 10px; font-weight: 700;
    color: var(--muted); cursor: pointer; letter-spacing: .3px; text-transform: uppercase;
    border-top: 2px solid transparent; transition: color .15s, border-color .15s;
  }
  .sim-tab-btn .sim-tab-icon { font-size: 18px; line-height: 1; }
  .sim-tab-btn.active { color: var(--orange); border-top-color: var(--orange); }
  .sim-page { padding-bottom: 52px; }
  .sim-topbar { padding: 10px 16px; flex-wrap: wrap; gap: 10px; }
  .sim-spot { font-size: 22px; }
  .sim-controls { flex-wrap: wrap; gap: 6px; }
  #sim-panel-trade { width: 100% !important; flex-shrink: unset !important; }
  .trade-panel { padding: 16px; }
  .positions-list { padding-bottom: 16px; }
  /* History table readable on narrow screens */
  #history-content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #history-content table { min-width: 420px; }
  /* Disclaimer sits below the fixed tab bar on mobile — add bottom padding
     so it's not obscured. The sim page already has padding-bottom:52px from
     .sim-page so this adds extra breathing room below the disclaimer text. */
  .sim-disclaimer-bar { padding: 20px 20px 80px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-section-header { flex-direction: column; align-items: flex-start; }
  .scenario-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .steps-track { grid-template-columns: 1fr 1fr; }
  .reviews-track { grid-template-columns: 1fr; }
  .strategies-grid, .courses-grid { grid-template-columns: 1fr; }
  .bc-6 { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .about-principles { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .fc-box { padding: 36px 22px; }
  .fc-box h2 { letter-spacing: -1px; }
  .sim-topbar { padding: 8px 12px; }
  .sim-scenario-info { width: 100%; }
  .scenario-modal { padding: 28px 20px; border-radius: 20px; }
}

@media (max-width: 480px) {
  .btn-ghost { display: none; }
  .nav-user-btn > div { display: none; }
  .hero-left { padding: 48px 20px; }
  .fc-box { padding: 32px 18px; }
  .fc-box h2 { font-size: clamp(28px, 8vw, 44px); }
  /* Phone scale — max 38px connects seamlessly with the desktop clamp floor.
     8.5vw at 480px ≈ 40px → capped at 38px; at 375px ≈ 32px; at 306px → floor 26px. */
  h1 { font-size: clamp(26px, 8.5vw, 38px); letter-spacing: -1.5px; line-height: 1.05; }
  .learn-stats-row { padding: 0 20px 32px; gap: 16px; }
  .sim-controls select, .sim-controls button { font-size: 12px; padding: 6px 10px; }
  .pricing-hero { padding: 48px 20px 0; }
  .pricing-grid { padding: 32px 16px 48px; }
  .pricing-amount { font-size: 40px; }
}

/* ── Courses + Blog split card ───────────────────────────────────────────── */
.courses-blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.courses-blog-col {
  padding: 32px 28px 32px 32px;
}
.courses-col {
  border-right: 1px solid var(--line);
}
.blog-col {
  padding: 32px 32px 32px 28px;
}
@media (max-width: 680px) {
  .courses-blog-grid {
    grid-template-columns: 1fr;
  }
  .courses-col {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 24px 20px;
  }
  .blog-col {
    padding: 24px 20px;
  }
}
