:root {
  --purple: #7547F4;
  --purple-600: #5B30D9;
  --night: #1B0C4B;
  --lilac: #F1ECFF;
  --lilac-2: #E2D8FF;
  --ink: #170B3B;
  --muted: #655D82;
  --line: #E6E0F6;
  --white: #ffffff;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

/* ---------- SITE HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

body.menu-open .site-header {
  background: var(--night);
  border-bottom-color: transparent;
}

.bar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand img {
  width: 128px;
  height: auto;
  display: block;
  transition: filter .3s var(--ease);
}

body.menu-open .brand img {
  filter: brightness(0) invert(1);
}

.bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- LANGUAGE SELECTOR ---------- */
.lang {
  position: relative;
}

.lang-btn {
  border: 0;
  background: var(--lilac);
  color: var(--ink);
  height: 48px;
  border-radius: 999px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.lang-btn svg {
  width: 18px;
  height: 18px;
}

.lang-btn .chev {
  width: 11px;
  height: 11px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: 56px;
  width: 180px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(27, 12, 75, .16);
  display: none;
  z-index: 80;
}

.lang-menu.open {
  display: block;
}

.lang-menu li {
  list-style: none;
  padding: 11px 13px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.lang-menu li:hover,
.lang-menu li[aria-selected="true"] {
  background: var(--lilac);
  color: var(--purple-600);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background .2s, transform .2s var(--ease);
}

.btn:hover {
  background: var(--purple-600);
  transform: translateY(-1px);
}

/* ---------- BURGER / CLOSE TOGGLE BUTTON ---------- */
.burger {
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--lilac);
  color: var(--ink);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s var(--ease);
}

.burger span {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s, top .3s var(--ease);
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; width: 15px; }
.burger span:nth-child(3) { top: 29px; }

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
  width: 22px;
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
  width: 22px;
}

/* ---------- OVERLAY MENU (DARK PURPLE SCREENSHOT MATCH) ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--night);
  color: var(--white);
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
  padding-top: 76px;
}

.menu.open {
  transform: translateY(0);
}

.menu-inner {
  min-height: calc(100vh - 76px);
  padding: 24px 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

@media (min-width: 801px) {
  .menu-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: center;
    padding: 48px 0 40px;
  }
}

.menu-links {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.menu-links li {
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  min-height: 60px;
}

.menu-links .ml-t {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--white);
}

.menu-links svg {
  display: none;
}

/* ---------- MENU SIDE / BOTTOM ACTION AREA ---------- */
.menu-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}

.menu-side p {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--white);
  max-width: 20ch;
}

.menu-side .btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.menu-side .btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.menu-side .btn:not(.ghost) {
  background: var(--purple);
  color: var(--white);
}

.menu-side .btn.ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

/* ---------- MAIN CONTENT & HERO ---------- */
main {
  min-height: 70vh;
}

.page-hero {
  padding: 92px 0 70px;
  background: linear-gradient(135deg, #fff 10%, var(--lilac) 100%);
  overflow: hidden;
}

.eyebrow {
  color: var(--purple-600);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
}

.page-hero h1 {
  font: 700 clamp(2.7rem, 7vw, 5.4rem)/1 Poppins, sans-serif;
  letter-spacing: -.055em;
  max-width: 11ch;
  margin: 12px 0 22px;
}

.page-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn.light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.content {
  padding: 82px 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(27, 12, 75, .06);
}

.card.purple {
  background: var(--purple);
  color: #fff;
  border-color: transparent;
}

.card.purple h2, .card.purple h3 {
  color: #fff;
}

.card h2 {
  font: 700 clamp(2rem, 4vw, 3.1rem)/1.08 Poppins, sans-serif;
  letter-spacing: -.04em;
  margin-bottom: 15px;
}

.card h3 {
  font: 700 1.3rem/1.15 Poppins, sans-serif;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

.card.purple p {
  color: var(--lilac-2);
}

.list {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.list li::before {
  content: '✓';
  display: grid;
  place-items: center;
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--lilac);
  color: var(--purple);
  font-weight: 800;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.stat-card {
  background: var(--lilac);
  border-radius: 24px;
  padding: 25px;
}

.stat-card strong {
  display: block;
  font: 700 2.5rem/1 Poppins, sans-serif;
}

.stat-card span {
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 16px;
}

.step-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.num {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.faq button {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 22px 24px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.faq .answer {
  display: none;
  padding: 0 24px 22px;
  color: var(--muted);
}

.faq.open .answer {
  display: block;
}

.search-box {
  background: var(--night);
  color: #fff;
  border-radius: 32px;
  padding: 38px;
  margin-bottom: 34px;
}

.search-box h2 {
  font: 700 2rem/1.1 Poppins, sans-serif;
  color: #fff;
}

.search-box input {
  width: 100%;
  margin-top: 20px;
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  outline: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.support-card {
  padding: 28px;
  border-radius: 24px;
  background: var(--lilac);
}

.support-card a {
  display: inline-block;
  margin-top: 16px;
  color: var(--purple-600);
  font-weight: 800;
}

.terms {
  max-width: 850px;
}

.terms h2 {
  font: 700 1.55rem/1.2 Poppins, sans-serif;
  margin: 35px 0 10px;
}

.terms p, .terms li {
  color: var(--muted);
}

.terms ul {
  padding-left: 22px;
}

.notice {
  background: #fff7e8;
  border: 1px solid #f1dfbd;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 28px;
  color: #6d5527;
}

/* ---------- FOOTER ---------- */
.foot {
  background: var(--night);
  color: var(--lilac-2);
  padding: 58px 0 26px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}

.foot img {
  width: 128px;
  filter: brightness(0) invert(1);
}

.foot h4 {
  color: #fff;
  margin-bottom: 12px;
}

.foot li {
  list-style: none;
  margin: 8px 0;
}

.foot a:hover {
  color: #fff;
}

.foot-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .9rem;
}

/* ---------- RESPONSIVE STYLES ---------- */
@media (max-width: 800px) {
  .bar-right > .btn {
    display: none;
  }
  .page-hero {
    padding: 65px 0 55px;
  }
  .content {
    padding: 60px 0;
  }
  .grid, .support-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 32px, 1160px);
  }
  .bar {
    height: 68px;
  }
  .brand img {
    width: 108px;
  }
  .lang-btn {
    height: 44px;
    padding: 0 12px;
  }
  .burger {
    height: 44px;
    width: 44px;
  }
  .burger span {
    left: 11px;
  }
  .menu {
    padding-top: 68px;
  }
  .page-hero h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }
  .page-hero p {
    font-size: 1rem;
  }
  .card {
    padding: 23px;
    border-radius: 22px;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .foot-grid > div:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
