/* additional_styles.css — for /knowledge/ and /team/ pages only */

/* ===== BASE RESET & INHERITED THEME ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: rgb(5, 26, 43);
  color: rgb(255, 255, 255);
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: rgb(164, 171, 241);
  text-decoration: none;
}

a:hover {
  color: rgb(47, 67, 236);
}

/* ===== BACKGROUND EFFECTS ===== */
.page-bg {
  position: fixed;
  inset: 0;
  background-color: rgb(5, 26, 43);
  z-index: 0;
  overflow: hidden;
}

.page-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateX(-340px) translateY(280px) rotate(12.535deg);
  width: 1034px;
  height: 643px;
  border-radius: 1034px;
  background: radial-gradient(50% 50%, rgba(47, 67, 236, 0.45) 0%, rgba(89, 78, 200, 0) 64%);
  filter: blur(100px);
  pointer-events: none;
}

.page-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateX(380px) translateY(-90px) rotate(-17.91deg);
  width: 900px;
  height: 623px;
  border-radius: 900px;
  background: radial-gradient(50% 50%, rgba(47, 67, 236, 0.45) 0%, rgba(89, 78, 200, 0) 64%);
  filter: blur(100px);
  pointer-events: none;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== TOP NAV ===== */
.site-nav {
  width: 100%;
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(5, 26, 43, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(66, 69, 87, 0.4);
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgb(255, 255, 255);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav__logo:hover {
  color: rgb(255, 255, 255);
  opacity: 0.85;
}

.site-nav__logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-nav__links a {
  color: rgb(176, 176, 176);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav__links a:hover,
.site-nav__links a.active {
  color: rgb(255, 255, 255);
}

@media (max-width: 599px) {
  .site-nav {
    padding: 0 16px;
    height: 64px;
  }
  .site-nav__links {
    gap: 16px;
  }
  .site-nav__links a {
    font-size: 13px;
  }
}

/* ===== MAIN CONTENT AREA ===== */
.page-main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 36px 80px;
}

@media (max-width: 899px) {
  .page-main {
    padding: 48px 20px 64px;
  }
}

@media (max-width: 599px) {
  .page-main {
    padding: 32px 16px 48px;
  }
}

/* ===== PAGE HEADING ===== */
.page-h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: rgb(255, 255, 255);
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 17px;
  color: rgb(176, 176, 176);
  font-weight: 400;
  margin-bottom: 48px;
  max-width: 620px;
}

/* ===== DIVIDER ===== */
.section-divider {
  width: 100%;
  height: 1px;
  background: rgba(66, 69, 87, 0.6);
  margin: 48px 0;
}

/* ===== KNOWLEDGE PAGE — Q&A ===== */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.qa-item {
  border-bottom: 1px solid rgba(66, 69, 87, 0.5);
  padding: 32px 0;
}

.qa-item:first-child {
  border-top: 1px solid rgba(66, 69, 87, 0.5);
}

.qa-question {
  font-size: 18px;
  font-weight: 600;
  color: rgb(255, 255, 255);
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.qa-answer {
  font-size: 15px;
  color: rgb(176, 176, 176);
  line-height: 1.7;
}

.qa-answer a {
  color: rgb(164, 171, 241);
  border-bottom: 1px solid rgba(164, 171, 241, 0.3);
  transition: border-color 0.2s, color 0.2s;
}

.qa-answer a:hover {
  color: rgb(47, 67, 236);
  border-bottom-color: rgb(47, 67, 236);
}

@media (max-width: 599px) {
  .qa-question {
    font-size: 16px;
  }
  .qa-item {
    padding: 24px 0;
  }
}

/* ===== TEAM PAGE — SECTIONS ===== */
.team-section {
  margin-bottom: 56px;
}

.team-section:last-of-type {
  margin-bottom: 0;
}

.team-section-h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: rgb(255, 255, 255);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(47, 67, 236, 0.5);
}

.team-section p {
  font-size: 15px;
  color: rgb(176, 176, 176);
  line-height: 1.75;
  margin-bottom: 14px;
}

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

.team-section a {
  color: rgb(164, 171, 241);
  border-bottom: 1px solid rgba(164, 171, 241, 0.3);
  transition: border-color 0.2s, color 0.2s;
}

.team-section a:hover {
  color: rgb(47, 67, 236);
  border-bottom-color: rgb(47, 67, 236);
}

/* ===== STAT CARDS (team page numbers) ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stat-card {
  background-color: rgb(11, 20, 27);
  border: 1px solid rgba(66, 69, 87, 0.7);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.25s;
}

.stat-card:hover {
  border-color: rgba(47, 67, 236, 0.6);
}

.stat-card__value {
  font-size: 30px;
  font-weight: 700;
  color: rgb(255, 215, 0);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 13px;
  color: rgb(176, 176, 176);
  font-weight: 500;
}

/* ===== FEATURE LIST (team page) ===== */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgb(176, 176, 176);
  line-height: 1.65;
}

.feature-list__item::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgb(47, 67, 236);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ===== INLINE LINK PILL ===== */
.link-pill {
  display: inline-block;
  color: rgb(164, 171, 241);
  background: rgba(164, 171, 241, 0.08);
  border: 1px solid rgba(164, 171, 241, 0.2);
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.link-pill:hover {
  background: rgba(47, 67, 236, 0.15);
  border-color: rgba(47, 67, 236, 0.5);
  color: rgb(255, 255, 255);
}

/* ===== BACK / HOME BUTTON ===== */
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  padding: 13px 28px;
  background-color: rgb(255, 215, 0);
  color: rgb(0, 0, 0);
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-home:hover {
  opacity: 0.78;
  color: rgb(0, 0, 0);
}

.btn-home::before {
  content: "←";
  font-size: 16px;
}

/* ===== FOOTER ===== */
.page-footer {
  width: 100%;
  padding: 24px 36px;
  border-top: 1px solid rgba(66, 69, 87, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(176, 176, 176, 0.6);
  position: relative;
  z-index: 1;
}

.page-footer a {
  color: rgba(164, 171, 241, 0.7);
  transition: color 0.2s;
}

.page-footer a:hover {
  color: rgb(164, 171, 241);
}

.page-footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 599px) {
  .page-footer {
    padding: 20px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}