:root {
  color-scheme: dark;
  --bg: #070a17;
  --bg-soft: #0b1024;
  --surface: rgba(20, 25, 54, 0.78);
  --surface-strong: #151a38;
  --text: #f7f7ff;
  --muted: #b9bdd4;
  --line: rgba(180, 166, 255, 0.22);
  --violet: #a98bff;
  --pink: #ed73dc;
  --cyan: #58d8f5;
  --gold: #f5bf70;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 28px;
  --shell: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 10%, rgba(88, 216, 245, 0.10), transparent 30rem),
    radial-gradient(circle at 85% 18%, rgba(237, 115, 220, 0.13), transparent 34rem),
    radial-gradient(circle at 50% 100%, rgba(95, 68, 210, 0.18), transparent 42rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 8px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 12px;
  background: white;
  color: #11152d;
  font-weight: 800;
}

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

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 23, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--cyan), var(--violet) 55%, var(--pink));
  color: white;
  box-shadow: 0 0 24px rgba(169, 139, 255, 0.32);
}

.site-nav { display: flex; gap: 6px; }
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.06); color: white; }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead { color: var(--muted); font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.6; }

.home-hero { padding-block: clamp(76px, 12vw, 150px) clamp(64px, 9vw, 110px); }
.home-hero h1 { max-width: 980px; }
.home-hero h1 span {
  background: linear-gradient(90deg, var(--violet), var(--pink) 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero .lead { max-width: 720px; margin-top: 28px; }

.catalog { padding-bottom: 110px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}
.section-heading > p { max-width: 360px; color: var(--muted); }
.catalog-grid { display: grid; gap: 24px; }

.app-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(22px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(29, 35, 73, 0.9), rgba(13, 17, 38, 0.88));
  box-shadow: var(--shadow);
}

.app-card-visual {
  border-radius: 26%;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42), 0 0 60px rgba(88, 216, 245, 0.10);
  overflow: hidden;
}

.app-card-body h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.app-card-body h2 a { text-decoration: none; }
.app-card-body > p:not(.eyebrow) { max-width: 650px; margin-top: 20px; color: var(--muted); font-size: 1.08rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #d7d9e8;
  font-size: 0.86rem;
  font-weight: 750;
}
.chip-accent { border-color: rgba(88, 216, 245, 0.42); background: rgba(88, 216, 245, 0.11); color: #a9efff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 22px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 850;
}

.principles {
  margin-bottom: 100px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}
.principles > div:first-child { margin-bottom: 34px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle-grid article { padding: 22px; border-radius: 20px; background: rgba(6, 9, 22, 0.55); }
.principle-grid strong { font-size: 1.05rem; }
.principle-grid p { margin-top: 8px; color: var(--muted); }

.app-hero {
  display: grid;
  grid-template-columns: minmax(230px, 390px) 1fr;
  gap: clamp(38px, 7vw, 90px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 120px) 70px;
}
.app-icon-wrap {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 30%;
  background: linear-gradient(145deg, rgba(169, 139, 255, 0.16), rgba(88, 216, 245, 0.06));
  box-shadow: var(--shadow);
}
.app-icon { border-radius: 26%; }
.app-hero-copy h1 { overflow-wrap: anywhere; font-size: clamp(3rem, 6.5vw, 5.8rem); }
.app-hero-copy .lead { max-width: 690px; margin-top: 24px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 850;
}
.button-primary { background: linear-gradient(135deg, var(--violet), #7655ea); color: white; box-shadow: 0 14px 30px rgba(118, 85, 234, 0.26); }
.button-secondary { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); }
.button-muted { border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.035); cursor: default; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 90px; }
.stat-grid div { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.stat-grid strong { display: block; font-size: clamp(1.7rem, 3vw, 2.5rem); color: white; line-height: 1; }
.stat-grid span { display: block; margin-top: 9px; color: var(--muted); font-size: 0.9rem; }

.rich-content { padding-bottom: 90px; }
.rich-content > h2 { max-width: 800px; margin-top: 90px; }
.rich-content > h2:first-child { margin-top: 0; }
.rich-content > p { max-width: 850px; margin-top: 22px; color: var(--muted); font-size: 1.08rem; }
.rich-content code { padding: 0.12em 0.35em; border-radius: 7px; background: rgba(255, 255, 255, 0.09); font-family: ui-monospace, monospace; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; }
.feature-grid section { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.feature-grid p { margin-top: 12px; color: var(--muted); }
.feature-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 13px; background: linear-gradient(135deg, rgba(88, 216, 245, 0.2), rgba(169, 139, 255, 0.25)); color: var(--cyan); font-size: 1.35rem; }

.showcase { margin: 32px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #050713; box-shadow: var(--shadow); }
.showcase img { width: 100%; }
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.document-links {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 100px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(29, 35, 73, 0.8), rgba(13, 17, 38, 0.85));
}
.document-links > div > p:last-child { margin-top: 18px; color: var(--muted); }
.document-grid { display: grid; gap: 10px; }
.document-grid a { display: flex; flex-direction: column; min-height: 88px; justify-content: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(5, 7, 19, 0.46); text-decoration: none; }
.document-grid a:hover { border-color: rgba(88, 216, 245, 0.54); background: rgba(88, 216, 245, 0.07); }
.document-grid span { margin-top: 3px; color: var(--muted); font-size: 0.9rem; }

.document-shell { max-width: 900px; padding-block: 48px 100px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 58px; color: var(--muted); font-size: 0.92rem; }
.breadcrumbs a { min-height: 32px; display: inline-flex; align-items: center; }
.document-header { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.document-header h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.updated { margin-top: 18px; color: var(--muted); }
.document-content { padding-top: 42px; }
.document-content h2 { margin: 48px 0 16px; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.document-content h2:first-child { margin-top: 0; }
.document-content h3 { margin: 34px 0 12px; }
.document-content p, .document-content li { color: #d2d5e5; }
.document-content p + p { margin-top: 18px; }
.document-content ul, .document-content ol { padding-left: 1.35rem; }
.document-content li + li { margin-top: 8px; }
.document-content a { color: #8feaff; text-underline-offset: 3px; }

.error-page { min-height: 66vh; display: grid; place-content: center; text-align: center; padding-block: 80px; }
.error-code { color: var(--violet); font-size: clamp(4rem, 14vw, 9rem); font-weight: 950; line-height: 1; }
.error-page p:not(.error-code) { max-width: 560px; margin: 20px auto 0; color: var(--muted); }
.error-page .hero-actions { justify-content: center; }

.site-footer { border-top: 1px solid var(--line); background: rgba(3, 5, 13, 0.56); }
.footer-inner { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner p { margin-top: 5px; color: var(--muted); font-size: 0.9rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-inner nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 68px; }
  .site-nav a:first-child { display: none; }
  .home-hero { padding-top: 70px; }
  .section-heading, .footer-inner { align-items: flex-start; flex-direction: column; }
  .app-card, .app-hero, .document-links { grid-template-columns: 1fr; }
  .app-card-visual { width: min(62vw, 260px); }
  .app-icon-wrap { width: min(70vw, 330px); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .footer-inner { padding-block: 34px; }
}

@media (max-width: 480px) {
  .brand { font-size: 0.95rem; }
  .brand-mark { width: 31px; height: 31px; }
  .site-nav a { padding-inline: 8px; font-size: 0.9rem; }
  .app-card { grid-template-columns: 1fr; padding: 20px; }
  .app-card-visual { width: 62%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid div { padding: 16px; }
  .showcase-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* DZ Soft landing page */
.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  font-size: 1.15em;
  line-height: 1;
  vertical-align: -0.14em;
}

.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;
}

.home-page {
  --home-bg: #030515;
  --home-panel: rgba(10, 15, 38, 0.88);
  --home-panel-strong: rgba(14, 20, 49, 0.96);
  --home-border: rgba(121, 119, 224, 0.26);
  --home-copy: #f7f7ff;
  --home-muted: #a6adc8;
  --home-purple: #9b6dff;
  --home-violet: #c174ff;
  --home-cyan: #45c8fa;
  --home-green: #7de2a3;
  background: var(--home-bg);
  color: var(--home-copy);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] .home-page {
  --home-bg: #f4f5ff;
  --home-panel: rgba(255, 255, 255, 0.88);
  --home-panel-strong: rgba(255, 255, 255, 0.97);
  --home-border: rgba(79, 70, 178, 0.22);
  --home-copy: #18172a;
  --home-muted: #5f6276;
  background: var(--home-bg);
}

.home-page .shell { width: min(calc(100% - 40px), 1180px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(137, 129, 220, 0.17);
  background: rgba(3, 5, 20, 0.86);
  backdrop-filter: blur(22px) saturate(140%);
}

.header-inner { min-height: 62px; }

.brand {
  gap: 9px;
  font-size: 1.02rem;
  font-weight: 800;
}

.brand-mark {
  width: 35px;
  height: 27px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #76caff;
  font-size: 1.28rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.12em;
  text-shadow: -2px 0 0 #9f59ff, 2px 0 12px rgba(64, 205, 255, 0.8);
  box-shadow: none;
}

.site-nav { align-self: stretch; gap: 22px; }

.site-nav a {
  position: relative;
  min-height: 62px;
  padding: 0 3px;
  border-radius: 0;
  color: #a8abc0;
  font-size: 0.82rem;
  font-weight: 600;
}

.site-nav a:hover { background: transparent; color: white; }
.site-nav a.is-active { color: #ddd7ff; }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #a88aff;
  box-shadow: 0 0 12px rgba(168, 138, 255, 0.72);
}

.nav-external { margin-left: 2px; font-size: 0.9rem; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: #9ca2bd;
  cursor: pointer;
}

.theme-toggle:hover { background: rgba(162, 135, 255, 0.12); color: white; }

.home-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-bottom: 1px solid rgba(102, 92, 189, 0.16);
  background-image: linear-gradient(90deg, rgba(2, 4, 16, 0.05), rgba(2, 4, 16, 0.26)), url("../images/hero-cosmic.png");
  background-position: center;
  background-size: cover;
}

.home-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 115px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(3, 5, 21, 0.96));
}

.landing-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.38fr);
  gap: 46px;
  align-items: center;
  min-height: 430px;
  padding-block: 34px 42px;
}

.hero-intro { padding: 14px 0 0 8px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 17px;
  padding: 4px 11px;
  border: 1px solid rgba(168, 138, 255, 0.2);
  border-radius: 999px;
  background: rgba(26, 31, 68, 0.58);
  color: #b8bdd1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-intro h1 {
  max-width: 500px;
  font-size: clamp(2.2rem, 3.75vw, 3.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-intro h1 span { color: #a871ff; }

.hero-summary {
  max-width: 480px;
  margin-top: 20px;
  color: #adb2c8;
  font-size: 0.91rem;
  line-height: 1.62;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 23px;
}

.platform-list > span,
.featured-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(120, 126, 183, 0.25);
  border-radius: 999px;
  background: rgba(11, 16, 42, 0.72);
  color: #c8ccdc;
  font-size: 0.76rem;
  font-weight: 600;
}

.platform-list .material-symbols-rounded { color: #6bdca0; }

.featured-app {
  position: relative;
  min-height: 326px;
  overflow: hidden;
  border: 1px solid rgba(143, 121, 239, 0.48);
  border-radius: 25px;
  background: rgba(7, 11, 32, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(9px);
}

.featured-copy {
  position: relative;
  z-index: 4;
  width: 54%;
  min-height: 326px;
  padding: 31px 10px 25px 30px;
  background: linear-gradient(90deg, rgba(9, 14, 39, 0.98) 60%, rgba(9, 14, 39, 0));
}

.featured-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  color: #e8bf59;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-label .material-symbols-rounded { font-variation-settings: "FILL" 1; }

.featured-copy h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
  font-weight: 800;
  line-height: 1.06;
}

.featured-copy h2 span { color: #ae7aff; }
.featured-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.featured-tags > span { min-height: 27px; padding: 4px 9px; font-size: 0.67rem; }
.featured-tags > span:first-child .material-symbols-rounded { color: #66da99; }

.featured-copy > p:not(.featured-label) {
  max-width: 330px;
  margin-top: 14px;
  color: #b1b6ca;
  font-size: 0.78rem;
  line-height: 1.55;
}

.featured-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(128, 127, 183, 0.28);
  border-radius: 11px;
  color: #e6e7f1;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.home-button-primary {
  border-color: rgba(190, 156, 255, 0.78);
  background: linear-gradient(180deg, #a175ff, #6540c9);
  box-shadow: 0 9px 20px rgba(101, 64, 201, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.home-button-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.home-button-muted { background: rgba(16, 22, 52, 0.77); color: #959bb2; }

.featured-visual {
  position: absolute;
  inset: 0 0 0 37%;
  z-index: 2;
}

.featured-visual::before {
  content: "";
  position: absolute;
  inset: 12% 2% 3% 11%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 66, 255, 0.34), transparent 67%);
  filter: blur(13px);
}

.featured-wheel {
  position: absolute;
  z-index: 2;
  right: 36%;
  bottom: 28px;
  width: 205px;
  height: 205px;
  border: 2px solid rgba(214, 184, 255, 0.33);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.66), 0 0 30px rgba(113, 70, 248, 0.34);
  transform: rotate(-6deg);
}

.featured-phone {
  position: absolute;
  z-index: 3;
  right: 13px;
  bottom: -52px;
  width: 193px;
  height: 374px;
  overflow: hidden;
  border: 5px solid #10121f;
  border-radius: 32px;
  background: #070914;
  box-shadow: 0 25px 42px rgba(0, 0, 0, 0.72), 0 0 32px rgba(103, 66, 240, 0.28);
  transform: rotate(6deg);
}

.featured-phone img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.home-catalog { padding-block: 24px 20px; }

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}

.catalog-toolbar h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 750; letter-spacing: -0.025em; }

.catalog-filters { display: flex; gap: 6px; margin-top: 11px; }

.filter-chip {
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid rgba(99, 103, 157, 0.25);
  border-radius: 999px;
  background: rgba(13, 18, 43, 0.8);
  color: #a5abc2;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip:hover { color: white; border-color: rgba(158, 127, 255, 0.46); }
.filter-chip.is-active { border-color: #8a70e7; background: #7660d3; color: white; }

.catalog-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 330px);
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(96, 104, 157, 0.27);
  border-radius: 10px;
  background: rgba(9, 14, 34, 0.72);
  color: #747c9c;
}

.catalog-search:focus-within { border-color: rgba(143, 114, 245, 0.78); box-shadow: 0 0 0 3px rgba(119, 83, 224, 0.12); }
.catalog-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--home-copy); font: inherit; font-size: 0.73rem; }
.catalog-search input::placeholder { color: #727991; }

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-app-card {
  position: relative;
  min-height: 218px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(91, 100, 158, 0.28);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(14, 20, 47, 0.96), rgba(6, 10, 27, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.home-app-card[hidden] { display: none; }
.home-app-card-current { border-color: rgba(140, 112, 236, 0.7); box-shadow: 0 0 24px rgba(87, 59, 191, 0.13); }
.home-app-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.home-app-card-link::after { content: ""; position: absolute; inset: 0; }
.home-app-card-link:hover .home-app-icon { transform: scale(1.05); }

.home-app-icon {
  width: 86px;
  height: 86px;
  margin-bottom: 10px;
  border: 1px solid rgba(158, 138, 239, 0.25);
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease;
}

.is-concept:nth-child(2) .home-app-icon { object-position: 72% center; }
.is-concept:nth-child(3) .home-app-icon,
.is-concept:nth-child(4) .home-app-icon { object-position: center 46%; }
.is-concept { opacity: 0.88; }

.platform-badge {
  position: absolute;
  top: 14px;
  left: 108px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 700;
}

.platform-badge .material-symbols-rounded { font-size: 0.9rem; }
.platform-android { background: rgba(43, 121, 69, 0.24); color: #7fdd9f; }
.platform-pc { background: rgba(34, 106, 141, 0.23); color: #6bd3f4; }
.platform-web { background: rgba(82, 80, 159, 0.3); color: #a9a3ff; }

.home-app-card h3 { min-height: 34px; font-size: 0.87rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.home-app-card p { margin-top: 8px; color: #a7adc2; font-size: 0.67rem; line-height: 1.55; }

.card-action,
.soon-label {
  position: absolute;
  bottom: 13px;
  left: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(111, 119, 174, 0.25);
  border-radius: 8px;
  background: rgba(20, 26, 58, 0.82);
  color: #c2c6d7;
  font-size: 0.61rem;
  font-weight: 650;
}

.card-action { color: #eceaff; }
.soon-label { color: #7e849c; }
.catalog-empty { padding: 30px; color: var(--home-muted); text-align: center; }

.page-anatomy {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  margin-block: 2px 34px;
  padding: 18px;
  border: 1px solid rgba(89, 98, 153, 0.2);
  border-radius: 15px;
  background: rgba(8, 13, 32, 0.68);
}

.anatomy-intro h2 { font-size: 1.02rem; line-height: 1.24; letter-spacing: -0.02em; }
.anatomy-intro p { margin-top: 10px; color: #9097ae; font-size: 0.64rem; line-height: 1.55; }

.anatomy-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.anatomy-grid article { padding: 11px; border: 1px solid rgba(83, 91, 143, 0.17); border-radius: 10px; background: rgba(14, 20, 46, 0.72); }
.anatomy-icon { display: block; width: 28px; height: 28px; margin-bottom: 8px; padding: 6px; border-radius: 7px; background: rgba(99, 69, 201, 0.18); color: #a77bff; font-size: 1rem; }
.anatomy-grid article:nth-child(2) .anatomy-icon,
.anatomy-grid article:nth-child(5) .anatomy-icon { color: #55cdf5; background: rgba(35, 139, 183, 0.13); }
.anatomy-grid article:nth-child(3) .anatomy-icon { color: #d375f5; background: rgba(171, 63, 198, 0.13); }
.anatomy-grid article:nth-child(4) .anatomy-icon { color: #85d9a0; background: rgba(63, 167, 95, 0.13); }
.anatomy-grid h3 { font-size: 0.69rem; line-height: 1.28; letter-spacing: -0.01em; }
.anatomy-grid p { margin-top: 6px; color: #8f96ad; font-size: 0.56rem; line-height: 1.5; }

.home-page .site-footer { border-color: rgba(93, 95, 150, 0.2); background: rgba(2, 4, 13, 0.9); }
.home-page .footer-inner { min-height: 105px; }

@media (max-width: 1080px) {
  .landing-hero { grid-template-columns: minmax(310px, 0.82fr) minmax(500px, 1.2fr); gap: 24px; }
  .featured-wheel { right: 31%; width: 188px; height: 188px; }
  .featured-phone { right: -5px; }
  .home-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-app-card { min-height: 210px; }
  .anatomy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .home-page .shell { width: min(calc(100% - 28px), 720px); }
  .header-inner { flex-wrap: wrap; gap: 0 16px; padding-block: 8px; }
  .theme-toggle { margin-left: auto; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; gap: 20px; }
  .site-nav a:first-child { display: inline-flex; }
  .site-nav a { min-height: 42px; white-space: nowrap; }
  .landing-hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-intro { max-width: 640px; }
  .featured-app { min-height: 340px; }
  .featured-copy { width: 55%; min-height: 340px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-search { width: 100%; max-width: none; }
  .page-anatomy { grid-template-columns: 1fr; }
  .anatomy-intro { max-width: 430px; }
}

@media (max-width: 620px) {
  .home-stage { min-height: auto; background-position: 66% center; }
  .landing-hero { min-height: auto; padding-block: 40px 34px; }
  .hero-intro { padding-left: 0; }
  .hero-intro h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .hero-summary { font-size: 0.86rem; }
  .featured-app { min-height: 510px; }
  .featured-copy { width: 100%; min-height: 265px; padding: 25px 22px; background: linear-gradient(180deg, rgba(9, 14, 39, 0.98) 76%, rgba(9, 14, 39, 0)); }
  .featured-copy > p:not(.featured-label) { max-width: 92%; }
  .featured-visual { inset: auto 0 0 0; height: 280px; }
  .featured-wheel { right: auto; bottom: 18px; left: 8%; width: 174px; height: 174px; }
  .featured-phone { right: 8%; bottom: -55px; width: 158px; height: 306px; }
  .home-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-app-card { min-height: 222px; }
  .anatomy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .header-inner { gap: 0 8px; }
  .brand { font-size: 0.9rem; }
  .theme-toggle { width: 34px; height: 34px; }
  .site-nav { gap: 13px; }
  .site-nav a { font-size: 0.74rem; }
  .platform-list { gap: 6px; }
  .platform-list > span { padding-inline: 9px; font-size: 0.7rem; }
  .featured-actions { gap: 6px; }
  .home-button { padding-inline: 9px; font-size: 0.64rem; }
  .home-card-grid { grid-template-columns: 1fr; }
  .home-app-card { min-height: 198px; }
  .anatomy-grid { grid-template-columns: 1fr; }
}

body { font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(p, li) { overflow-wrap: break-word; }
:where(a, button, input):focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
:where([id]) { scroll-margin-top: 140px; }
.theme-toggle { width: 44px; height: 44px; flex-shrink: 0; }
.site-nav a { font-size: 0.9rem; min-height: 44px; }
.footer-inner { gap: 24px; padding-block: 28px; }
.footer-inner > div { flex: 0 0 230px; }
.footer-inner nav { justify-content: flex-end; gap: 4px 18px; }

.app-page { --shell: 1040px; }
.app-navigation { display: flex; justify-content: space-between; gap: 12px; padding-block: 18px 8px; font-size: 0.85rem; color: var(--muted); }
.app-navigation div { display: flex; flex-wrap: wrap; gap: 20px; }
.app-navigation a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.app-navigation a:hover { color: var(--cyan); }
.app-hero { grid-template-columns: 176px minmax(0, 1fr); gap: 36px; padding-block: 28px 36px; }
.app-icon-wrap { width: 176px; padding: 8px; border-radius: 28%; box-shadow: 0 16px 44px #0003; }
.app-hero-copy { min-width: 0; }
.app-hero-copy .eyebrow { margin-bottom: 10px; font-size: 0.72rem; }
.app-hero-copy h1 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.14; overflow-wrap: break-word; }
.app-hero-copy .lead { max-width: 58ch; margin-top: 14px; font-size: 1.05rem; line-height: 1.6; }
.app-hero-copy .chip-row { margin-top: 18px; gap: 8px; }
.app-hero-copy .hero-actions { margin-top: 20px; }
.chip { font-size: 0.8rem; }
.button { border-radius: 12px; }
.stat-grid { gap: 0; margin-bottom: 40px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.stat-grid div { min-width: 0; padding: 22px; border: 0; border-radius: 0; background: transparent; }
.stat-grid div + div { border-left: 1px solid var(--line); }
.stat-grid strong { font-size: clamp(1.2rem, 2.4vw, 1.85rem); line-height: 1.2; overflow-wrap: anywhere; }
.stat-grid span { font-size: 0.82rem; line-height: 1.5; }
.rich-content { padding-bottom: 44px; }
.rich-content > h2 { max-width: 26ch; margin-top: 44px; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.22; }
.rich-content > p { max-width: 72ch; margin-top: 16px; font-size: 1rem; line-height: 1.75; }
.rich-content > p a { color: var(--cyan); text-underline-offset: 4px; }
.feature-grid { gap: 14px; margin-top: 24px; }
.feature-grid section { padding: 22px; border-radius: 18px; background: linear-gradient(145deg, #171d38, #10152a); }
.feature-grid h3 { font-size: 1.08rem; line-height: 1.35; }
.feature-grid p { margin-top: 10px; font-size: 0.94rem; line-height: 1.65; }
.feature-icon { width: 36px; height: 36px; margin-bottom: 14px; font-size: 1.2rem; }
.showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; gap: 18px; margin-top: 24px; }
.showcase { margin: 24px 0 0; border-radius: 18px; box-shadow: none; }
.showcase-grid .showcase { margin: 0; }
.showcase img { width: 100%; max-height: 520px; object-fit: contain; }
.showcase-wide { max-width: 860px; }
.document-links { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 30px; margin-bottom: 48px; padding: 28px; border-radius: 20px; }
.document-links h2 { font-size: 1.75rem; line-height: 1.2; }
.document-links .eyebrow { font-size: 0.72rem; }
.document-links > div > p:last-child { font-size: 0.94rem; }
.document-grid a { min-height: 78px; padding: 14px 18px; border-radius: 12px; }
.document-grid strong { font-size: 0.96rem; }
.document-grid span { font-size: 0.85rem; }
.document-shell { max-width: 800px; padding-block: 24px 64px; }
.breadcrumbs { margin-bottom: 24px; }
.breadcrumbs a { min-height: 44px; }
.document-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; overflow-wrap: break-word; }
.document-content { padding-top: 28px; }
.document-content h2 { margin-top: 32px; line-height: 1.3; }

.landing-hero { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px; }
.hero-summary { font-size: 1rem; }
.featured-copy > p:not(.featured-label) { font-size: 0.9rem; }
.featured-copy { width: 62%; }
.home-button { min-height: 44px; font-size: 0.82rem; line-height: 1.35; }
.home-catalog { padding-block: 32px; }
.catalog-toolbar { margin-bottom: 20px; }
.catalog-toolbar h2 { font-size: 1.65rem; }
.catalog-filters { flex-wrap: wrap; }
.filter-chip { min-height: 44px; font-size: 0.85rem; padding-inline: 16px; }
.catalog-search { min-height: 46px; }
.catalog-search input { min-height: 44px; font-size: 1rem; min-width: 0; }
.home-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-app-card { min-height: 0; padding: 20px; border-radius: 18px; transition: border-color 180ms ease, transform 180ms ease; }
.home-app-card:hover { border-color: #a98bff; transform: translateY(-2px); }
.home-app-card-link { display: flex; flex-direction: column; align-items: flex-start; }
.home-app-icon { width: 68px; height: 68px; margin-bottom: 18px; border-radius: 16px; }
.platform-badge { top: 22px; left: auto; right: 20px; font-size: 0.72rem; }
.home-app-card h3 { min-height: 0; font-size: 1.05rem; line-height: 1.4; }
.home-app-card p { margin-block: 10px 20px; font-size: 0.9rem; line-height: 1.6; }
.card-action, .soon-label { position: static; min-height: 36px; margin-top: auto; padding: 0; border: 0; background: none; font-size: 0.85rem; }
.is-concept { display: flex; flex-direction: column; align-items: flex-start; }
.page-anatomy { grid-template-columns: 1fr; gap: 20px; padding: 24px; margin-bottom: 40px; }
.anatomy-intro { max-width: 65ch; }
.anatomy-intro h2 { font-size: 1.35rem; }
.anatomy-intro h2 br { display: none; }
.anatomy-intro p { font-size: 0.9rem; }
.anatomy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.anatomy-grid article { padding: 16px; }
.anatomy-grid h3 { font-size: 0.95rem; }
.anatomy-grid p { font-size: 0.85rem; }

@media (max-width: 980px) {
  .landing-hero { grid-template-columns: 1fr; }
  .hero-intro { max-width: 680px; padding: 0; }
  .hero-intro h1 { max-width: 650px; }
  .featured-copy { width: 60%; }
  .home-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-hero { grid-template-columns: 100px minmax(0, 1fr); align-items: start; gap: 20px; }
  .app-icon-wrap { width: 100px; padding: 5px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid div { padding: 18px; }
  .stat-grid div:nth-child(odd) { border-left: 0; }
  .stat-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-links { grid-template-columns: 1fr; gap: 22px; }
  .footer-inner > div { flex-basis: auto; }
  .footer-inner nav { justify-content: flex-start; }
}
@media (max-width: 540px) {
  .app-navigation { flex-wrap: wrap; padding-top: 8px; gap: 0; }
  .app-navigation div { max-width: 100%; gap: 18px; overflow-x: auto; }
  .app-hero { grid-template-columns: 1fr; gap: 18px; padding-block: 16px 28px; }
  .app-icon-wrap { width: 80px; }
  .app-hero-copy h1 { font-size: 1.9rem; }
  .app-hero-copy .lead { font-size: 1rem; }
  .app-hero-copy .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .button { padding-inline: 12px; font-size: 0.9rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid section { padding: 20px; }
  .rich-content > h2 { margin-top: 32px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 10px; }
  .showcase { border-radius: 12px; }
  .document-links { padding: 22px; }
  .home-card-grid { grid-template-columns: 1fr; }
  .home-app-card { padding: 18px; }
  .anatomy-grid { grid-template-columns: 1fr; }
  .page-anatomy { padding: 20px; }
  .featured-app { min-height: 0; }
  .featured-copy { width: 100%; min-height: 0; padding: 24px 20px; }
  .featured-visual { position: relative; inset: auto; height: 220px; }
  .featured-phone { height: 270px; width: 144px; }
  .landing-hero { padding-block: 28px; }
  .hero-intro h1 { font-size: 2rem; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 0.85rem; }
}

@media (max-width: 390px) {
  .app-hero-copy .hero-actions { grid-template-columns: 1fr; }
}
.showcase a { display: block; cursor: zoom-in; }
.showcase a:focus-visible { outline-offset: -4px; }
html[data-theme="light"] .home-page .home-app-card,
html[data-theme="light"] .home-page .page-anatomy,
html[data-theme="light"] .home-page .anatomy-grid article,
html[data-theme="light"] .home-page .catalog-search { background: #fff; border-color: #d9dcec; }
html[data-theme="light"] .home-page :is(.home-app-card p, .anatomy-intro p, .anatomy-grid p, .footer-inner p, .footer-inner nav a) { color: #555d73; }
html[data-theme="light"] .home-page :is(.card-action, .soon-label) { color: #58419b; }
html[data-theme="light"] .home-page .site-footer { background: #eef0fa; }
html[data-theme="light"] .home-page .home-stage { color: #f7f7ff; }
html[data-theme="light"] .home-page .site-header { color: #f7f7ff; }
html[data-theme="light"] .home-page .platform-android { color: #236039; background: #e5f5ea; }
html[data-theme="light"] .home-page .platform-web { color: #554295; background: #eee9fc; }

.gallery-is-open { overflow: hidden; }
.showcase-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.showcase-open::after { content: 'Увеличить ↗'; position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; border: 1px solid #ffffff40; border-radius: 999px; color: #fff; background: #0b1024e6; font: 600 0.8rem Manrope, sans-serif; pointer-events: none; }
.showcase-open:focus-visible { outline-offset: -4px; }
.image-gallery { width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 20px; border: 1px solid #a98bff55; border-radius: 24px; background: #0d1224; color: #f7f7ff; box-shadow: 0 32px 100px #0009; overscroll-behavior: contain; }
.image-gallery::backdrop { background: #030515df; backdrop-filter: blur(12px); }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.gallery-count { color: #bbc4e0; font-variant-numeric: tabular-nums; }
.image-gallery button { min-width: 48px; min-height: 48px; padding: 8px 16px; border: 1px solid #a98bff55; border-radius: 12px; color: #fff; background: #202940; font: inherit; cursor: pointer; }
.image-gallery button:hover { background: #354165; }
.image-gallery button:disabled { opacity: 0.35; cursor: default; }
.gallery-image { width: 100%; height: min(62dvh, 680px); object-fit: contain; touch-action: pan-y pinch-zoom; }
.gallery-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: 16px; }
.gallery-caption { color: #c7cfe6; font-size: 0.9rem; line-height: 1.5; text-align: center; }
.gallery-original { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 8px; color: #bba5ff; font-size: 0.85rem; text-underline-offset: 4px; }
.spotlight-card { position: relative; overflow: hidden; }
.spotlight-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(300px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), #a98bff20, transparent 75%); opacity: 0; transition: opacity 220ms ease; }
.back-to-top { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 50px; height: 50px; padding: 3px; border: 0; border-radius: 50%; background: conic-gradient(#b99aff var(--reading-progress, 0%), #303b58 0); color: #fff; box-shadow: 0 6px 24px #0005; cursor: pointer; }
.back-to-top[hidden] { display: none; }
.back-to-top span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; background: #11192c; font-size: 1.5rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .spotlight-card:hover::before { opacity: 1; }
  .button, .home-button, .document-grid a { transition: transform 180ms ease, box-shadow 180ms ease; }
  a.button:hover, a.home-button:hover, .document-grid a:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #a98bff20; }
  .showcase-open img { transition: transform 350ms ease; }
  .showcase-open:hover img { transform: scale(1.025); }
}
@media (max-width: 540px) {
  .image-gallery { padding: 12px; border-radius: 18px; }
  .gallery-controls { gap: 8px; }
  .gallery-caption { font-size: 0.8rem; }
  .gallery-image { height: 56dvh; }
  .showcase-open::after { right: 6px; bottom: 6px; padding: 6px 8px; font-size: 0.7rem; }
}
