:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --text: #101114;
  --muted: #5f6470;
  --line: #d9d5cc;
  --cyan: #0aa8c6;
  --purple: #7434d0;
  --accent: #0aa8c6;
  --accent-2: #7434d0;
  --shadow: 0 22px 70px rgba(15, 17, 20, 0.11);
  --radius: 28px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-theme="dark"] {
  --bg: #0b1113;
  --surface: #11191d;
  --surface-2: #151f24;
  --text: #f3f1ea;
  --muted: #aeb6bd;
  --line: #29343a;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  transition: background-color 240ms ease, color 240ms ease;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
::selection { background: var(--cyan); color: #fff; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--text);
  color: var(--bg);
  padding: .6rem .9rem;
  border-radius: 999px;
  transform: translateY(-130%);
  z-index: 9999;
}
.skip-link:focus { transform: translateY(0); }

.site-nav {
  position: fixed;
  inset: 14px 0 auto 0;
  z-index: 1000;
  padding: 0;
  pointer-events: none;
}
.nav-shell {
  pointer-events: auto;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(18px);
  padding-inline: 22px;
}
.navbar-brand { font-weight: 900; letter-spacing: .08em; color: var(--text); }
.nav-mark { width: 38px; height: 38px; object-fit: contain; display: block; }
.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  box-shadow: none !important;
}
.nav-link {
  font-size: .91rem;
  font-weight: 750;
  color: var(--muted);
  border-radius: 999px;
  padding: .55rem .85rem !important;
}
.nav-link:hover,
.nav-link:focus { color: var(--text); background: var(--surface-2); }
.steam-nav-cta {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  color: var(--text) !important;
  border: 1px solid var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 12%, transparent);
}
.steam-nav-cta:hover,
.steam-nav-cta:focus {
  color: #fff !important;
  background: var(--cyan);
  border-color: var(--cyan);
}
.steam-nav-cta i { font-size: .9rem; }


.language-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  display: inline-flex;
  background: var(--surface);
}
.lang-btn,
.theme-toggle {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  min-width: 38px;
  height: 38px;
  font-weight: 850;
}
.lang-btn.active {
  color: #fff;
  background: var(--purple);
}
.theme-toggle {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 132px 0 76px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }
.notice-pill {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  padding: .8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow);
  font-weight: 750;
  margin-bottom: 30px;
}
.notice-pill i { color: var(--purple); }
.hero-logo {
  width: min(430px, 76vw);
  display: block;
  margin: 0 auto 38px;
  object-fit: contain;
}
.hero-title {
  font-size: clamp(3.3rem, 9vw, 8.2rem);
  max-width: 1160px;
  margin: 0 auto;
  line-height: .91;
  letter-spacing: -.075em;
  font-weight: 950;
  text-wrap: balance;
}
.hero-title .char { will-change: transform; }
.hero-copy {
  max-width: 820px;
  margin: 28px auto 0;
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  color: var(--muted);
  line-height: 1.8;
  text-wrap: balance;
}
.hero-actions { margin-top: 34px; }
.btn {
  border-radius: 999px;
  font-weight: 850;
  padding: .85rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .62rem;
}
.btn-primary {
  --bs-btn-bg: var(--purple);
  --bs-btn-border-color: var(--purple);
  --bs-btn-hover-bg: #5f28b4;
  --bs-btn-hover-border-color: #5f28b4;
  --bs-btn-active-bg: #502096;
  --bs-btn-active-border-color: #502096;
}
.btn-outline-dark {
  --bs-btn-color: var(--text);
  --bs-btn-border-color: var(--text);
  --bs-btn-hover-bg: var(--text);
  --bs-btn-hover-border-color: var(--text);
  --bs-btn-hover-color: var(--bg);
}
.route-box {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin: 54px auto 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .08);
}
.route-label {
  color: var(--muted);
  font-weight: 850;
  padding-inline: .8rem;
}
.route-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.route-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: .7rem .95rem;
  color: var(--text);
  background: var(--bg);
  font-weight: 820;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.route-link:hover { transform: translateY(-2px); border-color: var(--cyan); background: var(--surface-2); }

.shape {
  position: absolute;
  display: block;
  pointer-events: none;
  opacity: .82;
}
.shape-circle { width: 84px; height: 84px; border: 2px solid var(--cyan); border-radius: 50%; }
.shape-square { width: 74px; height: 74px; border: 2px solid var(--purple); transform: rotate(16deg); }
.shape-ring { width: 138px; height: 138px; border: 2px solid var(--line); border-radius: 50%; }
.shape-plus { width: 70px; height: 70px; }
.shape-plus::before,
.shape-plus::after { content: ""; position: absolute; background: var(--cyan); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.shape-plus::before { width: 54px; height: 2px; }
.shape-plus::after { width: 2px; height: 54px; }
.shape-line { width: 120px; height: 2px; background: var(--purple); transform: rotate(-15deg); }
.shape-one { left: 11vw; top: 29vh; }
.shape-two { right: 15vw; top: 22vh; }
.shape-three { right: 8vw; bottom: 18vh; }
.shape-four { left: 16vw; bottom: 22vh; }
.shape-five { right: 30vw; bottom: 11vh; }

.section { padding: 105px 0; position: relative; }
.section-paper { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { max-width: 800px; margin: 0 auto 50px; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  color: var(--purple);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  margin-bottom: 16px;
}
.section h2,
.section-head h2,
.contact-card h2 {
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 950;
  margin-bottom: 18px;
}
.section-head p,
.lead-soft,
.contact-card p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.85;
}

.fact-card,
.course-card,
.lab-card,
.resource-card,
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.fact-card {
  height: 100%;
  padding: 34px 28px;
}
.fact-card i,
.course-card i,
.lab-card i,
.resource-card i,
.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--cyan);
  font-size: 1.28rem;
  margin-bottom: 20px;
}
.fact-card:nth-child(2n) i,
.course-card:nth-child(2n) i,
.lab-card:nth-child(2n) i { color: var(--purple); }
.fact-card h2,
.course-card h3,
.lab-card h3,
.resource-card h3,
.step-card h3 {
  font-size: 1.35rem;
  font-weight: 920;
  letter-spacing: -.025em;
  margin-bottom: 10px;
}
.fact-card p,
.course-card p,
.lab-card p,
.resource-card p,
.step-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.course-card { padding: 30px; min-height: 275px; display: flex; flex-direction: column; }
.card-tag {
  margin-top: auto;
  padding-top: 26px;
  color: var(--accent-2);
  font-weight: 900;
  font-size: .86rem;
}

.timeline-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step-card { padding: 28px; position: relative; overflow: hidden; }
.step-card::after {
  content: attr(data-number);
  position: absolute;
  right: 22px;
  top: 18px;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--surface-2);
  font-weight: 950;
  z-index: 0;
}
.step-card > * { position: relative; z-index: 1; }
.step-icon { color: #fff; background: var(--purple); }

.lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lab-card { padding: 28px; min-height: 220px; }

.resource-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.search-box {
  min-width: min(100%, 360px);
  display: flex;
  align-items: center;
  gap: .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: .75rem 1rem;
}
.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}
.search-box i { color: var(--muted); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: .72rem .95rem;
  font-weight: 850;
}
.filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.resource-grid { min-height: 170px; }
.resource-card {
  width: calc(33.333% - 16px);
  margin: 8px;
  padding: 26px;
}
.resource-card a {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  color: var(--purple);
  font-weight: 900;
  margin-top: 18px;
}
.empty-resources {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
}

.contact-section { padding-bottom: 125px; }
.contact-card {
  max-width: 990px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 42px;
  box-shadow: var(--shadow);
  padding: clamp(34px, 7vw, 74px);
}
.contact-mark {
  object-fit: contain; width: 94px; margin-bottom: 26px; }
.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1rem 1.15rem;
  background: var(--surface-2);
  font-weight: 850;
}
.contact-link i { color: var(--cyan); font-size: 1.22rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--surface);
  color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: .65rem; color: var(--text); font-weight: 950; letter-spacing: .08em; }
.footer-brand img { width: 36px; }
.to-top { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--text); }

[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
[dir="rtl"] .navbar-nav { margin-right: auto !important; margin-left: 0 !important; }
[dir="rtl"] .nav-tools { margin-right: 1rem !important; margin-left: 0 !important; }
[dir="rtl"] .step-card::after { right: auto; left: 22px; }
[dir="rtl"] .hero-title { letter-spacing: -.035em; }
[dir="rtl"] .shape-line { transform: rotate(15deg); }

@media (max-width: 991.98px) {
  .site-nav { inset: 10px 10px auto 10px; }
  .nav-shell { border-radius: 30px; }
  .navbar-collapse { padding: 18px 0; }
  .nav-tools { margin-top: 12px; }
  .course-grid,
  .timeline-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-card { width: calc(50% - 16px); }
}

@media (max-width: 767.98px) {
  .hero { padding-top: 124px; }
  .hero-title { font-size: clamp(3.1rem, 17vw, 5.5rem); }
  .hero-logo { width: min(330px, 82vw); }
  .route-box { border-radius: 28px; display: flex; flex-direction: column; }
  .course-grid,
  .timeline-wrap,
  .lab-grid,
  .contact-links { grid-template-columns: 1fr; }
  .resource-card { width: calc(100% - 16px); }
  .shape { opacity: .32; }
  .section { padding: 76px 0; }
}


/* SEO-friendly visible index, still human-friendly because miracles occasionally occur. */
.seo-index { padding-top: 80px; }
.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.seo-link-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(0,0,0,.055);
  font-weight: 900;
  line-height: 1.25;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.seo-link-card i { color: var(--cyan); font-size: 1.5rem; }
.seo-link-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 20px 52px rgba(0,0,0,.085); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.faq-grid article {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 12px 36px rgba(0,0,0,.05);
}
.faq-grid h3 { font-size: 1.14rem; font-weight: 950; margin-bottom: 12px; }
.faq-grid p { color: var(--muted); line-height: 1.75; margin: 0; }
@media (max-width: 991.98px) {
  .seo-link-grid, .faq-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .shape { display: none; }
}
