/* Islet (草岛) promotional website styles.
   Inherits the launcher's solid-colour forest-to-grass palette on sage paper:
   no gradients, no translucent materials, no blurry drop shadows.
   Raised controls sit on a solid bottom edge and sink when pressed. */

@font-face {
  font-family: "Fusion Pixel";
  src: url("assets/fusion-pixel-12.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-pixel: "Fusion Pixel", var(--font-ui);

  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --radius-xl: 6px;

  --dur-fast: 120ms;
  --dur: 200ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  --wrap: 1080px;
  --nav-h: 60px;

  /* Pixel terrain defaults (overridden per active biome by site.js) */
  --t-grass: #7fb238;
  --t-grass-dark: #64952a;
  --t-grass-light: #9ccb52;
  --t-dirt: #8b5a33;
  --t-dirt-dark: #74482a;
  --t-dirt-light: #a06b40;
  --t-wood: #6b4423;
  --t-leaf: #3f7d31;
  --t-leaf-dark: #326827;
  --t-flower: #f2cf4a;
  --t-stone: #4f5a4c;
  --t-stone-dark: #414b3f;
  --t-cave: #2c2e2a;
  --t-coal: #2f302d;
  --t-iron: #d6ad8d;
  --t-gem: #62d8d0;

  /* Celestial & hills */
  --sun: #efc63f;
  --sun-light: #f7dc6a;
  --moon: #e4ead6;
  --moon-dark: #c1cbb0;
  --star: #4f7a57;
  --star-bright: #d3e6b4;
  --hill-far: #1a3a23;
  --hill-near: #132d1a;

  /* Wooden signpost */
  --sign-edge: #5b3b20;
  --sign-light: #efe2b8;
  --sign-face: #e3d19c;
  --sign-shade: #cdb67d;
  --sign-ink: #4c5e4f;
  --sign-warn: #b35f08;
}

:root,
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #edf1e4;
  --surface: #fbfcf7;
  --surface-2: #f3f6ec;
  --surface-3: #e5ebda;
  --border: #dae2cc;
  --border-strong: #c3cfb1;
  --text: #142418;
  --muted: #4c5e4f;
  --faint: #5b6c5c;

  --frame: #17321f;
  --frame-2: #1f3f28;
  --frame-3: #2a5034;
  --frame-line: #26472f;

  --hero: #1e4027;
  --hero-2: #2a5234;
  --hero-3: #335f3e;
  --hero-edge: #12291a;
  --hero-cloud: #24492d;

  --on-dark: #eef4e4;
  --on-dark-muted: #abc0a6;
  --on-dark-faint: #94ad90;
  --on-dark-accent: #a3d35d;

  --accent: #7fb238;
  --accent-hover: #8bbe43;
  --accent-edge: #5b8a22;
  --accent-ink: #0f230c;
  --accent-text: #3d7216;
  --accent-soft: #e2eecd;
  --accent-soft-2: #d2e5b4;

  --selection: #cfe3ad;
  --scrim: rgba(12, 28, 17, 0.94);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0f1711;
  --surface: #162118;
  --surface-2: #1b281e;
  --surface-3: #233326;
  --border: #223024;
  --border-strong: #32453a;
  --text: #e3ecdc;
  --muted: #a2b39e;
  --faint: #8a9c86;

  --frame: #13271a;
  --frame-2: #1a3222;
  --frame-3: #234029;
  --frame-line: #1d3524;

  --hero: #18311f;
  --hero-2: #224029;
  --hero-3: #2b4e32;
  --hero-edge: #0b1a0f;
  --hero-cloud: #1c3823;

  --on-dark: #eaf2e1;
  --on-dark-muted: #a6bba1;
  --on-dark-faint: #87a083;
  --on-dark-accent: #a3d35d;

  --accent: #86bb3c;
  --accent-hover: #93c849;
  --accent-edge: #557f22;
  --accent-ink: #0d1f0a;
  --accent-text: #a0d158;
  --accent-soft: #1d2f1c;
  --accent-soft-2: #263f22;

  --selection: #33502a;
  --scrim: rgba(6, 12, 8, 0.96);

  --sign-edge: #4e3219;
  --sign-light: #ddd0a4;
  --sign-face: #cfbe8b;
  --sign-shade: #b9a572;
  --sign-ink: #45564a;
  --sign-warn: #9c5004;
}

/* ---------- base ---------- */

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--frame);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--selection);
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

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

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

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

.pixel-label {
  font-family: var(--font-pixel);
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- raised solid-edge buttons ---------- */

.btn {
  --edge: var(--border-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 0 var(--edge);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast), transform 80ms var(--ease-out), box-shadow 80ms var(--ease-out);
}

.btn:hover {
  background: var(--surface-2);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--edge);
}

.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
  gap: 6px;
  border-radius: var(--radius);
}

.btn-xl {
  height: 48px;
  padding: 0 24px;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 0 var(--edge);
}

.btn-xl:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--edge);
}

.btn-xl:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--edge);
}

.btn-primary {
  --edge: var(--accent-edge);
  background: var(--accent);
  border-color: var(--accent-edge);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-hero {
  --edge: var(--hero-edge);
  background: var(--hero-2);
  border-color: var(--hero-edge);
  color: var(--on-dark);
}

.btn-hero:hover {
  background: var(--hero-3);
}

.btn-frame {
  --edge: #0c1d11;
  height: 32px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 600;
  background: var(--frame-2);
  border-color: var(--frame-line);
  color: var(--on-dark);
  box-shadow: 0 2px 0 var(--edge);
}

.btn-frame:hover {
  background: var(--frame-3);
}

.btn-frame.icon-only {
  width: 32px;
  padding: 0;
}

/* ---------- pixel art paints ---------- */

.pixel {
  display: block;
  flex: none;
  image-rendering: pixelated;
}

.px-g { fill: var(--t-grass); }
.px-g2 { fill: var(--t-grass-dark); }
.px-g3 { fill: var(--t-grass-light); }
.px-d { fill: var(--t-dirt); }
.px-d2 { fill: var(--t-dirt-dark); }
.px-d3 { fill: var(--t-dirt-light); }
.px-w { fill: var(--t-wood); }
.px-l { fill: var(--t-leaf); }
.px-l2 { fill: var(--t-leaf-dark); }
.px-f { fill: var(--t-flower); }
.px-c { fill: var(--hero-cloud); }
.px-k { fill: var(--t-stone); }
.px-k2 { fill: var(--t-stone-dark); }
.px-v { fill: var(--t-cave); }
.px-o1 { fill: var(--t-coal); }
.px-o2 { fill: var(--t-iron); }
.px-o3 { fill: var(--t-gem); }
.px-x1 { fill: var(--star); }
.px-x2 { fill: var(--star-bright); }
.px-s1 { fill: var(--sun); }
.px-s2 { fill: var(--sun-light); }
.px-m1 { fill: var(--moon); }
.px-m2 { fill: var(--moon-dark); }
.px-h1 { fill: var(--hill-far); }
.px-h2 { fill: var(--hill-near); }

.sign-edge,
.sign-post-shade { fill: var(--sign-edge); }
.sign-light { fill: var(--sign-light); }
.sign-face { fill: var(--sign-face); }
.sign-shade { fill: var(--sign-shade); }
.sign-post { fill: var(--t-wood); }
.sign-mark { fill: var(--sign-warn); }

/* ---------- top navigation bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: var(--frame);
  border-bottom: 1px solid var(--frame-line);
  color: var(--on-dark);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--radius);
  background: var(--frame-2);
  border: 1px solid var(--frame-line);
  color: var(--on-dark-accent);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-links a:hover {
  color: var(--on-dark);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero);
  color: var(--on-dark);
  padding: 44px 0 0;
  transition: background var(--dur) var(--ease-out);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-sky-layer {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 0;
}

.hero-celestial-wrap {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--wrap);
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-celestial {
  line-height: 0;
  opacity: 0.95;
}

.hero-landscape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  z-index: 1;
  pointer-events: none;
}

.land-layer {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  line-height: 0;
  animation: land-rise 480ms var(--ease-out) both;
}

.land-layer.near {
  animation-delay: 60ms;
}

.land-layer.ground {
  animation-delay: 120ms;
}

@keyframes land-rise {
  from {
    transform: translate(-50%, 24px);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-header {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-dark-muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.sq-dot {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--on-dark-accent);
  display: inline-block;
}

.sq-dot-inline {
  width: 4px;
  height: 4px;
  flex: none;
  background: var(--on-dark-faint);
  display: inline-block;
}

.hero-title {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--on-dark);
}

.hero-lead {
  margin: 14px 0 0;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--on-dark-muted);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-dl-meta {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(15, 35, 12, 0.14);
  font-size: 12px;
  font-weight: 600;
}

.hero-gh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark-muted);
  padding: 8px 4px;
  transition: color var(--dur-fast) var(--ease-out);
}

.hero-gh-link:hover {
  color: var(--on-dark);
}

/* Biome selector bar */
.hero-bar {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.biome-picker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.biome-caption {
  color: var(--on-dark-faint);
  margin-right: 4px;
}

.biome-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--hero-edge);
  background: var(--hero-2);
  color: var(--on-dark-muted);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 0 var(--hero-edge);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast),
    transform 80ms var(--ease-out), box-shadow 80ms var(--ease-out);
}

.biome-btn:hover {
  background: var(--hero-3);
  color: var(--on-dark);
}

.biome-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--hero-edge);
}

.biome-btn[aria-pressed="true"] {
  background: var(--on-dark);
  color: var(--frame);
  border-color: var(--hero-edge);
}

.biome-swatch {
  width: 8px;
  height: 8px;
  flex: none;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.hero-subnote {
  font-size: 12px;
  color: var(--on-dark-faint);
}

/* Hero window frame */
.hero-shot-wrap {
  margin-top: 20px;
  padding-bottom: 68px;
}

.hero-shot-frame {
  position: relative;
  border-radius: var(--radius-xl);
  border: 2px solid var(--hero-edge);
  background: var(--frame);
  box-shadow: 0 6px 0 var(--hero-edge);
  overflow: hidden;
  cursor: zoom-in;
}

.hero-shot-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ---------- sections ---------- */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-text);
  margin-bottom: 8px;
}

.section-eyebrow .sq-dot {
  background: var(--accent);
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-side-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
}

.section-side-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 6 core features ---------- */

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 2px 0 var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  flex: none;
  image-rendering: pixelated;
}

.feature-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.feature-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Compact "Also included" & benchmark strip */
.also-strip {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--muted);
}

.also-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.also-sep {
  width: 4px;
  height: 4px;
  background: var(--border-strong);
  flex: none;
}

.also-link {
  font-weight: 600;
  color: var(--accent-text);
  white-space: nowrap;
}

.also-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- screenshot gallery ---------- */

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.gallery-tab {
  --edge: var(--border-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 0 var(--edge);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast),
    transform 80ms var(--ease-out), box-shadow 80ms var(--ease-out);
}

.gallery-tab:hover {
  color: var(--text);
  background: var(--surface-3);
}

.gallery-tab:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--edge);
}

.gallery-tab[aria-selected="true"] {
  --edge: var(--accent-edge);
  background: var(--accent);
  border-color: var(--accent-edge);
  color: var(--accent-ink);
}

.gallery-stage {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 3px 0 var(--border-strong);
  overflow: hidden;
}

.gallery-image-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--frame);
  cursor: zoom-in;
}

.gallery-image-btn img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-caption-bar {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.gallery-caption-text {
  font-size: 14px;
  color: var(--text);
}

.gallery-caption-text strong {
  font-weight: 700;
  margin-right: 8px;
}

.gallery-caption-text span {
  color: var(--muted);
}

.gallery-zoom-hint {
  font-size: 12px;
  color: var(--faint);
}

/* ---------- download table ---------- */

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

.version-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  color: var(--accent-text);
}

.dl-table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 0 var(--border);
  overflow: hidden;
}

.dl-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

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

.dl-row.is-detected {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.dl-os {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dl-os-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.dl-os-sub {
  font-size: 13px;
  color: var(--muted);
}

.dl-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
}

.dl-badge-exp {
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

.dl-packages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pkg-size {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.78;
}

/* Compact notice bar under download table */
.notice-bar {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.notice-sign {
  width: 28px;
  height: 28px;
  flex: none;
  margin-top: 1px;
}

.notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.notice-list a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- footer ---------- */

.footer {
  background: var(--frame);
  border-top: 1px solid var(--frame-line);
  color: var(--on-dark-muted);
  padding: 36px 0 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--frame-line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--on-dark);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  font-size: 13px;
}

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

.footer-bottom {
  padding-top: 18px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--on-dark-faint);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--scrim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  width: 100%;
  max-width: 1240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--on-dark);
}

.lightbox-title {
  font-size: 14px;
  font-weight: 600;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-frame {
  border-radius: var(--radius-xl);
  border: 2px solid var(--frame-line);
  background: var(--frame);
  overflow: hidden;
}

.lightbox-frame img {
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dl-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-celestial-wrap {
    top: 18px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .brand-tag {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-celestial-wrap {
    display: none;
  }

  .also-strip {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn-xl {
    width: 100%;
    justify-content: center;
  }

  .hero-gh-link {
    margin-left: 0;
  }

  .hero-shot-wrap {
    padding-bottom: 44px;
  }

  .section {
    padding: 48px 0;
  }

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

  .gallery-tab {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  .dl-packages .btn {
    width: 100%;
    justify-content: space-between;
  }

  .nav-gh-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .land-layer {
    animation: none;
  }
}
