:root {
  --ink: #0a1f33;
  --ink-2: #0e2a43;
  --gold: #c19a56;
  --gold-light: #e4c789;
  --cream: #f6f0e4;
  --paper: #fffdf8;
  --muted: #64717c;
  --line: rgba(10, 31, 51, 0.13);
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font: inherit; }
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; border-radius: 8px; background: var(--paper); color: var(--ink);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.top {
  min-height: 72px;
  padding: max(16px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 16px max(24px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 10;
}
.brand { display: inline-flex; align-items: center; cursor: default; }
.brand img { width: 146px; height: auto; display: block; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lang button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 5px 9px; border-radius: 999px; font-size: 11px; line-height: 1.2;
}
.lang button.active { background: var(--ink); color: #fff; }
.brand img { filter: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  padding: clamp(42px, 7vw, 92px) max(24px, calc((100vw - 1180px) / 2)) clamp(52px, 8vw, 108px);
  background:
    radial-gradient(circle at 82% 18%, rgba(193, 154, 86, .18), transparent 24%),
    linear-gradient(135deg, #081b2d 0%, #0a1f33 62%, #102d47 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -220px; top: -280px;
  border: 1px solid rgba(193, 154, 86, .22); border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(193, 154, 86, .035), 0 0 0 72px rgba(193, 154, 86, .02);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10px; letter-spacing: .16em; font-weight: 700; text-transform: uppercase;
  color: var(--gold-light);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .75; }
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 700;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.lead {
  max-width: 550px;
  margin: 22px 0 0;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.8;
  color: #b9c7d3;
}
.download-block { margin-top: 30px; }
.download-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 9px;
  background: var(--gold); color: var(--ink);
  font-size: 13px; font-weight: 800; letter-spacing: .01em;
  cursor: pointer; box-shadow: 0 18px 34px -22px rgba(193, 154, 86, .9);
  transition: background .2s, transform .2s, opacity .2s;
}
.download-btn:hover { background: var(--gold-light); transform: translateY(-1px); }
.download-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.download-btn.disabled { opacity: .48; cursor: not-allowed; transform: none; }
.download-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  margin-top: 10px; min-height: 20px; color: #9eafba; font-size: 10.5px;
}
#apkVersion:empty { display: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; color: #b9c7d3; font-size: 11px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.trust-row b { font-weight: 500; }

.phone-stage { position: relative; min-height: 430px; display: grid; place-items: center; z-index: 1; }
.phone {
  width: min(286px, 76vw); height: 500px; border-radius: 36px;
  background: #061521; border: 1px solid rgba(228, 199, 137, .38);
  box-shadow: 0 34px 90px -35px rgba(0, 0, 0, .8), inset 0 0 0 7px rgba(255, 255, 255, .035);
  padding: 18px 14px; position: relative; transform: rotate(5deg);
}
.phone::before { content: ""; position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 70px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .16); }
.phone-top { display: flex; justify-content: space-between; padding: 22px 6px 0; }
.phone-top span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.phone-screen { margin-top: 22px; border-radius: 22px; background: #f7f1e5; color: var(--ink); padding: 22px 18px; min-height: 390px; }
.ps-kicker { display: block; font-size: 8px; letter-spacing: .15em; color: var(--muted); font-weight: 700; }
.phone-screen strong { display: block; margin-top: 5px; font-family: var(--serif); font-size: 25px; letter-spacing: -.03em; }
.ps-card { margin-top: 18px; background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.ps-card small { display: block; font-size: 8px; color: var(--muted); }
.ps-card b { display: block; margin-top: 3px; color: var(--gold); font-family: var(--serif); font-size: 17px; letter-spacing: .02em; }
.ps-pill { display: inline-flex; margin-top: 12px; padding: 4px 8px; border-radius: 999px; background: #f0e6d3; color: #87652f; font-size: 8px; font-weight: 700; }
.ps-line { width: 100%; height: 7px; margin-top: 16px; border-radius: 99px; background: #e9dfcd; }
.ps-line.short { width: 64%; margin-top: 8px; }
.ps-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
.ps-actions span { padding: 10px 4px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 8px; text-align: center; }
.ps-actions span:last-child { background: var(--gold); color: var(--ink); }
.stage-ring { position: absolute; width: 370px; height: 370px; border: 1px solid rgba(193, 154, 86, .18); border-radius: 50%; pointer-events: none; }

.steps, .features { padding: 68px max(24px, calc((100vw - 1180px) / 2)); }
.section-head { max-width: 620px; }
.section-head .eyebrow { color: #8d6b34; }
.section-head h2 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(28px, 3.5vw, 42px); line-height: 1.15; letter-spacing: -.035em; }
.step-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.step-grid article, .feature-grid article {
  min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 253, 248, .65);
}
.step-grid .num, .fi { font-family: var(--serif); font-size: 13px; color: var(--gold); font-weight: 700; }
.step-grid h3, .feature-grid h3 { margin: 16px 0 7px; font-size: 15px; letter-spacing: -.01em; }
.step-grid p, .feature-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.features { padding-top: 12px; }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid article { padding: 20px; }
.feature-grid .fi { font-size: 22px; opacity: .8; }

.install {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 10px max(24px, calc((100vw - 1180px) / 2)) 20px;
  padding: 34px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
}
.install > div { max-width: 720px; min-width: 0; }
.install .eyebrow { color: #8d6b34; }
.install h2 { margin: 10px 0 8px; font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.install p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.ghost-btn { flex: none; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 8px; font-size: 11px; font-weight: 700; }
.ghost-btn:hover { background: var(--ink); color: #fff; }

.cta {
  margin: 20px max(24px, calc((100vw - 1180px) / 2)) 64px;
  padding: 52px 30px; border-radius: 16px;
  background: linear-gradient(135deg, #081b2d, #102d47); color: #fff; text-align: center;
}
.cta .eyebrow { color: var(--gold-light); }
.cta h2 { max-width: 650px; margin: 14px auto 8px; font-family: var(--serif); font-size: clamp(26px, 4vw, 42px); line-height: 1.2; letter-spacing: -.035em; }
.cta p { margin: 0 auto 24px; color: #b9c7d3; font-size: 13px; }

footer {
  padding: 32px max(24px, calc((100vw - 1180px) / 2)) calc(24px + env(safe-area-inset-bottom));
  background: var(--ink); color: #aebdc8;
}
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: 22px; }
.footer-top img { width: 126px; height: auto; }
.disclaimer { max-width: 760px; margin: 20px 0 0; color: #7f929f; font-size: 10px; line-height: 1.8; }
.copyright { margin: 18px 0 0; color: #617582; font-size: 10px; }

.not-found-body { min-height: 100vh; display: grid; place-items: center; background: var(--ink); }
.not-found { width: min(620px, calc(100% - 40px)); padding: 42px; border: 1px solid rgba(193, 154, 86, .25); border-radius: 16px; background: #0b2339; color: #fff; }
.not-found img { width: 150px; }
.not-found .eyebrow { margin-top: 30px; color: var(--gold-light); }
.not-found h1 { margin: 14px 0 10px; font-family: var(--serif); font-size: clamp(28px, 5vw, 48px); letter-spacing: -.04em; }
.not-found p { color: #b9c7d3; font-size: 13px; line-height: 1.8; }
.not-found .download-btn { margin-top: 18px; }
.not-found .tiny { color: #607786; font-size: 10px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 54px; }
  .phone-stage { min-height: 370px; }
  .phone { width: min(250px, 70vw); height: 440px; transform: rotate(3deg); }
  .phone-screen { min-height: 330px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .top { min-height: 66px; padding: max(14px, env(safe-area-inset-top)) 16px 12px; flex-wrap: wrap; }
  .brand img { width: 128px; }
  .top-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .lang { flex: 1; justify-content: space-between; }
  .lang button { flex: 1; padding: 5px 6px; }
  .hero { padding: 38px 16px 54px; gap: 28px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .lead { font-size: 13.5px; }
  .download-btn { width: 100%; padding: 0 16px; }
  .download-meta { gap: 4px 12px; }
  .trust-row { gap: 12px 18px; font-size: 10.5px; }
  .phone-stage { min-height: 330px; }
  .phone { width: min(232px, 70vw); height: 410px; }
  .phone-screen { min-height: 305px; padding: 18px 14px; }
  .step-grid, .feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .steps, .features { padding: 44px 16px; }
  .features { padding-top: 8px; }
  .section-head h2 { font-size: 28px; }
  .step-grid article, .feature-grid article { padding: 18px; }
  .install { margin: 6px 16px 16px; padding: 24px 20px; flex-direction: column; align-items: stretch; gap: 16px; }
  .ghost-btn { text-align: center; width: 100%; }
  .cta { margin: 16px 16px 42px; padding: 38px 20px; }
  .cta h2 { font-size: 28px; }
  footer { padding: 26px 16px calc(20px + env(safe-area-inset-bottom)); }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 14px; }
  .not-found { padding: 28px 22px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 32px; }
  .hero { padding-top: 30px; }
  .phone { width: 210px; height: 380px; }
  .phone-screen { min-height: 280px; }
  .ps-actions { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Content page benefit strip */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 54px max(24px, calc((100vw - 1180px) / 2)) 64px;
}
.benefits article {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .65);
}
.benefits article > span {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}
.benefits h2 {
  margin: 14px 0 7px;
  font-size: 15px;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
@media (max-width: 700px) {
  .benefits {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 38px 16px 44px;
  }
  .benefits article { padding: 18px; }
}
