:root {
  --ink: #23304a;
  --muted: #657084;
  --line: #e8dfcf;
  --paper: #fffdf6;
  --mist: #eefbff;
  --deep: #24385f;
  --teal: #1bb7a8;
  --blue: #5278ee;
  --coral: #ff6c63;
  --green: #69bc55;
  --gold: #ffb93f;
  --pink: #ff79a8;
  --violet: #8a66ee;
  --navy: #33446f;
  --sky: #9edfff;
  --shadow: 0 18px 46px rgba(56, 62, 84, 0.15);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 185, 63, 0.10) 0 12px, transparent 12px 48px),
    #fffaf0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

.skip-link:focus {
  z-index: 20;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  top: 12px;
  left: 12px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header.scrolled,
.site-header.simple {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 16px rgba(255, 108, 99, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(35, 48, 74, 0.12);
  border-radius: 8px;
}

.language-switcher button {
  min-width: 38px;
  min-height: 32px;
  padding: 6px 9px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 10px rgba(82, 120, 238, 0.22);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.nav-cta {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 8px 16px rgba(255, 121, 168, 0.22);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.site-header.scrolled .menu-button,
.site-header.simple .menu-button {
  border-color: var(--line);
  background: var(--paper);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: relative;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 4px;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #bfeeff 0%, #fff2c0 58%, #c8ea92 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.44;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 246, 0.98) 0%, rgba(255, 249, 223, 0.92) 43%, rgba(255, 255, 255, 0.26) 76%),
    linear-gradient(180deg, rgba(158, 223, 255, 0.28), rgba(255, 185, 63, 0.22));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  left: 0;
  right: 0;
  bottom: -1px;
  height: 76px;
  background:
    linear-gradient(135deg, transparent 22px, rgba(255, 255, 255, 0.78) 0) 0 0 / 44px 44px repeat-x;
}

.hero::after {
  right: 8%;
  bottom: 13%;
  width: 148px;
  height: 104px;
  background:
    linear-gradient(90deg, #ff6c63 0 20%, #ffb93f 20% 40%, #69bc55 40% 60%, #1bb7a8 60% 80%, #5278ee 80% 100%);
  clip-path: polygon(0 64%, 15% 40%, 31% 55%, 48% 27%, 66% 48%, 84% 22%, 100% 50%, 100% 100%, 0 100%);
  opacity: 0.86;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - var(--max)) / 2));
  padding: 118px 0 64px;
  color: var(--ink);
}

.hero-play-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  display: block;
  filter: drop-shadow(0 12px 14px rgba(54, 61, 84, 0.16));
}

.star-one,
.star-two {
  clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 69%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
}

.star-one {
  width: 58px;
  height: 58px;
  right: 28%;
  top: 18%;
  background: var(--gold);
  transform: rotate(9deg);
}

.star-two {
  width: 36px;
  height: 36px;
  left: 49%;
  top: 20%;
  background: var(--pink);
  transform: rotate(-14deg);
}

.kite-one {
  width: 64px;
  height: 64px;
  right: 15%;
  top: 30%;
  background: var(--teal);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.block-one {
  width: 70px;
  height: 70px;
  right: 34%;
  bottom: 20%;
  border: 10px solid var(--coral);
  background: rgba(255, 255, 255, 0.74);
  transform: rotate(12deg);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--coral);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 5px 0 rgba(255, 185, 63, 0.35);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.2;
}

.hero-copy {
  width: min(620px, 100%);
  color: #465166;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button.primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 12px 20px rgba(255, 108, 99, 0.22);
}

.button.secondary {
  color: var(--ink);
  border-color: rgba(255, 185, 63, 0.9);
  background: rgba(255, 255, 255, 0.72);
}

.button.wide {
  width: 100%;
}

.version-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 1px;
  width: min(620px, 100%);
  margin: 34px 0 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 14px 30px rgba(56, 62, 84, 0.12);
}

.version-strip div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
}

.version-strip dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.version-strip dd {
  margin: 3px 0 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--blue);
}

.summary-band {
  padding: 34px 0;
  background:
    linear-gradient(90deg, rgba(255, 121, 168, 0.10), rgba(105, 188, 85, 0.12)),
    var(--paper);
  border-top: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--line);
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(280px, 1fr);
  gap: 34px;
  align-items: center;
}

.summary-grid h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.summary-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section {
  padding: 82px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.endpoint-card,
.download-panel,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(89, 86, 115, 0.08);
}

.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: var(--teal);
}

.feature-card:nth-child(2)::before { background: var(--coral); }
.feature-card:nth-child(3)::before { background: var(--blue); }
.feature-card:nth-child(4)::before { background: var(--green); }
.feature-card:nth-child(5)::before { background: var(--gold); }
.feature-card:nth-child(6)::before { background: var(--navy); }
.feature-card:nth-child(7)::before { background: var(--violet); }
.feature-card:nth-child(8)::before { background: var(--pink); }

.feature-card::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  border: 7px solid rgba(255, 185, 63, 0.26);
  transform: rotate(10deg);
}

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

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(44, 56, 86, 0.12);
}

.teal { background: var(--teal); }
.coral { background: var(--coral); }
.blue { background: var(--blue); }
.green { background: var(--green); }
.gold { background: var(--gold); }
.ink { background: var(--ink); }
.violet { background: var(--violet); }
.navy { background: var(--navy); }

.preview-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--mist), #fff8df);
}

.preview-section::before {
  content: "";
  position: absolute;
  right: 6%;
  top: 42px;
  width: 96px;
  height: 96px;
  background:
    linear-gradient(90deg, transparent 38%, var(--gold) 38% 62%, transparent 62%),
    linear-gradient(0deg, transparent 38%, var(--gold) 38% 62%, transparent 62%);
  opacity: 0.35;
  transform: rotate(9deg);
}

.preview-layout,
.download-layout,
.compliance-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: 48px;
  align-items: center;
}

.preview-copy p {
  color: var(--muted);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.tab-button {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 14px rgba(89, 86, 115, 0.08);
}

.tab-button.active {
  color: #fff;
  border-color: var(--coral);
  background: var(--coral);
}

.check-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 28px;
}

.check-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  background: var(--coral);
  transform: rotate(45deg);
}

.device-frame {
  position: relative;
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: #151b24;
  box-shadow: var(--shadow);
}

.device-frame::before {
  content: "v4.2.3";
  position: absolute;
  right: 24px;
  top: -18px;
  padding: 9px 14px;
  color: #fff;
  background: var(--pink);
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  transform: rotate(5deg);
}

.device-frame img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

.device-frame figcaption {
  padding: 12px 4px 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.download-section {
  background:
    linear-gradient(135deg, rgba(255, 185, 63, 0.18), transparent 36%),
    linear-gradient(225deg, rgba(82, 120, 238, 0.12), transparent 42%),
    #ffffff;
}

.download-layout {
  align-items: start;
}

.download-layout p {
  color: var(--muted);
  font-size: 18px;
}

.download-panel {
  position: relative;
  padding: 26px;
  border: 2px dashed rgba(255, 108, 99, 0.45);
  box-shadow: var(--shadow);
}

.download-panel::before {
  content: "APK";
  position: absolute;
  right: 18px;
  top: -22px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 44px;
  color: #fff;
  background: var(--blue);
  border: 2px solid #fff;
  border-radius: 8px;
  font-weight: 900;
  transform: rotate(4deg);
}

.file-name {
  margin-bottom: 18px;
  color: var(--muted);
  word-break: break-word;
}

.file-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.file-meta div {
  padding: 12px;
  background: #fff8e9;
}

.file-meta dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.file-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.hash {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.endpoint-section {
  background:
    linear-gradient(180deg, #f2fbff, #fff9e8);
}

.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.endpoint-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(89, 86, 115, 0.08);
}

.endpoint-card:nth-child(1) { border-top: 8px solid var(--teal); }
.endpoint-card:nth-child(2) { border-top: 8px solid var(--gold); }
.endpoint-card:nth-child(3) { border-top: 8px solid var(--blue); }
.endpoint-card:nth-child(4) { border-top: 8px solid var(--pink); }

.endpoint-card:hover,
.feature-card:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease;
}

.endpoint-card span {
  color: var(--muted);
  font-size: 14px;
  word-break: break-word;
}

.compliance-section {
  background:
    linear-gradient(135deg, rgba(105, 188, 85, 0.14), rgba(255, 185, 63, 0.16)),
    #fffdf6;
  color: var(--ink);
}

.compliance-section p,
.compliance-section .plain-list {
  color: var(--muted);
}

.faq-section {
  background: #fff4dc;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(89, 86, 115, 0.08);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 38px 0;
  color: #dce8f4;
  background:
    linear-gradient(90deg, rgba(255, 108, 99, 0.28), rgba(82, 120, 238, 0.24)),
    #1d2c4a;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: #fff;
}

.footer-grid p {
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.policy-page {
  padding-top: 72px;
}

.document-hero {
  padding: 84px 0 52px;
  color: #fff;
  background: var(--deep);
}

.document-hero h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.document-body {
  max-width: 850px;
  padding: 60px 0 86px;
}

.document-body h2 {
  margin-top: 34px;
  font-size: 25px;
}

.document-body p,
.document-body li {
  color: var(--muted);
}

.document-body a {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 980px) {
  .feature-grid,
  .endpoint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-layout,
  .download-layout,
  .compliance-layout,
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    padding: 12px 20px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    color: inherit;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 20px;
    right: 20px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
    gap: 14px;
  }

  .site-header.simple .site-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header.simple .site-nav a:first-child {
    display: none;
  }

  .site-header.simple {
    flex-wrap: wrap;
  }

  .site-header.simple .language-switcher {
    margin-left: auto;
  }

  .hero {
    min-height: 90svh;
  }

  .hero-bg {
    object-position: center;
  }

  .hero-content {
    padding-top: 106px;
  }

  .version-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 64px 0;
  }

  .feature-grid,
  .endpoint-grid {
    grid-template-columns: 1fr;
  }

  .file-meta {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .container,
  .hero-content {
    width: min(100% - 28px, var(--max));
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .feature-card {
    min-height: auto;
  }
}
