/* DayZ Finder website: the app's own "field radio" look (warm amber on dark, Oswald titles, the desert picture).
   Colors and fonts come from app/src/styles/theme.css, so the site and the app look like one product. */

@font-face { font-family: "Oswald"; font-weight: 400; font-display: swap; src: url("../fonts/oswald-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("../fonts/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 400; font-display: swap; src: url("../fonts/oswald-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("../fonts/oswald-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("../fonts/oswald-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --bg: #120f0b;
  --bg-2: #17130e;
  --card: #1b1610;
  --line: rgba(222, 180, 115, 0.16);
  --line-mid: rgba(222, 180, 115, 0.26);
  --text: #f0e7d8;
  --text-soft: #d9cfbf;
  --muted: #a99d8b;
  --accent: #e0a95c;
  --accent-hi: #f0c27f;
  --accent-deep: #c68a3d;
  --accent-ink: #20150a;
  --sponsor: #b490f5;
  --title: "Oswald", "Segoe UI", sans-serif;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --wrap-wide: 1320px;
  --radius: 10px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { color: var(--text); }
::selection { background: rgba(224, 169, 92, 0.35); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--title);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.04;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.45rem; letter-spacing: 0.02em; line-height: 1.15; }
p { margin: 0; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.wrap--wide { width: min(100% - 48px, var(--wrap-wide)); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 6px; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(14, 11, 8, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 36px; width: min(100% - 48px, var(--wrap-wide)); }
.brand { display: flex; flex-direction: column; flex-shrink: 0; line-height: 1; color: var(--text); white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand__name { font: 700 1.55rem/1 var(--title); letter-spacing: 0.05em; }
.brand__tag { margin-top: 5px; font: 500 0.6rem/1 var(--title); letter-spacing: 0.32em; color: var(--accent); }
.nav { display: flex; gap: 6px; margin-left: auto; height: 100%; }
.nav a {
  position: relative; display: flex; align-items: center; padding: 0 14px;
  font: 500 0.95rem/1 var(--title); letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--accent);
}
.header-cta { padding: 10px 18px; font-size: 0.9rem; }
/* FR | EN: the same page in the other language. */
.lang-switch { display: flex; flex-shrink: 0; border: 1px solid var(--line-mid); border-radius: 8px; overflow: hidden; }
.lang-switch a { padding: 9px 11px; font: 500 0.8rem/1 var(--title); letter-spacing: 0.1em; color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: rgba(224, 169, 92, 0.16); color: var(--accent); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-mid); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; margin: auto; background: currentColor; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 8px;
  font: 700 1.05rem/1 var(--title); letter-spacing: 0.1em; text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--amber {
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-deep));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 30px rgba(224, 169, 92, 0.18);
}
.btn--amber:hover { color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 14px 36px rgba(224, 169, 92, 0.3); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-mid); }
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta-note { color: var(--muted); font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
/* The picture itself is set on the element (style="background-image: …"), one per page. */
.hero__bg { position: absolute; inset: 0; z-index: -1; background-color: var(--bg); background-position: center 30%; background-size: cover; background-repeat: no-repeat; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 15, 11, 0.55) 0%, rgba(18, 15, 11, 0.72) 45%, var(--bg) 88%),
    radial-gradient(ellipse at 50% 0%, transparent 30%, rgba(18, 15, 11, 0.6) 100%);
}
.hero__inner { padding: clamp(72px, 11vw, 140px) 0 56px; text-align: center; }
.hero__inner .lead { margin: 26px auto 0; max-width: 640px; }
.hero__inner .cta-row { justify-content: center; margin-top: 34px; }
.tagline { margin-bottom: 22px; font: 500 0.8rem/1 var(--title); letter-spacing: 0.42em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--text-soft); }
.hero__shot { padding-bottom: 20px; }

.page-hero .hero__inner { padding: clamp(52px, 7vw, 96px) 0 44px; text-align: left; }
.page-hero h1 { max-width: 22ch; font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.page-hero .lead { margin: 22px 0 0; max-width: 600px; }
.page-hero .cta-row { justify-content: flex-start; }

/* ---------- Screenshots ---------- */
.frame {
  margin: 0; position: relative;
  border: 1px solid var(--line-mid); border-radius: var(--radius); overflow: hidden;
  background: #0d0a07;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.frame img { width: 100%; cursor: zoom-in; }
.frame--glow { box-shadow: 0 50px 120px -30px rgba(224, 169, 92, 0.22), 0 40px 90px -20px rgba(0, 0, 0, 0.8); }
.caption { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
/* A tall or small screenshot: no wider than --max, centered in its column. */
.shot-narrow { width: 100%; max-width: var(--max, 460px); justify-self: center; }

/* A thin amber box over part of a screenshot, with its label: points at what matters in the picture. */
.mark {
  position: absolute; pointer-events: none;
  border: 2px solid var(--accent); border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(10, 8, 5, 0.38), 0 0 24px rgba(224, 169, 92, 0.35);
}
.mark span {
  position: absolute; left: -2px; bottom: calc(100% + 8px); white-space: nowrap;
  font: 500 0.82rem/1 var(--title); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-hi);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
.mark--right span { left: auto; right: -2px; }
.mark--light { box-shadow: 0 0 24px rgba(224, 169, 92, 0.35); } /* no dimming around it */

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 124px) 0; }
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }
.section--line { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p { margin-top: 20px; font-size: 1.12rem; }
.center { text-align: center; margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split--narrow-img { grid-template-columns: 1.15fr 0.85fr; }
.split--reverse > :first-child { order: 2; }
.split .copy h2 + p { margin-top: 22px; font-size: 1.12rem; }
.split .copy p + p { margin-top: 14px; }
.sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.copy .small { font-size: 0.95rem; color: var(--muted); }

.duo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.duo figure { margin: 0; }
.duo h3 { margin-top: 26px; }
.duo p { margin-top: 10px; color: var(--muted); }

.stack-shots { display: grid; gap: 22px; }

.kicker { margin-bottom: 12px; font: 500 0.8rem/1 var(--title); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }

/* ---------- The other pages, as big pictures ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.door {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px; padding: 28px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); color: var(--text-soft);
}
/* 116 % tall, anchored at the bottom: the app's own top bar stays out of view, the page itself shows. */
.door img { position: absolute; left: 0; right: 0; bottom: 0; z-index: -2; width: 100%; height: 116%; object-fit: cover; object-position: var(--x, 50%) 100%; transition: transform 0.5s ease; }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 15, 11, 0.05) 20%, rgba(18, 15, 11, 0.92) 70%); }
.door h3 { font-size: 1.7rem; }
.door p { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }
.door .arrow { margin-top: 18px; font: 500 0.85rem/1 var(--title); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-hi); }
.door:hover { color: var(--text-soft); border-color: var(--line-mid); }
.door:hover img { transform: scale(1.04); }

/* ---------- Guide steps ---------- */
.steps { display: grid; gap: clamp(72px, 10vw, 130px); counter-reset: step; }
.step { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.step:nth-child(even) { grid-template-columns: 1.2fr 0.8fr; }
.step:nth-child(even) .step__copy { order: 2; }
.step__num { display: block; font: 700 clamp(3.6rem, 7vw, 5.6rem)/0.9 var(--title); color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 18px; }
.step h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.step p { margin-top: 16px; font-size: 1.08rem; }
.step p.small { font-size: 0.95rem; color: var(--muted); }
.step--text { grid-template-columns: 1fr; max-width: 760px; }
.path { font-family: var(--title); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.path b { color: var(--accent-hi); font-weight: 500; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 30px 26px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts strong { display: block; font: 700 2.4rem/1 var(--title); color: var(--text); }
.facts span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Download band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(100px, 13vw, 170px) 0; }
.band .hero__bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(18, 15, 11, 0.62) 35%, rgba(18, 15, 11, 0.7) 70%, var(--bg) 100%); }
.band h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.band .lead { margin: 20px auto 0; max-width: 560px; }
.band .cta-row { justify-content: center; margin-top: 34px; }
.band .fineprint { margin: 26px auto 0; max-width: 560px; font-size: 0.86rem; color: var(--muted); }

/* ---------- Privacy page: a text page with a summary table ---------- */
.policy { max-width: 820px; }
.policy .meta { margin-top: 10px; font-size: 0.95rem; color: var(--muted); line-height: 1.7; }
.policy h2 { margin-top: 60px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.policy h3 { margin-top: 30px; font-size: 1.15rem; }
.policy h2 + p, .policy h3 + p, .policy p + p, .policy ul + p, .policy table + p { margin-top: 14px; }
.policy ul { margin: 14px 0 0; padding-left: 22px; }
.policy li + li { margin-top: 8px; }
.policy table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.95rem; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
.policy tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.policy th { color: var(--text); font-family: var(--title); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.policy code { font-size: 0.9em; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--text); }
.policy strong { color: var(--text); }
/* What has to be filled in before the page goes online (the controller, the e-mail, the data center). */
/* What's new (nouveautes.html, en/whats-new.html): one block per version, the newest at the top. */
.changelog { max-width: 820px; }
.changelog .release { padding: 44px 0; border-top: 1px solid var(--line); }
.changelog .release:first-of-type { padding-top: 8px; border-top: 0; }
.changelog h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.changelog .when { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }
.changelog .release > p:not(.when) { margin-top: 16px; }
.changelog ul { margin: 20px 0 0; padding: 0; list-style: none; }
.changelog ul.plain { padding-left: 22px; list-style: disc; }
.changelog li { line-height: 1.65; }
.changelog li + li { margin-top: 12px; }
.changelog .small { margin-top: 18px; color: var(--muted); }
.change {
  display: inline-block; margin-right: 10px; padding: 4px 8px; border: 1px solid var(--line-mid); border-radius: 4px;
  background: rgba(224, 169, 92, 0.12); color: var(--accent-hi);
  font: 500 0.72rem/1 var(--title); letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 2px;
}
.change--paused { background: transparent; color: var(--muted); }
.changelog__cta { margin-top: 8px; padding-top: 40px; border-top: 1px solid var(--line); justify-content: flex-start; }

.policy .todo { padding: 0 6px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
@media (max-width: 700px) { .policy th, .policy td { padding: 8px 6px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 52px; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 28px 60px; align-items: start; width: min(100% - 48px, var(--wrap-wide)); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-self: end; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }
.site-footer .legal { grid-column: 1 / -1; font-size: 0.82rem; color: #7d7364; }

/* ---------- Picture viewer (click a screenshot) ---------- */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 6, 4, 0.94); }
.viewer::backdrop { background: rgba(8, 6, 4, 0.94); }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: min(96vw, 2000px); max-height: 92vh; width: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); cursor: zoom-out; }
.viewer button { position: fixed; top: 18px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-mid); background: rgba(20, 16, 11, 0.9); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }

/* ---------- Appearing on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .door img, .btn { transition: none; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1240px) {
  .header-cta { display: none; } /* the page's own download buttons stay */
  .site-header .wrap { gap: 24px; }
}
@media (max-width: 1080px) {
  .nav { gap: 0; }
  .nav a { padding: 0 9px; font-size: 0.84rem; letter-spacing: 0.06em; }
  .site-header .wrap { gap: 18px; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; order: 2; margin-left: 0; }
  .lang-switch { order: 1; margin-left: auto; }
  .header-cta { display: none; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; height: auto;
    flex-direction: column; gap: 0; padding: 8px 0 18px; margin: 0;
    background: rgba(14, 11, 8, 0.97); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 24px; font-size: 1rem; }
  .nav a[aria-current="page"]::after { left: 24px; right: auto; width: 28px; bottom: 8px; }
  .split, .split--narrow-img, .duo, .step, .step:nth-child(even) { grid-template-columns: 1fr; }
  .split--reverse > :first-child, .step:nth-child(even) .step__copy { order: 0; }
  .sticky { position: static; }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 320px; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .wrap--wide { width: min(100% - 32px, var(--wrap)); }
  .site-header .wrap { gap: 12px; width: min(100% - 32px, var(--wrap-wide)); }
  .brand__name { font-size: 1.25rem; }
  .lang-switch a { padding: 8px 9px; }
  .btn { padding: 14px 20px; font-size: 0.98rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer nav { justify-self: start; }
  .mark span { font-size: 0.7rem; }
  .tagline { font-size: 0.68rem; letter-spacing: 0.24em; }
}
