:root {
  --color-bg: #0c0c0c;
  --color-bg-light: #111111;
  --color-bg-mid: #2f2f2f;
  --color-bg-lighter: #484848;
  --color-bg-light-mid: #1d1d1d;
  --color-primary: #00e396;
  --color-primary-dark: #00b377;
  --color-text-primary: #ffffff;
  --color-text-secondary: #787878;
  --color-text-muted: #a1a1aa;
  --color-text-hover: #c1c1c1;
  --color-border: #2f2f2f;
  --color-border-light: rgba(255,255,255,0.08);
  --font-main: Inter, system-ui, sans-serif;
  --nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scrollbar-color: #484848 transparent;
  scrollbar-width: thin;
}

body.page-help,
body.page-about {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────────── */

.sub-nav {
  background-color: var(--color-bg-light);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 101;
  width: 100%;
}

.sub-nav__inner {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.sub-nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.2s;
}

.sub-nav__logo:hover {
  opacity: 0.8;
}

.sub-nav__logo img {
  height: 24px;
  width: auto;
  display: block;
}

.sub-nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.sub-nav__links a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 300;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: background-color 0.15s;
  display: inline-block;
}

.sub-nav__links a:hover {
  background-color: var(--color-bg-lighter);
}

.sub-nav__links a.is-active {
  background-color: var(--color-bg-mid);
}

/* ─── PAGE WRAPPER ────────────────────────────────────── */

.sub-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.sub-page--wide {
  max-width: 960px;
}

/* ─── TYPOGRAPHY ──────────────────────────────────────── */

.sub-page h1 {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.sub-page h2 {
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.sub-page h3 {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.375;
  color: var(--color-text-primary);
}

.sub-page p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.sub-page p:last-child {
  margin-bottom: 0;
}

.sub-page a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s;
}

.sub-page a:hover {
  color: var(--color-primary-dark);
}

.sub-page ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.sub-page ul li {
  margin-bottom: 0.4rem;
}

/* ─── PAGE HEADER BLOCK ───────────────────────────────── */

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-light);
}

.page-header__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}

.page-header__subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ─── CARD ────────────────────────────────────────────── */

.sub-card {
  background-color: var(--color-bg-light);
  border-radius: 0.375rem;
  padding: 2rem;
  margin-bottom: 1rem;
}

.sub-card--bordered {
  border: 1px solid var(--color-border-light);
}

/* ─── FAQ / ACCORDION ─────────────────────────────────── */

.faq-list {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  color: var(--color-text-primary);
}

.faq-item__trigger:hover .faq-item__question {
  color: rgba(255, 255, 255, 0.75);
}

.faq-item__question {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.375;
  color: var(--color-text-primary);
  transition: color 0.15s;
}

.faq-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.3s;
}

.faq-item__trigger:hover .faq-item__icon {
  border-color: rgba(255, 255, 255, 0.22);
}

.faq-item__icon svg {
  display: block;
}

.faq-item__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.faq-item.is-open .faq-item__body {
  max-height: 600px;
  opacity: 1;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  padding-bottom: 1.5rem;
  padding-right: 2.5rem;
}

/* ─── ABOUT SECTIONS ──────────────────────────────────── */

.about-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.about-section:last-of-type {
  border-bottom: none;
}

.about-section__lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-top: 0.75rem;
}

/* ─── STAT GRID ───────────────────────────────────────── */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--color-border-light);
  border: 1px solid var(--color-border-light);
  border-radius: 0.375rem;
  overflow: hidden;
  margin-top: 1.5rem;
}

.stat-grid__item {
  background-color: var(--color-bg-light);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-grid__value {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1.1;
}

.stat-grid__label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* ─── FEATURE LIST ────────────────────────────────────── */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-item__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.feature-item__text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
}

.feature-item__text strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* ─── BUTTONS ─────────────────────────────────────────── */

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.25rem;
  background-color: var(--color-bg-mid);
  color: var(--color-text-primary);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.15s;
  border: none;
  cursor: pointer;
}

.btn-home:hover {
  background-color: var(--color-bg-lighter);
  color: var(--color-text-primary);
}

.btn-primary-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 0.25rem;
  background-color: rgba(0, 227, 150, 0.8);
  color: #000;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary-sub:hover {
  background-color: rgba(0, 227, 150, 0.6);
  color: #000;
}

/* ─── DIVIDER ─────────────────────────────────────────── */

.sub-divider {
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: 2.5rem 0;
}

/* ─── BREADCRUMB ──────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--color-text-primary);
}

.breadcrumb__sep {
  color: var(--color-bg-lighter);
  font-size: 0.75rem;
}

.breadcrumb__current {
  color: var(--color-text-primary);
}

/* ─── INLINE HIGHLIGHT ────────────────────────────────── */

.highlight-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background-color: rgba(0, 224, 164, 1);
  color: #0b0b0b;
  vertical-align: middle;
  margin-left: 0.4rem;
}

/* ─── FOOTER ──────────────────────────────────────────── */

.sub-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 3rem 2rem;
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sub-footer__copy {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.sub-footer__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sub-footer__links a {
  display: inline-flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.sub-footer__links a:hover {
  opacity: 1;
}

.sub-footer__links img {
  width: 16px;
  height: 16px;
  display: block;
}

/* ─── SCROLLBAR ───────────────────────────────────────── */

.sub-page ::-webkit-scrollbar {
  width: 0.375rem;
  height: 0.375rem;
}

.sub-page ::-webkit-scrollbar-track {
  background: transparent;
}

.sub-page ::-webkit-scrollbar-thumb {
  background-color: var(--color-bg-mid);
  border-radius: 9999px;
}

.sub-page ::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-bg-lighter);
}

/* ─── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 640px) {
  .sub-nav__inner {
    padding: 0 1rem;
  }

  .sub-nav__links {
    display: none;
  }

  .sub-page {
    padding: 2.5rem 1.25rem 5rem;
  }

  .sub-page h1 {
    font-size: 1.625rem;
  }

  .sub-page h2 {
    font-size: 1.1875rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .sub-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.25rem;
  }

  .faq-item__answer {
    padding-right: 0;
  }

  .sub-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .sub-nav__inner {
    padding: 0 3rem;
  }

  .sub-page {
    padding: 3rem 3rem 6rem;
  }
}

@media (min-width: 1024px) {
  .sub-nav__inner {
    padding: 0 6rem;
  }
}