/* ==========================================================================
   Main Apps Trust — static rebuild
   1. Fonts  2. Tokens  3. Base  4. Header  5. Hero  6. Sections
   7. Apps  8. Team  9. Downloads  10. Contact  11. Footer
   12. Detail pages  13. Utilities & responsive
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --navy-900: #000045;
  --navy-800: #000064;
  --navy-700: #010147;
  --orange: #fc6200;
  --orange-2: #ff8a3d;

  --bg: #000064;
  --bg-soft: #000045;
  --surface: #000045;
  --surface-2: #010147;
  --line: rgba(255, 255, 255, 0.13);
  --ink: #ffffff;
  --muted: #b9c0ea;
  --header-bg: #010147;
  --header-ink: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.3);

  --wrap: 1160px;
  --radius: 20px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme='light'] {
  --bg: #f5f6fb;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef0f8;
  --line: #e2e5f1;
  --ink: #010147;
  --muted: #3c4170;
  --shadow: 0 24px 60px rgba(16, 20, 60, 0.12);
  --shadow-sm: 0 10px 24px rgba(16, 20, 60, 0.08);
}

/* 3. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

::selection {
  background: var(--orange);
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--orange-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 4. Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  color: var(--header-ink);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-stuck {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__mark {
  width: 30px;
  height: 30px;
  color: #fff;
  flex: none;
  transition: transform 0.6s var(--ease);
}
.brand:hover .brand__mark {
  transform: rotate(45deg);
}

.brand__chev {
  color: var(--orange);
  font-weight: 400;
  margin-inline: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav__link[aria-current='true'] {
  background: var(--orange);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* language menu */
.lang {
  position: relative;
}
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 176px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  color: #0a0a2e;
  box-shadow: var(--shadow);
  display: none;
  z-index: 120;
}
.lang.is-open .lang__menu {
  display: block;
  animation: pop 0.18s var(--ease);
}
.lang__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  font: inherit;
  font-size: 14px;
  color: #0a0a2e;
  cursor: pointer;
  text-align: left;
}
.lang__item:hover {
  background: #f1f2f9;
}
.lang__item[aria-checked='true'] {
  color: var(--orange);
  font-weight: 600;
}
.lang__item[aria-checked='true']::after {
  content: '✓';
}

/* theme switch */
.switch {
  position: relative;
  width: 52px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  cursor: pointer;
  padding: 0;
  flex: none;
  transition: background-color 0.3s var(--ease);
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 27px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s var(--ease);
}
[data-theme='light'] .switch {
  background: #cfd3e6;
}
[data-theme='light'] .switch::after {
  transform: translateX(-24px);
  background: #fff;
}

.burger {
  display: none;
}

/* mobile drawer */
.drawer {
  display: none;
  position: fixed;
  inset: 72px 0 auto;
  z-index: 90;
  background: var(--header-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 24px 24px;
}
.drawer.is-open {
  display: block;
  animation: pop 0.2s var(--ease);
}
.drawer__link {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 5. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  right: -160px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 98, 0, 0.22), transparent 62%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  margin-bottom: 22px;
}
.hero h1 .light {
  display: block;
  font-weight: 300;
}
.hero h1 .strong {
  display: block;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero__kicker {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero__lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.chip svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover {
  background: var(--orange-2);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.btn svg {
  width: 16px;
  height: 16px;
}

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero__emblem {
  width: min(100%, 400px);
  aspect-ratio: 1;
  height: auto;
  color: var(--ink);
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.45));
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__emblem,
  .reveal {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* 6. Sections ------------------------------------------------------------- */
.section {
  padding: 92px 0;
}
.section--soft {
  background: var(--bg-soft);
}
[data-theme='light'] .section--soft {
  background: #ffffff;
}

.section__head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 300;
  margin-bottom: 10px;
}

.section__sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* 7. Info ----------------------------------------------------------------- */
.info__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.info__card {
  position: sticky;
  top: 108px;
  display: grid;
  place-items: center;
  padding: 52px 32px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.info__card svg {
  width: min(100%, 260px);
  aspect-ratio: 1;
  height: auto;
  color: var(--ink);
}

.info__body h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 8px;
}
.info__body .lead {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 18px;
}
.info__body p {
  color: var(--muted);
  font-size: 15.5px;
}

.info__rule {
  height: 1px;
  margin: 30px 0 22px;
  background: var(--line);
}

.available {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 13px;
}

.available strong {
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
}
.pill::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid var(--orange);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* 8. Apps ----------------------------------------------------------------- */
.apps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 252px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--card-ink, #fff);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.38);
}

.app-card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease);
}
.app-card:hover .app-card__bg {
  transform: scale(1.09);
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top,
      color-mix(in srgb, var(--accent) 92%, #000014) 0%,
      color-mix(in srgb, var(--accent) 58%, transparent) 40%,
      color-mix(in srgb, var(--accent) 12%, transparent) 72%,
      transparent 100%);
}

.app-card__body {
  position: relative;
}

.app-card__name {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 22ch;
  text-shadow: 0 2px 14px rgba(0, 0, 20, 0.35);
}
.app-card__tag {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 34ch;
  color: color-mix(in srgb, var(--card-ink, #fff) 84%, transparent);
}

.app-card__go {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: 0.9;
}
.app-card__go svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}
.app-card:hover .app-card__go svg {
  transform: translateX(4px);
}

.app-card--wide {
  grid-column: span 1;
}

/* 9. Team ----------------------------------------------------------------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.member {
  padding: 16px 16px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.member:hover {
  transform: translateY(-4px);
  border-color: rgba(252, 98, 0, 0.5);
}

.member__img {
  width: 50%;
  max-width: 170px;
  aspect-ratio: 324 / 180; /* same landscape ratio, half the size */
  height: auto;
  margin: 0 auto 16px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 10px;
}

.member__name {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 2px;
}

.member__nick {
  display: block;
  color: var(--orange);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.member__role {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.member__list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

/* 10. Downloads ----------------------------------------------------------- */
.downloads {
  text-align: center;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

.store-badge img {
  height: 62px;
  width: auto;
  border-radius: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.store-badge:hover img {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.compat {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.compat__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--muted);
}
.compat__item strong {
  color: var(--ink);
  font-weight: 600;
}
.compat__item svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
}

/* 11. Contact ------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 880px;
  margin-inline: auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(252, 98, 0, 0.45);
}
.contact-card svg {
  width: 42px;
  height: 42px;
  color: var(--orange);
}
.contact-card__label {
  font-weight: 600;
  font-size: 16px;
}
.contact-card__value {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* 12. Footer -------------------------------------------------------------- */
.site-footer {
  padding: 34px 0;
  background: #000033;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
}
[data-theme='light'] .site-footer {
  background: #010147;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}
.footer-brand svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a:hover {
  color: #fff;
}

/* 13. Detail pages -------------------------------------------------------- */
.subnav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}

.detail-hero {
  padding: 72px 0 84px;
}
.detail-hero .hero__eyebrow {
  display: flex;
}
.detail-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
}
.crumbs:hover {
  color: var(--orange);
}

.detail-hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  margin-bottom: 18px;
}
.detail-hero h1 .app-name {
  display: block;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.detail-hero__tag {
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 24px;
}

.detail-hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.rings span {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--line);
}
.rings span:nth-child(1) {
  width: 78%;
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.28);
}
.rings span:nth-child(2) {
  width: 62%;
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.16);
}
[data-theme='light'] .rings span:nth-child(1) {
  border-color: rgba(1, 1, 71, 0.18);
}
[data-theme='light'] .rings span:nth-child(2) {
  border-color: rgba(1, 1, 71, 0.09);
}

.detail-hero__icon {
  position: relative;
  width: min(72%, 280px);
  height: auto;
  border-radius: 26%;
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.5));
}

.detail-info {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.detail-info h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 14px;
}

.detail-info p {
  color: var(--muted);
  font-size: 15.5px;
}

.detail-info .lead {
  color: var(--ink);
  font-size: 18px;
  font-weight: 300;
}

.facts {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.facts svg {
  width: 17px;
  height: 17px;
  color: var(--orange);
  flex: none;
}

.captures__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.shot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.shot img {
  width: 100%;
  height: auto; /* the height attribute must not force a portrait box */
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(2, 2, 20, 0.92);
}
.lightbox.is-open {
  display: grid;
}
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top svg {
  width: 20px;
  height: 20px;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* FAQ -------------------------------------------------------------------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: '+';
  color: var(--orange);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  flex: none;
}
.faq__item[open] summary::after {
  content: '−';
}

.faq__item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 14.5px;
}

/* Legal page -------------------------------------------------------------- */
.legal {
  max-width: 760px;
  padding: 72px 0 96px;
}
.legal h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 10px;
}
.legal__updated {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 44px 0 14px;
}
.legal p,
.legal li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.legal strong {
  color: var(--ink);
  font-weight: 600;
}
.legal a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal code {
  font-size: 13px;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-legal a:hover {
  color: #fff;
}

/* Cookie consent (only rendered when switched on) -------------------------- */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
}
.consent__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.consent__title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}
.consent__body {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 78ch;
  margin-bottom: 18px;
}
.consent__legal {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.consent__link {
  border: 0;
  padding: 6px 4px;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.consent__link:hover {
  color: var(--ink);
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 2, 20, 0.72);
}
.consent-modal__panel {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.consent-modal__panel h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.consent-row__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}
.consent-row__desc {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
}
.consent-row__check {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--orange);
}
.consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-legal__link {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.footer-legal__link:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .consent__inner {
    padding: 20px;
  }
  .consent__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* 14. Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner,
  .info__grid,
  .detail-hero__grid,
  .detail-info {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding-top: 64px;
    text-align: left;
  }
  .hero__art {
    order: -1;
  }
  .hero__emblem {
    width: min(64%, 280px);
  }
  .info__card {
    position: static;
  }
  .apps__grid,
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    display: none;
  }
  .burger {
    display: inline-grid;
    margin-left: auto;
  }
  .header-actions {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 66px 0;
  }
  .apps__grid,
  .team__grid,
  .captures__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .app-card {
    min-height: 200px;
  }
  .app-card__icon {
    width: 120px;
    height: 120px;
  }
  .hero {
    padding-bottom: 72px;
  }
  .chips {
    margin-bottom: 24px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .store-badge img {
    height: 52px;
  }
  .detail-hero__art {
    min-height: 260px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 13px;
  }
  .hero h1 {
    font-size: 34px;
  }
}
