/* =========================================================================
   VELAVANT DESIGN SYSTEM — PALETTE B (DEEP INDIGO & COLD STEEL)
   60% Deep Black Graphite | 30% Lunar Platinum & Cold Steel | 10% Astral Indigo
   Strict zero third-party requests, zero trackers, no pink/magenta, no yellow-blue.
   ========================================================================= */
:root {
  /* Base 60% — Deep Black Graphite / Astral Obsidian */
  --bg-canvas: #090B12;
  --bg-brand: #0F1014;
  --bg-surface: #121521;
  --bg-surface-elevated: #191E2F;
  --bg-glass: rgba(9, 11, 18, 0.85);

  /* Structure & Type 30% — Lunar Platinum & Cold Steel */
  --text-primary: #EEF2F8;
  --text-secondary: #A0AABF;
  --text-muted: #8693AD;
  --border-subtle: rgba(238, 242, 248, 0.085);
  --border-strong: rgba(238, 242, 248, 0.16);

  /* Accents 10% — Deep Astral Indigo & Sapphire (0% pink/magenta) */
  --accent-indigo: #5263F5;
  --accent-sapphire: #6E82FF;
  --accent-soft: #9AA9FF;
  --accent-glow: rgba(82, 99, 245, 0.28);
  --accent-glow-strong: rgba(110, 130, 255, 0.34);
  --border-accent: rgba(124, 142, 255, 0.44);
  --gradient-accent: linear-gradient(135deg, #4D5EF2 0%, #6E82FF 100%);
  --gradient-accent-hover: linear-gradient(135deg, #5C6CFF 0%, #7F91FF 100%);

  /* Typography */
  --font-display: 'Segoe UI Variable Display', 'SF Pro Display', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI Variable Text', 'SF Pro Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  /* Layout & Radii */
  --container-max: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.48);
  --shadow-glow: 0 10px 30px rgba(82, 99, 245, 0.30);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 560px at 80% -6%, rgba(82, 99, 245, 0.16), transparent 64%),
    radial-gradient(640px 460px at 14% 18%, rgba(110, 140, 255, 0.06), transparent 65%),
    var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.58;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

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

.faq-question:focus-visible,
.gallery-thumb:focus-visible,
.swatch-card:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-color: var(--border-accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-indigo);
  color: #FFFFFF;
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Subtle Starlight Grid Backdrop ---------- */
.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(238, 242, 248, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(238, 242, 248, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 35%, transparent 100%);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 4px 2px;
}

.brand-mark-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-brand);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(82, 99, 245, 0.18);
}

.brand-mark-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(238, 242, 248, 0.06);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.is-active,
.lang-btn[aria-current="page"] {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border-accent);
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: rgba(9, 11, 18, 0.96);
  padding: 12px 18px 18px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(238, 242, 248, 0.03);
}

.mobile-nav-list a:hover,
.mobile-nav-list a[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(82, 99, 245, 0.14);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gradient-accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--gradient-accent-hover);
  box-shadow: 0 14px 36px rgba(98, 118, 255, 0.36);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--border-accent);
  background: #212533;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(238, 242, 248, 0.04);
}

.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 64px 0 72px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(98, 114, 248, 0.11);
  border: 1px solid rgba(130, 146, 255, 0.32);
  color: #CED6FF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow-star {
  width: 10px;
  height: 10px;
  display: inline-block;
  color: var(--accent-soft);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin: 0 0 20px;
  color: var(--text-primary);
}

.hero-title .accent-text {
  background: linear-gradient(120deg, #EEF2F8 14%, #9AA9FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.62;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sapphire);
  box-shadow: 0 0 10px var(--accent-indigo);
}

/* Hero Emblem Monolith — pixel-matched #0F1014 ground */
.hero-emblem-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-brand);
  border: 1px solid var(--border-subtle);
  padding: 28px;
  box-shadow:
    var(--shadow-card),
    0 0 70px rgba(82, 99, 245, 0.14);
  overflow: hidden;
}

.hero-emblem-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(124, 142, 255, 0.42), rgba(238, 242, 248, 0.05) 45%, rgba(82, 99, 245, 0.34));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-emblem-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -70px;
  top: -80px;
  background: radial-gradient(circle, rgba(110, 130, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-emblem-frame {
  position: relative;
  background: var(--bg-brand);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 390px;
  margin: 0 auto;
}

.hero-emblem-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-emblem-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.hero-emblem-caption span:last-child {
  color: var(--accent-soft);
}

/* ---------- Sections ---------- */
.section {
  padding: 44px 0 56px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-note {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Featured Release Card (Порубежье) ---------- */
.release-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.22s ease;
}

.release-card + .release-card {
  margin-top: 24px;
}

.release-card:hover {
  border-color: var(--border-accent);
}

.release-media {
  position: relative;
  background: #0B1520;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

.release-media a {
  display: block;
  width: 100%;
}

.release-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 500;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s ease;
}

.release-card:hover .release-media img {
  transform: scale(1.018);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-released {
  background: rgba(98, 114, 248, 0.13);
  border: 1px solid rgba(130, 146, 255, 0.42);
  color: #D6DDFF;
}

.status-released::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-sapphire);
  box-shadow: 0 0 10px var(--accent-indigo);
}

.status-indev {
  background: rgba(238, 242, 248, 0.06);
  border: 1px solid rgba(238, 242, 248, 0.2);
  color: var(--text-primary);
}

.status-indev::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 8px var(--accent-indigo);
}

.release-body {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-genre {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.project-title a:hover {
  color: var(--accent-soft);
}

.project-desc {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--text-secondary);
  margin: 0 0 22px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.tag {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: #CBD2DF;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.store-footnote {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- In Development Card (Subterra) ---------- */
.dev-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.22s ease;
}

.dev-card + .dev-card {
  margin-top: 24px;
}

.dev-card:hover {
  border-color: var(--border-strong);
}

.dev-media {
  position: relative;
  background: #101114;
  min-height: 310px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dev-media-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dev-media-inset {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 176px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(238, 242, 248, 0.22);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  background: #0A0B0F;
}

.dev-media-inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dev-media-inset-label {
  position: absolute;
  left: 6px;
  bottom: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(10, 11, 15, 0.78);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.dev-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Studio Principles ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pillar-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(98, 114, 248, 0.12);
  border: 1px solid rgba(130, 146, 255, 0.28);
  color: #C2CCFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.pillar-text {
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Contacts & Legal Strip ---------- */
.contact-strip {
  background:
    radial-gradient(520px 260px at 92% 50%, rgba(82, 99, 245, 0.14), transparent 72%),
    var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.contact-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
}

.contact-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  max-width: 500px;
}

.email-pill-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.email-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
}

.legal-quick-box {
  background: rgba(10, 11, 15, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.legal-quick-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(238, 242, 248, 0.03);
  border: 1px solid transparent;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.legal-link:hover {
  border-color: var(--border-accent);
  background: rgba(82, 99, 245, 0.09);
}

.legal-link code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-soft);
}

/* ---------- Project Detail Page ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 26px 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
  padding: 4px 2px;
}

.breadcrumbs a:hover {
  color: var(--text-primary);
}

.breadcrumbs span[aria-hidden="true"] {
  opacity: 0.45;
}

.project-hero {
  padding: 8px 0 40px;
}

.project-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.project-cover-frame {
  background: #0B121C;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.project-cover-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.project-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.meta-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.meta-tile-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.meta-tile-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  word-break: break-word;
}

.prose-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
}

.prose-panel p {
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.prose-panel p:last-child {
  margin-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.feature-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Gallery & Lightbox ---------- */
.gallery-grid {
  display: grid;
  gap: 18px;
}

.gallery-grid-portrait {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid-landscape {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.gallery-thumb {
  position: relative;
  width: 100%;
  background: #0A0C13;
  overflow: hidden;
}

.gallery-grid-portrait .gallery-thumb {
  aspect-ratio: 9 / 16;
}

.gallery-grid-landscape .gallery-thumb {
  aspect-ratio: 16 / 9;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
}

.specs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
}

.spec-card,
.privacy-callout {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14.5px;
}

.spec-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spec-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-value {
  color: var(--text-primary);
  text-align: right;
}

.privacy-callout {
  background:
    radial-gradient(360px 200px at 90% 10%, rgba(82, 99, 245, 0.14), transparent 72%),
    var(--bg-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.privacy-callout h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 10px;
}

.privacy-callout p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 8, 14, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1060px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.lightbox-stage img {
  max-width: min(82vw, 900px);
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
  background: #090B12;
}

.lightbox-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.lightbox-btn:hover {
  border-color: var(--border-accent);
  background: rgba(82, 99, 245, 0.24);
}

.lightbox-close {
  position: absolute;
  top: -4px;
  right: 0;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 900px;
  font-size: 14px;
  color: var(--text-secondary);
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-soft);
  flex-shrink: 0;
}

/* ---------- Legal / Support / Press / 404 Base Pages ---------- */
.page-hero {
  padding: 46px 0 26px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.page-lead {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0;
}

.bilingual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  scroll-margin-top: 90px;
}

.doc-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0;
}

.doc-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.doc-section {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(238, 242, 248, 0.06);
}

.doc-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.doc-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.doc-card p {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--text-secondary);
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.doc-card p:last-child {
  margin-bottom: 0;
}

.doc-card a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-card a:hover {
  color: var(--text-primary);
}

.doc-card code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(82, 99, 245, 0.12);
  color: #D7E0FF;
  word-break: break-word;
}

.doc-list {
  margin: 8px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-secondary);
}

.doc-list strong {
  color: var(--text-primary);
}

.legal-jump-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.legal-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.legal-meta-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.legal-meta-pill .meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.legal-meta-pill .meta-value {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.legal-meta-pill a {
  color: var(--accent-soft);
}

.legal-meta-pill code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #D7E0FF;
}

.moderation-note {
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

/* ---------- Support Steps & FAQ ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(82, 99, 245, 0.16);
  border: 1px solid rgba(110, 130, 255, 0.34);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #C7D2FF;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-accent);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  min-height: 54px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-soft);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-chevron::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-chevron::after {
  transform: rotate(0deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0;
}

/* ---------- Press Kit Extensions ---------- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fact-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.boilerplate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boilerplate-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.boilerplate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.swatch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  min-height: 68px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.swatch-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.swatch-color {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(238, 242, 248, 0.22);
  flex-shrink: 0;
}

.swatch-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.swatch-meta strong {
  font-size: 14px;
  color: var(--text-primary);
}

.swatch-meta code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-soft);
}

.swatch-role {
  font-size: 12px;
  color: var(--text-muted);
}

.press-projects-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.press-project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}

.press-project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.press-project-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 8px 0 6px;
}

.press-shots-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.press-shots-portrait {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.press-shots-portrait .gallery-thumb {
  aspect-ratio: 9 / 16;
}

.press-shots-landscape {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.press-shots-landscape .gallery-thumb {
  aspect-ratio: 16 / 9;
}

.brand-kit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kit-tile {
  background: var(--bg-brand);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kit-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
}

.kit-tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.not-found-box {
  margin: 56px auto;
  max-width: 640px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 40px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  font-size: 14px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive (Tablet & Mobile 360-430px) ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .release-card,
  .dev-card,
  .contact-strip,
  .project-hero-card,
  .specs-grid,
  .bilingual-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .project-meta-strip,
  .brand-kit-grid,
  .legal-summary-grid,
  .steps-grid,
  .palette-grid,
  .press-shots-portrait {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts-grid,
  .boilerplate-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid-portrait {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-emblem-card {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }

  .header-inner {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero {
    padding: 28px 0 40px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-emblem-card {
    order: -1;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .hero-emblem-frame {
    max-width: 158px;
  }

  .hero-emblem-caption {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 11px;
  }

  .eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .hero-title {
    font-size: 30px;
    margin-bottom: 12px;
  }

  .hero-lead {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .hero-trust-row {
    gap: 10px 16px;
    padding-top: 16px;
  }

  .section {
    padding: 26px 0 34px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 18px;
  }

  .release-media {
    padding: 12px;
  }

  .release-body,
  .dev-body,
  .project-hero-card,
  .prose-panel,
  .spec-card,
  .privacy-callout,
  .doc-card {
    padding: 20px 18px;
  }

  .dev-media {
    min-height: 210px;
  }

  .dev-media-inset {
    width: 132px;
    right: 12px;
    bottom: 12px;
  }

  .store-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .store-actions .btn {
    width: 100%;
  }

  .contact-strip {
    padding: 24px 20px;
  }

  .email-pill-group {
    flex-direction: column;
    align-items: stretch;
  }

  .email-box {
    justify-content: center;
  }

  .legal-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .gallery-grid-landscape,
  .press-shots-landscape,
  .legal-summary-grid,
  .steps-grid,
  .palette-grid {
    grid-template-columns: 1fr;
  }

  .press-project-card {
    padding: 20px 18px;
  }

  .fact-row {
    flex-direction: column;
    gap: 4px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 15.5px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  .spec-row {
    flex-direction: column;
    gap: 4px;
  }

  .spec-value {
    text-align: left;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-close {
    position: static;
    align-self: flex-end;
  }

  .lightbox-stage {
    gap: 8px;
  }

  .lightbox-stage img {
    max-width: calc(100% - 104px);
    max-height: 68vh;
  }

  .lightbox-btn {
    width: 44px;
    height: 44px;
  }

  .lang-btn {
    min-width: 42px;
    min-height: 40px;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }

  .email-box,
  .legal-passport,
  .fact-value,
  .spec-value,
  .doc-card code {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 14px;
  }

  .header-inner {
    gap: 10px;
  }

  .brand-link {
    gap: 9px;
  }

  .brand-mark-wrap {
    width: 34px;
    height: 34px;
  }

  .brand-wordmark {
    font-size: 13.5px;
    letter-spacing: 0.16em;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-btn {
    min-width: 38px;
    padding: 0 9px;
  }

  .hero-title {
    font-size: 27px;
  }

  .brand-kit-grid,
  .project-meta-strip {
    grid-template-columns: 1fr;
  }

  .press-shots-portrait,
  .gallery-grid-portrait {
    gap: 10px;
  }

  .lightbox {
    padding: 10px;
  }

  .lightbox-stage {
    gap: 6px;
  }

  .lightbox-stage img {
    max-width: calc(100% - 92px);
  }

  .lightbox-btn {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
