: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 {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.how-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));
}

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

.icon-button,
.lang-button,
.pill-button,
.nav-menu-link,
.nav-install-card {
  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;
}

.how-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,
.nav-menu-link.is-active {
  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: 51px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.guide-sheet {
  background: #fff;
  color: #201728;
  padding: 46px 58px 72px;
}

.continuation-sheet {
  padding-top: 8px;
}

.modes-sheet {
  padding-top: 24px;
  padding-bottom: 88px;
}

.content-grid {
  width: min(1270px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
}

.single-column {
  width: min(1270px, 100%);
  margin: 0 auto;
}

.main-column {
  min-width: 0;
}

.guide-block + .guide-block {
  margin-top: 34px;
}

.guide-block h2 {
  margin: 0 0 14px;
  font-family: "Inter", sans-serif;
  font-size: 25px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.guide-block h3 {
  margin: 0 0 14px;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.26;
  font-weight: 500;
  color: #201728;
}

.underlined-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.guide-block p,
.guide-block li {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.86;
  color: rgba(39, 29, 47, 0.82);
}

.guide-block ol,
.guide-block ul {
  margin: 0;
  padding-left: 20px;
}

.guide-block li + li {
  margin-top: 6px;
}

.guide-block p + p,
.guide-block p + ul,
.guide-block p + ol,
.guide-block ol + p,
.guide-block ul + p {
  margin-top: 12px;
}

.pro-tip {
  margin-top: 18px;
  font-weight: 500;
}

.toc-card {
  position: sticky;
  top: 36px;
  align-self: start;
}

.toc-card h2 {
  margin: 0 0 18px;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #201728;
}

.toc-card ol {
  margin: 0;
  padding-left: 18px;
}

.toc-card li + li {
  margin-top: 12px;
}

.toc-card a {
  color: #201728;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-underline-offset: 3px;
}

.pdf-icon {
  width: 96px;
  height: 96px;
  display: block;
  margin-top: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ef2d2d, #f32121);
  object-fit: contain;
}

.star-step + .star-step {
  margin-top: 26px;
}

.video-frame {
  width: min(460px, 100%);
  margin-top: 22px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  background: #fff;
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
}

.how-footer {
  background: #24122b;
  padding: 38px 48px 30px;
}

.store-row {
  width: min(1270px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.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: #000;
  text-decoration: none;
}

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

.store-badge small,
.store-badge strong {
  display: block;
  font-family: "Inter", sans-serif;
  line-height: 1.15;
}

.store-badge small {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}

.store-badge strong {
  margin-top: 2px;
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}

.footer-row {
  width: min(1270px, 100%);
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  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.82);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .glass-nav {
    width: min(1240px, calc(100vw - 32px));
    padding: 0 18px;
  }

  .nav-menu-panel {
    left: 16px;
    width: calc(100vw - 32px);
    height: auto;
    min-height: 420px;
    padding: 34px 28px 26px;
  }

  .nav-menu-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .toc-card {
    position: static;
  }

  .guide-sheet,
  .how-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 20px 28px;
  }
}

@media (max-width: 720px) {
  .how-hero {
    min-height: 210px;
    padding: 20px 0 52px;
  }

  .glass-nav {
    width: calc(100vw - 24px);
    height: auto;
    min-height: 68px;
    padding: 12px 16px;
    gap: 14px;
  }

  .nav-actions {
    gap: 6px;
  }

  .pill-button {
    min-width: 74px;
    height: 40px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .lang-button {
    font-size: 14px;
  }

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

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

  .nav-install-card {
    width: 100%;
  }

  .page-title {
    margin-top: 42px;
    font-size: 34px;
  }

  .guide-sheet,
  .how-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .guide-block h2 {
    font-size: 21px;
  }

  .guide-block h3 {
    font-size: 17px;
  }

  .guide-block p,
  .guide-block li,
  .toc-card a {
    font-size: 13px;
    line-height: 1.72;
  }

  .store-row {
    flex-direction: column;
  }

  .store-badge {
    width: 100%;
  }

  .footer-row {
    padding-bottom: 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 {
    font-size: 16px;
    line-height: 1.55;
  }
}
