:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: #101722;
  --panel-2: #151d2b;
  --text: #f5f1e8;
  --muted: #aeb9ce;
  --line: rgba(255, 255, 255, 0.11);
  --gold: #e3c47c;
  --cyan: #48c7d8;
  --green: #8ccf9f;
  --max: 1180px;
  --font-ui: Bahnschrift, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--font-ui);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.hd-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(227, 196, 124, 0.24));
}

.topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand img {
  height: 42px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  border: 1px solid rgba(227, 196, 124, 0.24);
  border-radius: 8px;
  background: rgba(7, 11, 18, 0.54);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.nav a,
.lang-toggle,
.filter-button,
.primary-action,
.secondary-action,
.pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(16, 23, 34, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav a .hd-icon {
  width: 18px;
  height: 18px;
}

.nav a:hover,
.nav a.is-active,
.lang-toggle:hover,
.filter-button:hover,
.filter-button.active {
  color: var(--gold);
  border-color: rgba(227, 196, 124, 0.5);
}

.lang-toggle,
.filter-button {
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 72px) 58px;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.96) 0%, rgba(7, 11, 18, 0.76) 52%, rgba(7, 11, 18, 0.42) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 11, 18, 0) 34%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 980px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.9;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.95;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-copy > p:not(.kicker),
.section-copy > p:not(.kicker),
.guide-head p,
.international-section p,
.card p,
.footer p {
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy > p:not(.kicker),
.section-copy > p:not(.kicker),
.international-section > div > p {
  max-width: 780px;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 12px;
  margin-top: 32px;
}

.hero-metrics article {
  min-height: 108px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.78);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 42px;
  line-height: 1;
}

.hero-metrics span {
  color: var(--muted);
  font-weight: 900;
  line-height: 1.35;
}

.primary-action {
  color: #071019;
  border-color: transparent;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}

.secondary-action {
  color: var(--text);
}

.start-section,
.guide-section,
.strategy-section,
.international-section,
.glossary-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.start-section,
.strategy-section,
.international-section,
.glossary-section {
  border-top: 1px solid var(--line);
}

.path-grid,
.guide-grid,
.strategy-grid,
.track-grid,
.drill-grid,
.glossary-grid {
  display: grid;
  gap: 14px;
}

.path-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strategy-grid,
.glossary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.track-board,
.drill-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.track-grid,
.drill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 29, 43, 0.92), rgba(16, 23, 34, 0.92));
}

.card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.card-number {
  color: var(--gold);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.card p {
  margin-bottom: 14px;
}

.card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.card .lesson-time {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(72, 199, 216, 0.28);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--cyan);
  background: rgba(72, 199, 216, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-card,
.track-grid .card,
.drill-grid .card {
  position: relative;
}

.guide-card::after,
.track-grid .card::after,
.drill-grid .card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.7;
}

.guide-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.toolbox {
  display: grid;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.8);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-card {
  min-height: 300px;
}

.guide-card .pill {
  min-height: 30px;
  color: var(--cyan);
  padding: 5px 8px;
}

.international-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
}

.international-section > img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.international-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.international-points article {
  min-height: 130px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #05080d;
}

.footer img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.footer p {
  margin: 0;
  max-width: 560px;
  text-align: right;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero {
    min-height: 86vh;
    padding-top: 150px;
  }

  .path-grid,
  .guide-grid,
  .strategy-grid,
  .track-grid,
  .drill-grid,
  .glossary-grid,
  .international-points,
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-head,
  .international-section,
  .track-board,
  .drill-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 12px;
  }

  .brand img {
    height: 34px;
  }

  .brand span,
  .nav a span {
    font-size: 12px;
  }

  .hero {
    min-height: 82vh;
    padding: 150px 16px 44px;
  }

  .hero-copy > p:not(.kicker),
  .section-copy > p:not(.kicker),
  .international-section > div > p {
    font-size: 17px;
  }

  .start-section,
  .guide-section,
  .strategy-section,
  .international-section,
  .glossary-section {
    width: min(100% - 24px, var(--max));
    padding: 48px 0;
  }

  .path-grid,
  .guide-grid,
  .strategy-grid,
  .track-grid,
  .drill-grid,
  .glossary-grid,
  .international-points,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer p {
    text-align: left;
  }
}

/* HD icon color normalization: keep SVG img icons visible on dark premium surfaces. */
img[src*="assets/icons/"],
img[src*="/assets/icons/"] {
  filter: brightness(0) saturate(100%) invert(82%) sepia(29%) saturate(606%) hue-rotate(2deg) brightness(92%) contrast(91%) drop-shadow(0 0 10px rgba(227, 196, 124, 0.28));
}

a:hover img[src*="assets/icons/"],
a:hover img[src*="/assets/icons/"],
button:hover img[src*="assets/icons/"],
button:hover img[src*="/assets/icons/"] {
  filter: brightness(0) saturate(100%) invert(75%) sepia(93%) saturate(473%) hue-rotate(150deg) brightness(91%) contrast(86%) drop-shadow(0 0 10px rgba(72, 199, 216, 0.28));
}
