:root {
  --bg: #070814;
  --text: #f4f6ff;
  --muted: #b7bdd4;
  --line: rgba(176, 190, 255, 0.18);
  --card: rgba(16, 20, 42, 0.78);
  --accent: #8b8cff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html.i18n-pending body { visibility: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(880px 420px at 88% -8%, rgba(140, 80, 255, 0.32), transparent 62%),
    radial-gradient(640px 360px at -12% 8%, rgba(50, 110, 255, 0.24), transparent 58%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
}

a { color: inherit; }

img { max-width: 100%; }

.wrap {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(7, 8, 20, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 12px;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

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

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-inline-start: auto;
}

.lang-select {
  max-width: 100%;
  min-height: 34px;
  margin: 0;
  padding-block: 0;
  padding-inline: 12px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b7bdd4' d='M1.2 1.4 6 6.2 10.8 1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  appearance: none;
}

[dir="rtl"] .lang-select { background-position: left 10px center; }

[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.store {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5d74ff, #a45bff);
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.hero { padding: 18px 0 8px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 38em;
  margin: 12px 0 0;
  color: var(--muted);
}

.jumps {
  display: flex;
  gap: 8px;
  margin: 22px 0 6px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.jumps a {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.notice,
.step {
  scroll-margin-top: 76px;
  margin-top: 16px;
  padding: 22px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.notice { background: linear-gradient(180deg, rgba(110, 90, 255, 0.16), rgba(255, 255, 255, 0.03)); }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #5d74ff, #b06bff);
  color: white;
  font-size: 14px;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.35;
}

h3 {
  margin: 22px 0 6px;
  font-size: 1.05rem;
}

p { margin: 8px 0 0; }

.shots {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin: 16px auto 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: white;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.compare {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.compare article {
  padding: 14px;
  border-radius: 16px;
}

.compare h3 { margin: 0 0 6px; }

.compare p { margin: 0; color: var(--muted); }

.compare .bad { background: rgba(255, 130, 110, 0.1); }

.compare .good { background: rgba(120, 230, 185, 0.1); }

.textlink {
  display: inline-flex;
  margin-top: 12px;
  color: #d7d4ff;
  font-weight: 700;
}

.perks {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.perk {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.perk strong { display: block; }

.perk p { margin: 4px 0 0; color: var(--muted); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a { color: var(--text); }

.site-footer small { display: block; margin-top: 4px; }

.totop {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 18, 36, 0.92);
  color: white;
  font: inherit;
  font-size: 18px;
}

.totop[hidden] { display: none; }

@media (max-width: 640px) {
  .wrap,
  .topbar-inner { width: min(760px, calc(100% - 28px)); }
  .lang-select { min-height: 32px; padding-inline: 10px 26px; font-size: 12px; }
  .store { min-height: 32px; padding: 0 10px; font-size: 12px; }
}

@media (min-width: 700px) {
  .compare,
  .perks { grid-template-columns: 1fr 1fr; }
}
