:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --soft: #eef1f5;
  --text: #25272d;
  --muted: #666b75;
  --border: #dfe3e8;
  --blue: #0877ff;
  --green: #168a46;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  user-select: text;
  -webkit-user-select: text;
}

a {
  color: inherit;
}

a,
button,
img {
  -webkit-user-drag: none;
}

img {
  user-select: none;
  -webkit-user-select: none;
}

.topbar {
  min-height: 72px;
  padding: 14px 30px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.topbar nav,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.topbar nav {
  gap: 8px;
  flex-wrap: wrap;
}

.topbar nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 8px;
}

.topbar nav a:hover {
  color: var(--text);
  background: var(--soft);
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: 28px auto 56px;
}

.intro,
.section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.intro {
  min-height: 250px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 26px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 13px;
}

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

h1 {
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.06;
  letter-spacing: 0;
  max-width: 780px;
  overflow-wrap: anywhere;
}

.lead {
  margin-top: 14px;
  max-width: 690px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
}

.intro-card {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.intro-card img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.intro-card strong {
  display: block;
  font-size: 21px;
  overflow-wrap: anywhere;
}

.intro-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.intro-card .button {
  grid-column: 1 / -1;
}

.section {
  margin-top: 18px;
  padding: 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

h2 {
  font-size: 38px;
}

.contact-grid,
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

#contacts .contact-grid {
  grid-template-columns: minmax(240px, 420px);
}

.contact-card,
.links-grid a,
.feature-card {
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  min-width: 0;
}

.contact-card {
  display: grid;
  gap: 7px;
}

.contact-card .button {
  width: fit-content;
  margin-top: 8px;
}

.contact-card span {
  color: var(--muted);
  font-size: 14px;
}

.contact-card strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.contact-card small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.links-grid a {
  min-height: 70px;
  display: flex;
  align-items: center;
  color: var(--text);
  font-weight: 750;
}

.contact-card:hover,
.links-grid a:hover,
.feature-card:hover {
  border-color: rgba(8, 119, 255, 0.35);
}

.market-list {
  display: grid;
  gap: 12px;
}

.market-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.market-card > img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
}

.market-meta,
.market-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-meta {
  margin-bottom: 7px;
}

.market-meta span {
  color: var(--muted);
  background: var(--soft);
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 13px;
  font-weight: 750;
}

.market-card h3 {
  font-size: 24px;
}

.market-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.market-actions {
  justify-content: flex-end;
}


.apps {
  display: grid;
  gap: 16px;
}

.app-card {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  background: #fff;
}

.app-info {
  display: flex;
  gap: 16px;
  min-width: 0;
}

.app-icon {
  width: 86px;
  height: 86px;
  border-radius: 19px;
  flex: 0 0 auto;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

h3 {
  font-size: 30px;
  overflow-wrap: anywhere;
}

.status {
  color: var(--green);
  background: #e8f7ee;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.tagline {
  margin-top: 8px;
  font-weight: 750;
  font-size: 17px;
}

.description,
.notes {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.description {
  margin-top: 8px;
}

.meta,
.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta {
  margin-top: 13px;
}

.meta span {
  background: var(--soft);
  color: var(--muted);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 14px;
}

.screenshot-button {
  margin: 0;
  padding: 0;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--soft);
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
  appearance: none;
}

.screenshot-button:hover {
  border-color: rgba(8, 119, 255, 0.45);
}

.screenshot-button:focus-visible {
  outline: 3px solid rgba(8, 119, 255, 0.35);
  outline-offset: 3px;
}

.screenshot-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(10, 12, 18, 0.82);
}

.image-viewer.is-open {
  display: flex;
}

.image-viewer img {
  max-width: min(1180px, 100%);
  max-height: calc(100vh - 92px);
  object-fit: contain;
  border-radius: 12px;
  background: white;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.viewer-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.downloads,
.notes {
  grid-column: 1 / -1;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e7e9ed;
  text-decoration: none;
  padding: 0 14px;
  font-weight: 750;
}

.button.primary {
  color: white;
  background: var(--blue);
}

.notes {
  margin: 0;
  padding-left: 20px;
}

.empty {
  color: var(--muted);
  padding: 24px;
}

footer {
  justify-content: space-between;
  gap: 16px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 34px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .topbar,
  .intro,
  .section-head,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .intro,
  .contact-grid,
  .links-grid,
  .app-card,
  .market-card {
    grid-template-columns: 1fr;
  }

  .market-actions {
    justify-content: flex-start;
  }

  .section,
  .intro {
    padding: 22px;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 14px 18px;
  }

  main {
    width: min(100% - 24px, 1160px);
    margin-top: 18px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.08;
  }

  .section {
    padding: 18px;
  }

  .app-info {
    display: grid;
  }

  .app-icon {
    width: 74px;
    height: 74px;
  }

  .market-card > img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .market-actions .button {
    width: 100%;
  }
}
