:root {
  --faq-bg: #0a0f1e;
  --faq-item-bg: #0d1526;
  --faq-item-border: rgba(255, 255, 255, 0.08);
  --faq-item-hover: rgba(255, 255, 255, 0.04);
  --faq-accent: #4473f0;
  --faq-accent-light: #67b4f3;
  --faq-text: #eff1fc;
  --faq-text-muted: rgba(239, 241, 252, 0.65);
  --faq-gradient-from: #d762b8;
  --faq-gradient-via: #806dea;
  --faq-gradient-to: #67b4f3;
}

/* ========== FAQ SECTION ========== */

.faq-section {
  margin-top: 4rem;
  padding: 3rem 0 4rem;
  background: linear-gradient(to bottom, #080f22, #0a0f1e);
  overflow-x: hidden;
  max-width: 100%;
}

.faq-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== H1 HERO ========== */

.faq-hero-h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(
    to right,
    var(--faq-gradient-from),
    var(--faq-gradient-via),
    var(--faq-gradient-to)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.02em;
}

.faq-hero-subtitle {
  text-align: center;
  color: var(--faq-text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ========== FAQ ITEMS / ACCORDION ========== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-item {
  background: var(--faq-item-bg);
  border: 1px solid var(--faq-item-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-item.open {
  border-color: rgba(100, 116, 240, 0.35);
  background: #0f1a35;
}

.faq-item:hover {
  background: #0e1630;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.35rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--faq-text);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #ffffff;
}

.faq-item.open .faq-question {
  color: #ffffff;
}

.faq-question-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(68, 115, 240, 0.15);
  color: var(--faq-accent-light);
  transition: transform 0.3s ease, background 0.25s ease;
}

.faq-item.open .faq-question-icon {
  transform: rotate(45deg);
  background: rgba(68, 115, 240, 0.3);
}

.faq-question-icon svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  display: block;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
  padding: 0 1.35rem;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  opacity: 1;
  padding: 0 1.35rem 1.25rem;
}

.faq-answer-inner {
  color: var(--faq-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  border-top: 1px solid var(--faq-item-border);
  padding-top: 1rem;
}

.faq-answer-inner p {
  margin: 0 0 0.65rem;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-answer-inner a {
  color: var(--faq-accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer-inner a:hover {
  color: #ffffff;
}

/* ========== FAQ FOOTER LINKS ========== */

.faq-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.faq-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.4rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.faq-link-btn-primary {
  background: var(--faq-accent);
  color: #ffffff;
  border: 1px solid transparent;
}

.faq-link-btn-primary:hover {
  background: #375dc2;
  color: #ffffff;
}

.faq-link-btn-secondary {
  background: transparent;
  color: var(--faq-text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.faq-link-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

/* ========== SUBPAGE SHARED LAYOUT ========== */

.subpage-root {
  min-height: 100vh;
  background: #080f22;
  color: #eff1fc;
  font-family: inherit;
}

.subpage-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 1.25rem;
}

.subpage-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.subpage-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.subpage-logo img,
.subpage-logo svg {
  height: 2rem;
  width: auto;
}

.subpage-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subpage-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(239, 241, 252, 0.72);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.subpage-nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.subpage-nav-link-active {
  color: #ffffff;
  background: rgba(68, 115, 240, 0.18);
}

/* ========== SUBPAGE HERO ========== */

.subpage-hero {
  padding: 4rem 1.25rem 2.5rem;
  text-align: center;
  background: linear-gradient(
    160deg,
    rgba(68, 115, 240, 0.1) 0%,
    transparent 55%
  );
}

.subpage-hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faq-accent-light);
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(103, 180, 243, 0.28);
  background: rgba(103, 180, 243, 0.08);
}

.subpage-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  background: linear-gradient(
    to right,
    #d762b8,
    #806dea,
    #67b4f3
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.subpage-hero-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(239, 241, 252, 0.68);
}

/* ========== SUBPAGE CONTENT AREA ========== */

.subpage-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.subpage-section {
  margin-bottom: 2.5rem;
}

.subpage-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.subpage-section p {
  font-size: 0.9688rem;
  line-height: 1.75;
  color: rgba(239, 241, 252, 0.72);
  margin: 0 0 0.9rem;
}

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

.subpage-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subpage-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9688rem;
  line-height: 1.65;
  color: rgba(239, 241, 252, 0.72);
}

.subpage-section ul li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faq-accent);
  margin-top: 0.55em;
}

/* ========== INFO CARDS ========== */

.subpage-card {
  background: #0d1526;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.subpage-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.6rem;
}

.subpage-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(239, 241, 252, 0.68);
  margin: 0;
}

.subpage-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ========== STAT BADGES ========== */

.subpage-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.subpage-stat {
  flex: 1 1 140px;
  background: linear-gradient(
    135deg,
    rgba(68, 115, 240, 0.12),
    rgba(128, 109, 234, 0.07)
  );
  border: 1px solid rgba(100, 116, 240, 0.22);
  border-radius: 0.85rem;
  padding: 1.1rem 1.25rem;
  text-align: center;
}

.subpage-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  margin-bottom: 0.2rem;
  background: linear-gradient(to right, #67b4f3, #806dea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.subpage-stat-label {
  font-size: 0.8125rem;
  color: rgba(239, 241, 252, 0.55);
  font-weight: 500;
}

/* ========== SUBPAGE FOOTER LINKS ========== */

.subpage-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.subpage-footer-links .faq-link-btn {
  font-size: 0.9375rem;
  padding: 0.65rem 1.6rem;
}

/* ========== SUBPAGE FOOTER BAR ========== */

.subpage-footer-bar {
  background: #040a18;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: rgba(239, 241, 252, 0.4);
  font-size: 0.8125rem;
}

.subpage-footer-bar a {
  color: rgba(239, 241, 252, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.subpage-footer-bar a:hover {
  color: #ffffff;
}

/* ========== FAQ PAGE SPECIFIC ========== */

.faqpage-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faqpage-item {
  background: #0d1526;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faqpage-item.open {
  border-color: rgba(100, 116, 240, 0.32);
}

.faqpage-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #eff1fc;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.45;
  transition: color 0.2s;
}

.faqpage-question:hover {
  color: #ffffff;
}

.faqpage-item.open .faqpage-question {
  color: #ffffff;
}

.faqpage-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(68, 115, 240, 0.13);
  color: #67b4f3;
  transition: transform 0.3s ease, background 0.25s ease;
}

.faqpage-item.open .faqpage-icon {
  transform: rotate(45deg);
  background: rgba(68, 115, 240, 0.28);
}

.faqpage-icon svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  display: block;
}

.faqpage-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    padding 0.3s ease;
  padding: 0 1.4rem;
}

.faqpage-item.open .faqpage-answer {
  max-height: 800px;
  opacity: 1;
  padding: 0 1.4rem 1.35rem;
}

.faqpage-answer-inner {
  color: rgba(239, 241, 252, 0.68);
  font-size: 0.9375rem;
  line-height: 1.75;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1rem;
}

.faqpage-answer-inner p {
  margin: 0 0 0.7rem;
}

.faqpage-answer-inner p:last-child {
  margin-bottom: 0;
}

.faqpage-answer-inner a {
  color: #67b4f3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faqpage-answer-inner a:hover {
  color: #ffffff;
}

/* ========== CATEGORY LABEL ========== */

.faq-category-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faq-accent-light);
  background: rgba(103, 180, 243, 0.1);
  border: 1px solid rgba(103, 180, 243, 0.2);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  margin-bottom: 1.25rem;
}

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

.subpage-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(128, 109, 234, 0.35),
    transparent
  );
  margin: 2rem 0;
  border: none;
}

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

@media (max-width: 640px) {
  .faq-section {
    padding: 2rem 0 3rem;
  }

  .faq-inner {
    padding: 0 1rem;
  }

  .faq-hero-h1 {
    font-size: 1.75rem;
  }

  .faq-question {
    padding: 0.9rem 1rem;
    font-size: 0.9375rem;
  }

  .faq-item.open .faq-answer {
    padding: 0 1rem 1rem;
  }

  .subpage-hero {
    padding: 2.5rem 1rem 1.75rem;
  }

  .subpage-content {
    padding: 1.5rem 1rem 3rem;
  }

  .subpage-cards-grid {
    grid-template-columns: 1fr;
  }

  .subpage-stat-row {
    gap: 0.75rem;
  }

  .subpage-stat {
    flex: 1 1 120px;
  }

  .faq-footer-links,
  .subpage-footer-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .faq-link-btn,
  .subpage-footer-links .faq-link-btn {
    text-align: center;
    justify-content: center;
  }

  .subpage-header-inner {
    height: 56px;
  }

  .faqpage-question {
    padding: 0.9rem 1rem;
    font-size: 0.9375rem;
  }

  .faqpage-item.open .faqpage-answer {
    padding: 0 1rem 1.1rem;
  }
}