@charset "utf-8";

/* ==========================================================================
   European Apps Solutions — design system
   Modern-clean, hairline borders, neutral canvas, one accent.
   The app icons are the only real colour on the page; everything else stays out
   of their way. Light is the base palette; dark is a token swap, never a
   separate stylesheet.
   ========================================================================== */

/* --- tokens -------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --bg-sub: #fafafa;
  --bg-inset: #f4f4f5;
  --card: #ffffff;
  --line: #e5e5e8;
  --line-soft: #efeff1;
  --ink: #09090b;
  --ink-2: #52525b;
  --ink-3: #8b8b93;
  --accent: #1f3fbf;
  --accent-ink: #ffffff;
  --accent-sub: #eef1fd;
  --star: #e8a317;
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, .05);
  --shadow-md: 0 1px 2px rgba(9, 9, 11, .05), 0 10px 30px -14px rgba(9, 9, 11, .22);

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 14px;
  --radius-lg: 20px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter,
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo,
    Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0c;
    --bg-sub: #101013;
    --bg-inset: #161619;
    --card: #121216;
    --line: #27272d;
    --line-soft: #1d1d22;
    --ink: #fafafa;
    --ink-2: #a1a1aa;
    --ink-3: #71717a;
    --accent: #8fa7ff;
    --accent-ink: #0a0a0c;
    --accent-sub: #161b30;
    --star: #f0b429;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-sub: #101013;
  --bg-inset: #161619;
  --card: #121216;
  --line: #27272d;
  --line-soft: #1d1d22;
  --ink: #fafafa;
  --ink-2: #a1a1aa;
  --ink-3: #71717a;
  --accent: #8fa7ff;
  --accent-ink: #0a0a0c;
  --accent-sub: #161b30;
  --star: #f0b429;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* --- base ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 640;
  letter-spacing: -.022em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.028em; }
h3 { font-size: 1.1875rem; letter-spacing: -.018em; }

p { margin: 0; text-wrap: pretty; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* --- layout -------------------------------------------------------------- */

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

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--sub { background: var(--bg-sub); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }

.eyebrow {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .lede { max-width: 58ch; }

/* --- header -------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.masthead[data-stuck="true"] { border-bottom-color: var(--line); }

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { width: 28px; height: 28px; flex: none; border-radius: 8px; }
.brand__text {
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand__text span { color: var(--ink-3); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--bg-inset); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 560; }

@media (max-width: 640px) {
  .nav a { padding: 7px 9px; font-size: .8125rem; }
  .brand__text span { display: none; }
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-dark { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-light { display: none; }
}

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: .9375rem;
  font-weight: 550;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease),
    border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn--ghost:hover { border-color: var(--ink-3); transform: translateY(-1px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9375rem;
  font-weight: 550;
  color: var(--accent);
}
.arrow-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(3px); }

/* --- hero ---------------------------------------------------------------- */

.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero__grid { display: grid; gap: 26px; max-width: 48rem; }
.hero h1 > em {
  font-style: normal;
  color: var(--ink-3);
  display: block;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.stat {
  flex: 1 1 auto;
  min-width: 118px;
  padding: 18px 22px 18px 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat:not(:first-child) { padding-left: 22px; }
.stat__num {
  display: block;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 620;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat__label {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- icon marquee -------------------------------------------------------- */

.marquee {
  --fade: 96px;
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  gap: 14px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade),
    #000 calc(100% - var(--fade)), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade),
    #000 calc(100% - var(--fade)), transparent);
}
.marquee__row { display: flex; width: max-content; gap: 14px; }
.marquee__row--a { animation: slide-a 64s linear infinite; }
.marquee__row--b { animation: slide-b 78s linear infinite; }
@keyframes slide-a { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes slide-b { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.marquee a {
  flex: none;
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-inset);
  transition: transform .22s var(--ease);
}
.marquee a:hover { transform: scale(1.06); }
.marquee img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .marquee__row { animation: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee__row { flex-wrap: wrap; width: 100%; }
}

/* --- filters ------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}
.filter {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: .8125rem;
  font-weight: 520;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.filter:hover { border-color: var(--ink-3); color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.filter__count { opacity: .5; margin-left: 5px; font-variant-numeric: tabular-nums; }

/* --- app grid ------------------------------------------------------------ */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 12px;
}

.app-card {
  display: flex;
  gap: 15px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color .2s var(--ease), transform .2s var(--ease),
    box-shadow .2s var(--ease);
}
.app-card:hover {
  border-color: color-mix(in srgb, var(--ink-3) 60%, transparent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.app-card__icon {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--bg-inset);
}
.app-card__body { min-width: 0; display: grid; gap: 4px; align-content: start; }
.app-card__name {
  font-size: .9875rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.app-card__tag {
  font-size: .84rem;
  line-height: 1.45;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: .75rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); }
.rating svg { width: 11px; height: 11px; fill: var(--star); }
.dot::before { content: "·"; }

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

.empty {
  padding: 48px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: .9375rem;
}

/* --- app detail ---------------------------------------------------------- */

.app-hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(28px, 4vw, 44px); }
.app-hero__top { display: flex; gap: clamp(18px, 3vw, 28px); align-items: flex-start; }
.app-hero__icon {
  width: clamp(88px, 13vw, 116px);
  height: clamp(88px, 13vw, 116px);
  flex: none;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.app-hero__head { display: grid; gap: 12px; padding-top: 4px; }
.app-hero__head h1 { font-size: clamp(1.75rem, 4.4vw, 2.75rem); }
.app-hero__tag { font-size: clamp(1rem, 1.7vw, 1.1875rem); color: var(--ink-2); max-width: 46ch; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 1px;
  margin-top: clamp(32px, 4vw, 44px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact { background: var(--bg); padding: 15px 17px; }
.fact__label {
  font-family: var(--mono);
  font-size: .6563rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fact__value {
  margin-top: 4px;
  font-size: .9375rem;
  font-weight: 560;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.shots img {
  flex: none;
  width: clamp(178px, 24vw, 232px);
  border-radius: 16px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  background: var(--bg-inset);
}

/* --- prose (about, legal) ------------------------------------------------ */

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: 1.3125rem;
  letter-spacing: -.02em;
  margin-top: 2.2em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line-soft);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2 + p, .prose h2 + ul { margin-top: .7em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { margin-left: 0; padding-left: 1.15em; display: grid; gap: .6em; }
.prose li::marker { color: var(--ink-3); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--ink-3);
}

/* --- misc blocks --------------------------------------------------------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: clamp(24px, 3.5vw, 44px);
}
.col h3 { margin-bottom: 8px; }
.col p { color: var(--ink-2); font-size: .9375rem; }
.col__num {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 12px;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-sub);
}
.callout__text { display: grid; gap: 8px; max-width: 52ch; }
.callout h2 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); }
.callout p { color: var(--ink-2); font-size: .9375rem; }

.contact-list { display: grid; gap: 22px; }
.contact-item { display: grid; gap: 3px; }
.contact-item dt {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-item dd { margin: 0; font-size: 1rem; }
.contact-item dd a { color: var(--accent); }
.contact-item address { font-style: normal; color: var(--ink-2); line-height: 1.55; }

/* --- footer -------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-sub);
  padding-block: clamp(48px, 6vw, 72px) 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(132px, 1fr));
  gap: clamp(28px, 4vw, 52px);
}
.footer__about p {
  margin-top: 14px;
  font-size: .875rem;
  color: var(--ink-2);
  max-width: 34ch;
}
.footer__col h4 {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a {
  font-size: .875rem;
  color: var(--ink-2);
  transition: color .18s var(--ease);
}
.footer__col a:hover { color: var(--ink); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--ink-3);
}

/* --- reveal on scroll ---------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* --- 404 ----------------------------------------------------------------- */

.center-page {
  min-height: 62vh;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 18px;
  text-align: left;
}
