/* ============================================================
   PromptPad landing — "Night ridge"
   A monochrome nightscape over a real mountain photograph.
   The app window sinks into the fog as you scroll.
   Color exists in exactly one place: the 14-theme stack.
   ============================================================ */

/* ===== Tokens ===== */
:root {
  --bg: #08070d;
  --ink: #f2f0f7;
  --muted: #a5a1bc;
  --panel: #111017;
  --panel-2: #16151d;
  --line: rgba(242, 240, 247, 0.10);
  --line-strong: rgba(242, 240, 247, 0.24);
  --hl: rgba(242, 240, 247, 0.13);
  --bubble: #1a1922;

  --shadow-app: 0 34px 110px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 12px 34px rgba(0, 0, 0, 0.30);

  --focus: #4d9fff;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --spring: cubic-bezier(0.24, 0.9, 0.28, 1.18);
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

/* light mode removed — site is permanently dark */

/* ===== Fonts ===== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('../assets/fonts/Unbounded-latin.woff2') format('woff2');
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0000-00FF;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
section { position: relative; }

::selection { background: rgba(77, 159, 255, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--hl);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  white-space: nowrap;
}

/* ===== Reveal system (JS adds .js / .loaded / .in) ===== */
.js .reveal, .js .reveal-load {
  opacity: 0;
  transform: translateY(22px);
}
.js .reveal.in,
.js.loaded .reveal-load {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease) var(--d, 0ms), transform 0.75s var(--ease) var(--d, 0ms);
}

/* ===== Header ===== */
.hd {
  position: fixed;
  inset-inline: 0; top: 0;
  z-index: 60;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.hd.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.hd__in {
  max-width: 1240px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 13px 24px;
}
.hd__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.hd__logo { border-radius: 7px; }
.hd__name {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}
.hd__nav {
  display: flex;
  gap: 22px;
  margin-inline-start: 12px;
}
.hd__nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.hd__nav a:hover { color: var(--ink); }
.hd__actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hd__lang {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.hd__lang:hover { border-color: var(--line-strong); background: var(--hl); }
.hd__gh {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.hd__gh:hover { border-color: var(--line-strong); background: var(--hl); }
.hd__dl {
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  padding: 8px 16px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.hd__dl:hover { transform: translateY(-1px); opacity: 0.9; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 12px 22px;
  transition: transform 0.25s var(--spring), box-shadow 0.25s, background 0.2s, border-color 0.2s;
}
.btn--solid {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35); }
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--hl); transform: translateY(-3px); }
.btn--big { font-size: 1.06rem; padding: 15px 30px; border-radius: 14px; }

/* ===== Kickers ===== */
.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 14px;
}

/* ============================================================
   HERO — content high, real mountains low, app sinks into fog
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(58px + 2.5vh);
}

/* back layer — starry night sky with dark mountain silhouettes, fills the whole hero */
.hero__mtn-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__mtn-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* show the upper portion where the stars are */
  object-position: center 30%;
}
/* very subtle fade only at the very bottom so it melds into the next section */
.hero__mtn-bg::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 8%;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
  pointer-events: none;
}

.hero__stars {
  position: absolute; inset: 0 0 40% 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(242,240,247,0.55), transparent 100%),
    radial-gradient(1px 1px at 28% 8%, rgba(242,240,247,0.4), transparent 100%),
    radial-gradient(1.4px 1.4px at 44% 22%, rgba(242,240,247,0.5), transparent 100%),
    radial-gradient(1px 1px at 61% 12%, rgba(242,240,247,0.38), transparent 100%),
    radial-gradient(1.3px 1.3px at 75% 26%, rgba(242,240,247,0.5), transparent 100%),
    radial-gradient(1px 1px at 88% 9%, rgba(242,240,247,0.42), transparent 100%),
    radial-gradient(1.1px 1.1px at 7% 42%, rgba(242,240,247,0.35), transparent 100%),
    radial-gradient(1.2px 1.2px at 93% 38%, rgba(242,240,247,0.4), transparent 100%),
    radial-gradient(1px 1px at 52% 40%, rgba(242,240,247,0.3), transparent 100%),
    radial-gradient(1.2px 1.2px at 33% 60%, rgba(242,240,247,0.28), transparent 100%),
    radial-gradient(1px 1px at 69% 55%, rgba(242,240,247,0.3), transparent 100%);
  /* the back mountain image has real stars now, so the CSS dots are subtle on top */
  opacity: 0.25;
  transition: opacity 0.45s var(--ease);
}

/* shooting stars — the layer sits right after the sky in the DOM, so it
   paints above the mountain-bg image but under the card, ridges and copy */
.hero__comets {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.comet {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 2px;
  border-radius: 999px;
  /* bright head on the local right edge — the direction of travel */
  background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(214, 232, 255, 0.45) 30%, transparent 75%);
  filter: drop-shadow(0 0 6px rgba(214, 232, 255, 0.55));
  opacity: 0;
  /* JS sets --x0/--y0 (spawn point), --ang (flight angle), --dist, --dur */
  animation: comet-fly var(--dur, 800ms) linear forwards;
}
@keyframes comet-fly {
  0%   { opacity: 0; transform: translate(var(--x0, 0px), var(--y0, 0px)) rotate(var(--ang, 30deg)) translateX(0); }
  12%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x0, 0px), var(--y0, 0px)) rotate(var(--ang, 30deg)) translateX(var(--dist, 420px)); }
}

.hero__copy {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 24px;
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.hero__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero__line { display: block; }
/* wordmark variant — the app name as the title, in the header-brand mono style */
.hero__title--brand {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 4rem);
  letter-spacing: 0.14em;
}
.hero__sub {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  line-height: 2;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}
.hero__note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* --- the stage: wordmark, app window, mountains --- */
.hero__stage {
  position: relative;
  flex: 1;
  min-height: clamp(320px, 44vh, 560px);
  margin-top: 2.5vh;
}
/* hero__wordmark removed — was the big outlined "promptpad" text behind the app card */
/* parallax lives on this wrapper — no transition here, so the JS-lerped --sy
   tracks the wheel live; the reveal transition stays on .hero__app inside */
.hero__par {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  width: min(620px, 82vw);
  transform: translateX(-50%) translateY(calc(var(--sy, 0) * 0.42px));
  will-change: transform;
}
.hero__app {
  border-radius: 14px;
  box-shadow: var(--shadow-app), 0 0 0 1px var(--line);
}
.hero__app img {
  width: 100%; height: auto;
  border-radius: inherit;
}

/* bottom fade on the hero so the starry background blends into the next section */
.hero::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 8%;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
  pointer-events: none;
  z-index: 1;
}

/* front layer — dark mountain ridges on both sides with a valley in the middle
   sits in front of the app card so the card sits in the valley between the ridges */
.hero__mtn-fg {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: clamp(440px, 78vh, 820px);
  z-index: 2;
  pointer-events: none;
}
.hero__mtn-fg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* show the bottom of the image where the mountains are, valley centered */
  object-position: center bottom;
}
/* fade the dark ridges into the page so they don't feel pasted on */
.hero__mtn-fg::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 6%;
  background: linear-gradient(to bottom, transparent, var(--bg) 88%);
}

/* ============================================================
   THEMES — squares stacked on the left, words on the right
   ============================================================ */
.themes { padding: clamp(70px, 11vh, 130px) 0; overflow-x: clip; }
.themes__in {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}
.themes__title {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.themes__sub {
  margin: 0;
  color: var(--muted);
  line-height: 2.1;
  font-size: 1rem;
  max-width: 420px;
}
.themes__sub span { font-family: var(--mono); font-size: 0.9em; }
.themes__meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 26px;
}
.themes__name {
  font-family: 'Unbounded', var(--mono);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: 0.01em;
}
.themes__idx {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.themes__hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.8;
}

/* the spread of all 14 themes — front card centered, others fanned out
   the whole card spread shifts to the left; the text on the right is untouched */
.themes__stack {
  --card-size: clamp(140px, 15vw, 300px);
  --spread: clamp(30px, 3.2vw, 40px);
  position: relative;
  width: 100%;
  height: calc(var(--card-size) + 90px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
}
.sq {
  --lift: 0px;
  --pop: 0;
  position: absolute;
  top: 35px;
  left: 50%;
  width: var(--card-size);
  height: var(--card-size);
  /* physical margin-left: `left` is physical, so the centering offset must be
     too — margin-inline-start becomes margin-right in RTL and does nothing.
     margin shorthand also kills the UA's default 40px figure margin. */
  margin: 0 0 0 calc(var(--card-size) / -2);
  border-radius: 16px;
  transition: transform 0.6s var(--spring), opacity 0.45s var(--ease), filter 0.45s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform, opacity;
  /* JS sets --k (0 = front), --x (horizontal spread), --s (scale by distance from center) */
  transform: translateX(var(--x, 0px))
             translateY(calc(var(--k, 0) * -2.5px + var(--lift)))
             scale(calc(var(--s, 1) + var(--pop) * 0.035));
  filter: brightness(calc(1 - var(--k, 0) * 0.02));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}
.sq img {
  width: 100%; height: 100%;
  border-radius: inherit;
  border: 1px solid var(--line-strong);
}
.sq:hover,
.sq:focus-visible {
  --lift: -18px;
  --pop: 1;
  filter: brightness(1.08);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.42);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding-top: clamp(10px, 3vh, 40px); }
.feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(52px, 8vh, 104px) 24px;
}
.feat--flip .feat__visual { order: -1; }
.feat__title {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.feat__text {
  margin: 0;
  color: var(--muted);
  line-height: 2.1;
  font-size: 1rem;
}
.feat__hint { display: block; margin-top: 8px; font-size: 0.82rem; opacity: 0.75; }
.feat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.chip {
  font-family: var(--mono);
  font-size: 0.76rem;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 13px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-2px); }

/* --- demo: placeholders --- */
.demo {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px 24px;
  box-shadow: var(--shadow-card);
}
.demo__bar { display: flex; gap: 6px; margin-bottom: 18px; }
.demo__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.demo__prompt {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 2.3;
}
.ph {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--hl);
  color: inherit;
  border-radius: 7px;
  padding: 2px 8px;
  transition: background 0.35s, box-shadow 0.35s;
}
.ph--filled {
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--ink);
  border-radius: 0;
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 600;
}
.demo__fill {
  margin-top: 22px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.demo__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 10px;
  text-align: end;
}
.demo__field {
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 6px 14px;
  font-weight: 500;
}
.demo__caret {
  width: 1.5px; height: 1.1em;
  background: var(--ink);
  margin-inline-start: 2px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- demo: fast save chat --- */
.chat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.chat__msg {
  background: var(--bubble);
  border-radius: 13px;
  border-start-end-radius: 4px;
  padding: 10px 14px 8px;
  max-width: 85%;
  align-self: flex-start;
}
.chat__msg p { margin: 0; font-size: 0.92rem; }
.chat__msg time {
  display: block;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 4px;
}
.chat__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 0.86rem;
}
.chat__input i { font-style: normal; font-family: var(--mono); }

/* --- demo: improve --- */
.improve {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.improve__before, .improve__after {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 14px;
}
.improve__before { opacity: 0.62; }
.improve__after {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.improve__before p, .improve__after p { margin: 8px 0 0; font-size: 0.94rem; line-height: 1.95; }
.improve__tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
.improve__arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: var(--muted);
}
.improve__arrow em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

/* --- demo: handy dock --- */
.dockdemo {
  position: relative;
  aspect-ratio: 16 / 10.4;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.dockdemo__window {
  position: absolute;
  inset: 12% 10% 26%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.dockdemo__wbar {
  display: block;
  height: 8px; width: 34%;
  border-radius: 4px;
  background: var(--hl);
  margin-bottom: 14px;
}
.dockdemo__wline {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  margin-bottom: 9px;
}
.dockdemo__wline.short { width: 62%; }
.dockdemo__pad {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 46%;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px 10px 4px 4px;
  padding: 10px 12px 12px;
  transform: translateX(-50%) translateY(115%);
  transition: transform 0.5s var(--spring);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
}
.dockdemo__pbar {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 9px;
}
.dockdemo__pline {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--bg) 30%, transparent);
  margin-bottom: 7px;
}
.dockdemo__pline.short { width: 55%; margin-bottom: 0; }
.dockdemo__line {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  width: 74px; height: 5px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.65;
  animation: nudge 2.4s var(--ease) infinite;
  transition: opacity 0.3s;
}
@keyframes nudge {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}
.dockdemo:hover .dockdemo__pad,
.dockdemo:focus-visible .dockdemo__pad { transform: translateX(-50%) translateY(0); }
.dockdemo:hover .dockdemo__line,
.dockdemo:focus-visible .dockdemo__line { opacity: 0; animation-play-state: paused; }

/* --- more grid --- */
.more {
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(52px, 8vh, 104px) 24px;
  text-align: center;
}
.more__title {
  margin: 0 0 40px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
}
.more__grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  text-align: start;
}
.more__grid li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.more__grid li:hover {
  border-color: var(--line-strong);
  background: var(--hl);
  transform: translateY(-3px);
}
.more__grid b { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.more__grid span { color: var(--muted); font-size: 0.83rem; line-height: 1.8; }

/* ============================================================
   DOWNLOAD
   ============================================================ */
.dl {
  text-align: center;
  padding: clamp(60px, 10vh, 130px) 24px clamp(80px, 12vh, 150px);
}
.dl__monolith {
  width: 58px;
  height: 140px;
  margin: 0 auto 34px;
  background: var(--ink);
  clip-path: polygon(22% 100%, 8% 16%, 48% 0, 84% 10%, 92% 100%);
  transition: background 0.45s var(--ease);
}
.dl__title {
  margin: 0;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 800;
}
.dl__sub {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.dl__sub span { font-family: var(--mono); background: var(--hl); border-radius: 999px; padding: 2px 12px; }
.dl__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.dl__gh { margin: 26px 0 0; font-size: 0.86rem; color: var(--muted); }
.dl__gh a { color: var(--ink); text-underline-offset: 4px; }

/* ===== Footer ===== */
.ft { border-top: 1px solid var(--line); }
.ft__in {
  max-width: 1180px;
  margin-inline: auto;
  padding: 26px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ft__made { margin: 0; font-size: 0.88rem; color: var(--muted); }
.ft__made a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.ft__links { display: flex; flex-wrap: wrap; gap: 18px; }
.ft__links a {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.ft__links a:hover { color: var(--ink); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .feat { grid-template-columns: 1fr; gap: 34px; }
  .feat--flip .feat__visual { order: 0; }
  .themes__in { grid-template-columns: 1fr; gap: 46px; }
  .themes__stack { margin-inline: auto; }
}

@media (max-width: 720px) {
  .hd__nav { display: none; }
  .hero { padding-top: calc(60px + 2.5vh); }
  .hero__sub { padding-inline: 6px; }
  .hero__par { width: 94vw; }
  .hero__mtn-fg { height: clamp(320px, 60vh, 520px); }
  .hero__stage { min-height: clamp(320px, 46vh, 500px); }
  .themes__stack { --card-size: 108px; --spread: 26px; }
  .sq { border-radius: 13px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .js .reveal, .js .reveal-load { opacity: 1; transform: none; }
  .hero__par { transform: translateX(-50%) !important; }
}
