:root {
  --bg: #070d1d;
  --bg-elevated: rgba(9, 17, 31, 0.84);
  --panel: rgba(15, 25, 42, 0.88);
  --panel-strong: #101b2d;
  --panel-soft: rgba(17, 31, 49, 0.76);
  --line: rgba(122, 167, 255, 0.2);
  --text: #edf5ff;
  --muted: #9bb7d9;
  --primary: #5aa7ff;
  --primary-strong: #3d8eff;
  --highlight: #4ce0ff;
  --success: #3de2a8;
  --warning: #ffd166;
  --shadow: rgba(22, 36, 57, 0.7);
  --radius: 22px;
  --max-width: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  isolation: isolate;
  font-family: Inter, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(71, 124, 255, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(76, 224, 255, 0.12), transparent 35%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: -35%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 35%, rgba(68, 128, 255, 0.1), transparent 28%),
    radial-gradient(circle at 70% 65%, rgba(39, 210, 235, 0.08), transparent 30%);
  animation: ambient-drift 24s ease-in-out infinite alternate;
}

@keyframes ambient-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(0.98); }
  to { transform: translate3d(2%, 1%, 0) scale(1.03); }
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes brand-glow {
  0%, 100% { box-shadow: 0 12px 28px rgba(85, 145, 255, 0.36); }
  50% { box-shadow: 0 12px 36px rgba(76, 224, 255, 0.58); }
}

@keyframes soft-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

main {
  animation: page-enter 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(6, 12, 23, 0.72);
  border-bottom: 1px solid rgba(117, 168, 255, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--highlight));
  box-shadow: 0 12px 28px rgba(85, 145, 255, 0.45);
  color: #05111d;
  font-weight: 900;
  animation: brand-glow 5s ease-in-out infinite;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button,
button {
  border: 1px solid rgba(113, 180, 255, 0.26);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(80, 162, 255, 0.22), rgba(24, 194, 255, 0.12));
  color: var(--text);
  padding: 0.85rem 1.5rem;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(69, 125, 255, 0.2);
  border-color: rgba(98, 195, 255, 0.44);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary-strong), var(--highlight));
  color: #021526;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(67, 122, 255, 0.38);
}

.button.secondary {
  background: rgba(255,255,255,0.02);
}

.section {
  padding: 110px 0;
}

.hero {
  padding-top: 80px;
  padding-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(124, 170, 255, 0.08);
  border: 1px solid rgba(124, 170, 255, 0.14);
  color: var(--highlight);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.eyebrow:hover {
  background: rgba(76, 224, 255, 0.12);
  border-color: rgba(76, 224, 255, 0.3);
  box-shadow: 0 0 24px rgba(76, 224, 255, 0.12);
}

h1, h2, h3 { margin: 0 0 18px; line-height: 1.1; overflow-wrap: anywhere; hyphens: auto; }
h1 { font-size: clamp(2.8rem, 5vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 3vw, 3.2rem); }
h3 { font-size: 1.25rem; }

.lead {
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.kpi {
  min-width: 132px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 29, 46, 0.75);
}

.kpi strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.kpi span {
  color: var(--muted);
  font-size: 0.8rem;
}

.stats-consent-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.stats-consent-note strong { color: var(--text); }
.stats-consent-note a { color: var(--highlight); text-decoration: underline; text-underline-offset: 3px; }

.hero-visual {
  position: relative;
  min-height: 520px;
  animation: soft-float 8s ease-in-out infinite;
}

.window-frame {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 32, 52, 0.95), rgba(9, 18, 30, 0.96));
  border: 1px solid rgba(143, 187, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(1, 10, 20, 0.8);
  overflow: hidden;
}

.window-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(136, 188, 255, 0.12);
  background: rgba(18, 30, 48, 0.88);
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.window-dot:nth-child(1) { background: #ff6f7d; }
.window-dot:nth-child(2) { background: #ffd166; }
.window-dot:nth-child(3) { background: #38d39f; }

.window-title {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.app-preview {
  display: grid;
  grid-template-columns: minmax(130px, 0.3fr) minmax(0, 1fr);
  min-height: 470px;
}

.sidebar-preview {
  background: rgba(10, 20, 34, 0.98);
  border-right: 1px solid rgba(143, 187, 255, 0.1);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px 4px;
  color: #dceaff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.preview-brand-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--highlight));
  color: #061423;
  font-size: 0.85rem;
}

.preview-nav-label {
  margin: 0 0 8px 8px;
  color: #627895;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.preview-nav-label-secondary { margin-top: 21px; }

.preview-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 31px;
  padding: 0 8px;
  border-radius: 7px;
  color: #91a6c2;
  font-size: 0.62rem;
  white-space: nowrap;
}

.preview-nav-item > span {
  width: 14px;
  color: #718ba9;
  font-size: 0.8rem;
  text-align: center;
}

.preview-nav-item.selected {
  background: linear-gradient(90deg, rgba(72, 152, 255, 0.2), rgba(76, 224, 255, 0.08));
  color: #e6f4ff;
}

.preview-nav-item.selected > span { color: var(--highlight); }

.preview-sidebar-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: auto 0 0 4px;
  padding-top: 18px;
  color: #7d93ae;
  font-size: 0.55rem;
}

.preview-sidebar-status i,
.preview-local-badge i,
.preview-library-footer > span {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(61, 226, 168, 0.5);
}

.preview-content {
  min-width: 0;
  padding: 19px 17px 13px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: radial-gradient(ellipse at top right, rgba(60, 109, 171, 0.11), transparent 44%);
}

.preview-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 69px;
}

.preview-welcome > div:first-child {
  display: grid;
  gap: 4px;
}

.preview-kicker,
.preview-clock > span,
.preview-metric small,
.preview-panel-heading small {
  color: #7e9aba;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.preview-welcome strong {
  font-size: clamp(0.82rem, 1.5vw, 1.12rem);
  line-height: 1.2;
}

.preview-welcome small {
  color: var(--muted);
  font-size: 0.58rem;
}

.preview-clock {
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.preview-clock > span { font-size: 0.42rem; }
.preview-clock strong { font-size: 1.2rem; }

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.preview-metric,
.preview-panel {
  min-width: 0;
  border: 1px solid rgba(140, 176, 255, 0.13);
  border-radius: 12px;
  background: rgba(19, 33, 54, 0.85);
}

.preview-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 82px;
  padding: 10px 8px;
}

.preview-metric-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: rgba(76, 224, 255, 0.1);
  color: var(--highlight);
  font-size: 0.85rem;
}

.preview-metric-icon.memory { color: #b69aff; background: rgba(157, 115, 255, 0.12); }
.preview-metric-icon.gpu { color: #70deb0; background: rgba(61, 226, 168, 0.1); }

.preview-metric > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.preview-metric small {
  overflow: hidden;
  font-size: 0.39rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-metric strong {
  font-size: 0.64rem;
  line-height: 1.2;
}

.preview-metric > div > span {
  color: var(--muted);
  font-size: 0.48rem;
}

.preview-metric > i {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--highlight));
  opacity: 0.8;
}

.preview-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preview-panel { padding: 11px 9px 9px; }

.preview-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.preview-panel-heading > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.preview-panel-heading small { font-size: 0.42rem; }
.preview-panel-heading strong { font-size: 0.65rem; }

.preview-local-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border: 1px solid rgba(61, 226, 168, 0.18);
  border-radius: 999px;
  color: #80e5bf;
  font-size: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.preview-local-badge i { width: 4px; height: 4px; }

.preview-info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 0;
  border-top: 1px solid rgba(143, 187, 255, 0.08);
}

.preview-info-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: rgba(89, 143, 212, 0.12);
  color: #8db4e3;
  font-size: 0.7rem;
}

.preview-info-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.preview-info-row small,
.preview-info-row b {
  color: #7e94af;
  font-size: 0.43rem;
}

.preview-info-row strong {
  overflow: hidden;
  color: #d8e7f8;
  font-size: 0.52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-info-row b {
  margin-left: auto;
  color: #91a6c2;
  font-weight: 500;
}

.preview-count {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 6px;
  background: rgba(76, 224, 255, 0.1);
  color: var(--highlight);
  font-size: 0.55rem;
  font-weight: 700;
}

.preview-game {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 0;
  border-top: 1px solid rgba(143, 187, 255, 0.08);
}

.preview-game-art {
  display: grid;
  width: 25px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
}

.art-blue { background: linear-gradient(145deg, #1d7bc2, #18304f); }
.art-purple { background: linear-gradient(145deg, #8758c9, #34244f); }

.preview-game > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.preview-game strong {
  overflow: hidden;
  color: #d8e7f8;
  font-size: 0.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-game small,
.preview-game > b {
  color: #7e94af;
  font-size: 0.42rem;
}

.preview-game > b {
  margin-left: auto;
  font-size: 0.8rem;
}

.preview-library-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding-top: 7px;
  border-top: 1px solid rgba(143, 187, 255, 0.08);
  color: #8298b2;
  font-size: 0.4rem;
}

.preview-library-footer > span { width: 4px; height: 4px; }

.preview-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #8398b3;
  font-size: 0.42rem;
  letter-spacing: 0.04em;
}

.preview-bottom b { color: var(--highlight); }
.preview-bottom > span:last-child { color: #607995; font-weight: 700; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.stat-card,
.info-card,
.faq-item,
.changelog-item,
.download-panel,
.legal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(1, 6, 13, 0.38);
}

.feature-card,
.stat-card,
.info-card,
.faq-item,
.changelog-item {
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.feature-card { padding: 26px 22px; }

.feature-card:hover,
.stat-card:hover,
.info-card:hover,
.faq-item:hover,
.changelog-item:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 224, 255, 0.38);
  box-shadow: 0 22px 54px rgba(26, 99, 170, 0.22);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(87, 146, 255, 0.16), rgba(76, 224, 255, 0.18));
  color: var(--highlight);
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.section-header {
  margin-bottom: 34px;
}

.section-copy {
  color: var(--muted);
  max-width: 620px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.stats-transparency { margin-top: 64px; }
.stats-transparency .section-header { max-width: 760px; }
.stats-transparency .section-header h2 { margin: 14px 0; }
.transparency-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.transparency-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.transparency-number { color: var(--highlight); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; }
.transparency-card h3 { margin: 12px 0; }
.transparency-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.transparency-card strong { color: var(--text); }
.text-link { display: inline-flex; gap: 8px; margin-top: 16px; color: var(--highlight); font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.stat-card {
  padding: 22px 20px;
  min-height: 160px;
}

.stat-card .value {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  margin: 16px 0 6px;
  word-break: break-word;
}

.stat-card small {
  color: var(--muted);
}

.charts-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.chart-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 210px;
  margin-top: 16px;
}

.bar {
  flex: 1;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, rgba(88, 163, 255, 0.95), rgba(76, 224, 255, 0.52));
  min-height: 30px;
  box-shadow: 0 18px 28px rgba(52, 115, 255, 0.24);
}

.download-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.download-panel {
  padding: 28px;
}

.version-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.badge {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(76, 224, 255, 0.12);
  border: 1px solid rgba(76, 224, 255, 0.2);
  color: var(--highlight);
  font-size: 0.8rem;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.meta-list strong { color: var(--text); }

.page-shell {
  padding: 80px 0 120px;
}

.page-hero {
  padding: 60px 0 28px;
}

.page-header {
  padding: 18px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.info-card,
.faq-item,
.legal-card,
.changelog-item {
  padding: 24px;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.release-list .changelog-item h2 {
  margin-bottom: 6px;
}

.release-date {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.release-notes {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.footer {
  padding: 42px 0 26px;
  border-top: 1px solid rgba(115, 166, 255, 0.14);
  background: rgba(5, 11, 18, 0.82);
}

.footer > .container:last-child {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr;
  gap: 24px;
}

.footer small,
.footer p {
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  width: fit-content;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links a:hover {
  color: var(--highlight);
  transform: translateX(4px);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease var(--reveal-delay, 0ms), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.is-visible.feature-card:hover,
.reveal-on-scroll.is-visible.stat-card:hover,
.reveal-on-scroll.is-visible.info-card:hover,
.reveal-on-scroll.is-visible.faq-item:hover,
.reveal-on-scroll.is-visible.changelog-item:hover {
  transform: translateY(-6px);
}

.legal-copy h3 {
  margin-top: 26px;
}

.legal-copy p {
  color: var(--muted);
}

.chart-periods {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.chart-periods button[aria-pressed="true"] {
  border-color: var(--highlight);
  color: var(--highlight);
}

.usage-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 230px;
  padding: 24px 12px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.usage-chart-item {
  display: grid;
  flex: 1 0 42px;
  min-width: 42px;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.usage-chart-bar {
  width: min(100%, 44px);
  min-height: 3px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--highlight), var(--primary-strong));
  box-shadow: 0 10px 24px rgba(61, 142, 255, 0.22);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 22px;
}

.hidden { display: none !important; }

@media (max-width: 980px) {
  .hero-grid,
  .download-layout,
  .charts-wrap,
  .grid-two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transparency-grid { grid-template-columns: 1fr; }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .main-nav {
    display: flex;
    order: 3;
    width: 100%;
    min-width: 0;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 0 8px;
    white-space: nowrap;
    scrollbar-width: thin;
  }
}

@media (max-width: 640px) {
  .stats-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .transparency-card { padding: 20px; }
  .app-preview { grid-template-columns: 92px minmax(0, 1fr); }
  .sidebar-preview { padding: 14px 7px; }
  .preview-brand { gap: 5px; margin-left: 2px; font-size: 0.52rem; }
  .preview-brand-mark { width: 21px; height: 21px; }
  .preview-nav-item { gap: 5px; padding: 0 4px; font-size: 0.49rem; }
  .preview-nav-item > span { width: 11px; }
  .preview-nav-label { margin-left: 4px; font-size: 0.42rem; }
  .preview-sidebar-status { gap: 4px; margin-left: 1px; font-size: 0.43rem; }
  .preview-content { padding: 14px 9px 10px; gap: 9px; }
  .preview-metrics { gap: 5px; }
  .preview-metric { grid-template-columns: 1fr; gap: 5px; min-height: 76px; padding: 7px 6px; }
  .preview-metric-icon { width: 21px; height: 21px; }
  .preview-metric > i { grid-column: 1; }
  .preview-metric small { font-size: 0.34rem; }
  .preview-metric strong { font-size: 0.55rem; }
  .preview-metric > div > span { font-size: 0.42rem; }
  .preview-panels { gap: 5px; }
  .preview-panel { padding: 8px 6px; }
  .preview-info-row { gap: 4px; }
  .preview-info-icon { width: 16px; height: 16px; }
  .preview-info-row small, .preview-info-row b { font-size: 0.38rem; }
  .preview-info-row strong, .preview-game strong { font-size: 0.45rem; }
  .preview-game { gap: 5px; }
  .preview-game-art { width: 21px; height: 23px; }
  .preview-library-footer { font-size: 0.35rem; }

  .header-inner {
    min-height: 72px;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .header-actions .button {
    width: auto;
    padding: 0.55rem 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-visual {
    min-height: 0;
    animation-duration: 10s;
  }
}

@media (max-width: 390px) {
  .preview-panels { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
