:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --ink: #17191f;
  --muted: #626774;
  --line: #dfe4ee;
  --accent: #0f62fe;
  --accent-dark: #093f9f;
  --pink: #d93f73;
  --green: #1f9d63;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0, var(--bg) 62%, #ffffff 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  max-width: 1120px;
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(210, 217, 230, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.tile-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.nav-links {
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  color: #333844;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--surface-soft);
  color: var(--accent-dark);
}

.hero {
  display: grid;
  align-items: center;
  width: calc(100% - 32px);
  max-width: 1120px;
  min-height: calc(100svh - 86px);
  margin: 0 auto;
  padding: 86px 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h2 {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.16;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.tile-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-dark);
}

.section-heading p,
.app-tile p {
  color: var(--muted);
}

.section {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 66px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

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

.app-tile {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.app-tile--featured {
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 184px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(23, 25, 31, 0.08);
}

.app-tile img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.app-tile--featured img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
}

.tile-actions a {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.feedback-section {
  display: grid;
  gap: 10px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  max-width: 1120px;
  min-height: 86px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 760px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .app-tile--featured {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 0;
    padding: 18px;
  }

  .app-tile--featured img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
  }
}
