:root {
  --bg: #0b0d10;
  --bg-2: #07080a;
  --surface: #12151a;
  --surface-2: #151a21;
  --border: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.55);
  --shadow-soft: 0 12px 22px rgba(0, 0, 0, 0.26);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 16px 34px rgba(0, 0, 0, 0.22);
  --primary: #8d2424;
  --primary-2: #ff6b6b;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 10px;
  --ring: 0 0 0 6px rgba(59, 130, 246, 0.22);
  --logo-shadow: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));

  --container: 1120px;
  --space: clamp(16px, 2vw, 22px);
  --topbar-offset: 64px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  --scrollbar-track: rgba(255, 255, 255, 0.06);
  --scrollbar-thumb: rgba(255, 255, 255, 0.18);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.28);
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .card,
  .screen,
  .profile-section__card,
  .profile-panel__row {
    transition: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/* Custom scrollbar (Firefox + WebKit) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  background-clip: content-box;
}

body {
  margin: 0;
  position: relative;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.92;
}

.container {
  width: min(var(--container), calc(100% - 2 * var(--space)));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 999px;
  z-index: 999;
}

.skip:focus {
  left: 12px;
  outline: none;
  box-shadow: var(--ring);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 16, 0.72);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.brand--small .brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 11px;
}

.brand__logo {
  width: 33px;
  height: 33px;
  display: block;
  object-fit: contain;
  filter: var(--logo-shadow);
}

.brand--small .brand__logo {
  width: 25px;
  height: 25px;
}

.brand__text {
  font-size: 15px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}

.nav__toggle:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.nav__toggle-icon {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
}

.nav__toggle-icon::before,
.nav__toggle-icon::after,
.nav__toggle-icon {
  background: var(--text);
  border-radius: 999px;
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
}

.nav__toggle-icon::before {
  top: 0;
}

.nav__toggle-icon::after {
  bottom: 0;
}

.nav__toggle-icon {
  height: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 650;
  color: var(--muted);
}

.nav__links a {
  padding: 8px 10px;
  border-radius: 10px;
}

.nav__links a[href="#screens"] {
  margin-left: 0;
}

.nav__links a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.nav__cta {
  color: white;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  min-height: calc(100svh - var(--topbar-offset));
  padding: clamp(28px, 5vw, 64px) 0;
  align-content: center;
}

.hero__bg {
  position: absolute;
  inset: -200px 0 auto 0;
  height: 380px;
  background: radial-gradient(900px 340px at 20% 20%, rgba(0, 98, 255, 0.08), transparent 70%);
  pointer-events: none;
  filter: blur(14px);
  opacity: 0.7;
}

.hero--with-shader .hero__bg {
  display: none;
}

.hero--with-shader .hero__inner {
  position: relative;
  z-index: 3;
}

/* Shader background
   - index page: attaches to .hero
   - other pages: attaches to a section marked with [data-shader-host] (JS adds .shader-host) */
.hero .shader-bg,
.hero .shader-overlay,
.shader-host .shader-bg,
.shader-host .shader-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shader-host {
  position: relative;
  isolation: isolate;
}

/* Keep shader layers behind the host's real content. */
.shader-host > :not(.shader-bg):not(.shader-overlay) {
  position: relative;
  z-index: 2;
}

.hero .shader-bg,
.shader-host .shader-bg {
  z-index: 0;
  background: #010204;
}

.hero .shader-overlay,
.shader-host .shader-overlay {
  z-index: 1;
  background: rgba(5, 8, 15, 0.85);
  mix-blend-mode: multiply;
}

.hero__decor {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 90%);
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.95;
  filter: contrast(1.05);
  z-index: 2;
}

.hero__decor--menu {
  top: 14%;
  height: 280px;
  background-image: url("assets/gui.png");
  background-size: contain;
}

.hero__decor--hud {
  bottom: 6%;
  height: 130px;
  background-image: url("assets/hud.png");
  background-size: contain;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: none;
}

.lead {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 16px;
}

.hero__copy {
  text-align: left;
  margin: 0;
}

.hero__copy--center {
  text-align: center;
  margin: 0 auto;
}

.hero__copy--center h1 {
  text-align: center;
}

.hero__copy--center + .hero__actions,
.hero__copy--center .hero__actions {
  justify-content: center;
}

.hero__copy .lead {
  margin: 0;
}

.hero__copy--center .lead {
  margin: 0 auto;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 750;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 120ms ease, background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.button--primary {
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
  background: var(--primary);
  box-shadow: var(--shadow-strong);
}

.button--ghost {
  background: transparent;
}

.block-preview {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding: 14px;
}

.block {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  background-size: 10px 10px;
}

.block--emerald {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
}

.block--diamond {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.block--obsidian {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.block--stone {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.block--grass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
}

/* Auth (register/login) */
.page-auth {
  min-height: auto;
}

.page-auth main {
  display: flex;
  min-height: calc(100svh - var(--topbar-offset));
}

.page-auth .auth {
  flex: 1;
}

.page-auth .auth--center {
  min-height: calc(100svh - var(--topbar-offset));
}

.auth {
  padding: clamp(28px, 5vw, 56px) 0;
}

.auth--center {
  display: grid;
  place-items: center;
  padding: 24px var(--space);
}

.auth__wrap {
  width: min(340px, 100%);
  text-align: center;
}

.auth__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.03em;
}

.auth__form {
  display: grid;
  gap: 12px;
}

.auth__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.auth__input::placeholder {
  color: var(--muted);
}

.auth__input:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
}

.auth__check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  text-align: left;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
  margin-top: 4px;
}

.auth__check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.auth__remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
  user-select: none;
}

.auth__remember input {
  width: 18px;
  height: 18px;
}

.auth__forgot {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 650;
  white-space: nowrap;
}

.auth__forgot:hover {
  opacity: 0.9;
}

.auth__link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}


.auth__submit {
  margin-top: 8px;
  width: 100%;
  padding: 14px 16px;
}

.auth__submit-icon {
  display: inline-block;
  margin-right: 8px;
}

.auth__switch {
  border: 0;
  background: none;
  color: var(--text);
  font-weight: 800;
  margin-top: 10px;
  cursor: pointer;
  text-decoration: none;
}

.auth__switch:hover {
  opacity: 0.9;
}

.auth__back {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

.auth__back-link {
  color: var(--muted);
  text-decoration: none;
}

.auth__back-link:hover {
  opacity: 0.9;
}

/* Legal page */
.legal {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  max-width: 860px;
}

.legal h3 {
  margin: 18px 0 8px;
  letter-spacing: -0.02em;
}

.legal p {
  margin: 0 0 12px;
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
}

.legal li {
  margin: 6px 0;
}

.legal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.section {
  padding: 56px 0;
}

main section[id] {
  scroll-margin-top: calc(var(--topbar-offset) + 14px);
}

#features.section {
  padding-bottom: 28px;
}

#screens.section {
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: clamp(56px, 8vw, 110px);
}

.section--alt {
  background: transparent;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--text);
}

.section__head h2 {
  margin: 0;
  font-size: clamp(34px, 2.6vw, 44px);
  letter-spacing: -0.03em;
}

.section__head h2::after {
  content: none;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.section__grid-bg {
  margin-top: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 12, 0.75);
  padding: clamp(18px, 3vw, 32px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.45);
}

main {
  /* Let pages define their own layout height; avoid forcing extra scroll space. */
  flex: 1;
  min-height: 0;
}

.profile-section {
  background: transparent;
  padding: clamp(28px, 5vw, 64px) 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center profile content within the available viewport space (without forcing extra scroll). */
body[data-page="profile"] main {
  display: flex;
}

/* Profile page: show only the cabinet on the first screen; footer appears after scrolling. */
body[data-page="profile"] {
  display: block;
}

body[data-page="profile"] .profile-section {
  flex: 1;
  /* Make the first screen full-height (minus topbar), so the footer stays below the fold. */
  min-height: calc(100svh - var(--topbar-offset));
}

.profile-section__inner {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
}

.profile-section__hero {
  text-align: center;
}

.profile-section__hero h1 {
  margin: 0.35rem 0;
  font-size: clamp(32px, 4vw, 48px);
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.profile-section__card {
  width: min(700px, 100%);
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.profile-section__card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.10);
}

.profile-panel__actions {
  margin-top: clamp(20px, 3vw, 28px);
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.profile-section__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.profile-section__status span {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.profile-section__status strong {
  font-size: 18px;
}

.profile-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-panel__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.profile-panel__row:hover {
  border-color: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

  .profile-panel__row span {
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 800;
    font-family: var(--font-display);
  }

.profile-panel__row strong {
  font-size: 15px;
  text-align: right;
  font-family: "IBM Plex Mono", "Source Code Pro", monospace;
  overflow-wrap: anywhere;
}

.profile-panel__secret {
  filter: blur(7px);
  transition: filter 140ms ease;
  cursor: pointer;
  user-select: none;
}

.profile-panel__secret[data-revealed="true"] {
  filter: none;
}

.profile-panel__secret:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

.profile-actions--simple {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.profile-actions--panel {
  margin-top: 10px;
  width: 100%;
  justify-content: flex-start;
  align-self: flex-start;
}

.profile-actions--panel .button {
  justify-content: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.10);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.admin-card__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.admin-table-wrap {
  width: 100%;
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.admin-table td {
  font-family: "IBM Plex Mono", "Source Code Pro", monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-btn {
  padding: 8px 10px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.stat-card__value {
  font-size: clamp(32px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.05;
}

.stat-card__meta {
  font-size: 15 px;
  color: var(--muted-2);
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.screen {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease;
}

.screen:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.10);
}

.screen__image {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
}

.screen__ph {
  height: 190px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.screen figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 32px);
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__content {
  width: min(900px, 100%);
  max-height: calc(100vh - 4rem);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox__image {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 8rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: contain;
}

.lightbox__caption {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close::before {
  content: "×";
}

.lightbox__close:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}


.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: transparent;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 22px;
  align-items: start;
}

.footer__col {
  min-width: 0;
}

.footer__brand .brand {
  margin-bottom: 10px;
}

.footer__title {
  font-weight: 850;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.footer__tagline {
  margin: 0;
  color: var(--text);
  font-weight: 750;
}

.footer__meta {
  margin: 8px 0 0;
}

.footer__links {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
}

.footer__links a {
  width: fit-content;
  padding: 0px 0;
}

.footer__kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  padding-top: 2px;
}

.footer__k {
  color: var(--muted-2);
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer__v {
  color: var(--muted);
  font-weight: 650;
  font-size: 12px;
  line-height: 1.85;
  transform: translate(-10px, -2px);
}

.footer__fine {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.linklike {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.linklike:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  max-width: min(560px, calc(100% - 2 * var(--space)));
  text-align: center;
}

/* Scroll/appear animations (enabled in JS) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: opacity 520ms cubic-bezier(.2,.8,.2,1), transform 520ms cubic-bezier(.2,.8,.2,1), filter 520ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screens {
    grid-template-columns: 1fr;
  }

  .downloads {
    grid-template-columns: 1fr;
  }

  .section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__links {
    position: absolute;
    right: var(--space);
    top: 62px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
    border-radius: var(--radius);
    min-width: min(340px, calc(100vw - 2 * var(--space)));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
  }

  .nav__links[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 0s;
  }

  .nav__links a {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface);
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .profile-panel__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .profile-panel__row strong {
    text-align: left;
  }
}
