@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;350;400;450;500;600&display=swap');

:root {
  --bg: #000000;
  --panel: #050605;
  --white: #f2eee5;
  --white-soft: #d8d2c5;
  --muted: rgba(242, 238, 229, 0.66);
  --faint: rgba(242, 238, 229, 0.18);
  --line: rgba(242, 238, 229, 0.22);
  --line-soft: rgba(242, 238, 229, 0.08);
  --gold: #b29a63;
  --gold-bright: #d6a462;
  --gold-deep: #6d4728;
  --shadow: rgba(0, 0, 0, 0.72);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

body { min-height: 100vh; margin: 0; padding: 0; overflow-x: hidden; }

.page-shell { width: 100vw; min-height: 100vh; margin: 0; }

.info-card {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  border: 0;
  background: #000000;
}

/* =================== LANGUAGE SWITCHER (dropdown with flags) =================== */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  user-select: none;
  margin-left: clamp(8px, 1vw, 16px);
}

.lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: transparent;
  border: 1px solid rgba(214, 164, 98, 0.40);
  color: var(--white);
  font-family: inherit;
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 240ms ease, background 240ms ease;
}

.lang-switcher__trigger:hover,
.lang-switcher__trigger:focus-visible {
  border-color: rgba(214, 164, 98, 0.95);
  background: rgba(178, 154, 99, 0.08);
  outline: none;
}

.lang-switcher__flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(242, 238, 229, 0.12);
}

.lang-switcher__label { letter-spacing: 0.06em; }

.lang-switcher__chevron {
  transition: transform 240ms ease;
  color: rgba(242, 238, 229, 0.7);
}

.lang-switcher__trigger[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: rgba(8, 8, 8, 0.96);
  border: 1px solid rgba(242, 238, 229, 0.14);
  min-width: 180px;
  z-index: 50;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
}

.lang-switcher__menu[hidden] { display: none; }
.lang-switcher__menu li { display: block; }

.lang-switcher__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 16px;
  background: transparent;
  border: 0;
  color: var(--white-soft);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: -0.02em;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.lang-switcher__opt:hover,
.lang-switcher__opt:focus-visible {
  background: rgba(178, 154, 99, 0.10);
  color: var(--white);
  outline: none;
}

.lang-switcher__opt[aria-current="true"] {
  color: var(--gold-bright);
  background: rgba(178, 154, 99, 0.08);
}

.lang-switcher__menu .lang-switcher__flag { width: 22px; height: 16px; }

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(28px, 4vw, 64px) 0 clamp(28px, 4vw, 64px);
}

.brand {
  text-decoration: none;
  font-size: clamp(23px, 2.7vw, 31px);
  line-height: 1;
  font-weight: 350;
  letter-spacing: -0.062em;
  color: var(--white);
  white-space: nowrap;
}

.brand strong { color: var(--gold); font-weight: 350; }
.brand span { color: #ffffff; }
.brand-inline span { color: #ffffff; }
.brand-inline strong { color: var(--gold); font-weight: 400; }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.45vw, 24px);
  font-size: clamp(8px, 0.72vw, 10px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  flex-wrap: wrap;
}

.nav a {
  color: var(--white-soft);
  text-decoration: none;
  opacity: 0.86;
  transition: color 240ms ease, opacity 240ms ease;
}

.nav a:hover { color: var(--gold-bright); opacity: 1; }
.nav a[aria-current="page"] { color: var(--gold-bright); opacity: 1; }

.nav .nav-cta {
  padding: 9px 12px;
  border: 1px solid rgba(214, 164, 98, 0.54);
  color: var(--white);
  opacity: 1;
}

a.brand-name { text-transform: none !important; letter-spacing: 0 !important; }

/* =================== HELP LAYOUT =================== */
.help-wrap {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 64px) clamp(20px, 4vw, 48px) clamp(40px, 6vh, 80px);
}

.help-head h1 {
  margin: 0 0 16px 0;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.05em;
  color: var(--white);
}

.help-head .lead {
  max-width: 720px;
  margin: 0 0 8px 0;
  color: var(--white);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  font-weight: 450;
  letter-spacing: -0.03em;
}

.help-note {
  margin: 28px 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(178, 154, 99, 0.05);
}

.help-note h2 {
  margin: 0 0 12px 0;
  font-size: clamp(13px, 1vw, 15px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--gold-bright);
}

.help-note ul { margin: 0; padding-left: 20px; }

.help-note li {
  margin: 0 0 8px 0;
  color: var(--white-soft);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.6;
  font-weight: 350;
  letter-spacing: -0.02em;
}

.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 28px 0 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.help-toc a {
  color: var(--white-soft);
  text-decoration: none;
  opacity: 0.86;
  transition: color 200ms ease;
}

.help-toc a:hover { color: var(--gold-bright); opacity: 1; }

.help-block { margin: 40px 0 0; scroll-margin-top: 24px; }

.help-block > h2 {
  margin: 0 0 20px 0;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--white);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.help-card {
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  background: rgba(242, 238, 229, 0.02);
  transition: border-color 200ms ease, background 200ms ease;
}

.help-card:hover {
  border-color: var(--line);
  background: rgba(178, 154, 99, 0.04);
}

.help-card h3 {
  margin: 0 0 8px 0;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--white);
}

.help-card p {
  margin: 0;
  color: var(--white-soft);
  font-size: clamp(13px, 1.02vw, 14.5px);
  line-height: 1.6;
  font-weight: 350;
  letter-spacing: -0.02em;
}

.help-faq { margin: 0; }

.help-faq dt {
  margin: 0 0 6px 0;
  color: var(--white);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.help-faq dd {
  margin: 0 0 22px 0;
  color: var(--white-soft);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.62;
  font-weight: 350;
  letter-spacing: -0.02em;
}

.help-glossary-intro {
  max-width: 720px;
  margin: 0 0 20px 0;
  color: var(--muted);
  font-size: clamp(13px, 1.02vw, 14.5px);
  line-height: 1.6;
  font-weight: 350;
}

.help-glossary {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 10px 28px;
  margin: 0;
}

.help-glossary dt {
  margin: 0;
  color: var(--gold-bright);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.help-glossary dt.mono {
  font-family: "Inter", system-ui, sans-serif;
}

.help-glossary dd {
  margin: 0;
  color: var(--white-soft);
  font-size: clamp(13px, 1.02vw, 14.5px);
  line-height: 1.58;
  font-weight: 350;
  letter-spacing: -0.02em;
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

@media (max-width: 860px) {
  .lang-switcher { margin-left: 0; }
  .lang-switcher__trigger { padding: 7px 10px; font-size: 10px; }
  .topbar { padding-top: 64px; flex-wrap: wrap; }
  .nav { gap: 11px; flex-wrap: wrap; justify-content: flex-start; }
  .help-glossary { grid-template-columns: 1fr; gap: 4px; }
  .help-glossary dd { margin-bottom: 16px; }
}

@media (max-width: 560px) {
  .lang-switcher__trigger { padding: 6px 9px; font-size: 9.5px; }
  .lang-switcher__menu { right: auto; left: 0; min-width: 160px; }
  .topbar { padding: 56px 16px 0; }
  .brand { font-size: 25px; }
  .nav a:not(.nav-cta):not([aria-current="page"]) { display: none; }
}
