@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #090b0e;
  --surface: #11151a;
  --surface-2: #171c22;
  --line: rgba(255,255,255,.075);
  --text: #f4f6f8;
  --muted: #929ba5;
  --accent: #b8f36b;
  --accent-dark: #9bd94e;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% -25%, rgba(184,243,107,.09), transparent 48%),
    radial-gradient(ellipse at 100% 45%, rgba(73,111,83,.055), transparent 35%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

/* Header */
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
}
.brandmark, .mini-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #10150c;
  background: var(--accent);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}
.muted { color: #89929b; }
.topbar nav { display: flex; align-items: center; gap: 34px; }
.topbar nav a, .footer a:last-child {
  color: #a6afb8;
  font-size: 12px;
  font-weight: 600;
  transition: color .2s;
}
.topbar nav a:hover, .footer a:last-child:hover { color: var(--accent); }
.top-cta {
  padding: 11px 16px;
  border: 1px solid rgba(184,243,107,.28);
  border-radius: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  transition: background .2s, border-color .2s;
}
.top-cta:hover { background: rgba(184,243,107,.08); border-color: var(--accent); }
.top-cta span { margin-left: 8px; }
.menu { display: none; }

/* Intro */
.hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  padding-block: 62px 54px;
}
.hero-copy { max-width: 720px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(184,243,107,.55);
}
.hero h1 {
  margin: 20px 0 13px;
  font-size: clamp(36px, 5.3vw, 62px);
  line-height: 1.08;
  letter-spacing: -.055em;
  font-weight: 800;
}
.hero h1 em, .how h2 em { color: var(--accent); font-style: normal; }
.lead {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.hero-actions { display: flex; align-items: center; gap: 23px; margin-top: 27px; }
.btn {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 19px;
  border: 0;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  color: #10150c;
  background: var(--accent);
  box-shadow: 0 8px 28px rgba(184,243,107,.12);
}
.btn.primary:hover { background: #c9ff83; box-shadow: 0 10px 34px rgba(184,243,107,.2); }
.btn.secondary { color: var(--text); background: #20262d; border: 1px solid var(--line); }
.text-link { color: #b7c0c8; font-size: 12px; font-weight: 700; }
.text-link span { margin-left: 5px; }
.trust { margin-top: 24px; color: #78838d; font-size: 11px; }
.trust span { color: var(--accent); margin-right: 7px; }
.hero-art { display: none !important; }

/* Catalog */
.catalog { padding-top: 26px; padding-bottom: 100px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2, .support h2 {
  margin: 10px 0 7px;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.2;
  letter-spacing: -.045em;
}
.section-head p, .support p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.catalog-count { display: flex; flex-direction: column; align-items: end; gap: 4px; }
.catalog-count b { color: var(--accent); font-size: 29px; letter-spacing: -.04em; }
.catalog-count span { color: #77818b; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.search {
  width: min(340px, 100%);
  height: 47px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #11151a;
  color: #78838d;
  transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: rgba(184,243,107,.48); background: #141a1f; }
.search .ui-icon { width: 17px; height: 17px; flex: 0 0 auto; }
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}
.search input::placeholder { color: #737e88; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  min-height: 37px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #11151a;
  color: #9ba5ae;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}
.chip:hover { border-color: rgba(184,243,107,.3); color: var(--text); }
.chip.active { border-color: var(--accent); background: var(--accent); color: #10150c; }

/* App cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.app-card {
  min-width: 0;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, #151a20, #101419);
  transition: transform .22s, border-color .22s, background .22s, box-shadow .22s;
  cursor: pointer;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184,243,107,.35);
  background: linear-gradient(145deg, #1a2026, #12171b);
  box-shadow: 0 14px 34px rgba(0,0,0,.2);
}
.card-top { width: 100%; display: flex; align-items: center; margin-bottom: 17px; }
.app-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 17px;
  background: #252c34;
  color: white;
  font-size: 25px;
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(0,0,0,.2);
}
.app-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.app-card h3 {
  margin: 0 0 5px;
  color: #f2f4f6;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.app-card p {
  min-height: 36px;
  margin: 0 0 15px;
  color: #89939d;
  font-size: 11px;
  line-height: 1.65;
}
.card-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,.055);
  color: #8d98a2;
  font-size: 10px;
}
.available { color: #a9d878; font-size: 9px; font-weight: 700; white-space: nowrap; }
.empty {
  padding: 45px 15px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.hidden { display: none !important; }

/* Installation steps */
.how {
  display: grid;
  grid-template-columns: .8fr 1.5fr;
  gap: 55px;
  padding-top: 60px;
  padding-bottom: 85px;
  border-top: 1px solid var(--line);
}
.how h2 { margin: 13px 0; font-size: 37px; line-height: 1.15; letter-spacing: -.05em; }
.how-intro p { max-width: 280px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps article {
  position: relative;
  min-height: 185px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #11151a;
}
.step-no { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.step-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 17px 0 13px;
  border-radius: 10px;
  background: rgba(184,243,107,.1);
  color: var(--accent);
}
.step-icon svg { width: 17px; height: 17px; }
.steps h3 { margin: 0 0 7px; font-size: 12px; }
.steps p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }

/* Support and footer */
.support {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(110deg, #151b1e, #11151a);
}
.support-mark {
  width: 49px;
  height: 49px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(184,243,107,.1);
  color: var(--accent);
}
.support-mark svg { width: 23px; height: 23px; }
.support h2 { margin: 5px 0; font-size: 20px; }
.support p { font-size: 11px; }
.support .btn { margin-left: auto; white-space: nowrap; }
.footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #707b85;
  font-size: 10px;
}
.footer .brand { color: var(--text); font-size: 12px; }
.footer .brandmark { width: 29px; height: 29px; border-radius: 9px; font-size: 17px; }

/* App detail modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.76); backdrop-filter: blur(9px); }
.modal-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(88vh, 850px);
  overflow-y: auto;
  padding: 31px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 25px;
  background: #151a20;
  box-shadow: 0 25px 90px rgba(0,0,0,.5);
  animation: modal-in .22s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #20262d;
  color: #c3cbd2;
  font-size: 22px;
  cursor: pointer;
}
.modal-icon { width: 76px; height: 76px; margin-bottom: 22px; border-radius: 21px; font-size: 31px; }
.modal-card .eyebrow { margin-bottom: 9px; }
.modal-card h2 { margin: 0 0 9px; font-size: 28px; letter-spacing: -.04em; }
.modal-card > p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.meta { margin: 17px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: #aab3bc; font-size: 11px; }
.install-step {
  margin-top: 15px;
  padding: 16px;
  border: 1px solid rgba(184,243,107,.17);
  border-radius: 14px;
  background: rgba(184,243,107,.045);
}
.step-label { display: block; margin-bottom: 8px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.install-step strong { display: block; font-size: 12px; }
.install-step p { margin: 7px 0 0; color: #a4aeb7; font-size: 11px; line-height: 1.75; }
.install-note { margin: 13px 0; color: #a4aeb7; font-size: 11px; line-height: 1.7; }
.install-btn { width: 100%; margin-top: 7px; }
.modal-foot { margin: 17px 0 0 !important; font-size: 10px !important; }
body.modal-open { overflow: hidden; }

/* Responsive */
@media (min-width: 1200px) {
  .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .topbar nav { gap: 18px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr; gap: 24px; }
  .how-intro p { max-width: 460px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { height: 66px; }
  .topbar nav, .top-cta { display: none; }
  .menu { display: none; }
  .hero { min-height: 0; padding-top: 51px; padding-bottom: 39px; }
  .hero h1 { margin-top: 17px; font-size: clamp(35px, 10vw, 47px); }
  .lead { font-size: 13px; }
  .hero-actions { gap: 17px; flex-wrap: wrap; }
  .trust { font-size: 10px; }
  .catalog { padding-top: 18px; padding-bottom: 65px; }
  .section-head { align-items: center; margin-bottom: 21px; }
  .section-head h2 { font-size: 26px; }
  .section-head p { max-width: 270px; font-size: 11px; }
  .catalog-count b { font-size: 24px; }
  .catalog-count span { font-size: 8px; }
  .filters { align-items: stretch; flex-direction: column; gap: 12px; }
  .search { width: 100%; height: 45px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; min-height: 35px; padding-inline: 13px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .app-card { min-height: 172px; padding: 14px; border-radius: 16px; }
  .card-top { margin-bottom: 13px; }
  .app-icon { width: 49px; height: 49px; border-radius: 14px; font-size: 21px; }
  .app-card h3 { font-size: 13px; }
  .app-card p { min-height: 48px; margin-bottom: 10px; font-size: 10px; line-height: 1.55; }
  .card-bottom { align-items: flex-start; flex-direction: column; gap: 5px; padding-top: 9px; font-size: 9px; }
  .available { font-size: 8px; }
  .how { gap: 18px; padding-top: 42px; padding-bottom: 55px; }
  .how h2 { font-size: 32px; }
  .steps { grid-template-columns: 1fr; gap: 9px; }
  .steps article { min-height: 0; display: grid; grid-template-columns: 35px 1fr; column-gap: 12px; padding: 15px; }
  .step-no { grid-row: span 2; padding-top: 3px; }
  .step-icon { display: none; }
  .steps h3 { margin: 0 0 4px; }
  .steps p { grid-column: 2; }
  .support { align-items: flex-start; flex-wrap: wrap; gap: 13px; padding: 18px; }
  .support-mark { width: 42px; height: 42px; }
  .support > div:nth-child(2) { flex: 1; min-width: 180px; }
  .support h2 { font-size: 18px; }
  .support p { font-size: 10px; }
  .support .btn { width: 100%; margin: 3px 0 0; }
  .footer { min-height: 110px; flex-wrap: wrap; justify-content: space-between; padding-block: 20px; }
  .footer > span { order: 3; width: 100%; line-height: 1.6; }
  .modal { align-items: end; padding: 0; }
  .modal-card {
    width: 100%;
    max-height: 91vh;
    padding: 25px 21px calc(24px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
