:root {
  color-scheme: light;
  --paper: #f7f1e8;
  --paper-deep: #eee2d3;
  --surface: rgba(255, 252, 247, 0.86);
  --surface-solid: #fffaf4;
  --surface-muted: #f1e7db;
  --ink: #292620;
  --ink-soft: #5e574e;
  --muted: #82796e;
  --terracotta: #c86f55;
  --terracotta-dark: #aa563f;
  --sage: #7d9880;
  --line: rgba(89, 72, 54, 0.12);
  --shadow: 0 24px 70px rgba(83, 63, 43, 0.11);
  --shadow-soft: 0 12px 36px rgba(83, 63, 43, 0.08);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --font-display: "Avenir Next", "SF Pro Rounded", "Segoe UI", sans-serif;
  --font-body: "Avenir Next", "SF Pro Text", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.page-background::after {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='90' height='90' viewBox='0 0 90 90' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.022'/%3E%3C/svg%3E");
  content: "";
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.55;
}

.glow-one {
  width: 760px;
  height: 760px;
  top: -330px;
  left: -240px;
  background: radial-gradient(circle, #f0b9a7 0, rgba(240, 185, 167, 0) 69%);
}

.glow-two {
  width: 720px;
  height: 720px;
  top: 300px;
  right: -340px;
  background: radial-gradient(circle, #c7d7c5 0, rgba(199, 215, 197, 0) 70%);
}

.glow-three {
  width: 620px;
  height: 620px;
  top: 1450px;
  left: 15%;
  background: radial-gradient(circle, #ead3a5 0, rgba(234, 211, 165, 0) 70%);
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(112, 87, 63, 0.08);
  background: rgba(247, 241, 232, 0.76);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.nav-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand img {
  border-radius: 13px;
  box-shadow: 0 6px 16px rgba(67, 50, 37, 0.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a,
.footer-links a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--terracotta-dark);
}

.language-switcher {
  display: flex;
  justify-self: end;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.66);
}

.language-button {
  min-width: 38px;
  padding: 7px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.language-button[aria-pressed="true"] {
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(80, 61, 43, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  min-height: 690px;
  padding-block: 80px 100px;
  gap: 84px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow > span:first-child {
  width: 24px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.values-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 0.99;
}

.hero h1 em {
  color: var(--terracotta);
  font-style: normal;
}

.hero-description {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: #fffaf3;
  box-shadow: 0 12px 25px rgba(47, 38, 31, 0.19);
}

.button-primary:hover {
  box-shadow: 0 16px 30px rgba(47, 38, 31, 0.24);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 252, 247, 0.54);
  color: var(--ink);
}

.hero-stats {
  display: flex;
  max-width: 590px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  gap: 40px;
}

.hero-stats div {
  display: grid;
  gap: 2px;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: -0.04em;
}

.hero-stats span {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-visual::before {
  position: absolute;
  width: 410px;
  height: 410px;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(117, 91, 66, 0.12);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.hero-visual::after {
  position: absolute;
  width: 290px;
  height: 290px;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(117, 91, 66, 0.16);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.hero-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-card-main {
  width: 280px;
  min-height: 300px;
  top: 50%;
  left: 50%;
  justify-content: center;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 42px;
  background: rgba(255, 250, 244, 0.8);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%) rotate(-2deg);
  backdrop-filter: blur(24px);
}

.hero-card-main img {
  border-radius: 27px;
  box-shadow: 0 18px 36px rgba(58, 45, 34, 0.18);
}

.hero-card-main span {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-card-main small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.floating-icon {
  position: absolute;
  z-index: 3;
  border: 6px solid rgba(255, 250, 244, 0.84);
  border-radius: 24px;
  box-shadow: 0 18px 35px rgba(67, 50, 37, 0.17);
}

.floating-icon-one {
  top: 48px;
  right: 22px;
  transform: rotate(7deg);
}

.floating-icon-two {
  right: 4px;
  bottom: 73px;
  transform: rotate(-5deg);
}

.floating-icon-three {
  bottom: 46px;
  left: 12px;
  transform: rotate(8deg);
}

.decorative-line {
  position: absolute;
  z-index: 1;
  width: 66px;
  height: 66px;
  border-color: rgba(200, 111, 85, 0.52);
}

.decorative-line-one {
  top: 78px;
  left: 15px;
  border-top: 2px solid;
  border-left: 2px solid;
  border-radius: 30px 0 0;
}

.decorative-line-two {
  right: 35px;
  bottom: 50px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-radius: 0 0 30px;
}

.apps-section {
  padding: 106px 0 130px;
  border-top: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.34);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  align-items: end;
  gap: 50px;
}

.section-heading h2,
.values-card h2 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.06;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 44px 0 34px;
}

.filter-button {
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.64);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-button:hover {
  transform: translateY(-1px);
}

.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffaf3;
}

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

.app-card {
  --app-accent: #c86f55;
  --app-soft: #f1d9d0;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(105, 81, 57, 0.11);
  border-radius: var(--radius-lg);
  outline: none;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 230ms ease, box-shadow 230ms ease, border-color 230ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  z-index: 1;
  border-color: color-mix(in srgb, var(--app-accent) 38%, white);
  box-shadow: 0 28px 60px color-mix(in srgb, var(--app-accent) 18%, transparent);
  transform: translateY(-7px);
}

.card-preview {
  position: relative;
  height: 205px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--app-soft), rgba(255, 251, 245, 0.7));
}

.card-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 48%, rgba(255, 251, 246, 0.34) 100%);
  content: "";
}

.card-preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.92;
  transition: transform 480ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.app-card[data-orientation="portrait"] .card-preview > img {
  object-fit: contain;
  padding: 18px 80px 0;
}

.app-card:hover .card-preview > img {
  transform: scale(1.035);
}

.card-icon {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  left: 22px;
  width: 64px;
  height: 64px;
  border: 5px solid rgba(255, 250, 244, 0.92);
  border-radius: 19px;
  object-fit: cover;
  box-shadow: 0 11px 26px rgba(54, 41, 30, 0.2);
}

.featured-label {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.82);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 22px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-category {
  color: var(--app-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-icons {
  display: flex;
  gap: 5px;
}

.platform-pill {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-body h3 {
  margin: 13px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.045em;
}

.card-tagline {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
  gap: 12px;
}

.card-footer > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.card-open {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--app-soft);
  color: var(--app-accent);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.app-card:hover .card-open {
  background: var(--app-accent);
  color: white;
  transform: translateX(2px);
}

.empty-state {
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}

.values-section {
  padding: 120px 0;
}

.values-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  padding: 66px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(239, 221, 205, 0.86), rgba(225, 232, 214, 0.82));
  box-shadow: var(--shadow);
  gap: 70px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.values-grid article {
  padding-left: 20px;
  border-left: 1px solid rgba(71, 58, 44, 0.16);
}

.value-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 252, 247, 0.7);
  color: var(--terracotta-dark);
  font-size: 17px;
}

.values-grid h3 {
  margin: 20px 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.025em;
}

.values-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand img {
  border-radius: 11px;
}

.footer-brand div {
  display: grid;
  gap: 2px;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 15px;
}

.footer-brand span,
.copyright {
  color: var(--muted);
  font-size: 11px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
}

.app-dialog {
  width: min(1160px, calc(100% - 48px));
  max-width: none;
  height: min(780px, calc(100dvh - 48px));
  max-height: none;
  margin: auto;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 34px;
  background: var(--surface-solid);
  box-shadow: 0 40px 100px rgba(49, 37, 26, 0.25);
}

.app-dialog::backdrop {
  background: rgba(42, 35, 29, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-dialog[open] {
  animation: dialog-in 220ms ease-out both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-close {
  position: absolute;
  z-index: 10;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(70, 56, 43, 0.1);
  border-radius: 50%;
  background: rgba(255, 251, 246, 0.86);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(53, 41, 31, 0.09);
  backdrop-filter: blur(10px);
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.78fr);
  height: 100%;
}

.gallery-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 26px;
  background: var(--surface-muted);
}

.gallery-stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(248, 243, 237, 0.92);
}

.gallery-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;
  object-position: center;
  transition: opacity 130ms ease;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(75, 59, 45, 0.12);
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.87);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(63, 47, 34, 0.12);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.gallery-arrow:disabled {
  display: none;
}

.gallery-arrow-previous {
  left: 14px;
}

.gallery-arrow-next {
  right: 14px;
}

.gallery-counter {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(44, 38, 32, 0.75);
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.gallery-thumbnails {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 14px 2px 1px;
  scrollbar-width: thin;
}

.gallery-thumbnail {
  flex: 0 0 80px;
  width: 80px;
  height: 58px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 160ms ease, border-color 160ms ease;
}

.gallery-thumbnail.active {
  border-color: var(--terracotta);
  opacity: 1;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-details {
  overflow-y: auto;
  padding: 62px 44px 38px;
}

.dialog-app-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dialog-app-heading > img {
  flex: 0 0 auto;
  border-radius: 22px;
  box-shadow: 0 13px 28px rgba(51, 39, 30, 0.16);
}

.dialog-category {
  color: var(--terracotta-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dialog-details h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -0.05em;
}

.dialog-app-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dialog-description {
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.dialog-highlights {
  display: grid;
  margin: 27px 0 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.dialog-highlights li {
  position: relative;
  padding-left: 27px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.dialog-highlights li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #dce8d9;
  color: #527359;
  content: "✓";
  font-size: 11px;
  font-weight: 900;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.platform-list .platform-pill {
  padding: 6px 9px;
  background: var(--surface-muted);
  font-size: 10px;
}

.dialog-actions {
  display: grid;
  margin-top: 30px;
  gap: 10px;
}

.store-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 15px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
}

.store-button-appstore {
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 22px rgba(43, 35, 29, 0.18);
}

.store-button-lemon {
  border-color: #e5a33f;
  background: #fff4df;
  color: #7a4c0b;
}

.noscript-message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 360px;
  padding: 16px;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-size: 13px;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 34px;
  }

  .hero-visual {
    transform: scale(0.88);
  }

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

  .values-card {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .dialog-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  }

  .dialog-details {
    padding-inline: 32px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, 620px);
  }

  .nav-content {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  .nav-links {
    display: none;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 76px 0 86px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

  html[lang="de"] .hero h1 {
    font-size: clamp(40px, 11.4vw, 52px);
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-visual {
    display: none;
  }

  .apps-section,
  .values-section {
    padding-block: 82px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading h2,
  .values-card h2 {
    font-size: 42px;
  }

  .filter-bar {
    margin-top: 32px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 465px;
  }

  .card-preview {
    height: 220px;
  }

  .values-card {
    width: calc(100% - 24px);
    padding: 42px 26px;
    border-radius: 30px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .values-grid article {
    display: grid;
    grid-template-columns: 40px 1fr;
    padding: 18px 0 0;
    border-top: 1px solid rgba(71, 58, 44, 0.16);
    border-left: 0;
    column-gap: 14px;
  }

  .value-icon {
    grid-row: 1 / span 2;
  }

  .values-grid h3 {
    margin: 0;
  }

  .values-grid p {
    margin-top: 5px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

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

  .app-dialog {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .dialog-layout {
    display: block;
    overflow-y: auto;
  }

  .gallery-panel {
    height: 60dvh;
    min-height: 440px;
    padding: 14px;
  }

  .gallery-stage {
    border-radius: 20px;
  }

  .dialog-details {
    overflow: visible;
    padding: 36px 24px 44px;
  }

  .dialog-close {
    position: fixed;
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 440px) {
  .hero-actions {
    display: grid;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 12px;
  }

  .hero-stats strong {
    font-size: 24px;
  }

  .hero-stats span {
    font-size: 10px;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .filter-button {
    padding-inline: 8px;
    font-size: 11px;
  }

  .card-preview {
    height: 195px;
  }

  .app-card[data-orientation="portrait"] .card-preview > img {
    padding-inline: 70px;
  }

  .gallery-panel {
    height: 58dvh;
    min-height: 400px;
  }

  .gallery-stage > img {
    padding: 12px;
  }

  .gallery-thumbnail {
    flex-basis: 68px;
    width: 68px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
