:root {
  color-scheme: dark;
  --bg: #060914;
  --surface: #0d1322;
  --surface-2: #111a2c;
  --surface-3: #162239;
  --line: rgba(176, 199, 255, 0.13);
  --line-strong: rgba(176, 199, 255, 0.24);
  --text: #f6f8ff;
  --muted: #9ba7bb;
  --muted-2: #758198;
  --blue: #4a99ff;
  --violet: #7758ff;
  --green: #37db82;
  --max: 1240px;
  --shadow: 0 30px 80px rgba(0, 5, 20, 0.36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 76% -8%, rgba(48, 117, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 18% 18%, rgba(104, 67, 255, 0.11), transparent 34rem),
    linear-gradient(180deg, #070b17 0%, var(--bg) 46rem);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(120, 155, 220, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 155, 220, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  pointer-events: none;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max));
  min-height: 82px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(187, 207, 255, 0.1);
  background: rgba(6, 9, 20, 0.75);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.brand, .footer-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(145deg, #3098ff, #7249f5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 30px rgba(42, 101, 255, 0.3);
  font-size: 20px;
  font-weight: 850;
}
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: -0.025em; }
.brand small { margin-top: 1px; color: var(--muted-2); font-size: 11px; line-height: 1.2; }
.brand-mark-small { width: 40px; height: 40px; border-radius: 13px; font-size: 18px; }

.support-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(55, 219, 130, 0.2);
  border-radius: 999px;
  background: rgba(55, 219, 130, 0.07);
  color: #dbffe9;
  font-size: 14px;
  font-weight: 700;
  transition: 160ms ease;
}
.support-link:hover { border-color: rgba(55, 219, 130, 0.45); background: rgba(55, 219, 130, 0.12); transform: translateY(-1px); }
.whatsapp-icon { flex: 0 0 auto; fill: none; stroke: #4ae18d; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.55; }
.whatsapp-icon path + path { fill: #4ae18d; stroke: none; }
.support-short { display: none; }

main, footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.catalog-intro {
  position: relative;
  min-height: 560px;
  margin: 24px 0 72px;
  overflow: hidden;
  border: 1px solid rgba(162, 191, 255, 0.17);
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(12, 20, 38, 0.97), rgba(8, 12, 25, 0.95));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.catalog-intro::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #09101f 0%, #09101f 64%, rgba(9, 16, 31, 0.92) 70%, rgba(9, 16, 31, 0.34) 82%, rgba(9, 16, 31, 0.08) 100%);
  content: "";
  pointer-events: none;
}

.hero-art { position: absolute; inset: 0 0 0 36%; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; filter: saturate(1.08) contrast(1.04); transform: scale(1.22); transform-origin: right center; }
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 83% 42%, rgba(45, 151, 255, 0.22), transparent 22rem),
    linear-gradient(120deg, transparent 48%, rgba(99, 74, 255, 0.08));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 560px;
  width: min(63%, 720px);
  flex-direction: column;
  justify-content: center;
  padding: 54px 58px;
}

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 19px; color: #cad6e9; font-size: 14px; font-weight: 720; }
.eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(74, 153, 255, 0.12), 0 0 22px rgba(74, 153, 255, 0.85); }
.catalog-intro h1 { margin: 0; font-size: clamp(52px, 6.2vw, 84px); font-weight: 790; letter-spacing: -0.062em; line-height: 0.92; }
.catalog-intro .hero-copy > p:not(.catalog-updated) { max-width: 560px; margin: 24px 0 28px; color: #a8b3c7; font-size: clamp(17px, 2vw, 20px); }

.search-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 640px);
  border: 1px solid rgba(183, 205, 255, 0.21);
  border-radius: 19px;
  background: rgba(8, 14, 29, 0.82);
  box-shadow: 0 18px 50px rgba(0, 5, 20, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  transition: 160ms ease;
}
.search-shell:focus-within { border-color: rgba(90, 162, 255, 0.75); box-shadow: 0 0 0 4px rgba(74, 153, 255, 0.11), 0 18px 50px rgba(0, 5, 20, 0.4); }
.search-shell > svg { margin-left: 19px; fill: none; stroke: #b3bfd1; stroke-linecap: round; stroke-width: 1.8; }
.search-shell input { width: 100%; min-height: 62px; padding: 0 56px 0 14px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 17px; }
.search-shell input::placeholder { color: #7d899d; }
.search-shell input::-webkit-search-cancel-button { appearance: none; }
.clear-search { position: absolute; right: 11px; display: none; width: 40px; height: 40px; padding: 0; place-items: center; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #c1cada; cursor: pointer; }
.clear-search.visible { display: grid; }
.clear-search svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }

.service-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.service-facts span { padding: 8px 11px; border: 1px solid rgba(181, 203, 255, 0.13); border-radius: 999px; background: rgba(255,255,255,.045); color: #8f9bb0; font-size: 12px; }
.service-facts b { color: #eef4ff; font-weight: 760; }
.catalog-updated { margin: 13px 2px 0; color: #69768b; font-size: 12px; }

.catalog-section { padding-bottom: 72px; }
.catalog-toolbar { margin-bottom: 26px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-kicker { color: #6680a9; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-heading h2 { margin: 4px 0 0; font-size: clamp(31px, 4vw, 48px); letter-spacing: -.045em; line-height: 1; }
#result-count { padding-bottom: 3px; color: var(--muted-2); font-size: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.filter-short { display: none; }
.filter-button {
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: #9ca8bb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 150ms ease;
}
.filter-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.05); color: #dce5f5; }
.filter-button[aria-pressed="true"] { border-color: rgba(92, 155, 255, .5); background: linear-gradient(135deg, rgba(51, 145, 255, .25), rgba(111, 76, 255, .22)); color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.09); }

.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(18, 28, 48, .9), rgba(10, 16, 29, .92));
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}
.app-card:hover { transform: translateY(-3px); border-color: rgba(116, 165, 255, .3); box-shadow: 0 22px 52px rgba(0, 5, 20, .25), inset 0 1px rgba(255,255,255,.06); }
.card-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.app-icon { position: relative; display: grid; width: 60px; height: 60px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: linear-gradient(145deg, #283c67, #10182b); box-shadow: 0 12px 28px rgba(0,0,0,.26); color: #dbe7ff; font-weight: 850; }
.app-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-meta { min-width: 0; }
.app-meta h3 { margin: 0; overflow: hidden; font-size: 18px; letter-spacing: -.025em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.app-category { margin-top: 4px; overflow: hidden; color: #7f8ca2; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.version-label { margin: 20px 0 9px; color: #65738a; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.version-list { display: flex; flex-wrap: wrap; gap: 8px; }
.version-link, .show-more { min-height: 39px; padding: 9px 12px; border: 1px solid rgba(159, 188, 249, .14); border-radius: 12px; background: rgba(255,255,255,.035); color: #bec9da; font-size: 12px; font-weight: 700; line-height: 19px; transition: 150ms ease; }
.version-link:hover { border-color: rgba(81, 155, 255, .46); background: rgba(69, 139, 255, .12); color: #fff; }
.version-link::after { margin-left: 7px; color: #5f9dff; content: "›"; font-size: 16px; line-height: 0; }
.version-link.is-extra { display: none; }
.app-card.versions-expanded .version-link.is-extra { display: inline-flex; }
.show-more { border-style: dashed; color: #7f9ac3; cursor: pointer; }
.show-more:hover { border-color: rgba(113, 155, 230, .4); color: #bfd3f5; }

.empty-state, .noscript-message { padding: 56px 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.025); text-align: center; }
.empty-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 16px; place-items: center; border-radius: 16px; background: rgba(74,153,255,.12); color: var(--blue); font-weight: 850; }
.empty-state h2 { margin: 0 0 6px; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-state button { margin-top: 18px; min-height: 44px; padding: 0 17px; border: 1px solid rgba(103,165,255,.36); border-radius: 13px; background: rgba(74,153,255,.12); color: #eaf3ff; cursor: pointer; }

.how-it-works { display: grid; grid-template-columns: .8fr 1.35fr; gap: 42px; margin-bottom: 72px; padding: 42px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(145deg, rgba(17, 27, 46, .82), rgba(10, 15, 27, .86)); }
.how-heading > span { color: #6281b1; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.how-heading h2 { margin: 9px 0 12px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; line-height: 1; }
.how-heading p { margin: 0; color: var(--muted); }
.how-it-works ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.how-it-works li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid rgba(173, 199, 255, .1); border-radius: 17px; background: rgba(255,255,255,.025); }
.how-it-works li > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: linear-gradient(145deg, rgba(44,140,255,.22), rgba(115,76,255,.18)); color: #88baff; font-size: 12px; font-weight: 850; }
.how-it-works strong { display: block; margin-bottom: 2px; }
.how-it-works li p { margin: 0; color: #7f8ca1; font-size: 13px; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px 0 max(42px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-brand p, .disclaimer { margin: 2px 0 0; color: #69758a; font-size: 12px; }
.disclaimer { max-width: 660px; text-align: right; }

.page-error { display: grid; min-height: 100vh; padding: 20px; place-items: center; }
.page-error::after { position: fixed; inset: 0; z-index: -1; background: url("assets/social/garant-mobile-og.jpg") 72% center / cover no-repeat; opacity: .22; content: ""; }
.error-card { width: min(100%, 560px); margin: 0; padding: 40px 30px; border: 1px solid var(--line-strong); border-radius: 30px; background: rgba(8,14,28,.9); box-shadow: var(--shadow); text-align: center; backdrop-filter: blur(20px); }
.error-card .brand-mark { margin: 0 auto 24px; }
.error-code { margin: 0 0 8px; color: #7182a0; font-size: 11px; font-weight: 820; letter-spacing: .13em; }
.error-card h1 { margin: 0 0 12px; font-size: clamp(34px, 8vw, 52px); letter-spacing: -.05em; line-height: 1; }
.error-card > p:not(.error-code) { margin: 0 auto 24px; color: var(--muted); }
.error-home { display: flex; min-height: 56px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: linear-gradient(135deg, #329eff, #6f4cff); font-weight: 820; }

.brand:focus-visible, .support-link:focus-visible, .search-shell input:focus-visible, .clear-search:focus-visible, .filter-button:focus-visible, .version-link:focus-visible, .show-more:focus-visible, .empty-state button:focus-visible { outline: 3px solid rgba(83, 158, 255, .45); outline-offset: 3px; }

@media (max-width: 980px) {
  .catalog-intro { min-height: 540px; }
  .hero-copy { width: 72%; min-height: 540px; padding: 46px 42px; }
  .hero-art { left: 28%; }
  .catalog-intro::after { background: linear-gradient(90deg, #09101f 0%, #09101f 66%, rgba(9,16,31,.86) 73%, rgba(9,16,31,.22) 87%, rgba(9,16,31,.08)); }
  .app-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .how-it-works { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 680px) {
  .site-header, main, footer { width: min(calc(100% - 20px), 620px); }
  .site-header { min-height: 70px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 13px; font-size: 18px; }
  .brand small { display: none; }
  .support-link { min-height: 42px; padding: 0 13px; font-size: 13px; }
  .support-full { display: none; }
  .support-short { display: inline; }

  .catalog-intro { min-height: 588px; margin: 12px 0 48px; border-radius: 28px; }
  .hero-art { inset: 0; }
  .hero-art img { object-position: right center; transform: scale(1.3); }
  .catalog-intro::after { background: linear-gradient(180deg, rgba(7,12,27,.2) 0%, rgba(7,12,27,.62) 30%, #080e1d 67%, #080e1d 100%); }
  .hero-grid { background: radial-gradient(circle at 75% 22%, rgba(38,139,255,.28), transparent 17rem); }
  .hero-copy { width: 100%; min-height: 588px; justify-content: flex-end; padding: 28px 22px 24px; }
  .eyebrow { margin-bottom: 13px; font-size: 12px; }
  .catalog-intro h1 { font-size: clamp(44px, 13vw, 62px); line-height: .93; }
  .catalog-intro .hero-copy > p:not(.catalog-updated) { margin: 17px 0 20px; font-size: 16px; line-height: 1.42; }
  .search-shell { border-radius: 16px; }
  .search-shell input { min-height: 58px; font-size: 16px; }
  .service-facts { gap: 6px; margin-top: 13px; }
  .service-facts span { padding: 6px 9px; font-size: 10px; }
  .catalog-updated { margin-top: 10px; font-size: 10px; }

  .catalog-section { padding-bottom: 52px; }
  .section-heading { align-items: end; }
  .section-heading h2 { font-size: 34px; }
  #result-count { font-size: 12px; }
  .filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .filter-button { min-width: 0; padding: 0 8px; font-size: 11px; }
  .filter-full { display: none; }
  .filter-short { display: inline; }
  .app-grid { grid-template-columns: 1fr; gap: 11px; }
  .app-card { padding: 18px; border-radius: 21px; }
  .app-card:hover { transform: none; }
  .app-icon { width: 56px; height: 56px; }
  .version-label { margin-top: 17px; }

  .how-it-works { gap: 22px; margin-bottom: 52px; padding: 26px 18px; border-radius: 24px; }
  .how-it-works li { grid-template-columns: 43px 1fr; padding: 14px; }
  .how-it-works li > span { width: 38px; height: 38px; }
  footer { align-items: flex-start; flex-direction: column; gap: 22px; }
  .disclaimer { text-align: left; }
}

@media (max-width: 390px) {
  .brand-copy strong { font-size: 14px; }
  .support-link { padding-inline: 10px; }
  .catalog-intro { min-height: 570px; }
  .hero-copy { min-height: 570px; padding-inline: 18px; }
  .catalog-intro h1 { font-size: 43px; }
  .service-facts span:last-child { display: none; }
  .filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filter-button:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
