/* ========================================================
   BetStrategy — Design System & Styles
   Pure CSS, no frameworks. BEM naming. HSL colors.
   Version: Static (no React/Vite/npm)
======================================================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Custom Properties (Design Tokens) ---------- */
:root {
  --bg: hsl(220,20%,6%);
  --bg-card: hsl(220,18%,10%);
  --bg-secondary: hsl(220,16%,16%);
  --bg-muted: hsl(220,14%,14%);

  --fg: hsl(210,20%,90%);
  --fg-muted: hsl(215,15%,50%);

  --green: hsl(142,71%,45%);
  --green-light: hsl(142,71%,65%);
  --gold: hsl(45,93%,58%);
  --gold-light: hsl(35,93%,68%);
  --red: hsl(0,72%,51%);
  --blue: hsl(210,100%,56%);

  --border: hsl(220,14%,18%);
  --radius: 0.5rem;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --glow-green: 0 0 20px hsla(142,71%,45%,0.3);
  --glow-gold: 0 0 20px hsla(45,93%,58%,0.3);
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
body{font-family:var(--font-sans);background:var(--bg);color:var(--fg);line-height:1.6;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
img{max-width:100%;display:block}
ul{list-style:none}
input,select{font-family:inherit}

/* ---------- Utility ---------- */
.container{max-width:1280px;margin:0 auto;padding:0 1.5rem}
.font-mono{font-family:var(--font-mono)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

.text-gradient-green{
  background:linear-gradient(135deg,var(--green),var(--green-light));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
}
.text-gradient-gold{
  background:linear-gradient(135deg,var(--gold),var(--gold-light));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
}

/* ---------- Scroll Reveal ---------- */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.reveal--visible{opacity:1;transform:translateY(0)}

/* ---------- HEADER ---------- */
.header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background:hsla(220,20%,6%,.8);backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
}
.header__inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.header__logo{display:flex;align-items:center;gap:.5rem;font-family:var(--font-mono);font-weight:700;font-size:1.15rem}
.header__logo-icon{width:24px;height:24px;color:var(--green)}
.header__nav{display:flex;gap:1.5rem}
.header__nav a{font-size:.875rem;color:var(--fg-muted);transition:color .2s}
.header__nav a:hover{color:var(--green)}
.header__burger{display:none;flex-direction:column;gap:5px;padding:4px}
.header__burger span{display:block;width:22px;height:2px;background:var(--fg);border-radius:2px;transition:.3s}
.header__mobile-menu{
  display:none;position:absolute;top:64px;left:0;right:0;
  background:var(--bg-card);border-bottom:1px solid var(--border);padding:1rem 1.5rem;
}
.header__mobile-menu--open{display:block}
.header__mobile-menu a{display:block;padding:.5rem 0;font-size:.875rem;color:var(--fg-muted)}

@media(max-width:768px){
  .header__nav{display:none}
  .header__burger{display:flex}
}

/* ---------- HERO ---------- */
.hero{
  position:relative;min-height:100vh;display:flex;align-items:center;
  overflow:hidden;padding-top:80px;
}
.hero__bg{position:absolute;inset:0}
.hero__bg img{width:100%;height:100%;object-fit:cover;opacity:.18}
.hero__bg-overlay{position:absolute;inset:0;background:hsla(220,20%,6%,.8)}
.hero__bg-grid{
  position:absolute;inset:0;
  background-image:
    linear-gradient(hsla(142,71%,45%,.05) 1px,transparent 1px),
    linear-gradient(90deg,hsla(142,71%,45%,.05) 1px,transparent 1px);
  background-size:40px 40px;
}
.hero__particles{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.hero__particle{
  position:absolute;width:3px;height:3px;border-radius:50%;
  background:var(--green);opacity:.4;
  animation:particleFloat 6s ease-in-out infinite;
}
@keyframes particleFloat{
  0%,100%{transform:translateY(0) scale(1);opacity:.2}
  50%{transform:translateY(-120px) scale(1.5);opacity:.6}
}

.hero__grid{display:grid;grid-template-columns:3fr 2fr;gap:3rem;align-items:center;position:relative;z-index:2}
.hero__badge{
  display:inline-flex;align-items:center;gap:.5rem;
  background:var(--bg-secondary);border:1px solid var(--border);border-radius:999px;
  padding:.375rem 1rem;margin-bottom:1.5rem;font-size:.75rem;
  font-family:var(--font-mono);color:var(--fg-muted);text-transform:uppercase;letter-spacing:.08em;
}
.hero__badge-dot{width:8px;height:8px;border-radius:50%;background:var(--green);animation:pulseDot 2s ease-in-out infinite}
@keyframes pulseDot{0%,100%{box-shadow:0 0 5px hsla(142,71%,45%,.2)}50%{box-shadow:0 0 20px hsla(142,71%,45%,.5)}}

.hero__title{font-size:clamp(2.2rem,5vw,3.75rem);font-weight:800;line-height:1.1;margin-bottom:1.5rem}
.hero__subtitle{font-size:1.125rem;color:var(--fg-muted);max-width:560px;line-height:1.7;margin-bottom:2rem}
.hero__actions{display:flex;flex-wrap:wrap;gap:1rem}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.75rem 1.5rem;border-radius:var(--radius);font-weight:600;font-size:.9rem;
  transition:all .25s ease;
}
.btn--primary{background:var(--green);color:var(--bg)}
.btn--primary:hover{background:var(--green-light);box-shadow:var(--glow-green)}
.btn--outline{border:1px solid hsla(142,71%,45%,.3);color:var(--green)}
.btn--outline:hover{background:hsla(142,71%,45%,.1);border-color:var(--green)}
.btn--ghost{color:var(--green);padding:.5rem .75rem;font-size:.8rem}
.btn--ghost:hover{background:hsla(142,71%,45%,.1)}
.btn--sm{padding:.5rem 1rem;font-size:.8rem}
.btn--filter{padding:.5rem 1rem;border-radius:var(--radius);font-size:.8rem;font-weight:500;background:var(--bg-secondary);color:var(--fg-muted);transition:.2s}
.btn--filter.active{background:var(--green);color:var(--bg)}

.btn-icon{width:20px;height:20px}

/* Hero chart */
.hero__chart-wrap{
  margin-top:2.5rem;background:hsla(220,18%,10%,.6);
  backdrop-filter:blur(8px);border:1px solid var(--border);border-radius:var(--radius);padding:1rem 1.25rem;
}
.hero__chart-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem;flex-wrap:wrap;gap:.5rem}
.hero__chart-title{font-size:.7rem;font-family:var(--font-mono);color:var(--fg-muted);text-transform:uppercase;letter-spacing:.1em}
.hero__chart-legend{display:flex;gap:1rem;font-size:.7rem;font-family:var(--font-mono)}
.hero__chart-legend span{display:flex;align-items:center;gap:.25rem}
.hero__chart-legend-line{display:inline-block;width:12px;height:2px;border-radius:1px}

.hero__chart svg{width:100%;height:auto}
.hero__chart polyline{
  fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:1200;stroke-dashoffset:1200;
  animation:drawLine 2s ease forwards;
}
.hero__chart polyline:nth-child(4){animation-delay:.3s}
.hero__chart polyline:nth-child(5){animation-delay:.6s}
@keyframes drawLine{to{stroke-dashoffset:0}}

/* Strategy of day */
.hero__sidebar{display:flex;flex-direction:column;gap:1.5rem}
.strategy-day{
  background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);
  padding:1.25rem;box-shadow:var(--glow-green);max-width:320px;
}
.strategy-day__header{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem}
.strategy-day__icon{width:16px;height:16px;color:var(--gold)}
.strategy-day__label{font-size:.7rem;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.1em;color:var(--gold)}
.strategy-day__title{font-weight:600;margin-bottom:.5rem}
.strategy-day__text{font-size:.875rem;color:var(--fg-muted);margin-bottom:.75rem;line-height:1.5}
.strategy-day__stats{display:flex;gap:.75rem;font-size:.75rem;font-family:var(--font-mono)}
.strategy-day__stats span:first-child{color:var(--green)}
.strategy-day__stats span:last-child{color:var(--gold)}

/* Hero stats */
.hero__stats{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.stat-card{
  background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);
  padding:1rem;text-align:center;
}
.stat-card__value{font-size:1.5rem;font-weight:700;font-family:var(--font-mono)}
.stat-card__label{font-size:.7rem;color:var(--fg-muted);margin-top:.25rem}

/* Counter animation */
.counter{display:inline}

@media(max-width:1024px){
  .hero__grid{grid-template-columns:1fr}
  .hero__sidebar{flex-direction:row;flex-wrap:wrap}
  .strategy-day{max-width:none;flex:1;min-width:250px}
}
@media(max-width:640px){
  .hero__actions{flex-direction:column}
  .btn{justify-content:center}
}

/* ---------- SECTION COMMON ---------- */
.section{padding:6rem 0}
.section--alt{background:hsla(220,16%,16%,.3)}
.section__label{
  display:block;font-size:.7rem;font-family:var(--font-mono);
  text-transform:uppercase;letter-spacing:.15em;color:var(--green);
  margin-bottom:1rem;text-align:center;
}
.section__label--gold{color:var(--gold)}
.section__label--left{text-align:left}
.section__title{font-size:clamp(1.75rem,3.5vw,2.5rem);font-weight:700;text-align:center;margin-bottom:3rem}
.section__title--left{text-align:left}

/* ---------- CATEGORIES ---------- */
.categories__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.category-card{
  background:var(--bg-card);border:1px solid var(--border);border-radius:.75rem;
  padding:1.5rem;cursor:pointer;transition:all .4s ease;
  transform-style:preserve-3d;
}
.category-card:hover{
  transform:perspective(800px) rotateY(-5deg) rotateX(5deg) scale(1.02);
  border-color:hsla(142,71%,45%,.4);
}
.category-card:nth-child(2):hover{border-color:hsla(45,93%,58%,.4)}
.category-card:nth-child(3):hover{border-color:hsla(210,100%,56%,.4)}
.category-card:nth-child(4):hover{border-color:hsla(45,93%,58%,.4)}

.category-card__icon{width:40px;height:40px;margin-bottom:1rem;color:var(--green)}
.category-card:nth-child(2) .category-card__icon{color:var(--gold)}
.category-card:nth-child(3) .category-card__icon{color:var(--blue)}
.category-card:nth-child(4) .category-card__icon{color:var(--gold)}

.category-card__title{font-size:1.2rem;font-weight:700;margin-bottom:.25rem}
.category-card__subtitle{font-size:.875rem;color:var(--fg-muted);margin-bottom:1rem}
.category-card__desc{font-size:.85rem;color:var(--fg-muted);line-height:1.5;margin-bottom:1rem}
.category-card__meta{display:flex;justify-content:space-between;font-size:.7rem;font-family:var(--font-mono);color:var(--fg-muted)}

@media(max-width:1024px){.categories__grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.categories__grid{grid-template-columns:1fr}}

/* ---------- CALCULATOR ---------- */
.calc__progress{display:flex;gap:.5rem;margin-bottom:2rem}
.calc__progress-bar{height:4px;flex:1;border-radius:2px;background:var(--border);transition:background .3s}
.calc__progress-bar.active{background:var(--green)}
.calc__card{
  background:var(--bg-card);border:1px solid var(--border);border-radius:.75rem;
  padding:2rem;max-width:640px;margin:0 auto;
}
.calc__card--result{border-color:hsla(142,71%,45%,.3);box-shadow:var(--glow-green)}
.calc__step-title{font-size:1.1rem;font-weight:600;margin-bottom:.5rem}
.calc__step-desc{font-size:.875rem;color:var(--fg-muted);margin-bottom:1.5rem}

.calc__slider-wrap{margin-bottom:1rem}
.calc__slider{
  -webkit-appearance:none;width:100%;height:6px;border-radius:3px;
  background:var(--border);outline:none;margin-bottom:1rem;
}
.calc__slider::-webkit-slider-thumb{
  -webkit-appearance:none;width:20px;height:20px;border-radius:50%;
  background:var(--green);cursor:pointer;border:2px solid var(--bg);
}
.calc__slider-value{text-align:center;font-size:1.75rem;font-family:var(--font-mono);font-weight:700}

.calc__options{display:grid;gap:.75rem}
.calc__options--3{grid-template-columns:repeat(3,1fr)}
.calc__options--2{grid-template-columns:repeat(2,1fr)}
.calc__option{
  padding:1rem;border-radius:var(--radius);border:1px solid var(--border);
  background:hsla(220,16%,16%,.5);text-align:center;transition:.2s;cursor:pointer;
}
.calc__option:hover,.calc__option.active{border-color:hsla(142,71%,45%,.6);background:hsla(142,71%,45%,.08)}
.calc__option-label{font-size:.875rem;font-weight:600}
.calc__option-desc{font-size:.7rem;color:var(--fg-muted);margin-top:.15rem}

.calc__result-label{font-size:.7rem;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.1em;color:var(--green);text-align:center;margin-bottom:.5rem}
.calc__result-title{font-size:1.5rem;font-weight:700;text-align:center;margin-bottom:.75rem}
.calc__result-desc{color:var(--fg-muted);text-align:center;margin-bottom:2rem;font-size:.9rem}
.calc__result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:2rem}
.calc__result-item{
  text-align:center;background:hsla(220,16%,16%,.5);border-radius:var(--radius);padding:1rem;
}
.calc__result-item-icon{width:20px;height:20px;margin:0 auto .5rem;color:var(--green)}
.calc__result-item:nth-child(2) .calc__result-item-icon{color:var(--gold)}
.calc__result-item:nth-child(3) .calc__result-item-icon{color:var(--blue)}
.calc__result-item-value{font-family:var(--font-mono);font-weight:700;font-size:1.1rem}
.calc__result-item:first-child .calc__result-item-value{color:var(--green)}
.calc__result-item:nth-child(2) .calc__result-item-value{color:var(--gold)}
.calc__result-item-label{font-size:.7rem;color:var(--fg-muted);margin-top:.25rem}

.calc__result-actions{display:flex;gap:.75rem}
.calc__result-actions .btn{flex:1;justify-content:center}

@media(max-width:640px){.calc__result-grid{grid-template-columns:1fr}}

/* ---------- TOP STRATEGIES TABLE ---------- */
.filters{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap;margin-bottom:2rem}
.strat-table-wrap{
  background:var(--bg-card);border:1px solid var(--border);border-radius:.75rem;overflow:hidden;
}
.strat-table{width:100%;border-collapse:collapse}
.strat-table th{
  text-align:left;padding:.875rem 1.5rem;font-size:.7rem;font-family:var(--font-mono);
  text-transform:uppercase;letter-spacing:.08em;color:var(--fg-muted);
  border-bottom:1px solid var(--border);cursor:pointer;user-select:none;
  transition:color .2s;
}
.strat-table th:hover{color:var(--fg)}
.strat-table th .sort-icon{display:inline-block;width:12px;height:12px;margin-left:4px;vertical-align:middle;opacity:.5}
.strat-table td{padding:.875rem 1.5rem;border-bottom:1px solid hsla(220,14%,18%,.5);transition:background .2s}
.strat-table tr:hover td{background:hsla(220,16%,16%,.3)}
.strat-table__name{font-weight:600}
.strat-table__cat{font-size:.7rem;font-family:var(--font-mono);color:hsla(142,71%,45%,.7)}
.strat-table__desc{font-size:.75rem;color:var(--fg-muted);max-height:0;overflow:hidden;transition:max-height .3s}
tr:hover .strat-table__desc{max-height:2rem;margin-top:.25rem}
.strat-table__roi{font-family:var(--font-mono);font-weight:700;color:var(--green)}

.risk-bar{display:flex;gap:2px}
.risk-bar__seg{width:16px;height:6px;border-radius:3px;background:var(--border)}
.risk-bar__seg--low{background:var(--green)}
.risk-bar__seg--med{background:var(--gold)}
.risk-bar__seg--high{background:var(--red)}

.stars{display:flex;gap:2px}
.stars__star{width:14px;height:14px;color:var(--border)}
.stars__star--filled{color:var(--gold)}

@media(max-width:768px){
  .strat-table-wrap{overflow-x:auto}
  .strat-table{min-width:700px}
}

/* ---------- FINANCIAL COMPARISON ---------- */
.comparison__card{
  background:var(--bg-card);border:1px solid var(--border);border-radius:.75rem;padding:1.5rem 2rem;
}
.comparison__controls{display:grid;grid-template-columns:1fr 1fr auto;gap:1.5rem;margin-bottom:2rem;align-items:end}
.comparison__control label{
  display:block;font-size:.7rem;font-family:var(--font-mono);color:var(--fg-muted);
  text-transform:uppercase;letter-spacing:.08em;margin-bottom:.5rem;
}
.comparison__control input[type=range]{
  width:100%;accent-color:var(--green);height:6px;
}
.comparison__legend{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:1.5rem}
.comparison__legend-item{
  display:flex;align-items:center;gap:.5rem;padding:.375rem .75rem;
  border-radius:999px;font-size:.7rem;font-family:var(--font-mono);
  border:1px solid var(--border);cursor:pointer;transition:.2s;user-select:none;
}
.comparison__legend-item.hidden{opacity:.35}
.comparison__legend-dot{width:12px;height:4px;border-radius:2px}
.comparison__chart-area{height:320px;position:relative}
.comparison__chart-area canvas{width:100%;height:100%}

@media(max-width:768px){.comparison__controls{grid-template-columns:1fr}}

/* ---------- STRATEGY OF WEEK ---------- */
.week__grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
.week__image{position:relative;border-radius:.75rem;overflow:hidden;border:1px solid var(--border);min-height:400px}
.week__image img{width:100%;height:100%;object-fit:cover}
.week__image-overlay{position:absolute;inset:0;background:linear-gradient(to top,hsla(220,20%,6%,.9),hsla(220,20%,6%,.4),transparent)}
.week__formula{
  position:absolute;bottom:1.5rem;left:1.5rem;right:1.5rem;
  background:hsla(220,18%,10%,.8);backdrop-filter:blur(8px);
  border:1px solid var(--border);border-radius:var(--radius);padding:1rem;
}
.week__formula-label{font-size:.7rem;font-family:var(--font-mono);color:var(--gold);text-transform:uppercase;letter-spacing:.1em;margin-bottom:.5rem}
.week__formula-text{font-size:1.25rem;font-family:var(--font-mono);font-weight:700}
.week__formula-desc{font-size:.7rem;color:var(--fg-muted);margin-top:.5rem}

.week__content{display:flex;flex-direction:column;justify-content:center}
.week__text{color:var(--fg-muted);margin-bottom:1.5rem;line-height:1.7}
.week__example{
  background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;margin-bottom:1.5rem;
}
.week__example-label{font-size:.7rem;font-family:var(--font-mono);color:var(--green);text-transform:uppercase;letter-spacing:.1em;margin-bottom:.75rem}
.week__example-lines{font-size:.875rem;font-family:var(--font-mono);color:var(--fg-muted);line-height:1.8}
.week__example-lines span{color:var(--fg)}
.week__example-result{padding-top:.5rem;border-top:1px solid var(--border);margin-top:.5rem;font-weight:700;color:var(--green)}
.week__example-result .week__example-highlight{font-size:1.25rem;color:var(--gold)}

.week__indicators{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.5rem}
.week__indicator{display:flex;align-items:center;gap:.5rem;font-size:.875rem}
.week__indicator-icon{width:16px;height:16px;color:var(--green)}
.week__indicator-label{font-weight:500}
.week__indicator-value{font-size:.75rem}
.week__indicator:nth-child(1) .week__indicator-value{color:var(--gold)}
.week__indicator:nth-child(2) .week__indicator-value{color:var(--green)}
.week__indicator:nth-child(3) .week__indicator-value{color:var(--fg-muted)}

@media(max-width:1024px){.week__grid{grid-template-columns:1fr}}

/* ---------- COMPARATOR ---------- */
.comparator__selectors{display:flex;align-items:center;gap:1rem;margin-bottom:2rem;max-width:720px;margin-left:auto;margin-right:auto}
.comparator__select{
  flex:1;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);
  padding:.75rem 1rem;color:var(--fg);font-size:.875rem;outline:none;
}
.comparator__select:focus{border-color:var(--green)}
.comparator__vs{color:var(--fg-muted);font-size:.875rem;flex-shrink:0}

.comparator__card{
  background:var(--bg-card);border:1px solid var(--border);border-radius:.75rem;padding:1.5rem;
  max-width:720px;margin:0 auto;
}
.comparator__criterion{margin-bottom:1.5rem}
.comparator__criterion:last-child{margin-bottom:0}
.comparator__criterion-label{
  text-align:center;font-size:.7rem;font-family:var(--font-mono);color:var(--fg-muted);
  text-transform:uppercase;letter-spacing:.1em;margin-bottom:.75rem;
}
.comparator__row{display:grid;grid-template-columns:1fr auto 1fr;gap:1rem;align-items:center}
.comparator__val{font-family:var(--font-mono);font-weight:700;font-size:.9rem;margin-bottom:.25rem}
.comparator__val--left{text-align:right}
.comparator__bar-track{width:100%;height:8px;border-radius:4px;background:var(--border);overflow:hidden}
.comparator__bar-fill{height:100%;border-radius:4px;background:var(--green);transition:width .6s ease}
.comparator__bar-fill--red{background:var(--red)}
.comparator__bar-fill--gold{background:var(--gold)}
.comparator__row-vs{font-size:.7rem;color:var(--fg-muted)}

.comparator__extra{
  border-top:1px solid var(--border);padding-top:1.5rem;margin-top:1.5rem;
  display:grid;grid-template-columns:1fr auto 1fr;gap:1rem;font-size:.875rem;
}
.comparator__extra-col{line-height:2}
.comparator__extra-col:first-child{text-align:right}
.comparator__extra-label{color:var(--fg-muted)}
.comparator__extra-value{font-family:var(--font-mono)}

/* ---------- MATH SECTION ---------- */
.math__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.math-card{background:var(--bg-card);border:1px solid var(--border);border-radius:.75rem;padding:1.5rem}
.math-card__header{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}
.math-card__icon{width:24px;height:24px;color:var(--green)}
.math-card__title{font-size:1.1rem;font-weight:700}
.math-card__formula{
  background:hsla(220,16%,16%,.5);border-radius:var(--radius);padding:.75rem;
  margin-bottom:1rem;text-align:center;font-family:var(--font-mono);font-size:.875rem;color:var(--gold);
}
.math-card__desc{font-size:.875rem;color:var(--fg-muted);margin-bottom:1rem;line-height:1.5}
.math-card__input{margin-bottom:.75rem}
.math-card__input label{display:block;font-size:.7rem;color:var(--fg-muted);margin-bottom:.25rem}
.math-card__input input[type=range]{width:100%;accent-color:var(--green)}
.math-card__result{
  text-align:center;padding:.5rem;border-radius:var(--radius);font-family:var(--font-mono);font-weight:700;
}
.math-card__result--positive{background:hsla(142,71%,45%,.1);color:var(--green)}
.math-card__result--negative{background:hsla(0,72%,51%,.1);color:var(--red)}

.math-card__dispersion-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:.75rem}
.math-card__dispersion-item{
  border:1px solid var(--border);border-radius:var(--radius);padding:.75rem;text-align:center;
}
.math-card__dispersion-item--low{border-color:hsla(142,71%,45%,.3);background:hsla(142,71%,45%,.03)}
.math-card__dispersion-item--med{border-color:hsla(45,93%,58%,.3);background:hsla(45,93%,58%,.03)}
.math-card__dispersion-item--high{border-color:hsla(0,72%,51%,.3);background:hsla(0,72%,51%,.03)}
.math-card__dispersion-label{font-size:.75rem;font-weight:700}
.math-card__dispersion-desc{font-size:.6rem;color:var(--fg-muted);margin-top:.15rem}
.math-card__note{font-size:.7rem;color:var(--fg-muted);text-align:center}

@media(max-width:1024px){.math__grid{grid-template-columns:1fr}}

/* ---------- RISK WARNING ---------- */
.risk__card{
  background:var(--bg-card);border:1px solid hsla(0,72%,51%,.3);border-radius:.75rem;overflow:hidden;
  display:grid;grid-template-columns:1fr 1fr;
}
.risk__image{position:relative;min-height:350px}
.risk__image img{width:100%;height:100%;object-fit:cover}
.risk__image-overlay{position:absolute;inset:0;background:linear-gradient(to right,transparent,var(--bg-card))}
.risk__content{padding:2rem 3rem;display:flex;flex-direction:column;justify-content:center}
.risk__header{display:flex;align-items:center;gap:.75rem;margin-bottom:1.5rem}
.risk__header-icon{width:32px;height:32px;color:var(--red)}
.risk__header-title{font-size:1.5rem;font-weight:700}
.risk__stat{
  background:hsla(0,72%,51%,.1);border:1px solid hsla(0,72%,51%,.2);
  border-radius:var(--radius);padding:1rem;margin-bottom:1.5rem;
}
.risk__stat-value{font-size:1.75rem;font-family:var(--font-mono);font-weight:700;color:var(--red)}
.risk__stat-label{font-size:.875rem;color:var(--fg-muted)}
.risk__tips{margin-bottom:1.5rem}
.risk__tip{display:flex;align-items:flex-start;gap:.75rem;margin-bottom:1rem}
.risk__tip-icon{width:20px;height:20px;flex-shrink:0;margin-top:2px}
.risk__tip-icon--green{color:var(--green)}
.risk__tip-icon--red{color:var(--red)}
.risk__tip-text{font-size:.875rem;color:var(--fg-muted);line-height:1.5}
.risk__link{font-size:.875rem;color:var(--green);transition:opacity .2s}
.risk__link:hover{opacity:.7}

@media(max-width:1024px){
  .risk__card{grid-template-columns:1fr}
  .risk__image{min-height:250px}
  .risk__content{padding:2rem 1.5rem}
}

/* ---------- NEW STRATEGIES ---------- */
.new__header{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:3rem}
.new__grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.new-card{
  background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);
  padding:1.25rem;cursor:pointer;transition:border-color .2s;
}
.new-card:hover{border-color:hsla(142,71%,45%,.3)}
.new-card__meta{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}
.new-card__tag{
  font-size:.7rem;font-family:var(--font-mono);color:var(--green);
  background:hsla(142,71%,45%,.1);padding:.15rem .5rem;border-radius:var(--radius);
}
.new-card__date{font-size:.7rem;color:var(--fg-muted);display:flex;align-items:center;gap:.25rem}
.new-card__date-icon{width:12px;height:12px}
.new-card__title{font-weight:600;margin-bottom:.25rem;transition:color .2s}
.new-card:hover .new-card__title{color:var(--green)}
.new-card__desc{font-size:.875rem;color:var(--fg-muted)}

@media(max-width:640px){.new__grid{grid-template-columns:1fr}}

/* ---------- FOOTER ---------- */
.footer{border-top:1px solid var(--border);background:var(--bg-card);padding:4rem 0}
.footer__grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.5fr;gap:3rem;margin-bottom:3rem}
.footer__brand{display:flex;align-items:center;gap:.5rem;font-family:var(--font-mono);font-weight:700;font-size:1.15rem;margin-bottom:1rem}
.footer__brand-icon{width:24px;height:24px;color:var(--green)}
.footer__brand-text{font-size:.875rem;color:var(--fg-muted);line-height:1.6}
.footer__heading{font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:1rem}
.footer__links li{margin-bottom:.5rem}
.footer__links a{font-size:.875rem;color:var(--fg-muted);transition:color .2s}
.footer__links a:hover{color:var(--green)}
.footer__subscribe-text{font-size:.875rem;color:var(--fg-muted);margin-bottom:1rem}
.footer__subscribe-form{display:flex;gap:.5rem}
.footer__subscribe-input{
  flex:1;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius);
  padding:.5rem .75rem;font-size:.875rem;color:var(--fg);outline:none;
}
.footer__subscribe-input::placeholder{color:var(--fg-muted)}
.footer__subscribe-input:focus{border-color:var(--green)}
.footer__bottom{
  border-top:1px solid var(--border);padding-top:1.5rem;
  display:flex;justify-content:space-between;align-items:center;
  font-size:.75rem;color:var(--fg-muted);
}

@media(max-width:1024px){.footer__grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){
  .footer__grid{grid-template-columns:1fr}
  .footer__bottom{flex-direction:column;gap:.5rem;text-align:center}
}

/* ========================================================
   Dynamic Blog Theme Integration
   Generated for PHP 5.4 content engine. Uses content_index.json.
======================================================== */
.blog-shell{background:var(--bg);color:var(--fg)}
.blog-main{padding-top:64px;min-height:70vh;background:
  radial-gradient(circle at 15% 0%,hsla(142,71%,45%,.12),transparent 32rem),
  radial-gradient(circle at 85% 10%,hsla(45,93%,58%,.08),transparent 30rem),
  var(--bg)}
.blog-header{box-shadow:0 10px 40px hsla(220,20%,2%,.35)}
.blog-footer{margin-top:0}
.blog-hero{position:relative;overflow:hidden;padding:7rem 0 5rem;border-bottom:1px solid var(--border);background:
  linear-gradient(135deg,hsla(220,18%,10%,.78),hsla(220,20%,6%,.96)),
  radial-gradient(circle at 15% 20%,hsla(142,71%,45%,.22),transparent 30rem),
  radial-gradient(circle at 85% 25%,hsla(45,93%,58%,.14),transparent 26rem)}
.blog-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(hsla(142,71%,45%,.045) 1px,transparent 1px),linear-gradient(90deg,hsla(142,71%,45%,.045) 1px,transparent 1px);background-size:42px 42px;pointer-events:none}
.blog-hero .container{position:relative;z-index:1}
.blog-hero--compact{padding:5rem 0 3.5rem}
.blog-hero__grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:2rem;align-items:center}
.blog-hero__title{font-size:clamp(2rem,4.2vw,4rem);line-height:1.04;font-weight:850;letter-spacing:-.04em;max-width:920px;margin:0 0 1rem}
.blog-hero__lead{font-size:1.05rem;color:var(--fg-muted);max-width:760px;line-height:1.75;margin:0 0 1.6rem}
.blog-hero__actions{display:flex;flex-wrap:wrap;gap:1rem}
.blog-hero__panel{background:hsla(220,18%,10%,.75);border:1px solid hsla(142,71%,45%,.18);border-radius:1rem;padding:1rem;box-shadow:var(--glow-green);backdrop-filter:blur(12px)}
.blog-stat{padding:1rem;border-radius:.85rem;background:hsla(220,16%,16%,.72);border:1px solid var(--border);margin-bottom:.75rem}
.blog-stat:last-child{margin-bottom:0}
.blog-stat strong{display:block;font-family:var(--font-mono);font-size:1.6rem;color:var(--green);line-height:1}
.blog-stat span{display:block;margin-top:.35rem;color:var(--fg-muted);font-size:.82rem}
.blog-hero__mini-stats{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.5rem}
.blog-hero__mini-stats span,.article-meta-pills span{display:inline-flex;align-items:center;padding:.45rem .75rem;border:1px solid hsla(142,71%,45%,.22);border-radius:999px;background:hsla(220,18%,10%,.7);font-family:var(--font-mono);font-size:.72rem;color:var(--fg-muted)}
.blog-breadcrumbs{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;margin-bottom:1.25rem;font-size:.82rem;color:var(--fg-muted)}
.blog-breadcrumbs a{color:var(--green);transition:color .2s}.blog-breadcrumbs a:hover{color:var(--green-light)}.blog-breadcrumbs span{color:hsla(215,15%,50%,.7)}
.blog-section-head{max-width:820px;margin-bottom:2rem}.blog-section-head--spaced{margin-top:3rem}.blog-section-head__text{color:var(--fg-muted);line-height:1.7;margin-top:-1.8rem;margin-bottom:2rem}
.blog-featured-grid{display:grid;grid-template-columns:1.15fr .85fr;grid-template-rows:1fr 1fr;gap:1.2rem}.blog-feature-card{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--border);border-radius:1rem;background:linear-gradient(145deg,hsla(220,18%,12%,.96),hsla(220,16%,8%,.96));padding:1.25rem;min-height:210px;transition:transform .25s,border-color .25s,box-shadow .25s}.blog-feature-card:before{content:"";position:absolute;inset:auto -15% -50% -15%;height:70%;background:radial-gradient(circle,hsla(142,71%,45%,.18),transparent 65%);pointer-events:none}.blog-feature-card:hover,.blog-list-card:hover,.blog-category-card:hover{transform:translateY(-4px);border-color:hsla(142,71%,45%,.42);box-shadow:0 20px 50px hsla(220,20%,2%,.28)}.blog-feature-card--large{grid-row:1/3;padding:1.6rem;min-height:430px}.blog-feature-card h3{position:relative;font-size:1.15rem;line-height:1.25;margin:.85rem 0}.blog-feature-card--large h3{font-size:2rem;line-height:1.12}.blog-feature-card p,.blog-list-card p,.blog-category-card p{position:relative;color:var(--fg-muted);font-size:.92rem;line-height:1.65}.blog-card__meta{position:relative;display:flex;justify-content:space-between;gap:.8rem;align-items:center;font-family:var(--font-mono);font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--fg-muted)}.blog-card__meta span:first-child{color:var(--green)}.blog-card__more{position:relative;margin-top:auto;color:var(--green);font-weight:700;font-size:.9rem}
.blog-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.blog-category-grid--two{grid-template-columns:repeat(2,minmax(0,1fr))}.blog-category-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}.blog-category-card,.blog-list-card{display:block;border:1px solid var(--border);border-radius:1rem;background:hsla(220,18%,10%,.86);padding:1.2rem;transition:transform .25s,border-color .25s,box-shadow .25s}.blog-category-card__top{display:flex;justify-content:space-between;gap:.8rem;align-items:center;margin-bottom:1rem;font-family:var(--font-mono);font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--fg-muted)}.blog-category-card__top b{color:var(--gold);font-weight:700}.blog-category-card h3,.blog-list-card h3{font-size:1.08rem;line-height:1.28;margin-bottom:.7rem}.blog-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:1.5rem;align-items:start}.blog-list-cards{display:grid;gap:.9rem}.blog-list-card{padding:1.15rem}.blog-list-card h3{margin-top:.6rem}.blog-sidebar,.article-sidebar{position:sticky;top:84px;display:grid;gap:1rem}.blog-sidebar-card,.article-sidebar-card{border:1px solid var(--border);border-radius:1rem;background:hsla(220,18%,10%,.82);padding:1.2rem}.blog-sidebar-card--gold{border-color:hsla(45,93%,58%,.28);box-shadow:var(--glow-gold)}.blog-sidebar-card--green,.article-sidebar-card--green{border-color:hsla(142,71%,45%,.28);box-shadow:var(--glow-green)}.blog-sidebar-card h3,.article-sidebar-card h3{font-size:1rem;margin-bottom:.55rem}.blog-sidebar-card p,.article-sidebar-card p{color:var(--fg-muted);font-size:.9rem;line-height:1.65;margin-bottom:1rem}.blog-empty{padding:1.5rem;border:1px dashed hsla(142,71%,45%,.3);border-radius:1rem;color:var(--fg-muted);background:hsla(220,18%,10%,.55)}
.article-hero{padding:6rem 0 4rem;border-bottom:1px solid var(--border);background:linear-gradient(135deg,hsla(220,18%,10%,.9),hsla(220,20%,6%,.98)),radial-gradient(circle at 25% 15%,hsla(142,71%,45%,.18),transparent 32rem)}.article-hero__grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:2rem;align-items:end}.article-hero__title{font-size:clamp(2rem,4.1vw,3.8rem);line-height:1.05;font-weight:850;letter-spacing:-.04em;margin:0 0 1rem;max-width:960px}.article-hero__lead{color:var(--fg-muted);font-size:1.05rem;line-height:1.75;max-width:830px;margin-bottom:1.3rem}.article-meta-pills{display:flex;flex-wrap:wrap;gap:.6rem}.article-hero-card{padding:1.25rem;border-radius:1rem;background:hsla(220,18%,10%,.82);border:1px solid hsla(142,71%,45%,.25);box-shadow:var(--glow-green)}.article-hero-card h3{font-size:1rem;margin-bottom:.6rem}.article-hero-card p{font-size:.9rem;color:var(--fg-muted);line-height:1.65}.article-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:1.5rem;align-items:start}.article-content-card{border:1px solid var(--border);border-radius:1.1rem;background:hsla(220,18%,10%,.9);padding:clamp(1.2rem,3vw,2.2rem);box-shadow:0 20px 70px hsla(220,20%,2%,.22)}.article-body{font-size:1.03rem;color:hsla(210,20%,90%,.92)}.article-body h2,.article-body h3,.article-body h4{line-height:1.2;margin:2rem 0 1rem;color:var(--fg)}.article-body h2{font-size:1.65rem}.article-body h3{font-size:1.3rem}.article-body p{margin:1rem 0;color:hsla(210,20%,90%,.86);line-height:1.85}.article-body ul,.article-body ol{list-style:revert;margin:1rem 0 1rem 1.4rem;color:hsla(210,20%,90%,.86)}.article-body li{margin:.45rem 0}.article-body a{color:var(--green);text-decoration:underline;text-underline-offset:3px}.article-body blockquote{margin:1.5rem 0;padding:1rem 1.2rem;border-left:3px solid var(--green);background:hsla(142,71%,45%,.08);border-radius:.6rem}.article-body table{width:100%;border-collapse:collapse;margin:1.5rem 0;border:1px solid var(--border);border-radius:.8rem;overflow:hidden;display:block}.article-body th,.article-body td{border-bottom:1px solid var(--border);padding:.75rem;text-align:left}.article-body th{color:var(--green);background:hsla(220,16%,16%,.8)}.article-risk-box{margin-top:2rem;padding:1rem 1.2rem;border-radius:1rem;border:1px solid hsla(45,93%,58%,.28);background:hsla(45,93%,58%,.08)}.article-risk-box strong{display:block;color:var(--gold);margin-bottom:.35rem}.article-risk-box p{color:var(--fg-muted);line-height:1.65}.article-toc{list-style:decimal;margin-left:1.1rem;color:var(--fg-muted);font-size:.9rem}.article-toc li{margin:.55rem 0}.article-sidebar-actions{display:flex;flex-wrap:wrap;gap:.55rem}.related-section{border-top:1px solid var(--border)}
@media(max-width:1024px){.blog-hero__grid,.article-hero__grid,.blog-content-grid,.article-grid{grid-template-columns:1fr}.blog-sidebar,.article-sidebar{position:static}.blog-featured-grid{grid-template-columns:1fr;grid-template-rows:auto}.blog-feature-card--large{grid-row:auto;min-height:280px}.blog-category-grid,.blog-category-grid--two,.blog-category-grid--three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.blog-main{padding-top:64px}.blog-hero,.article-hero{padding:4.5rem 0 3rem}.blog-category-grid,.blog-category-grid--two,.blog-category-grid--three{grid-template-columns:1fr}.blog-feature-card--large h3{font-size:1.45rem}.article-content-card{border-radius:.8rem;padding:1rem}.article-body table{font-size:.82rem}.blog-hero__mini-stats span,.article-meta-pills span{font-size:.66rem}}
