:root {
  --ink: #0b1c24;
  --ink-soft: #2a4450;
  --paper: #f4f8f9;
  --paper-2: #e7f1f3;
  --teal: #1a6b73;
  --teal-deep: #0f4c52;
  --gold: #c4a035;
  --gold-soft: #e6d08a;
  --line: rgba(11, 28, 36, 0.12);
  --shadow: 0 24px 60px rgba(11, 28, 36, 0.18);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Sora", "Avenir Next", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: #fff;
  padding: 0.5rem 0.8rem;
}

/* ——— Language gate ——— */
.gate {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7fbfc;
  background: #07131a;
}

.gate__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: drift 18s ease-in-out infinite alternate;
}

.gate__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 19, 26, 0.28) 0%, rgba(7, 19, 26, 0.55) 42%, rgba(7, 19, 26, 0.92) 100%),
    radial-gradient(circle at 70% 20%, rgba(196, 160, 53, 0.22), transparent 45%);
}

.gate__content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vw, 4.5rem) 0 3rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.gate h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 750;
  margin: 0 0 1rem;
  max-width: 11ch;
}

.gate__lead {
  max-width: 36rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(247, 251, 252, 0.86);
  margin: 0 0 2rem;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 34rem;
}

@media (min-width: 720px) {
  .lang-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }
}

.lang-btn {
  appearance: none;
  border: 1px solid rgba(247, 251, 252, 0.28);
  background: rgba(247, 251, 252, 0.08);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 999px;
  padding: 0.95rem 1rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  transform: translateY(-2px);
  background: rgba(196, 160, 53, 0.22);
  border-color: var(--gold-soft);
  outline: none;
}

.lang-btn small {
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
  opacity: 0.75;
  font-size: 0.78rem;
}

.gate__note {
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: rgba(247, 251, 252, 0.65);
}

/* ——— Guide layout ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 248, 249, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
}

.topbar__brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chip,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.chip {
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
}

.chip:hover {
  background: #fff;
}

.btn {
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  border: none;
  box-shadow: 0 10px 24px rgba(15, 76, 82, 0.28);
}

.btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.btn--gold {
  background: linear-gradient(135deg, #d6b44a 0%, #a8871f 100%);
  box-shadow: 0 10px 24px rgba(168, 135, 31, 0.28);
}

.hero-guide {
  position: relative;
  min-height: min(78svh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7fbfc;
  background: #07131a;
}

.hero-guide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-guide__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 26, 0.2), rgba(7, 19, 26, 0.88));
}

.hero-guide__content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7rem) 0 3rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
}

.hero-guide h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.hero-guide p {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: rgba(247, 251, 252, 0.86);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section--alt {
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.section > .wrap > .lead,
.section .lead {
  max-width: 42rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.toc {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .toc {
    grid-template-columns: repeat(2, 1fr);
  }
}

.toc a {
  text-decoration: none;
  color: inherit;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.toc a:hover {
  border-color: rgba(26, 107, 115, 0.45);
  transform: translateY(-2px);
}

.toc strong {
  font-family: var(--font-display);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.25rem 1.25rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.step p,
.step ol,
.step ul {
  margin: 0;
  color: var(--ink-soft);
}

.step ol,
.step ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.media-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.pay-list {
  display: grid;
  gap: 1rem;
}

.pay {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.25rem;
}

.pay h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.pay p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
}

.pay ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.35rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-family: var(--font-display);
}

.faq p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: inherit;
}

.sticky-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: none;
}

@media (max-width: 860px) {
  .sticky-cta {
    display: inline-flex;
  }
}

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .gate__bg,
  .lang-btn,
  .btn,
  .toc a {
    animation: none !important;
    transition: none !important;
  }
}
