@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/BeVietnamPro-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/BeVietnamPro-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/BeVietnamPro-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/BeVietnamPro-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/BeVietnamPro-ExtraBold.ttf") format("truetype");
}

:root {
  color-scheme: light dark;

  --bg: light-dark(#FBFBFD, #161A24);
  --surface: light-dark(#FFFFFF, #1D2230);
  --surface-soft: light-dark(#F3F5F8, #242A3B);
  --surface-glass: light-dark(rgba(255, 255, 255, 0.78), rgba(22, 26, 36, 0.80));
  --ink: light-dark(#1D1D1F, #F1F3F8);
  --muted: light-dark(#6E6E73, #A0A8BA);
  --faint: light-dark(#D2D2D7, #353D52);
  --hair: light-dark(rgba(14, 26, 58, 0.08), rgba(255, 255, 255, 0.09));

  --accent: light-dark(#2F7CF6, #5B9BFF);
  --accent-ink: light-dark(#FFFFFF, #0D1320);
  --accent-soft: light-dark(#EEF5FF, rgba(91, 155, 255, 0.16));

  --green: light-dark(#1E9E57, #38C977);
  --green-soft: light-dark(#E3F5EA, rgba(56, 201, 119, 0.16));
  --purple: light-dark(#6A55D8, #9D8CFF);
  --purple-soft: light-dark(#F1EEFF, rgba(157, 140, 255, 0.16));
  --gold: light-dark(#B8860B, #FBBF24);
  --gold-soft: light-dark(#FFF3D6, rgba(251, 191, 36, 0.16));

  --orb-1: light-dark(rgba(47, 124, 246, 0.11), rgba(91, 155, 255, 0.14));
  --orb-2: light-dark(rgba(106, 85, 216, 0.08), rgba(157, 140, 255, 0.10));

  --shadow-card: light-dark(
    0 6px 24px rgba(14, 26, 58, 0.08),
    0 8px 28px rgba(0, 0, 0, 0.28)
  );
  --shadow-float: light-dark(
    0 18px 46px rgba(14, 26, 58, 0.13),
    0 18px 46px rgba(0, 0, 0, 0.42)
  );

  --radius-card: 20px;
  --radius-btn: 14px;
  --radius-icon: 10px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
}
:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
}

/* App-specific accent overrides */
body[data-theme="mechstack"] {
  --accent: light-dark(#2563EB, #5B9BFF);
  --accent-soft: light-dark(#EEF5FF, rgba(91, 155, 255, 0.18));
  --orb-1: light-dark(rgba(37, 99, 235, 0.13), rgba(91, 155, 255, 0.16));
  --orb-2: light-dark(rgba(255, 214, 10, 0.10), rgba(251, 191, 36, 0.08));
}
body[data-theme="doi-tho"] {
  --accent: light-dark(#1E9E57, #38C977);
  --accent-soft: light-dark(#E3F5EA, rgba(56, 201, 119, 0.17));
  --orb-1: light-dark(rgba(30, 158, 87, 0.12), rgba(56, 201, 119, 0.15));
  --orb-2: light-dark(rgba(159, 212, 245, 0.22), rgba(91, 155, 255, 0.10));
}
body[data-theme="learnback"] {
  --accent: light-dark(#6A55D8, #A89BFF);
  --accent-soft: light-dark(#F1EEFF, rgba(168, 155, 255, 0.18));
  --orb-1: light-dark(rgba(106, 85, 216, 0.13), rgba(168, 155, 255, 0.16));
  --orb-2: light-dark(rgba(255, 168, 140, 0.14), rgba(255, 168, 140, 0.08));
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(680px 440px at 88% -6%, var(--orb-1), transparent 70%),
    radial-gradient(560px 420px at 8% 12%, var(--orb-2), transparent 72%);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

[id] {
  scroll-margin-top: 84px;
}

.nowrap {
  white-space: nowrap;
}

.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;
}

/* Theme-specific image swaps (CSS-only, respects light/dark override & OS default) */
.only-dark {
  display: none;
}
.only-light {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .only-dark {
    display: block;
  }
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .only-light {
    display: none;
  }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .only-dark {
  display: block;
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) .only-light {
  display: none;
}

/* Layout containers */
.wrap {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(820px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: var(--surface-glass);
  border-bottom: 1px solid var(--hair);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 12px;
  padding: 4px 6px 4px 2px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(10, 15, 31, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1.2;
}

.brand-by {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.nav-link[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-soft);
  gap: 2px;
}

.seg-btn {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 170ms var(--ease);
}

.seg-btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(14, 26, 58, 0.08);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 170ms var(--ease), background-color 160ms var(--ease);
}

.icon-btn:active {
  transform: scale(0.96);
}

/* Pointer glow (.mglow) — never shifts button layout */
.mglow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

@media (hover: hover) and (pointer: fine) {
  .mglow::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
      140px circle at var(--mx, 50%) var(--my, 50%),
      color-mix(in srgb, currentColor 18%, transparent),
      transparent 70%
    );
    transition: opacity 180ms var(--ease);
  }
  .mglow:hover::after {
    opacity: 1;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 170ms var(--ease), filter 160ms var(--ease), background-color 160ms var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-soft {
  background: var(--surface-soft);
  color: var(--ink);
}

.btn-soft:hover {
  background: color-mix(in srgb, var(--surface-soft) 75%, var(--faint));
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair);
}

@media (max-width: 640px) {
  .btn {
    min-height: 48px;
  }
}

/* Chips / Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-green {
  background: var(--green-soft);
  color: var(--green);
}

.pill-purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.pill-gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.pill-neutral {
  background: var(--surface-soft);
  color: var(--muted);
}

/* Icon house */
.icon-house {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-icon);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.icon-house-green {
  background: var(--green-soft);
  color: var(--green);
}

.icon-house-purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.icon-house-gold {
  background: var(--gold-soft);
  color: var(--gold);
}

/* Hero Sections */
.hero {
  padding: 44px 0 36px;
}

.hero-home {
  text-align: center;
  padding: 52px 0 34px;
}

.hero-home h1 {
  margin: 16px auto 14px;
  max-width: 780px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

/* App Hub Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 18px 0 48px;
}

.app-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

@media (hover: hover) {
  .app-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-float);
  }
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(14, 26, 58, 0.14);
  flex-shrink: 0;
  overflow: hidden;
}

.app-icon-xl {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(14, 26, 58, 0.16);
  flex-shrink: 0;
  overflow: hidden;
}

.app-card-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.app-card-cat {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.app-card-desc {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.app-card-preview {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-soft);
  aspect-ratio: 4 / 3;
}

.app-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.app-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-top: 4px;
}

/* App Detail Hero */
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.detail-hero > div {
  min-width: 0;
}

.detail-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-identity > div {
  min-width: 0;
}

.detail-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.detail-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.detail-lead {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
}

.detail-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

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

.stat-tile {
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-shot-btn {
  display: block;
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  background: var(--surface-soft);
  padding: 0;
  transition: transform 200ms var(--ease);
}

.hero-shot-btn-landscape {
  max-width: 460px;
}

.hero-shot-btn:hover {
  transform: scale(1.015);
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 12px 16px;
  max-width: 360px;
  width: 100%;
}

.qr-box {
  width: 68px;
  height: 68px;
  padding: 6px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1D1D1F;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(14, 26, 58, 0.08);
}

.qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.qr-text strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 2px;
}

/* Section blocks */
.section {
  padding: 28px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Steps (How to play / use) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Gallery */
.gallery-panel[hidden] {
  display: none;
}

.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.shot-card {
  flex: 0 0 auto;
  width: 240px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 10px;
  scroll-snap-align: start;
  text-align: left;
  transition: transform 180ms var(--ease);
}

.shot-card-wide {
  width: 340px;
}

.shot-card:hover {
  transform: translateY(-2px);
}

.shot-card img {
  width: 100%;
  border-radius: 12px;
  background: var(--surface-soft);
}

.shot-caption {
  margin: 10px 4px 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

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

.faq-item summary svg {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 180ms var(--ease);
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Legal / Support Document Cards */
.doc-card {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 28px;
  margin-bottom: 20px;
}

.doc-card h2 {
  margin: 24px 0 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.doc-card h2:first-child {
  margin-top: 0;
}

.doc-card p,
.doc-card li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.doc-card ul {
  margin: 8px 0 14px;
  padding-left: 20px;
}

.copy-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--surface-soft);
  padding: 8px 10px 8px 16px;
  border-radius: 16px;
  margin-top: 8px;
}

.copy-value {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  word-break: break-all;
}

/* Lightbox Dialog */
dialog.lightbox {
  border: 0;
  padding: 0;
  margin: auto;
  max-width: min(92vw, 980px);
  max-height: 92dvh;
  background: transparent;
  color: #FFFFFF;
  overflow: visible;
}

dialog.lightbox::backdrop {
  background: rgba(10, 14, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #161A24;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.lightbox-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-cap {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #F1F3F8;
}

.lightbox-img {
  max-height: 74dvh;
  width: auto;
  max-width: 100%;
  border-radius: 14px;
  object-fit: contain;
}

.lightbox-nav {
  display: flex;
  gap: 10px;
}

.lightbox-btn {
  min-height: 40px;
  min-width: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* First-visit Language Picker Dialog (strictly 2 buttons, no caption) */
dialog.lang-dialog {
  border: 0;
  padding: 24px;
  margin: auto;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
  max-width: 360px;
  width: calc(100% - 32px);
}

dialog.lang-dialog::backdrop {
  background: rgba(14, 26, 58, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Footer */
.footer {
  margin-top: 48px;
  border-top: 1px solid var(--hair);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.footer-links a {
  font-weight: 600;
  white-space: nowrap;
}

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

/* Progressive scroll entry animation (modern-web-guidance: scroll-entry-exit-effects) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from {
        opacity: 0.01;
        transform: translateY(18px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal {
      animation: reveal-up auto cubic-bezier(0.2, 0.8, 0.2, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 26%;
    }
  }
}

/* Responsive */
@media (max-width: 960px) {
  .app-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }
  .detail-meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--hair);
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 13px;
  }
  .brand {
    gap: 8px;
  }
  .brand-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    font-size: 14.5px;
    line-height: 1.15;
  }
  .brand-by {
    font-size: 11px;
  }
  .detail-identity {
    gap: 12px;
  }
  .app-icon-xl {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .detail-identity .pill {
    font-size: 11.5px;
    padding: 5px 10px;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .shot-card {
    width: 210px;
  }
  .shot-card-wide {
    width: 280px;
  }
}
