/* ==========================================================================
   Iluora — main site styles (home pages + website privacy policy)
   The Wanderfish legal pages use their own stylesheet: /assets/css/legal.css
   ========================================================================== */

@font-face {
  font-family: "Bricolage Display";
  src: url("../fonts/bricolage-display.woff2") format("woff2");
  font-weight: 600;
  font-stretch: 85% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Text";
  src: url("../fonts/bricolage-text.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #0a0c11;
  --bg-2: #0e1118;
  --surface: #12151d;
  --surface-2: #171b25;
  --line: #222634;
  --line-2: #2f3445;
  --text: #eceef3;
  --muted: #a0a6b4;
  --lamp: #ffb648;
  --lamp-hover: #ffc76e;
  --lamp-ink: #1a1204;
  --lamp-soft: rgba(255, 182, 72, 0.12);
  --danger: #ff8a7a;
  --ok: #7fe0b0;

  --display: "Bricolage Display", "Bricolage Text", system-ui, sans-serif;
  --sans: "Bricolage Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --radius: 20px;
  --nav-h: 72px;
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
strong, b { font-weight: 600; }

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

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--lamp);
  color: var(--lamp-ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.arrow { width: 1em; height: 1em; flex: none; }

/* --------------------------------------------------------------------------
   Wordmark: "ıluora" with the dot of the i as a light
   -------------------------------------------------------------------------- */
.wordmark {
  font: 600 1.5rem/1 var(--display);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
}
.wordmark .i { position: relative; }
.wordmark .i::after {
  content: "";
  position: absolute;
  left: 0.105em; /* centre of the stem, from the glyph origin */
  top: 0.17em;
  width: 0.18em;
  height: 0.18em;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 8px 2px rgba(255, 182, 72, 0.65), 0 0 24px 6px rgba(255, 182, 72, 0.22);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 17, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.nav-links {
  display: flex;
  gap: 4px;
  font-size: 0.9375rem;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.lang:hover { color: var(--text); background: var(--surface); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, background 0.25s;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 0.9375rem/1.2 var(--sans);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn .arrow.right { transform: none; }
.btn:hover .arrow.right { transform: translateX(3px); }

.btn-primary { background: var(--lamp); color: var(--lamp-ink); }
.btn-primary:hover { background: var(--lamp-hover); }

.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface); }

.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.875rem; border-radius: 10px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + clamp(64px, 11vw, 136px)) 0 clamp(72px, 10vw, 128px);
}

.hero-beam {
  position: absolute;
  z-index: -1;
  top: -160px;
  left: -30vw;
  right: -10vw;
  bottom: -40px;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 0%, rgba(255, 182, 72, 0.32), transparent 12%),
    conic-gradient(from 128deg at 34% 0%,
      transparent 0deg,
      rgba(255, 182, 72, 0.05) 6deg,
      rgba(255, 182, 72, 0.19) 16deg,
      rgba(255, 182, 72, 0.06) 30deg,
      transparent 42deg);
  -webkit-mask: linear-gradient(#000 40%, transparent 100%);
  mask: linear-gradient(#000 40%, transparent 100%);
  transform-origin: 34% 0;
  animation: sweep 11s ease-in-out infinite alternate;
}
@keyframes sweep {
  from { transform: rotate(-3deg); }
  to { transform: rotate(4deg); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.55;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 35% 35%, #000 10%, transparent 70%);
  mask: radial-gradient(ellipse 70% 60% at 35% 35%, #000 10%, transparent 70%);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-kicker::before {
  content: "";
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 12px var(--lamp);
}

.hero h1 {
  max-width: 20ch;
  font: 600 clamp(2.75rem, 7.6vw, 6.5rem)/0.98 var(--display);
  font-stretch: 85%;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 .lit { color: var(--lamp); display: block; }

.hero-lede {
  max-width: 52ch;
  margin: 30px 0 40px;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.hero-lede strong { color: var(--text); font-weight: 500; }

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

/* --------------------------------------------------------------------------
   The three lines of work
   -------------------------------------------------------------------------- */
.lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.line {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 34px;
  border-right: 1px solid var(--line);
  transition: background 0.3s;
}
.line:last-child { border-right: 0; }
.line:hover { background: linear-gradient(180deg, var(--lamp-soft), transparent 75%); }
.line h3 {
  margin: 20px 0 8px;
  font: 600 1.375rem/1.15 var(--display);
  letter-spacing: -0.015em;
}
.line p { font-size: 0.9375rem; color: var(--muted); }
.line .arrow {
  position: absolute;
  right: 24px; top: 28px;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.line:hover .arrow { color: var(--lamp); transform: translate(2px, -2px); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-top: clamp(88px, 11vw, 136px); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: 44px;
}
.section-head h2 {
  margin-top: 14px;
  font: 600 clamp(2.25rem, 5vw, 3.75rem)/1 var(--display);
  font-stretch: 85%;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-head > p {
  color: var(--muted);
  max-width: 46ch;
  justify-self: end;
  text-wrap: pretty;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Product identity row (icon + name + type) */
.product-id {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.product-id img {
  width: 72px; height: 72px;
  flex: none;
  border-radius: 18px;
  background: var(--surface-2);
}
.product-id h3 {
  font: 600 clamp(1.5rem, 2.6vw, 1.875rem)/1.08 var(--display);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  text-wrap: balance;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin: 4px 0 30px;
}
.stats div { padding-top: 16px; display: flex; flex-direction: column; }
.stats dd { order: -1; }
.stats dd {
  font: 600 2rem/1 var(--display);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text);
}

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

/* Games ------------------------------------------------------------------ */
.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.game-body { padding: clamp(28px, 4vw, 48px); }
.game-body > p { color: var(--muted); margin-bottom: 26px; max-width: 46ch; }
.game-media {
  position: relative;
  min-height: 420px;
  background: #1d2a3a url("../img/wanderfish-banner.webp") center / cover no-repeat;
}
.game-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(18, 21, 29, 0) 32%);
}

/* Screenshot gallery: a row that scrolls sideways, snapping to each image */
.shots {
  margin-top: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  border-radius: 16px;
  padding-bottom: 14px;
}
.shots:focus-visible { outline-offset: 4px; }
.shots ul {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 14px) / 4.6);
  gap: 14px;
}
.shots li { scroll-snap-align: start; }
.shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 853;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
.shots::-webkit-scrollbar-track { background: transparent; }

.section-cta { margin-top: 32px; display: flex; }

.slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 22px 28px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--muted);
}

/* Assets ----------------------------------------------------------------- */
.assets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.asset { display: flex; flex-direction: column; }
.asset-media {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.asset-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.asset:hover .asset-media img { transform: scale(1.025); }
.asset-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(24px, 3vw, 36px);
}
.asset-body > p { color: var(--muted); margin-bottom: 28px; flex: 1; }
.asset .product-id img { width: 56px; height: 56px; border-radius: 14px; }

/* Services --------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.service {
  padding: clamp(26px, 3vw, 36px);
  border-right: 1px solid var(--line);
}
.service:last-child { border-right: 0; }
.service-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lamp-soft);
  color: var(--lamp);
  margin-bottom: 26px;
}
.service-icon svg { width: 22px; height: 22px; }
.service h3 {
  font: 600 1.375rem/1.15 var(--display);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.service p { color: var(--muted); font-size: 0.96875rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  counter-reset: step;
}
.step {
  padding: 24px 26px 26px;
  border-top: 1px solid var(--line-2);
}
.step h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font: 600 1.0625rem/1.3 var(--sans);
  margin-bottom: 6px;
}
.step h3::before {
  counter-increment: step;
  content: "0" counter(step);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--lamp);
}
.step p { color: var(--muted); font-size: 0.9375rem; }

/* Contact ---------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.contact-aside {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(255, 182, 72, 0.10), transparent 60%),
    var(--surface);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-aside h2 {
  font: 600 clamp(2rem, 4vw, 3rem)/1.02 var(--display);
  font-stretch: 85%;
  letter-spacing: -0.03em;
  margin-top: 14px;
  text-wrap: balance;
}
.contact-aside p { color: var(--muted); }
.contact-mail {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact-mail a {
  display: inline-block;
  margin-top: 8px;
  font: 600 1.25rem/1.2 var(--display);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-mail a:hover { color: var(--lamp); border-color: var(--lamp); }

.form {
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-content: start;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label,
.field legend {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.field .optional { color: var(--muted); font-weight: 400; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #7d8494; }
.input:hover { border-color: #3d4356; }
.input:focus {
  outline: none;
  border-color: var(--lamp);
  box-shadow: 0 0 0 3px rgba(255, 182, 72, 0.18);
}
textarea.input { min-height: 150px; resize: vertical; line-height: 1.5; }

fieldset.field { border: 0; min-width: 0; }
fieldset.field legend { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover span { border-color: #3d4356; color: var(--text); }
.chip input:checked + span {
  background: var(--lamp-soft);
  border-color: var(--lamp);
  color: var(--text);
}
.chip input:focus-visible + span { outline: 2px solid var(--lamp); outline-offset: 2px; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--lamp);
  cursor: pointer;
}
.consent a,
.privacy-note a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.consent a:hover,
.privacy-note a:hover { text-decoration-color: var(--lamp); }

.privacy-note {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.privacy-note dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.privacy-note dt { color: var(--text); font-weight: 500; }

.form-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.form-status { font-size: 0.9375rem; color: var(--muted); }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--danger); }
.form-status a { text-decoration: underline; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(88px, 11vw, 136px);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { margin-top: 14px; max-width: 30ch; }
.footer-col h2 { margin-bottom: 14px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Document pages (website privacy policy, 404)
   -------------------------------------------------------------------------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter) 0;
}
.doc h1 {
  font: 600 clamp(2.25rem, 5vw, 3.5rem)/1.02 var(--display);
  font-stretch: 85%;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
  text-wrap: balance;
}
.doc .doc-meta { color: var(--muted); margin-bottom: 40px; font-size: 0.9375rem; }
.doc .doc-meta a,
.doc-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.doc .doc-meta a:hover,
.doc-body a:hover { text-decoration-color: var(--lamp); }
.doc-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lamp);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
}
.doc-body h2 {
  font: 600 1.375rem/1.2 var(--display);
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.doc-body p,
.doc-body ul { margin-bottom: 14px; color: #c9cdd6; }
.doc-body ul { padding-left: 20px; list-style: disc; }
.doc-body li { margin-bottom: 6px; }
.doc-body li::marker { color: var(--lamp); }
.doc-body strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Reveal on scroll (only when JS is running and motion is allowed)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 9px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --nav-h: 64px; }

  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px var(--gutter) 32px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    font-size: 1.25rem;
    display: none;
  }
  .site-header:has(.nav-links.is-open) {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav-links a:hover { background: none; color: var(--lamp); }
  .nav-links li:last-child a { border-bottom: 0; }


  .section-head { grid-template-columns: 1fr; margin-bottom: 32px; }
  .section-head > p { justify-self: start; }

  .game { grid-template-columns: 1fr; }
  .game-media { min-height: 0; aspect-ratio: 1024 / 500; order: -1; }
  .game-media::after { background: linear-gradient(0deg, var(--surface) 0%, rgba(18, 21, 29, 0) 35%); }
  .shots ul { grid-auto-columns: calc((100% - 2 * 14px) / 2.6); }

  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }

  .contact { grid-template-columns: 1fr; }
  .contact-aside { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .lines { grid-template-columns: 1fr; }
  .line { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 4px 26px; }
  .line:last-child { border-bottom: 0; }
  .line .arrow { right: 4px; top: 24px; }
  .assets { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(n + 3) { margin-top: 8px; }
  .form { grid-template-columns: 1fr; }
  .slot { flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .section-cta .btn { flex: 1 1 100%; }
  .shots ul { grid-auto-columns: 62%; gap: 10px; }
  .product-id img { width: 60px; height: 60px; border-radius: 15px; }
  .actions .btn { flex: 1 1 100%; }
  .form-footer .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .privacy-note dl { grid-template-columns: 1fr; }
  .privacy-note dd { margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-beam, .hero-grid, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* Simple footer (document pages): only the bottom row */
.site-footer > .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.site-footer a:hover { color: var(--text); }

/* 404 */
.hero .hero-lede + .hero-lede { margin-top: -24px; }

.nowrap { white-space: nowrap; }

/* Arrows for the screenshot gallery (shown by JS, only with a mouse) */
.shots-wrap { position: relative; }
.shots-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.shots-nav[hidden] { display: none; }
.shots-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}
.shots-btn svg { width: 16px; height: 16px; }
.shots-btn:hover:not(:disabled) { border-color: var(--lamp); color: var(--lamp); }
.shots-btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: none) { .shots-nav { display: none; } }

/* Sectors we have built software for (inside "Custom software") */
.sectors { margin-top: 16px; padding: 26px clamp(24px, 3vw, 36px) 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.sectors > .mono { margin-bottom: 20px; }
.sectors ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; }
.sectors li { display: flex; gap: 14px; align-items: flex-start; }
.sector-icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  color: var(--lamp);
}
.sector-icon svg { width: 20px; height: 20px; }
.sectors h3 { font: 600 1.0625rem/1.3 var(--sans); margin: 1px 0 3px; }
.sectors p { font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 960px) { .sectors ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sectors ul { grid-template-columns: 1fr; gap: 16px; } }
