:root {
  --dark-bg: #161620;
  --dark-bg2: #1f1f2b;
  --panel-bg: #29293850;
  --panel-border: #2f2f40;
  --card-bg: #2f2f40;
  --card-bg2: #252535;
  --text-primary: #f9f9f9;
  --text-secondary: #d5d6e1;
  --text-muted: #606375;
  --accent-green: #8fc942;
  --accent-blue: #3a86f3;
  --accent-blue2: #2172e5;
  --border-radius: 8px;
  --border-radius-sm: 5px;
  --font-main: "Open Sans", sans-serif;
}

.sub-page-body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--text-primary);
  background: linear-gradient(160deg, #161620 0%, #1f1f2b 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.sub-page-body *,
.sub-page-body *::before,
.sub-page-body *::after {
  box-sizing: border-box;
}

.sub-page-body a {
  color: var(--accent-blue);
  text-decoration: none;
}

.sub-page-body a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ============================
   TOP NAV BAR
   ============================ */

.sub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: rgba(22, 22, 32, 0.95);
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: 100%;
  overflow-x: hidden;
}

.sub-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
}

.sub-nav__logo img {
  width: 32px;
  height: 32px;
}

.sub-nav__logo:hover {
  text-decoration: none;
  color: var(--accent-green);
}

.sub-nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub-nav__links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.sub-nav__links a:hover,
.sub-nav__links a.active {
  color: var(--text-primary);
  text-decoration: none;
}

/* ============================
   PAGE WRAPPER
   ============================ */

.sub-page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  width: 100%;
  overflow-x: hidden;
}

/* ============================
   PAGE HEADER / HERO
   ============================ */

.sub-page-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--panel-border);
}

.sub-page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  line-height: 1.25;
}

.sub-page-header p {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
  margin: 0;
  line-height: 1.7;
  max-width: 680px;
}

.sub-page-header__badge {
  display: inline-block;
  background: rgba(143, 201, 66, 0.15);
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================
   SECTION HEADINGS
   ============================ */

.sub-section {
  margin-bottom: 48px;
}

.sub-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--panel-border);
  line-height: 1.3;
}

.sub-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.sub-section p {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  margin: 0 0 16px 0;
}

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

.sub-section ul,
.sub-section ol {
  margin: 0 0 16px 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
}

.sub-section li {
  margin-bottom: 8px;
}

.sub-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================
   Q&A / FAQ BLOCKS
   ============================ */

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qa-item {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--panel-border);
  overflow: hidden;
  transition: border-color 0.2s;
}

.qa-item:hover {
  border-color: rgba(58, 134, 243, 0.35);
}

.qa-question {
  display: block;
  width: 100%;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: default;
  text-align: left;
  line-height: 1.5;
  font-family: var(--font-main);
}

.qa-question h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.qa-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  border-top: 1px solid var(--panel-border);
  margin-top: 0;
}

.qa-answer p {
  margin: 12px 0 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
}

.qa-answer p:first-child {
  margin-top: 12px;
}

.qa-answer a {
  color: var(--accent-blue);
  text-decoration: none;
}

.qa-answer a:hover {
  text-decoration: underline;
}

/* ============================
   FEATURE CARDS GRID
   ============================ */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: rgba(58, 134, 243, 0.4);
  background: rgba(58, 58, 79, 0.6);
}

.feature-card__icon {
  width: 36px;
  height: 36px;
  background: rgba(33, 114, 229, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 18px;
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  margin: 0;
}

/* ============================
   STATS / NUMBERS ROW
   ============================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 4px;
}

.stat-box {
  background: var(--card-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 24px 20px;
  text-align: center;
}

.stat-box__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-box__label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================
   TEAM / PEOPLE CARDS
   ============================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 4px;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 20px;
}

.team-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.team-card__role {
  font-size: 12px;
  color: var(--accent-blue);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px 0;
}

.team-card__bio {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  margin: 0;
}

/* ============================
   INLINE HIGHLIGHT BOX
   ============================ */

.info-box {
  background: rgba(33, 114, 229, 0.08);
  border: 1px solid rgba(33, 114, 229, 0.25);
  border-radius: var(--border-radius-sm);
  padding: 16px 20px;
  margin: 0 0 20px 0;
}

.info-box p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
}

.info-box--green {
  background: rgba(143, 201, 66, 0.08);
  border-color: rgba(143, 201, 66, 0.25);
}

.info-box--green p {
  color: var(--text-secondary);
}

/* ============================
   INLINE LINKS (body text style)
   ============================ */

.sub-page-wrapper .text-link {
  color: var(--accent-blue);
  font-weight: 500;
  text-decoration: none;
}

.sub-page-wrapper .text-link:hover {
  text-decoration: underline;
  color: var(--text-primary);
}

/* ============================
   CTA / HOME BUTTON
   ============================ */

.sub-page-cta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(47, 47, 64, 1);
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--panel-border);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
  font-family: var(--font-main);
}

.btn-home:hover {
  background: rgba(58, 58, 79, 1);
  border-color: rgba(86, 90, 105, 1);
  text-decoration: none;
  color: var(--text-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent-blue2);
  color: #fff;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s;
  cursor: pointer;
  font-family: var(--font-main);
}

.btn-primary:hover {
  background: var(--accent-blue);
  text-decoration: none;
  color: #fff;
}

.btn-home svg,
.btn-primary svg {
  width: 16px;
  height: 16px;
}

/* ============================
   BREADCRUMB
   ============================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

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

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

.breadcrumb__sep {
  color: var(--panel-border);
  font-size: 14px;
}

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

/* ============================
   FOOTER
   ============================ */

.sub-footer {
  border-top: 1px solid var(--panel-border);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 300;
  max-width: 100%;
  overflow-x: hidden;
}

.sub-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s;
}

.sub-footer a:hover {
  color: var(--text-secondary);
}

.sub-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* ============================
   DIVIDER
   ============================ */

.sub-divider {
  border: none;
  border-top: 1px solid var(--panel-border);
  margin: 40px 0;
}

/* ============================
   STEP LIST (how it works)
   ============================ */

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-item__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(33, 114, 229, 0.15);
  border: 1px solid rgba(33, 114, 229, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-top: 1px;
}

.step-item__content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.step-item__content p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
}

/* ============================
   TAG CHIPS
   ============================ */

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(58, 58, 79, 1);
  color: var(--text-secondary);
  border: 1px solid var(--panel-border);
}

.tag--blue {
  background: rgba(33, 114, 229, 0.12);
  color: var(--accent-blue);
  border-color: rgba(33, 114, 229, 0.25);
}

.tag--green {
  background: rgba(143, 201, 66, 0.12);
  color: var(--accent-green);
  border-color: rgba(143, 201, 66, 0.25);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 768px) {
  .sub-page-wrapper {
    padding: 32px 16px 100px;
  }

  .sub-page-header h1 {
    font-size: 24px;
  }

  .sub-page-header p {
    font-size: 15px;
  }

  .sub-section h2 {
    font-size: 19px;
  }

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

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .sub-nav__links {
    gap: 12px;
  }

  .sub-nav__links a {
    font-size: 13px;
  }

  .qa-question {
    padding: 16px 18px;
  }

  .qa-answer {
    padding: 0 18px 16px;
  }

  .sub-page-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .sub-nav {
    padding: 0 14px;
  }

  .sub-nav__logo {
    font-size: 15px;
  }

  .sub-nav__links {
    gap: 8px;
  }

  .sub-nav__links a {
    font-size: 12px;
  }

  .sub-page-wrapper {
    padding: 24px 12px 100px;
  }

  .sub-page-header h1 {
    font-size: 20px;
  }

  .feature-grid,
  .stats-row,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .stat-box__value {
    font-size: 22px;
  }

  .step-item {
    gap: 12px;
  }

  .step-item__num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .btn-home,
  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .sub-footer {
    font-size: 12px;
    padding: 20px 14px;
  }
}