:root {
  --ink: #171c33;
  --muted: #4a536c;
  --blue: #3146d8;
  --blue-deep: #2436b8;
  --paper: #f4f7ff;
  --navy: #0c1330;
  --line: #e5ebf6;
  --max: 1120px;
  --header: 92px;
  --font: "Red Hat Display", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: #fff;
  line-height: 1.45;
}

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

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

button, input, textarea { font-family: inherit; }

.header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px 0;
}

.header-bar {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 18px;
  border-radius: 18px;
  transition: background 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

.header.is-stuck .header-bar,
.page-support .header-bar,
.page-doc .header-bar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(23, 28, 51, 0.08);
}

.logo img { width: 108px; height: auto; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav a.is-active { color: var(--blue); }

.nav .btn-solid { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  background: transparent;
}

.btn-solid {
  background: var(--blue);
  color: #fff;
}

.btn-solid:hover { background: var(--blue-deep); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-line {
  border-color: var(--blue);
  color: var(--blue);
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
}

.menu-btn span:before,
.menu-btn span:after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span:before { top: -6px; }
.menu-btn span:after { top: 6px; }

.hero {
  min-height: 100vh;
  padding: 132px 20px 40px;
  text-align: center;
  background:
    url("../assets/hero-bg.png") center top / cover no-repeat,
    linear-gradient(180deg, #e7ecff, #f7f8ff 55%, #fff);
}

.hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero .lead {
  margin: 14px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.hero .sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.stores {
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stores img { height: 52px; width: auto; }

.hero-visual {
  position: relative;
  width: min(380px, 86vw);
  margin: 36px auto 0;
}

.hero-visual .flag {
  position: absolute;
  left: -118px;
  top: 22%;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(23, 28, 51, 0.12);
  z-index: 1;
}

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

.future {
  padding: 28px 0 72px;
}

.future-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, #fff, #f7f9ff);
  border-radius: 36px;
  padding: 28px 22px 8px;
  box-shadow: 0 20px 50px rgba(49, 70, 216, 0.06);
}

.future-card h2,
.experience h2,
.safe h2,
.invest h2,
.revolution h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.future-card p,
.experience p,
.safe p,
.invest p {
  color: var(--muted);
  font-size: 16px;
}

.future-card .phone {
  width: min(340px, 100%);
  margin: 0 auto;
}

.experience {
  color: #fff;
  background:
    url("../assets/blue-leaf.png") left center / cover no-repeat,
    #3150e4;
}

.experience-grid,
.safe-grid,
.invest-slide {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 72px 0;
}

.experience p { color: rgba(255, 255, 255, 0.88); }

.experience .phone,
.safe .phone {
  width: min(340px, 78vw);
  margin: 0 auto;
  filter: drop-shadow(0 24px 40px rgba(12, 19, 48, 0.18));
}

.safe {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(80, 110, 255, 0.16), transparent 55%),
    #fff;
}

.control { padding: 8px 0 36px; }

.control-band {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  background: #020b3a;
  color: #fff;
  border-radius: 33px;
  padding: 56px 20px 132px;
  text-align: center;
}

.control-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1.15;
}

.control-band h2 span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.control-band h2 img { width: 148px; height: auto; }

.control-slider {
  position: relative;
  width: min(1180px, calc(100% - 24px));
  margin: -100px auto 0;
}

.cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}

.cards::-webkit-scrollbar { display: none; }

.cards article {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: #fff;
  color: var(--ink);
  border-radius: 15px;
  box-shadow: 0 2px 18px rgba(190, 201, 255, 0.5);
  padding: 26px 16px 14px;
  text-align: center;
}

.cards h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.cards p {
  margin: 0 auto;
  max-width: 28ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  min-height: 2.7em;
}

.cards img {
  width: 100%;
  height: auto;
  margin-top: 14px;
}

.card-nav {
  display: grid;
  place-items: center;
  position: absolute;
  top: 62%;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(23, 28, 51, 0.14);
  cursor: pointer;
}

.card-nav.prev { left: 2px; }
.card-nav.next { right: 2px; }

.store-pick {
  position: fixed;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(23, 28, 51, 0.16);
}

.store-pick[hidden] { display: none; }

.store-pick img { height: 44px; width: auto; }

body.is-ios .stores [data-store="play"],
body.is-android .stores [data-store="apple"] { display: none; }

.invest {
  position: relative;
  margin-top: 48px;
  color: #fff;
  background:
    url("../assets/slider-bg.png") center / cover no-repeat,
    #070b18;
  overflow: hidden;
}

.invest-slide { display: none; }
.invest-slide.is-active { display: grid; }

.invest h2 { max-width: 12ch; }

.invest p { color: rgba(255, 255, 255, 0.78); max-width: 36ch; }

.invest-art {
  position: relative;
  min-height: 280px;
}

.invest-art .angle {
  width: min(460px, 100%);
  margin-left: auto;
}

.invest-art .coin {
  position: absolute;
  width: 150px;
  right: 4%;
  bottom: 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #11182e;
  color: #fff;
  cursor: pointer;
}

.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.revolution {
  padding: 72px 20px 0;
  text-align: center;
}

.stage {
  position: relative;
  width: min(520px, 100%);
  margin: 8px auto 0;
  overflow: hidden;
}

.stage .device {
  position: relative;
  z-index: 1;
  width: min(380px, 78%);
  margin: 0 auto;
}

.rings {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(250px, 58%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid #e4e9f4;
  box-shadow:
    0 0 0 18px #fff,
    0 0 0 19px #e7ecf6,
    0 0 0 36px #fff,
    0 0 0 37px #f3f5fa;
  pointer-events: none;
}

.footer { position: relative; z-index: 2; }

.footer {
  padding: 28px 20px 40px;
}

.footer-card {
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--paper);
  border-radius: 32px;
  padding: 42px 28px;
  display: grid;
  gap: 28px;
}

.brand .logo img { width: 132px; }

.social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.footer h3 { margin: 0 0 12px; font-size: 16px; }

.links p,
.links a {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.support,
.legal {
  padding: 128px 16px 48px;
  background: #fff;
}

.legal h1 {
  width: min(860px, 100%);
  margin: 0 auto 16px;
  color: var(--blue);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
}

.legal-card {
  width: min(860px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 16px 50px rgba(23, 28, 51, 0.06);
  padding: 32px 22px 40px;
  font-size: 15px;
  line-height: 1.55;
}

.legal-card h2 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.legal-card h3 {
  margin: 16px 0 6px;
  font-size: 15px;
}

.legal-card p { margin: 0 0 10px; }

.legal-card ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.legal-card li { margin: 4px 0; }

.legal-card a { color: var(--blue); }

.form-card {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 16px 50px rgba(23, 28, 51, 0.06);
  padding: 36px 22px 32px;
}

.form-card h1 {
  margin: 0 0 22px;
  font-size: 28px;
  font-weight: 600;
}

.field { margin-bottom: 18px; }

.field label,
.hint {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.req { color: #c4493a; font-weight: 600; font-size: 13px; }

.hint {
  font-weight: 500;
  color: #8b93a7;
  font-size: 13px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  border: 0;
  background: #f4f8fc;
  border-radius: 999px;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--ink);
}

.field textarea {
  border-radius: 22px;
  min-height: 140px;
  resize: vertical;
}

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

.count {
  margin: 6px 0 0;
  color: #8b93a7;
  font-size: 12px;
}

.file {
  width: 100%;
  border: 1px solid #d5dbe8;
  border-radius: 4px;
  padding: 6px;
  background: #fff;
}

.file-note {
  margin: 6px 0 0;
  color: #8b93a7;
  font-size: 13px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  font-size: 14px;
}

.check input { margin-top: 3px; }

.check a { color: var(--blue); }

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 760px) {
  .future-card,
  .experience-grid,
  .safe-grid,
  .invest-slide {
    grid-template-columns: 1fr 1fr;
    padding-left: 12px;
    padding-right: 12px;
  }

  .future-card { padding: 20px 48px 0; }

  .cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
    scroll-snap-type: none;
  }

  .cards article { flex: none; }

  .card-nav { display: none; }

  .pair { grid-template-columns: 1fr 1fr; }

  .form-card { padding: 48px 56px; }

  .footer-card {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1020px) {
  .cards { grid-template-columns: repeat(4, 1fr); }

  .control-band h2 { white-space: nowrap; }
}

@media (max-width: 759px) {
  .hero-visual .flag {
    left: 0;
    top: 36%;
    width: 72px;
    height: 72px;
  }

  .control-band { padding: 36px 16px 110px; }

  .control-band h2 { font-size: 28px; }

  .control-band h2 img { width: 118px; }

  .card-nav { top: 52%; }
}

@media (max-width: 759px) {
  .menu-btn { display: grid; place-items: center; }

  .header-bar > .btn-solid { display: none; }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    margin: 0;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(23, 28, 51, 0.12);
  }

  .nav.is-open { display: flex; }

  .nav .btn-solid { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
