@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #0a1121;
  --panel: #101a2e;
  --line: #26334a;
  --text: #f6f4ee;
  --muted: #b8c3d7;
  --gold: #f0cca1;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font: 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
button { font: inherit; }

.wrap {
  width: min(1264px, calc(100% - 6rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 1rem;
  transform: translateY(-160%);
}

.skip:focus { transform: translateY(.6rem); }

.site-header {
  background: #0b1324;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.wordmark {
  font: 750 1.27rem/1 var(--display);
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span { color: var(--gold); }

.nav, .languages {
  display: flex;
  align-items: center;
}

.nav { gap: clamp(1rem, 3vw, 2.6rem); }

.nav > a, .footer-links a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}

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

.languages {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.languages a {
  display: grid;
  place-items: center;
  min-width: 39px;
  min-height: 35px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .79rem;
  font-weight: 700;
  text-decoration: none;
}

.languages a[aria-current="page"] {
  background: #26334b;
  color: var(--text);
}

.hero {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 38%, #353c55 0, #1b2946 30%, transparent 66%),
    linear-gradient(115deg, #0c1529, #0d172d 65%, #0c1528);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding-block: clamp(2rem, 4.4vw, 4rem);
}

.hero h1 {
  width: clamp(12.5rem, 51vw, 26rem);
  margin-inline: auto;
}

.hero img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 24px #060c1dc2);
}

.hero .button { margin-top: clamp(1.15rem, 2.3vw, 1.75rem); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 45px;
  padding: .6rem .95rem;
  border: 1px solid #3a4b66;
  border-radius: 9px;
  background: #17243b;
  color: var(--text);
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.button:hover { background: #22324d; }

.button-accent {
  background: var(--gold);
  border-color: transparent;
  color: #1b1720;
}

.button-accent:hover { background: #ffe0ba; }

.arrow { font-size: 1.12em; font-weight: 400; }

.apps { padding-block: clamp(3rem, 5.2vw, 5rem); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 2rem;
  row-gap: .3rem;
  margin-bottom: 1.45rem;
}

.section-heading h2, .contact h2 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  letter-spacing: -.038em;
  line-height: 1.04;
}

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

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.app-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel);
}

.app-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 3840 / 1646;
  object-fit: cover;
  background: #182440;
}

.app-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(.95rem, 1.8vw, 1.5rem);
}

.app-title {
  display: flex;
  gap: .85rem;
  align-items: center;
}

.app-icon {
  flex: none;
  border: 1px solid #ffffff2f;
  border-radius: 13px;
  width: 54px;
  height: 54px;
}

.app-title h3 {
  font-size: clamp(1.23rem, 2vw, 1.66rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.status {
  display: inline-flex;
  margin-top: .3rem;
  align-items: center;
  gap: .36rem;
  color: #f0cca1;
  font-size: .76rem;
  font-weight: 700;
}

.status::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.status.available { color: #a7e6c8; }
.status.available::before { background: currentColor; }

.app-description {
  margin-block: .95rem 1.15rem;
  color: var(--muted);
  text-wrap: pretty;
}

.app-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  min-height: 38px;
  color: var(--muted);
  font-size: .89rem;
  font-weight: 650;
  text-underline-offset: .24em;
}

.text-link:hover { color: var(--text); }

.app-gallery {
  margin-top: 1.35rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}

.gallery-label {
  margin-bottom: .65rem;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.screens a {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(5.5rem, 9vw, 8rem);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0a1224;
}

.screens a:hover { border-color: var(--gold); }
.screens img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 8px; }

.screens a::after {
  content: "+";
  position: absolute;
  inset: auto .32rem .32rem auto;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid #aebad178;
  border-radius: 6px;
  color: white;
  background: #0a1224e8;
  line-height: 1;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.5rem, 4.3vw, 3.4rem);
  margin-bottom: clamp(3rem, 5.2vw, 5rem);
  background: linear-gradient(105deg, #17243c, #101a2e 70%);
  border: 1px solid var(--line);
  border-radius: 19px;
}

.contact h2 { margin-bottom: .5rem; }
.contact .button {
  flex-shrink: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

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

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  min-height: 88px;
  padding-block: 1.1rem;
}

.site-footer small { color: var(--muted); font-size: .87rem; }
.footer-links { display: flex; gap: .7rem 1.45rem; flex-wrap: wrap; }
.footer-links a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: .25em; }

.legal-main { padding-block: clamp(2rem, 6vw, 5rem); }

.legal-main .text-link { min-height: 44px; margin-bottom: 1rem; }

.legal {
  max-width: 790px;
  padding: clamp(1.4rem, 5vw, 3.7rem);
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel);
}

.legal h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.038em;
  overflow-wrap: anywhere;
}

.legal h2 {
  margin: 1.6rem 0 .35rem;
  font-size: 1.28rem;
  line-height: 1.25;
}

.legal p, .legal address, .legal li { color: var(--muted); }
.legal p + p { margin-top: .75rem; }
.legal address { font-style: normal; }
.legal ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.legal a { color: var(--text); text-underline-offset: .2em; overflow-wrap: anywhere; }
.legal a:hover { color: var(--gold); }

.viewer {
  width: min(1100px, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100% - 1.5rem);
  padding: 0;
  border: 1px solid #435573;
  border-radius: 15px;
  color: var(--text);
  background: var(--panel);
}

.viewer::backdrop { background: #030712e6; }
body:has(.viewer[open]) { overflow: hidden; }

.viewer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .65rem .85rem .65rem 1.15rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.viewer-bar button { min-width: 44px; padding: .25rem; font-size: 1.3rem; }
.viewer img { width: 100%; max-height: calc(100dvh - 6rem); object-fit: contain; }

@media (max-width: 1080px) {
  .wrap { width: calc(100% - 4rem); }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-title h3 { font-size: 1.55rem; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 2.5rem); }
  .site-header .wrap { min-height: 63px; }
  .contact { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 570px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app-body { padding: 1.15rem; }
  .screens a { height: clamp(6.6rem, 28vw, 9rem); }
}

@media (max-width: 420px) {
  .nav > a { display: none; }
  .wrap { width: calc(100% - 2rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .screens a, .nav a, .footer-links a { transition: background-color .18s, border-color .18s, color .18s; }
}
