:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

/* ── Scrollbar (Firefox + Chromium) ─────────────────────────────────────── */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: #cfcfcf #0a0a0a;
  scrollbar-gutter: stable;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #0a0a0a;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border: 3px solid #0a0a0a;
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #f2f2f2;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: #0a0a0a;
}

.page {
  max-width: 920px;
  margin: 0 auto;
  min-height: 100svh;
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: block;
  margin: 0 auto 12px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 auto;
  max-width: 640px;
  color: #b3b3b3;
  font-size: 16px;
  line-height: 1.5;
}

.meta {
  margin: 8px 0 0;
  color: #8c8c8c;
  font-size: 13px;
  font-weight: 500;
}

.meta a {
  color: #fff;
  text-underline-offset: 2px;
}

.actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.btn i {
  font-size: 16px;
}

.btn-primary {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  padding: 10px 16px;
}

.btn:hover {
  transform: none;
}

.showcase {
  margin: 20px auto 0;
  max-width: 680px;
  border: 1px solid #202020;
  border-radius: 16px;
  overflow: hidden;
  background: #080808;
}

.showcase img {
  width: 100%;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* ── Lenis smooth scroll ─────────────────────────────────────────────────── */

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ── Scroll cue ─────────────────────────────────────────────────────────── */

.scroll-cue {
  width: 100%;
  margin: 32px 0 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  max-height: 40px;
}

/* The chevrons wrapper handles all visibility transitions */
.scroll-cue-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 1;
  max-height: 40px;
  transition: opacity 250ms ease, max-height 250ms ease;
  overflow: hidden;
}

.scroll-cue--hidden .scroll-cue-chevrons {
  opacity: 0;
  max-height: 0;
}

.scroll-cue-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Each chevron is its own box, tall enough that they don't overlap */
.scroll-cue-chevron {
  width: 20px;
  height: 11px;
  position: relative;
}

.scroll-cue-chevron::before,
.scroll-cue-chevron::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 1.5px;
  background: #4a4a4a;
  border-radius: 2px;
}

.scroll-cue-chevron::before {
  left: 0;
  transform: rotate(40deg);
  transform-origin: right bottom;
}

.scroll-cue-chevron::after {
  right: 0;
  transform: rotate(-40deg);
  transform-origin: left bottom;
}

/* 
  Negative delay = start mid-cycle. 
  Each chevron peaks at ~30% of 1.8s = ~0.54s into the cycle.
  We offset each so they're staggered but all past the initial opacity:0 phase on reveal.
*/
.scroll-cue-chevron:nth-child(1) { animation: chevron-fade 1.8s ease -0.36s infinite; }
.scroll-cue-chevron:nth-child(2) { animation: chevron-fade 1.8s ease -0.18s infinite; }
.scroll-cue-chevron:nth-child(3) { animation: chevron-fade 1.8s ease  0.00s infinite; }

@keyframes chevron-fade {
  0%   { opacity: 0; }
  35%  { opacity: 0.5; }
  65%  { opacity: 0; }
  100% { opacity: 0; }
}

[data-faq-open="true"] .faq-icon-add {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

[data-faq-open="true"] .faq-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #fff;
}

[data-faq-open="false"] .faq-icon-add {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-faq-open="false"] .faq-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

/* Transition on content driven by JS — override the CSS open/close snap */
.expander__content {
  transition: height 360ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-home {
  margin: 78px auto 0;
  max-width: 760px;
  width: 100%;
  text-align: center;
}

.faq-home h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 5.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

.faq-item {
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  background: #070707;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  color: #e6e6e6;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 18px;
  user-select: none;
  list-style: none;
  font-family: inherit;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

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

.faq-icons {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.faq-icons i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 400;
  color: #d6d6d6;
  transition: opacity 220ms ease, transform 220ms ease, color 220ms ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.faq-icon-add {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.faq-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.faq-item[open] .faq-icon-add {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

.faq-item[open] .faq-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #fff;
}

.faq-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.faq-content-inner {
  overflow: hidden;
  padding: 14px 18px 16px;
}

.faq-item p,
.faq-item li {
  margin: 0;
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1.55;
}

.faq-item p + p {
  margin-top: 8px;
}

.faq-item ul {
  margin: 0;
  padding-left: 18px;
}

.faq-item li + li {
  margin-top: 6px;
}

.faq-item[open] .faq-content {
  height: auto;
  opacity: 1;
}

.footer {
  margin: 52px auto 24px;
  max-width: 680px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: #050505;
  border: 1px solid #151515;
  border-radius: 12px;
  padding: 8px;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 10px;
  color: #cecece;
  text-decoration: none;
  border: 1px solid #232323;
  border-radius: 9px;
  background: #0a0a0a;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}

.footer-link i {
  font-size: 15px;
}

.footer-link:hover {
  color: #fff;
  border-color: #3a3a3a;
  background: #111;
}

@media (max-width: 640px) {
  .page {
    min-height: unset;
    padding-top: 24px;
    justify-content: flex-start;
  }

  .subtitle {
    font-size: 15px;
  }

  .faq-item summary {
    font-size: 15px;
  }

  .faq-home {
    margin-top: 56px;
  }

  .footer {
    padding: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .footer {
    padding: 10px;
    gap: 6px;
  }

  .footer-link {
    min-height: 36px;
    font-size: 12px;
    padding: 7px 10px;
  }
}

.policy-page {
  max-width: 760px;
  margin: 0 auto;
  min-height: 100svh;
  padding: 28px 20px 36px;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #d0d0d0;
  font-size: 14px;
  margin-bottom: 16px;
}

.policy-back:hover {
  color: #fff;
}

.policy-page h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.02em;
}

.policy-muted {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 10px;
  color: #b7b7b7;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #1f1f1f;
  border-radius: 100px;
  background: #070707;
}

.policy-card {
  background: #050505;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.policy-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.policy-card p {
  margin: 0;
  color: #c4c4c4;
  line-height: 1.6;
}

.policy-card p + p {
  margin-top: 8px;
}

.policy-list {
  margin: 0;
  padding-left: 18px;
  color: #c4c4c4;
  line-height: 1.6;
}

.policy-list li + li {
  margin-top: 6px;
}

.policy-link {
  color: #fff;
  text-underline-offset: 2px;
}
