:root {
  --bg: #0E1523;
  --bg-alt: #131D2C;
  --card: #172335;
  --line: #304055;
  --heading: #F1F5F9;
  --text: #D1D9E6;
  --muted: #A8B8CE;
  --accent: #34D399;
  --accent-ink: #062117;
  --win: #d7e4ff;
  --win-ink: #10203d;
  --apk: #3ddc97;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  --max: 1080px;
  --header: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background:
    radial-gradient(720px 380px at 50% 140px, rgba(52, 211, 153, 0.14), transparent 68%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 21, 35, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible { color: var(--text); }

.nav-toggle,
.nav-button { display: none; }

.hero,
.section,
.site-footer { padding: 80px 20px; }

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 88px;
  padding-bottom: 20px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 650;
}

h1, h2, h3, h4,
.brand,
.faq summary { color: var(--heading); }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.03em; }

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.2rem); }

h3 { margin: 0 0 8px; font-size: 1.15rem; }

.lede {
  margin: 0 auto;
  max-width: 62ch;
  font-size: 1.12rem;
  color: var(--text);
}

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn:focus-visible,
.nav a:focus-visible,
summary:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-win { background: var(--win); color: var(--win-ink); }
.btn-apk { background: var(--apk); color: var(--accent-ink); }
.btn:hover { filter: brightness(1.06); }

.limit,
.shot figcaption,
.download-card .file-type {
  color: var(--muted);
}

.limit { margin: 18px 0 0; }

.section { max-width: 100%; }
.hero + .section { padding-top: 28px; }
.section-alt { background: var(--bg-alt); }

.section-head,
.cards,
.prose-grid,
.steps,
.callout,
.download-grid,
.faq,
.footer-grid,
.shot,
.guide-note {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.shot { margin-bottom: 28px; }
.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #070d18;
}
.shot figcaption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-head { margin-bottom: 32px; }
.section-head p { margin: 0; max-width: 68ch; }

.cards,
.prose-grid,
.download-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.cards-3,
.prose-grid { grid-template-columns: repeat(3, 1fr); }
.download-grid { grid-template-columns: 1fr 1fr; }

.card,
.download-card,
.prose-grid article {
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent);
}

.card-icon svg { width: 22px; height: 22px; }

.download-card {
  display: flex;
  flex-direction: column;
}

.download-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.platform-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.platform-mark svg { width: 22px; height: 22px; }
.platform-mark.win { color: #b7caf0; }
.platform-mark.apk { color: var(--accent); }

.download-card .file-type {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.download-card ol {
  margin: 0 0 12px;
  padding-left: 1.15rem;
  color: var(--text);
  display: grid;
  gap: 6px;
}

.download-card .install-note {
  margin: 0;
  font-size: 0.92rem;
}

.download-card p:last-of-type { margin-bottom: 20px; }

.card p,
.download-card p,
.prose-grid p { margin: 0 0 10px; }
.card p:last-child,
.download-card p:last-of-type { margin-bottom: 0; }

.steps {
  margin-top: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
}

.steps h3 { margin: 0 0 8px; }

.steps p { margin: 0; color: var(--text); }

.steps .step-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.1);
}

.step-note strong { color: var(--heading); }

.steps { counter-reset: step; }

.guide-note {
  margin-top: 22px;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.guide-note h3 { margin-bottom: 14px; }
.guide-note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
.guide-note h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.guide-note p { margin: 0; color: var(--text); }

.callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(52, 211, 153, 0.08);
}

.faq { display: grid; gap: 10px; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 12px 0;
}

.faq p { margin: 0 0 14px; }
.faq ul {
  margin: 0 0 14px;
  padding-left: 1.2rem;
}
.faq a { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  padding-bottom: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.15fr 1fr;
  gap: 28px 32px;
}

.site-footer h2 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  letter-spacing: 0;
}

.site-footer p { margin: 0; }

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--text); }

.site-footer .footer-copy {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .cards-3,
  .prose-grid,
  .download-grid,
  .guide-note-grid,
  .steps { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-button {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
  }

  .nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
  }

  .nav-toggle:focus-visible + .nav-button {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 8px 20px 16px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
  }

  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a { padding: 8px 0; }
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}

.page h1 { font-size: clamp(2rem, 4.2vw, 2.75rem); }

.page h2 { margin-top: 2rem; }

.page p,
.page li { color: var(--text); }

.page p { margin: 0 0 14px; }

.page ul {
  margin: 0 0 14px;
  padding-left: 1.2rem;
}

.page a { color: var(--accent); }

.page.contact { max-width: 840px; }

.contact-lead {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-mail {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 520px;
  margin: 28px auto 22px;
  padding: 28px 24px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.contact-mail h2,
.contact-grid h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.page .contact-address {
  display: block;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.page .contact-address:hover,
.page .contact-address:focus-visible { color: var(--accent); }

.contact .btn-apk { color: var(--accent-ink); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  text-align: left;
}

.contact-grid p { margin: 0; }

.contact-note {
  max-width: 62ch;
  margin: 22px auto 8px;
  text-align: left;
}

.contact-more { margin: 0; }

@media (max-width: 640px) {
  .hero,
  .section,
  .page,
  .site-footer { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 48px; padding-bottom: 12px; }
  .actions { display: grid; }
  .download-card .btn { align-self: stretch; }
  .footer-grid,
  .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
