@font-face {
  font-family: Kurale;
  src: url("assets/fonts/Kurale-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a1220;
  --bg-2: #121a2c;
  --ink: #e8edf4;
  --muted: #8b97a8;
  --silver: #c5d0de;
  --line: rgba(197, 208, 222, 0.22);
  --line-strong: rgba(197, 208, 222, 0.45);
  --accent: #d7dee8;
  --tg: #2aabee;
  --max: #c9d0dc;
  --safe: 1.25rem;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: #0a1220;
}
body {
  margin: 0;
  color: var(--ink);
  min-height: 100vh;
  background-color: #0a1220;
  background-image:
    url("/assets/stars.svg"),
    radial-gradient(ellipse 90% 52% at 50% -12%, rgba(196, 214, 236, 0.16), transparent 58%),
    radial-gradient(ellipse 42% 34% at 12% 78%, rgba(38, 62, 102, 0.55), transparent 70%),
    radial-gradient(ellipse 46% 38% at 92% 28%, rgba(32, 52, 86, 0.48), transparent 68%),
    linear-gradient(180deg, #141e32 0%, #0c1526 42%, #0a1220 100%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: 0 0, center, center, center, center;
  background-size: 420px 420px, auto, auto, auto, auto;
  background-attachment: fixed;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--silver); }
.wrap { width: min(1080px, calc(100% - 2 * var(--safe))); margin: 0 auto; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: var(--safe);
  top: 0.5rem;
  z-index: 20;
  background: var(--bg-2);
  padding: 0.4rem 0.7rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 0 0.4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 24px rgba(197, 208, 222, 0.18);
}
.brand-name {
  font-family: Kurale, Georgia, serif;
  letter-spacing: 0.16em;
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  color: #f4f7fb;
  text-shadow: 0 0 22px rgba(197, 208, 222, 0.35);
}
.nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(1.6rem, 4.5vw, 3.2rem);
  font-size: clamp(1.08rem, 1.45vw, 1.22rem);
  letter-spacing: 0.03em;
}
.nav a { text-decoration: none; color: var(--silver); }
.nav a:hover { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.4rem 0 3.2rem;
}
h1 {
  font-family: Kurale, Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}
.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 0 1.6rem;
}
.cta-row, .cta-sticky {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.btn-tg { background: var(--tg); color: #041018; }
.btn-max {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  font-weight: 500;
}
.btn:hover { filter: brightness(1.08); }
.fine {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.poster {
  justify-self: end;
  width: min(420px, 92%);
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 36px rgba(197, 208, 222, 0.16);
  background: #000;
}
.poster img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 0;
}

.section { padding: 0 0 3.4rem; }
.section h2 {
  font-family: Kurale, Georgia, serif;
  font-weight: 400;
  font-size: 1.7rem;
  margin: 0 0 1.2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card, .step, .qr-card {
  border: 1px solid var(--line);
  background: rgba(14, 22, 38, 0.62);
  padding: 1.15rem 1.2rem;
}
.card h3, .step h3 {
  font-family: Kurale, Georgia, serif;
  font-weight: 400;
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}
.card p, .step p, .muted { color: var(--muted); margin: 0; }
.section-lead {
  color: var(--silver);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: -0.35rem 0 1.35rem;
}

.deck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.2rem;
}
.deck-head h2 { margin: 0; }
.carousel-nav { display: flex; gap: 0.45rem; }
.carousel-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 22, 38, 0.62);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}
.carousel-btn:hover { border-color: var(--silver); }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.55s ease;
  will-change: transform;
}
.carousel-track figure {
  margin: 0;
  flex: 0 0 calc((100% - 2rem) / 3);
}
.carousel-track img {
  width: 100%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.carousel-track figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.n {
  font-family: Kurale, Georgia, serif;
  color: var(--silver);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
}

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.2rem 1.25rem;
}
.qr-card img {
  width: 220px;
  height: 220px;
  background: #f4f1ea;
  padding: 10px;
  border: 1px solid var(--line-strong);
}
.qr-card .btn {
  width: 220px;
}

.docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: rgba(14, 22, 38, 0.62);
}
.docs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 3.4rem;
  padding: 0.95rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.docs a:nth-child(2n) { border-right: 0; }
.docs a:nth-last-child(-n+2) { border-bottom: 0; }
.docs a::after {
  content: "→";
  color: var(--silver);
  flex-shrink: 0;
}
.docs a:hover {
  color: #fff;
  background: rgba(197, 208, 222, 0.06);
}

.disclaimer {
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0 0 5.5rem;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover { color: var(--ink); }

.sticky {
  display: none;
  position: sticky;
  bottom: 0;
  padding: 0.65rem var(--safe) calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(10, 16, 28, 0.9);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.sticky .btn { flex: 1; }

/* Separate legal / document pages */
.page-doc .top { padding-bottom: 0.5rem; }
.page-doc .nav {
  flex: 0 1 auto;
  gap: 1.4rem;
  font-size: 1.05rem;
}
.doc-main {
  max-width: 720px;
  padding: 1.5rem 0 3rem;
}
.doc-main h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.5rem;
}
.doc-main h2 {
  font-family: Kurale, Georgia, serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--silver);
  margin: 1.75rem 0 0.55rem;
}
.doc-main p { margin: 0 0 0.9rem; color: var(--ink); }
.doc-main ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink);
}
.doc-main li { margin: 0.35rem 0; }
.doc-meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.25rem; }
.back {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}
.back a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.back a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}
.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.doc-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.doc-nav a:hover,
.doc-nav a[aria-current="page"] {
  color: var(--ink);
}
.doc-nav a[aria-current="page"] {
  border-bottom: 1px solid var(--line-strong);
}
.page-doc .foot { padding-bottom: 2rem; }
.page-doc .disclaimer { margin-top: 2rem; }

.page-doc .docs {
  grid-template-columns: 1fr;
}
.page-doc .docs a {
  border-right: 0;
}
.page-doc .docs a:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.page-doc .docs a:last-child { border-bottom: 0; }

@media (max-width: 820px) {
  .nav { display: none; }
  .page-doc .nav { display: flex; flex-wrap: wrap; }
  .brand img { width: 64px; height: 64px; }
  .hero, .grid-3, .steps, .qr-grid, .docs {
    grid-template-columns: 1fr;
  }
  .docs a {
    border-right: 0;
  }
  .docs a:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .docs a:last-child { border-bottom: 0; }
  .carousel-track figure { flex-basis: 100%; }
  .poster { order: -1; width: min(320px, 78%); justify-self: center; }
  .sticky { display: block; }
  .page-doc .sticky { display: none; }
  .cta-row { display: none; }
  .foot { padding-bottom: 1.5rem; }
  .page-doc .foot { padding-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}
