:root {
  --ink: #07110f;
  --ink-2: #0d1b17;
  --surface: #10221c;
  --paper: #f5f8f4;
  --paper-2: #eaf0ea;
  --text: #f6fff9;
  --muted: #a7b9af;
  --dark-text: #18231f;
  --dark-muted: #63726a;
  --green: #00e5a0;
  --cyan: #26b7ff;
  --amber: #f6b44b;
  --rose: #ff647c;
  --line: rgba(255,255,255,.13);
  --shadow: 0 20px 70px rgba(0,0,0,.22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(7, 17, 15, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  min-width: 0;
}
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 8px; }
.site-nav { display: flex; justify-content: center; gap: 22px; color: var(--muted); font-weight: 600; }
.site-nav a:hover { color: var(--green); }
.lang-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; }
.lang-switch a {
  min-width: 32px;
  text-align: center;
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}
.lang-switch a.active { background: var(--green); color: #02110c; }
.nav-toggle { display: none; position: relative; background: rgba(0,229,160,.1); color: var(--text); border: 1px solid rgba(0,229,160,.45); border-radius: 8px; padding: 8px 10px; font-size: 0; }
.nav-toggle::before { content: "☰"; font-size: 1.2rem; line-height: 1; color: var(--green); }
.home-hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  background-image: url("/assets/hero-scene.svg");
  background-size: cover;
  background-position: center;
  padding: clamp(76px, 9vw, 124px) clamp(20px, 5vw, 72px);
}
.hero-overlay { max-width: 860px; }
.eyebrow, .section-kicker {
  color: var(--green);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0;
  font-size: .9rem;
}
h1, h2, h3 {
  font-family: "Rajdhani", "DM Sans", sans-serif;
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0;
}
.home-hero h1, .page-hero h1 {
  font-size: clamp(2.65rem, 5.5vw, 5.6rem);
  max-width: 900px;
  margin-top: 14px;
}
.home-hero p, .page-hero p {
  max-width: 780px;
  width: min(780px, 100%);
  color: #d8e8df;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  overflow-wrap: break-word;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid var(--line);
}
.button.primary { background: var(--green); color: #06110e; border-color: var(--green); }
.button.secondary { background: rgba(255,255,255,.08); color: var(--text); }
.button.ghost { background: transparent; color: var(--green); border-color: rgba(0,229,160,.35); }
.text-link { color: var(--green); font-weight: 800; display: inline-flex; margin-top: 12px; }
.text-link::after { content: "→"; margin-left: 8px; }
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  color: var(--dark-text);
  border-bottom: 1px solid #dce4dd;
}
.stats-strip div { padding: 30px clamp(18px, 4vw, 54px); border-right: 1px solid #dce4dd; }
.stats-strip strong { display: block; font-family: "Rajdhani"; font-size: 3rem; line-height: 1; }
.stats-strip span { color: var(--dark-muted); font-weight: 700; }
.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  padding: clamp(58px, 7vw, 100px) clamp(20px, 5vw, 72px);
  background: var(--ink);
}
.split-band.reverse { background: #0b1714; }
.split-band h2, .section-heading h2 { font-size: clamp(2rem, 4vw, 4rem); margin-top: 8px; }
.split-band p { color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.split-band img, .lesson-visual { border-radius: 8px; box-shadow: var(--shadow); }
.section-wrap {
  padding: clamp(58px, 7vw, 96px) clamp(20px, 5vw, 72px);
  background: var(--paper);
  color: var(--dark-text);
}
.section-wrap.light { background: var(--paper-2); }
.section-heading { margin-bottom: 26px; max-width: 940px; }
.section-heading span { color: #087a59; text-transform: uppercase; font-weight: 800; font-size: .86rem; }
.card-grid { display: grid; gap: 16px; }
.card-grid.categories { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card-grid.lessons { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.topic-card, .lesson-card, .mini-card {
  min-height: 132px;
  padding: 22px;
  background: #fff;
  border: 1px solid #dfe7df;
  border-radius: 8px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.topic-card:hover, .lesson-card:hover, .mini-card:hover { transform: translateY(-3px); border-color: #91dcbf; box-shadow: 0 18px 38px rgba(21,45,35,.1); }
.topic-card span { display: block; color: #087a59; font-family: "Rajdhani"; font-size: 1.8rem; font-weight: 800; }
.topic-card strong, .lesson-card strong, .mini-card strong { display: block; font-family: "Rajdhani"; font-size: 1.45rem; line-height: 1.08; }
.lesson-card span, .mini-card span { color: #087a59; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.lesson-card p { color: var(--dark-muted); margin-bottom: 0; }
.category-section { margin-top: 52px; }
.category-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.category-title span { color: #087a59; font-family: "Rajdhani"; font-size: 2rem; font-weight: 800; }
.category-title h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.page-hero {
  padding: clamp(76px, 9vw, 118px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(7,17,15,.99) 0%, rgba(7,17,15,.96) 46%, rgba(7,17,15,.78) 100%),
    url("/assets/academy-visual.svg");
  background-size: cover;
  background-position: center;
}
.page-hero.compact { min-height: 46vh; display: flex; flex-direction: column; justify-content: end; }
.lab-hero { background-image: linear-gradient(90deg, rgba(7,17,15,.99) 0%, rgba(7,17,15,.96) 48%, rgba(7,17,15,.78) 100%), url("/assets/indicator-visual.svg"); }
.content-band {
  padding: clamp(48px, 6vw, 88px) clamp(20px, 5vw, 72px);
  background: var(--paper);
  color: var(--dark-text);
}
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 850px);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.lesson-aside {
  position: sticky;
  top: 92px;
  border-left: 4px solid var(--green);
  padding-left: 18px;
  color: var(--dark-muted);
}
.metric-block { margin-bottom: 18px; }
.metric-block span { display: block; color: var(--dark-muted); font-size: .84rem; text-transform: uppercase; font-weight: 800; }
.metric-block strong { color: var(--dark-text); font-family: "Rajdhani"; font-size: 1.4rem; line-height: 1.05; }
.lesson-content { max-width: 850px; }
.lesson-content h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-top: 34px; }
.lesson-content p { color: #3f4d47; font-size: 1.08rem; }
.notice {
  margin-top: 34px;
  padding: 18px;
  border-left: 4px solid var(--amber);
  background: #fff8e9;
  border-radius: 8px;
  color: #5b4a20;
  font-weight: 700;
}
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.markets-band {
  padding: clamp(58px, 7vw, 96px) clamp(20px, 5vw, 72px);
  background: #101811;
  border-top: 1px solid var(--line);
}
.markets-band p { max-width: 920px; color: var(--muted); }
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 42px clamp(20px, 5vw, 72px);
  background: #060d0b;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer h2 { color: var(--text); font-size: 1.7rem; }
@media (max-width: 860px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .nav-toggle { display: inline-flex; justify-self: end; align-items: center; justify-content: center; width: 44px; height: 38px; }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    background: #091310;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .site-nav.open { display: flex; }
  .lang-switch { grid-column: 1 / -1; overflow-x: auto; width: max-content; max-width: 100%; }
  .home-hero { min-height: 68vh; }
  .home-hero h1, .page-hero h1 { font-size: clamp(2.35rem, 13vw, 3.85rem); line-height: 1; }
  .home-hero p, .page-hero p { font-size: 1.02rem; line-height: 1.55; }
  .hero-actions .button { width: 100%; }
  .page-hero, .content-band, .section-wrap, .markets-band { width: 100%; max-width: 100vw; overflow: hidden; }
  .page-hero h1, .home-hero h1, .page-hero p, .home-hero p, .lesson-aside p, .lesson-content p { max-width: calc(100vw - 40px); }
  .lesson-content, .lesson-aside, .category-section { min-width: 0; }
  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip div { border-right: 0; border-bottom: 1px solid #dce4dd; }
  .split-band, .split-band.reverse, .lesson-layout, .site-footer { grid-template-columns: 1fr; }
  .lesson-aside { position: static; }
}
