:root {
  --ink: #12161d;
  --muted: #5e6877;
  --line: #dbe2ea;
  --surface: #ffffff;
  --soft: #f4f8f8;
  --teal: #00a99d;
  --blue: #2563eb;
  --coral: #f05f57;
  --amber: #e8a600;
  --green: #24845a;
  --shadow: 0 18px 50px rgba(22, 33, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 226, 234, 0.8);
  backdrop-filter: blur(16px);
}

.brand,
.header-actions,
nav,
.language-switcher {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
}

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

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.language-switcher {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.language-button {
  min-width: 38px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

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

#apps,
#categories,
#contact {
  scroll-margin-top: 88px;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #111820;
  padding-top: 86px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 12, 18, 0.92) 0%, rgba(7, 12, 18, 0.74) 42%, rgba(7, 12, 18, 0.24) 100%),
    linear-gradient(0deg, rgba(7, 12, 18, 0.72) 0%, rgba(7, 12, 18, 0) 32%);
}

.hero-content {
  position: relative;
  width: min(660px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding-top: 76px;
}

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

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

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 5.3vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem;
}

.hero-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.filter-button,
.app-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 12px;
  max-width: 520px;
  margin: 42px 0 0;
}

.metrics div {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 14px;
}

.metrics dt {
  font-size: 1.8rem;
  font-weight: 800;
}

.metrics dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

section:not(.hero) {
  padding: 82px clamp(20px, 5vw, 72px);
}

.intro-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.intro-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.15rem;
}

.apps-section,
.categories-section {
  background: var(--soft);
}

.more-apps-section {
  background: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.filter-bar {
  margin-bottom: 24px;
}

.filter-button {
  background: #fff;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
}

.filter-button.active {
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.app-card[hidden] {
  display: none;
}

.app-icon,
.app-icon-image {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
}

.app-icon {
  color: #fff;
  font-weight: 800;
}

.app-icon-image {
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(18, 22, 29, 0.12);
}

.app-icon.blue { background: var(--blue); }
.app-icon.coral { background: var(--coral); }
.app-icon.amber { background: var(--amber); }
.app-icon.green { background: var(--green); }

.app-type {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.app-card p,
.category-item p {
  color: var(--muted);
}

.app-card a {
  justify-self: start;
  border-color: var(--line);
  color: var(--ink);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.category-item {
  min-height: 220px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px;
}

.compact-app-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.compact-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.compact-group h3 {
  margin-bottom: 16px;
}

.compact-app-list {
  display: grid;
  gap: 10px;
}

.compact-app {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.compact-app:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.compact-app img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.compact-app span {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.contact-section {
  align-items: center;
  background: var(--ink);
  color: #fff;
}

.contact-section h2 {
  max-width: 780px;
}

.contact-section .button {
  justify-self: end;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(680px, calc(100% - 40px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.button.compact {
  min-height: 40px;
  padding-inline: 14px;
}

.cookie-banner .button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

@media (max-width: 980px) {
  .app-grid,
  .compact-app-groups,
  .category-grid,
  .intro-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-app-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section .button {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: center;
    padding: 16px 20px;
  }

  nav {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switcher {
    gap: 2px;
  }

  .language-button {
    min-width: 34px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    margin: 0 20px;
    width: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 12, 18, 0.58) 0%, rgba(7, 12, 18, 0.92) 58%, rgba(7, 12, 18, 0.96) 100%),
      linear-gradient(90deg, rgba(7, 12, 18, 0.72), rgba(7, 12, 18, 0.1));
  }

  h1 {
    font-size: clamp(2.05rem, 10.5vw, 3rem);
    line-height: 1.04;
  }

  .metrics,
  .category-grid,
  .compact-app-groups {
    grid-template-columns: 1fr;
  }

  section:not(.hero) {
    padding: 64px 20px;
  }

  footer {
    flex-direction: column;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .button {
    flex: 1;
  }
}
