/* ==========================================================================
   Gaming-Project Studio – site stylesheet
   One file for every page. Colours live in the tokens at the top:
   change them there and the whole site follows (light and dark theme).
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License, see assets/fonts) ---------- */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/cinzel-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --font-display: "Cinzel", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* brand colours (same in both themes) */
  --gold: #e8b54a;
  --gold-hi: #ffe7a3;
  --gold-deep: #b9862a;
  --navy: #0a1426;
  --on-gold: #1c1406;

  /* layout */
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* light theme (parchment and ink) */
  --bg: #f7f3ea;
  --bg-alt: #efe8d8;
  --surface: #fffdf8;
  --surface-2: #f4eee1;
  --text: #121a2b;
  --text-muted: #4a5468;
  --heading: #0d1528;
  --line: rgba(110, 80, 25, .16);
  --line-strong: rgba(150, 105, 25, .42);
  --accent: #8a5a0c;          /* gold text on light backgrounds (AA contrast) */
  --accent-soft: rgba(185, 134, 42, .14);
  --shadow: 0 1px 2px rgba(30, 24, 10, .06), 0 10px 30px rgba(30, 24, 10, .08);
  --shadow-lg: 0 24px 60px rgba(20, 16, 6, .18);
  --header-bg: rgba(247, 243, 234, .86);
  --focus: #1d4ed8;
  color-scheme: light;
}

/* dark theme (night sky and gold) – used when the system asks for it, unless the visitor picked light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070d1a;
    --bg-alt: #0b1426;
    --surface: #0f1b33;
    --surface-2: #142443;
    --text: #e6ebf4;
    --text-muted: #a3afc4;
    --heading: #f7efdc;
    --line: rgba(232, 181, 74, .14);
    --line-strong: rgba(232, 181, 74, .42);
    --accent: #f0c66a;
    --accent-soft: rgba(232, 181, 74, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, .55);
    --header-bg: rgba(7, 13, 26, .82);
    --focus: #ffd56b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070d1a;
  --bg-alt: #0b1426;
  --surface: #0f1b33;
  --surface-2: #142443;
  --text: #e6ebf4;
  --text-muted: #a3afc4;
  --heading: #f7efdc;
  --line: rgba(232, 181, 74, .14);
  --line-strong: rgba(232, 181, 74, .42);
  --accent: #f0c66a;
  --accent-soft: rgba(232, 181, 74, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .55);
  --header-bg: rgba(7, 13, 26, .82);
  --focus: #ffd56b;
  color-scheme: dark;
}

/* sections drawn over a render (hero, demo band) always use the dark palette */
.on-dark {
  --text: #e6ebf4;
  --text-muted: #c3cbda;
  --heading: #f7efdc;
  --line: rgba(232, 181, 74, .22);
  --line-strong: rgba(232, 181, 74, .5);
  --accent: #f0c66a;
  --focus: #ffd56b;
  color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 650; color: var(--heading); }
h1, h2, h3, h4 { color: var(--heading); margin: 0 0 .5em; line-height: 1.2; overflow-wrap: break-word; hyphens: manual; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1.04rem + .3vw, 1.25rem); font-weight: 650; letter-spacing: .005em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: rgba(232, 181, 74, .35); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--on-gold); font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(780px + 2 * var(--gutter)); }
.section { padding-block: clamp(56px, 7vw, 110px); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p { color: var(--text-muted); font-size: 1.08em; margin: 0; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: var(--text-muted); }

/* small gold label above headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 .9rem; color: var(--accent);
  font: 600 .78rem/1.3 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.section-head--left .eyebrow::before { display: none; }

/* gold hairline with a diamond, as in the banner */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 0 auto 1.4rem; max-width: 420px; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { background: linear-gradient(90deg, currentColor, transparent); }
.ornament span { width: 8px; height: 8px; transform: rotate(45deg); background: currentColor; box-shadow: 0 0 12px rgba(232, 181, 74, .6); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--heading); --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  border: 1px solid var(--btn-line); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 650 .95rem/1.2 var(--font-body); letter-spacing: .02em; text-decoration: none;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--gold); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary {
  --btn-fg: var(--on-gold); --btn-line: transparent;
  background: linear-gradient(180deg, #ffe08f 0%, var(--gold) 46%, #d29a2c 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 8px 22px rgba(232, 181, 74, .28);
}
.btn--primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 12px 30px rgba(232, 181, 74, .42); }
.btn--secondary { --btn-bg: var(--accent-soft); }
.btn--ghost { --btn-line: transparent; padding-inline: .6em; }
.btn--ghost:hover { --btn-line: transparent; color: var(--accent); }
.btn--small { min-height: 40px; padding: .5em 1em; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
.btn-row--spaced { margin-top: 1.4rem; }

/* Asset Store button while its link is still a placeholder (see README) */
.btn.is-placeholder { cursor: not-allowed; filter: saturate(.55); }
.btn.is-placeholder:hover { transform: none; }
.placeholder-tag {
  display: inline-block; padding: .1em .5em; border-radius: 999px;
  background: rgba(28, 20, 6, .16); font-size: .72em; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--heading); text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.brand__name { font-weight: 700; font-size: 1.02rem; letter-spacing: .06em; }
.brand__sub { margin-top: 4px; font-size: .62rem; font-weight: 600; letter-spacing: .42em; color: var(--accent); }

.site-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block; padding: .55em .9em; border-radius: 999px;
  color: var(--text); font-weight: 550; font-size: .95rem; text-decoration: none;
}
.site-nav a:hover { color: var(--heading); background: var(--accent-soft); }
.site-nav a[aria-current="page"], .site-nav a.is-active { color: var(--heading); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--heading); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--accent-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .js .menu-toggle { display: inline-grid; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 16px;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; }
  .js .site-nav a { padding: .85em .6em; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .js .site-nav a[aria-current="page"], .js .site-nav a.is-active { box-shadow: inset 3px 0 0 var(--gold); }
  .no-js .site-header__inner { flex-wrap: wrap; padding-block: 8px; }
  .brand__name { font-size: .92rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  min-height: min(88vh, 860px);
  padding-block: clamp(72px, 10vw, 140px);
  background: var(--navy);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::before { /* colour grade so the copy stays readable */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(10, 20, 38, .55), rgba(10, 20, 38, 0) 70%),
    linear-gradient(180deg, rgba(10, 20, 38, .7) 0%, rgba(10, 20, 38, .25) 30%, rgba(10, 20, 38, .45) 65%, rgba(7, 13, 26, .96) 100%);
}
.hero::after { /* gold edge at the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-hi) 50%, var(--gold) 80%, transparent);
  opacity: .8;
}
.hero__content { text-align: center; }
.hero__emblem { width: clamp(108px, 14vw, 168px); height: auto; margin: 0 auto 18px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.wordmark { margin: 0; text-shadow: 0 4px 24px rgba(0, 0, 0, .55); }
.wordmark__main {
  display: block; font-size: clamp(2.2rem, 1.1rem + 5.4vw, 5.2rem); line-height: 1.02; letter-spacing: .03em;
  background: linear-gradient(180deg, #fffaf0 10%, #f3dcae 70%, #e2bd77 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark .ornament { margin: .9rem auto 1.2rem; font-size: clamp(.9rem, .7rem + 1vw, 1.5rem); max-width: 560px; }
.wordmark .ornament b { font-weight: 600; letter-spacing: .5em; margin-right: -.5em; color: var(--gold-hi); }
.wordmark .ornament span { width: 9px; height: 9px; }
.hero__tagline { margin: 0 auto .7rem; max-width: 30ch; color: #f2f5fa; font-size: clamp(1.3rem, 1rem + 1.6vw, 2.25rem); font-weight: 550; line-height: 1.25; text-shadow: 0 3px 18px rgba(0, 0, 0, .6); }
.hero__sub { color: var(--gold); font-size: .82rem; font-weight: 650; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 2rem; }
.hero .btn-row { justify-content: center; }
.hero .btn--secondary { --btn-bg: rgba(10, 20, 38, .55); --btn-fg: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* product hero: left aligned, image fades in from the right */
.hero--product { min-height: min(84vh, 800px); }
.hero--product::before {
  background:
    linear-gradient(90deg, rgba(7, 13, 26, .94) 0%, rgba(7, 13, 26, .78) 38%, rgba(7, 13, 26, .2) 72%, rgba(7, 13, 26, .05) 100%),
    linear-gradient(0deg, rgba(7, 13, 26, .92) 0%, rgba(7, 13, 26, 0) 40%);
}
.hero--product .hero__content { text-align: left; max-width: 640px; }
.hero--product h1 { margin-bottom: .35em; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.hero--product .lead { color: #dfe5ef; font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); margin-bottom: 1.8rem; }
.hero--product .btn-row { justify-content: flex-start; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: .45em; padding: .35em .8em; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(10, 20, 38, .45);
  color: #f3e6c5; font-size: .8rem; font-weight: 600; letter-spacing: .03em;
}
.badge::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.hero__note { margin: 1rem 0 0; font-size: .85rem; color: #b9c3d4; }
@media (max-width: 760px) {
  .hero--product { align-items: end; }
  .hero--product::before {
    background: linear-gradient(0deg, rgba(7, 13, 26, .97) 0%, rgba(7, 13, 26, .88) 45%, rgba(7, 13, 26, .35) 80%, rgba(7, 13, 26, .2) 100%);
  }
}

/* breadcrumb */
.breadcrumb { font-size: .85rem; margin-bottom: 1.4rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4em; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .4em; opacity: .5; }
.breadcrumb a { color: inherit; text-decoration: none; opacity: .85; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Pillars / feature tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 2vw, 24px); }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  position: relative; padding: 26px 24px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tile h3 { margin-bottom: .4em; }
.tile p { margin: 0; color: var(--text-muted); font-size: .97em; }
.tile__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line-strong);
}
.tile__icon svg { width: 24px; height: 24px; }

/* ---------- Product cards ---------- */
/* cards keep a fixed width and stay centred, so 1, 2 or many products all look balanced */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 380px)); justify-content: center; gap: clamp(18px, 2.4vw, 28px); }
.product-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: calc(var(--radius) + 4px); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.product-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.product-card__meta { margin: 0 0 .5rem; color: var(--accent); font-size: .76rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.product-card h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: .02em; margin-bottom: .45em; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.product-card p { color: var(--text-muted); }
.product-card__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.product-card__status {
  position: absolute; top: 14px; left: 14px; z-index: 2; padding: .3em .75em; border-radius: 999px;
  background: rgba(7, 13, 26, .78); color: var(--gold-hi); border: 1px solid rgba(232, 181, 74, .45);
  font-size: .72rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
}
.product-card--soon {
  align-items: center; justify-content: center; text-align: center; min-height: 100%;
  padding: 40px 28px; border-style: dashed; border-color: var(--line-strong); box-shadow: none;
  background:
    radial-gradient(60% 50% at 50% 30%, var(--accent-soft), transparent 70%),
    var(--surface-2);
}
.product-card--soon:hover { transform: none; box-shadow: none; }
.product-card--soon img { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 18px; opacity: .9; filter: grayscale(.25); }
.product-card--soon h3 { font-size: 1.3rem; }
.product-card--soon p { max-width: 34ch; margin-inline: auto; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  margin: 0; padding: 0; list-style: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.stats li { padding: 22px 18px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.stats b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); color: var(--accent); line-height: 1.1; }
.stats span { display: block; margin-top: 6px; color: var(--text-muted); font-size: .86rem; line-height: 1.35; }
.stats-wrap { margin-top: calc(-1 * clamp(36px, 5vw, 64px)); position: relative; z-index: 2; }
.stats-wrap .stats { box-shadow: var(--shadow-lg); }

/* ---------- Feature rows (image + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 110px); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.08fr 1fr; }
  .feature--flip .feature__media { order: 2; }
  .feature--tall { grid-template-columns: .8fr 1.2fr; }
}
.feature__media { position: relative; }
.feature__media img, .feature__media .frame {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); background: var(--navy);
}
.feature__media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; margin-inline: auto; }
.feature__media figcaption { margin-top: 10px; font-size: .85rem; color: var(--text-muted); text-align: center; }
.feature__text h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.2rem); }
.feature__text > p { color: var(--text-muted); }

.check-list { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: .75em; }
.check-list li { position: relative; padding-left: 1.9em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.15em; height: 1.15em; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23d29a2c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
  border: 1px solid var(--line-strong);
}

.callout {
  margin-top: 1.4em; padding: 14px 18px; border-left: 3px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft); color: var(--text); font-size: .95em;
}
.callout p:last-child { margin: 0; }

/* integration cards */
.int-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.int-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.int-card h3 { margin-bottom: .35em; }
.int-card p { margin: 0; color: var(--text-muted); font-size: .95em; }
.int-card .version { display: inline-block; margin-bottom: 10px; font-size: .75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* ---------- Gallery and lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gallery li { margin: 0; }
.gallery a {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--navy); border: 1px solid var(--line);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.gallery img.top { object-position: top; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 13, 26, .75), transparent 45%); opacity: 0; transition: opacity .3s;
}
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.gallery a:focus-visible { outline-offset: 3px; }
.gallery .zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 1; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(7, 13, 26, .7); color: #fff; opacity: 0; transition: opacity .3s;
}
.gallery a:hover .zoom, .gallery a:focus-visible .zoom { opacity: 1; }
.gallery .zoom svg { width: 18px; height: 18px; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(4, 8, 16, .94); color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 8, 16, .7); }
html.lightbox-open { overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in .2s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.lightbox__count { font-size: .9rem; color: #c3cbda; font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox__caption { margin: 0; padding: 14px 16px 20px; text-align: center; color: #dfe5ef; font-size: .95rem; min-height: 3.5em; }
.lightbox .icon-btn { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .16); }
.lightbox .icon-btn:focus-visible { outline-color: #ffd56b; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
@media (max-width: 640px) {
  .lightbox__stage { padding: 0 8px; }
  .lightbox__nav { top: auto; bottom: -58px; transform: none; }
  .lightbox__caption { padding-inline: 64px; }
}

/* ---------- Demo band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 13, 26, .95) 0%, rgba(7, 13, 26, .82) 45%, rgba(7, 13, 26, .45) 100%);
}
.band__content { max-width: 620px; }
.band h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
.band p { color: #d4dbe7; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 1.2rem 0 1.8rem; padding: 0; list-style: none; color: #c3cbda; font-size: .9rem; }
.facts li { display: inline-flex; align-items: center; gap: .5em; }
.facts li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }

/* ---------- Spec cards (technical details) ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.spec { padding: 24px 24px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.spec h3 { display: flex; align-items: center; gap: .6em; padding-bottom: .7em; margin-bottom: .9em; border-bottom: 1px solid var(--line); font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.spec h3::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); flex: none; }
.spec ul { padding-left: 1.1em; font-size: .95em; }
.spec li { margin-bottom: .5em; }
.spec li::marker { color: var(--gold-deep); }

/* requirements table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.req-table { width: 100%; border-collapse: collapse; font-size: .97em; }
.req-table th, .req-table td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.req-table tr:last-child th, .req-table tr:last-child td { border-bottom: 0; }
.req-table th { width: 32%; min-width: 150px; color: var(--heading); font-weight: 650; background: var(--surface-2); }
.yes, .no { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.yes { color: #17703f; }
.no { color: #b4372b; }
:root[data-theme="dark"] .yes { color: #4fd68f; }
:root[data-theme="dark"] .no { color: #ff8a7a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .yes { color: #4fd68f; }
  :root:not([data-theme="light"]) .no { color: #ff8a7a; }
}

/* documentation languages */
.lang-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.lang-list a {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .5em 1em; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--heading); text-decoration: none; font-weight: 550;
}
.lang-list a:hover { border-color: var(--gold); background: var(--accent-soft); }
.lang-list abbr { text-decoration: none; font-size: .78em; font-weight: 700; letter-spacing: .08em; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 650; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-3px);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 20px 6px; color: var(--text-muted); }

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px); border-radius: calc(var(--radius) + 6px);
  text-align: center; background:
    radial-gradient(80% 120% at 50% 0%, rgba(232, 181, 74, .22), transparent 60%),
    linear-gradient(180deg, #13254a, #0a1426);
  border: 1px solid rgba(232, 181, 74, .35); box-shadow: var(--shadow-lg);
}
.cta-panel h2 { max-width: 22ch; margin-inline: auto; }
.cta-panel p { max-width: 56ch; margin: 0 auto 1.8rem; color: #c9d1df; }
.cta-panel img { width: 76px; height: 76px; margin: 0 auto 16px; }

/* ---------- Prose pages (about, legal) ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); background:
  radial-gradient(60% 120% at 0% 0%, var(--accent-soft), transparent 70%), var(--bg-alt); }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); margin-bottom: .3em; }
.page-head p { max-width: 62ch; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.9rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose address { font-style: normal; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 2.4rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; margin: 1.4rem 0 2rem; }
.contact-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card h3 { margin-bottom: .4em; }
.contact-card p { color: var(--text-muted); }
.contact-card .big-link { font-size: 1.1rem; font-weight: 650; word-break: break-word; }
.about-intro { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 860px) { .about-intro { grid-template-columns: 1.4fr 1fr; } }
.about-intro img { width: min(100%, 360px); margin-inline: auto; border-radius: 28px; box-shadow: var(--shadow-lg); }

/* ---------- 404 ---------- */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.not-found .code { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: 1; color: var(--accent); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding-block: 56px 28px; border-top: 1px solid var(--line); background: var(--bg-alt); font-size: .93rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand p { color: var(--text-muted); max-width: 38ch; margin-top: 14px; }
.site-footer h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero__bg, .band__bg, .btn-row, .skip-link { display: none !important; }
  .hero, .band { min-height: 0; background: none; color: #000; }
  body { background: #fff; color: #000; }
}

/* ---------- Code sample in a feature row ---------- */
.code-frame {
  margin: 0; padding: clamp(16px, 2.4vw, 26px); border-radius: var(--radius); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg); background: var(--navy); color: #e7e2d3; overflow-x: auto;
  font: 500 clamp(.72rem, .66rem + .25vw, .84rem)/1.65 ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace; tab-size: 4;
}
.code-frame code { font: inherit; white-space: pre; }
.code-frame .k { color: var(--gold); }
.code-frame .t { color: #9fd3c7; }
.code-frame .s { color: #f0c29b; }
.code-frame .n { color: #f3a6a0; }
.code-frame .c { color: #8a93a8; font-style: italic; }
