:root {
  --text: #fefdff;
  --primary: #bb00d9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #050308;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a,
button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.faq-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 4, 11, 0.86), rgba(8, 4, 11, 0.96)),
    #050308;
}

.faq-hero {
  position: relative;
  min-height: 226px;
  padding: 30px 0 72px;
  overflow: visible;
  background: #24122b;
  z-index: 10;
  isolation: isolate;
}

.faq-band {
  position: absolute;
  inset: 0;
  background-color: transparent;
  background-image: url("./features-pattern.svg");
  background-position: top center;
  background-repeat: repeat;
  background-size: 940px auto;
  opacity: 0.92;
  filter: blur(0.6px);
  z-index: 0;
  pointer-events: none;
}

.glass-nav,
.nav-menu-panel {
  position: relative;
  z-index: 2;
}

.glass-nav {
  width: min(1240px, calc(100vw - 48px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background:
    linear-gradient(90deg, rgba(60, 59, 59, 0.08), rgba(60, 59, 59, 0.08)),
    linear-gradient(160deg, rgba(241, 152, 255, 0.08), rgba(246, 187, 255, 0.08));
}

.faq-page.is-menu-open .glass-nav {
  z-index: 6;
}

.icon-button,
.lang-button,
.pill-button,
.nav-menu-link,
.nav-install-card,
.faq-trigger {
  border: 0;
  background: transparent;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-button img {
  width: 40px;
  height: 40px;
}

.nav-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-logo {
  width: 45px;
  height: 60px;
  transform: scale(2.18);
  transform-origin: center;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #fefdff;
  font-size: 16px;
}

.lang-button img {
  width: 20px;
  height: 20px;
}

.pill-button {
  min-width: 82px;
  height: 44px;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 500;
}

.pill-button-light {
  background: #f6f6f6;
  color: #bb00d9;
  border: 1px solid #e9e8ea;
}

.pill-button-primary {
  background: #bb00d9;
  color: #fff;
  border: 1px solid #bb00d9;
}

.nav-menu-panel {
  position: absolute;
  top: 112px;
  left: max(24px, calc(50% - 632px + 12px));
  width: min(790px, calc(100vw - 48px));
  height: 456px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 40px 30px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(31, 18, 48, 0.97), rgba(24, 13, 35, 0.98)),
    rgba(27, 17, 40, 0.98);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -18px, 0);
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.2, 0.75, 0.2, 1),
    visibility 0s linear 240ms;
  will-change: transform, opacity;
}

.faq-page.is-menu-open .nav-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

.nav-menu-panel::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  width: 30px;
  height: 20px;
  background: rgba(31, 18, 48, 0.98);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.nav-menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 78px;
}

.nav-menu-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.nav-menu-column-right {
  gap: 28px;
}

.nav-menu-link {
  display: inline-block;
  padding: 0;
  color: #fefdff;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.65px;
  text-align: left;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.nav-menu-link:hover {
  opacity: 0.82;
}

.nav-install-row {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin-top: 24px;
}

.nav-install-card {
  width: 345px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border: 2px solid rgba(105, 102, 105, 0.9);
  border-radius: 18px;
  background: #020202;
  color: #fefdff;
  text-align: left;
}

.nav-install-card img {
  width: 38px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-install-card span:last-child {
  max-width: 200px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.42px;
}

.page-title {
  position: relative;
  z-index: 2;
  margin: 52px 0 0;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 49px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.faq-sheet {
  background: #fff;
  color: #201728;
  min-height: 1096px;
  padding: 50px 60px 86px;
}

.faq-default-content,
.search-results {
  max-width: 1280px;
  margin: 0 auto;
}

.faq-toolbar {
  max-width: 1280px;
  margin: 0 auto 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.faq-toolbar-copy h2 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #26172d;
}

.faq-toolbar-copy p {
  margin: 10px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(77, 68, 88, 0.72);
}

.faq-toolbar-search {
  width: min(420px, 100%);
  flex: 0 0 auto;
}

.popular-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.popular-column h2,
.search-results-header h2 {
  margin: 0 0 30px;
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #26172d;
}

.search-field {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f4f4f8;
  color: #7d7588;
  border: 1px solid #ebe7f1;
}

.search-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  color: #948ca1;
}

.search-icon svg {
  width: 100%;
  height: 100%;
}

.search-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #26172d;
  outline: none;
  font-family: "Inter", sans-serif;
  font-size: 13px;
}

.search-field input::placeholder {
  color: #aaa3b3;
}

.search-clear {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e7e1ef;
  color: #6d6379;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

.search-clear[hidden] {
  display: none;
}

.search-column {
  display: none;
}

.accordion-list {
  border-top: 1px solid transparent;
}

.faq-item {
  border-bottom: 1px solid #ece8f0;
}

.faq-trigger {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  color: #26172d;
  text-align: left;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.faq-chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 1.5px solid #7f7788;
  border-bottom: 1.5px solid #7f7788;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(-135deg);
}

.faq-answer {
  max-width: 700px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.faq-answer p {
  margin: 0 0 16px;
  color: rgba(76, 67, 87, 0.78);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.faq-item.is-open .faq-answer {
  max-height: 180px;
}

.bulk-faq-section {
  margin-top: 62px;
}

.bulk-category + .bulk-category {
  margin-top: 34px;
}

.bulk-category h3 {
  margin: 0 0 10px;
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ff2727;
}

.bulk-faq-item + .bulk-faq-item {
  margin-top: 16px;
}

.bulk-faq-item h4,
.result-card h3 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: #17111d;
}

.bulk-faq-item p,
.result-card p,
.search-results-header p,
.result-card small {
  margin: 2px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(42, 32, 50, 0.9);
}

.search-results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ece8f0;
}

.search-results-header h2 {
  margin-bottom: 0;
}

.search-results-header p {
  color: rgba(77, 68, 88, 0.72);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 26px;
}

.result-card {
  padding: 20px 22px;
  border: 1px solid #ece7f3;
  border-radius: 18px;
  background: #faf9fd;
}

.result-card .category-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #ff2727;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.search-empty {
  margin: 28px 0 0;
  color: rgba(77, 68, 88, 0.72);
  font-family: "Inter", sans-serif;
  font-size: 15px;
}

.faq-footer {
  background: #24122b;
  padding: 34px 0 52px;
}

.store-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
}

.store-badge {
  width: 171px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #5f5d5d;
  border-radius: 8px;
  background: #0c0c0e;
  color: #fff;
  text-decoration: none;
}

.store-badge img {
  width: 32px;
  height: 38px;
  object-fit: contain;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge small {
  font-size: 12px;
  opacity: 0.78;
}

.store-badge strong {
  font-size: 12px;
  font-weight: 500;
}

.footer-row {
  max-width: 1410px;
  margin: 36px auto 0;
  padding: 0 100px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-mark {
  position: relative;
  width: 72px;
  height: 86px;
  flex: 0 0 auto;
  overflow: hidden;
}

.footer-brand img {
  position: absolute;
  top: -18px;
  left: -11px;
  width: 94px;
  height: 125px;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  padding-top: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 56px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  letter-spacing: -0.5px;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .glass-nav,
  .nav-menu-panel {
    width: calc(100vw - 24px);
  }

  .page-title {
    font-size: 40px;
  }

  .faq-sheet {
    min-height: 0;
    padding: 42px 28px 56px;
  }

  .faq-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .faq-toolbar-search {
    width: 100%;
  }

  .popular-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nav-menu-panel {
    top: 92px;
    left: clamp(16px, 4vw, 28px);
    right: clamp(16px, 4vw, 28px);
    width: auto;
    height: auto;
    padding: 24px;
    border-radius: 26px;
  }

  .nav-menu-panel::before {
    left: 48px;
  }

  .nav-menu-grid {
    column-gap: 32px;
  }

  .nav-menu-column,
  .nav-menu-column-right {
    gap: 16px;
  }

  .nav-menu-link {
    font-size: 18px;
  }

  .nav-install-row {
    gap: 12px;
    margin-top: 18px;
  }

  .nav-install-card {
    width: 100%;
    min-height: 60px;
    padding: 10px 14px;
  }

  .nav-install-card img {
    width: 34px;
    height: 36px;
  }

  .nav-install-card span:last-child {
    max-width: none;
    font-size: 14px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 0 clamp(16px, 4vw, 28px) 0;
  }

  .footer-brand {
    gap: 14px;
  }

  .footer-brand-mark {
    width: 62px;
    height: 76px;
  }

  .footer-brand img {
    top: -16px;
    left: -10px;
    width: 84px;
    height: 112px;
  }

  .footer-brand p {
    padding-top: 0;
    font-size: 16px;
    line-height: 1.55;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 24px;
  }
}

@media (max-width: 760px) {
  .faq-hero {
    min-height: 190px;
    padding-top: 20px;
    padding-bottom: 50px;
  }

  .faq-band {
    background-size: 700px auto;
  }

  .glass-nav {
    height: auto;
    min-height: 68px;
    padding: 12px 16px;
    gap: 10px;
  }

  .nav-actions {
    gap: 6px;
  }

  .lang-button {
    display: none;
  }

  .pill-button {
    min-width: 68px;
    height: 34px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .page-title {
    margin-top: 38px;
    font-size: 28px;
  }

  .nav-menu-panel {
    top: 86px;
    padding: 20px;
    border-radius: 28px;
  }

  .nav-menu-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu-link {
    font-size: 18px;
  }

  .nav-install-row {
    flex-direction: column;
  }

  .faq-sheet {
    padding: 18px 18px 28px;
  }

  .faq-toolbar {
    margin-bottom: 22px;
    gap: 16px;
  }

  .popular-column h2,
  .search-results-header h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .faq-toolbar-copy h2 {
    font-size: 20px;
  }

  .faq-trigger {
    min-height: 58px;
    font-size: 15px;
  }

  .bulk-category h3 {
    font-size: 20px;
  }

  .bulk-faq-item h4,
  .result-card h3 {
    font-size: 16px;
  }

  .search-results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-row {
    flex-direction: column;
    align-items: center;
  }

  .store-badge {
    width: min(300px, 100%);
  }
}
