:root {
  --ink: #061719;
  --ink-soft: #0b2524;
  --emerald: #079b60;
  --emerald-bright: #12c778;
  --gold: #f3b633;
  --gold-light: #ffd66f;
  --cream: #fffaf0;
  --paper: #f5f0e6;
  --muted: #61706b;
  --line: rgba(7, 43, 38, 0.11);
  --shadow: 0 20px 50px rgba(5, 39, 33, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #04120f;
  background: var(--gold-light);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  color: #fff;
  background:
    radial-gradient(circle at 79% 30%, rgba(18, 199, 120, 0.22), transparent 31%),
    radial-gradient(circle at 20% 100%, rgba(243, 182, 51, 0.13), transparent 35%),
    linear-gradient(135deg, #041216 0%, #062827 55%, #061917 100%);
}

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

.hero::before {
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(30deg, transparent 46%, rgba(255, 214, 111, 0.18) 47%, rgba(255, 214, 111, 0.18) 49%, transparent 50%),
    linear-gradient(150deg, transparent 46%, rgba(255, 214, 111, 0.13) 47%, rgba(255, 214, 111, 0.13) 49%, transparent 50%);
  background-size: 58px 100px;
  mask-image: linear-gradient(to right, black, transparent 58%);
}

.hero::after {
  width: 520px;
  height: 520px;
  right: -190px;
  top: -250px;
  border: 1px solid rgba(243, 182, 51, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(243, 182, 51, 0.025), 0 0 0 120px rgba(18, 199, 120, 0.018);
}

.topbar,
.hero-layout,
.trust-strip,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(243, 182, 51, 0.18);
  object-fit: cover;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  letter-spacing: 0.09em;
}

.brand-copy small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-link {
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--gold-light);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 500px;
  align-items: center;
}

.hero-copy {
  max-width: 650px;
  padding: 70px 0 85px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--gold);
}

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

h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.97;
  letter-spacing: -0.045em;
}

h1 em {
  color: var(--gold-light);
  font-style: normal;
}

.hero-intro {
  max-width: 560px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.65;
}

.hero-languages {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.7;
}

.hero-languages span {
  margin: 0 5px;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 31px;
}

.primary-action {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 24px;
  border-radius: 16px;
  color: #09170e;
  background: linear-gradient(135deg, #ffe08a, var(--gold));
  box-shadow: 0 12px 30px rgba(243, 182, 51, 0.2);
  font-weight: 850;
  text-decoration: none;
}

.primary-action svg,
.tap-note svg,
.search-box svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tap-note {
  display: flex;
  max-width: 210px;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.4;
}

.tap-note svg {
  flex: 0 0 auto;
  color: var(--emerald-bright);
}

.hero-art {
  display: none;
}

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px 22px 0 0;
  background: rgba(2, 16, 17, 0.7);
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.trust-strip > div {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 13px;
  padding-inline: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(18, 199, 120, 0.36);
  border-radius: 11px;
  color: var(--emerald-bright);
  background: rgba(18, 199, 120, 0.08);
  font-weight: 900;
}

.trust-strip p {
  display: grid;
  gap: 4px;
  margin-bottom: 0;
}

.trust-strip strong {
  font-size: 13px;
}

.trust-strip small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

main {
  padding: 90px 0 70px;
}

.download-section {
  scroll-margin-top: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-kicker {
  margin-bottom: 10px;
  color: #977016;
}

h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 5vw, 53px);
  letter-spacing: -0.035em;
}

.section-heading > div > p:last-child,
.install-intro > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.search-box {
  display: flex;
  width: min(100%, 330px);
  height: 52px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(6, 23, 25, 0.05);
}

.search-box:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(7, 155, 96, 0.1);
}

.search-box svg {
  flex: 0 0 auto;
  color: #68726f;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.filter-row {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-top: 32px;
  padding-bottom: 5px;
  scrollbar-width: thin;
}

.filter-chip {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #52615c;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--ink-soft);
  color: #fff;
  background: var(--ink-soft);
}

.results-status {
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

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

.country-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 30px rgba(6, 23, 25, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.country-card::after {
  position: absolute;
  width: 85px;
  height: 85px;
  right: -32px;
  top: -34px;
  border: 16px solid rgba(7, 155, 96, 0.035);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.country-card:hover {
  border-color: rgba(7, 155, 96, 0.25);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.country-card.is-hidden {
  display: none;
}

.country-card.is-targeted {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(243, 182, 51, 0.17), var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flag {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 16px rgba(6, 23, 25, 0.08);
  font-size: 27px;
}

.country-code {
  padding: 6px 8px;
  border-radius: 8px;
  color: #5b6965;
  background: #edf3ef;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.country-copy {
  margin: 20px 0 18px;
}

.country-copy h3 {
  margin-bottom: 7px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.country-copy h3 small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.country-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.country-copy p span {
  margin: 0 4px;
  color: var(--gold);
}

.download-button {
  display: flex;
  min-height: 59px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px 8px 16px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #087f52, #056945);
  box-shadow: 0 9px 21px rgba(5, 105, 69, 0.18);
  text-decoration: none;
}

.download-button:hover {
  background: linear-gradient(135deg, #09a366, #087c52);
}

.download-button:focus-visible,
.primary-action:focus-visible,
.filter-chip:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.download-button > span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.download-button[dir="rtl"] > span:first-child {
  text-align: right;
}

.download-button strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-button small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  color: var(--ink);
  background: var(--gold-light);
  font-size: 20px;
  font-weight: 900;
}

.empty-state {
  padding: 55px 20px;
  border: 1px dashed rgba(7, 43, 38, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state span {
  display: block;
  color: var(--emerald);
  font-size: 30px;
}

.empty-state h3 {
  margin: 10px 0 6px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.install-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 55px;
  margin-top: 100px;
  padding: 48px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 5% 100%, rgba(243, 182, 51, 0.12), transparent 42%),
    linear-gradient(135deg, var(--ink), #0b322d);
  box-shadow: var(--shadow);
}

.install-intro .section-kicker {
  color: var(--gold-light);
}

.install-intro h2 {
  font-size: 40px;
}

.install-intro > p:last-child {
  color: rgba(255, 255, 255, 0.59);
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.steps li > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: var(--gold-light);
  font-weight: 900;
}

.steps p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  line-height: 1.5;
}

.safety-note {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 22px 26px;
  border: 1px solid rgba(7, 155, 96, 0.17);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.safety-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--emerald);
  font-weight: 900;
}

.safety-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: #60706a;
  font-size: 12px;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.footer-brand strong {
  color: var(--ink);
  letter-spacing: 0.08em;
}

footer p {
  margin-bottom: 0;
}

.footer-note {
  justify-self: end;
}

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

@media (min-width: 800px) {
  .hero-layout {
    grid-template-columns: minmax(0, 0.93fr) minmax(390px, 0.77fr);
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero-art {
    position: absolute;
    inset: 0 calc((100vw - min(100vw - 40px, var(--max-width))) / -2) 0 42%;
    display: block;
    background-image:
      linear-gradient(90deg, #061e1e 0%, rgba(6, 30, 30, 0.7) 13%, transparent 38%),
      url("assets/official-apk-hub-hero.png");
    background-position: center, center right;
    background-size: cover, cover;
  }

  .coverage-card {
    position: absolute;
    right: max(6vw, 50px);
    bottom: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.66);
    background: rgba(3, 20, 19, 0.72);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    font-size: 11px;
    line-height: 1.4;
    backdrop-filter: blur(10px);
  }

  .coverage-number {
    color: var(--gold-light);
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
  }
}

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

  .install-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .topbar,
  .hero-layout,
  .trust-strip,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    min-height: 0;
  }

  .topbar {
    min-height: 74px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy small,
  .nav-link {
    display: none;
  }

  .hero-copy {
    padding: 55px 0 65px;
  }

  h1 {
    font-size: clamp(43px, 14vw, 59px);
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-action {
    width: 100%;
  }

  .tap-note {
    max-width: none;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    padding: 8px 18px;
  }

  .trust-strip > div {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .trust-strip > div:last-child {
    border-bottom: 0;
  }

  main {
    padding: 62px 0 50px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }

  .search-box {
    width: 100%;
  }

  .filter-row {
    margin-right: -14px;
    padding-right: 14px;
  }

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

  .country-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 15px;
    padding: 17px;
  }

  .country-card.is-hidden {
    display: none;
  }

  .card-top {
    grid-row: 1 / span 2;
  }

  .country-code {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 6px;
  }

  .country-copy {
    margin: 0 26px 11px 0;
  }

  .country-copy h3 {
    margin-bottom: 4px;
    font-size: 18px;
  }

  .download-button {
    grid-column: 2;
    min-height: 52px;
  }

  .install-section {
    margin-top: 70px;
    padding: 28px 20px;
  }

  .install-intro h2 {
    font-size: 34px;
  }

  .steps li {
    align-items: flex-start;
  }

  .safety-note {
    align-items: flex-start;
    padding: 18px;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-note {
    justify-self: auto;
  }
}

@media (max-width: 380px) {
  .hero-languages {
    display: none;
  }

  .country-card {
    grid-template-columns: 1fr;
  }

  .card-top {
    grid-row: auto;
    margin-bottom: 12px;
  }

  .country-copy,
  .download-button {
    grid-column: 1;
  }

  .country-copy {
    margin-right: 0;
  }
}

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

  .country-card {
    transition: none;
  }
}
