/* styles.css — Hynite landing page */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bp-bg-base: #08080b;
  --bp-bg-deep: #050409;
  --bp-glow: #c44eff;
  --text: #f2eef8;
  --text-dim: rgba(242, 238, 248, 0.62);
  --text-faint: rgba(242, 238, 248, 0.38);
  --hair: rgba(255, 255, 255, 0.08);
  --hair-strong: rgba(255, 255, 255, 0.14);
  --accent-text: color-mix(in srgb, var(--bp-glow) 70%, white 30%);
  --card: rgba(255, 255, 255, 0.035);
  --card-hi: rgba(255, 255, 255, 0.07);
  --display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bp-bg-deep); color: var(--text); }
body { font-family: var(--body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
kbd {
  font-family: var(--mono); font-size: 11px; padding: 2px 5px;
  border: 1px solid var(--hair-strong); border-radius: 4px;
  background: rgba(255, 255, 255, 0.04); color: var(--text-dim);
  line-height: 1; display: inline-block;
}

/* ─── Background stack ─── */
.bg-stack { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 28% 26%, color-mix(in srgb, var(--bp-bg-base) 76%, white 8%) 0%, transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--bp-bg-base) 88%, #050409 12%) 0%, #050409 100%);
}
.bg-bends {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 1; transition: opacity 500ms ease;
}
.bg-bends.off { opacity: 0; }
.bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, transparent 0%, rgba(5,4,9,0.25) 60%, rgba(5,4,9,0.8) 100%),
    linear-gradient(180deg, rgba(5,4,9,0.5) 0%, rgba(5,4,9,0.08) 22%, rgba(5,4,9,0.2) 60%, rgba(5,4,9,0.85) 100%);
}
.bg-grid {
  position: absolute; inset: 0; opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 0%, transparent 80%);
}
.bg-grain {
  position: absolute; inset: 0; opacity: 0.025; mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* ─── Dark-left readability gradient ─── */
/* Wraps hero + main sections (not the footer). Dark on the left fades to
   transparent on the right so the ColorBends shines through where there's no
   copy. Vertical mask softly fades the overlay to nothing as we approach the
   footer's "Press play" CTA, so the install CTA is unobstructed. */
.dark-zone {
  position: relative;
  isolation: isolate;
}
.dark-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(95deg,
    rgba(5, 4, 9, 0.96) 0%,
    rgba(5, 4, 9, 0.92) 14%,
    rgba(5, 4, 9, 0.78) 30%,
    rgba(5, 4, 9, 0.5)  48%,
    rgba(5, 4, 9, 0.22) 66%,
    rgba(5, 4, 9, 0.05) 82%,
    rgba(5, 4, 9, 0)    100%);
  -webkit-mask-image: linear-gradient(180deg,
    black 0%,
    black calc(100% - 720px),
    transparent calc(100% - 80px));
          mask-image: linear-gradient(180deg,
    black 0%,
    black calc(100% - 720px),
    transparent calc(100% - 80px));
}
.dark-zone > * { position: relative; z-index: 1; }
@media (max-width: 900px) {
  /* On narrow screens the bento sections collapse to one column, so the
     horizontal gradient is less useful. Make it a top-down darken instead. */
  .dark-zone::before {
    background: linear-gradient(180deg,
      rgba(5,4,9,0.85) 0%,
      rgba(5,4,9,0.55) 40%,
      rgba(5,4,9,0.25) 75%,
      rgba(5,4,9,0) 100%);
  }
}

/* ─── Page shell ─── */
.page { position: relative; z-index: 1; min-height: 100vh; }

/* (Top nav removed — hero owns the brand mark.) */

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--body); font-weight: 500; font-size: 13.5px; line-height: 1;
  border: 1px solid var(--hair-strong); cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 22px; font-size: 14.5px; border-radius: 999px; }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bp-glow) 95%, white 8%), color-mix(in srgb, var(--bp-glow) 80%, black 20%));
  border-color: color-mix(in srgb, var(--bp-glow) 60%, transparent);
  color: white;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--bp-glow) 30%, transparent),
              inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 40px color-mix(in srgb, var(--bp-glow) 45%, transparent), inset 0 1px 0 rgba(255,255,255,0.3); }
.download-btn {
  --star-dur: 0.9s;
  position: relative;
  overflow: visible;
}

.download-btn > svg,
.download-btn > span:not(.download-star) {
  position: relative;
  z-index: 3;
}

.download-star {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  color: color-mix(in srgb, var(--bp-glow) 62%, white);
  transition:
    top var(--star-dur) cubic-bezier(0.05, 0.83, 0.43, 0.96),
    left var(--star-dur) cubic-bezier(0.05, 0.83, 0.43, 0.96),
    opacity 0.22s ease,
    filter 0.22s ease;
}

.download-star svg {
  display: block;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.download-btn .star-1 { top: 20%; left: 20%; width: 20px; }
.download-btn .star-2 { top: 45%; left: 45%; width: 13px; --star-dur: 0.88s; }
.download-btn .star-3 { top: 40%; left: 40%; width: 5px; --star-dur: 0.82s; }
.download-btn .star-4 { top: 20%; left: 40%; width: 7px; --star-dur: 0.72s; }
.download-btn .star-5 { top: 25%; left: 45%; width: 13px; --star-dur: 0.62s; }
.download-btn .star-6 { top: 5%; left: 50%; width: 5px; --star-dur: 0.78s; }

.download-btn:hover .star-1,
.download-btn:focus-visible .star-1 { top: -78%; left: -18%; opacity: 1; filter: drop-shadow(0 0 8px var(--bp-glow)); }
.download-btn:hover .star-2,
.download-btn:focus-visible .star-2 { top: 92%; left: -12%; opacity: 1; filter: drop-shadow(0 0 7px var(--bp-glow)); }
.download-btn:hover .star-3,
.download-btn:focus-visible .star-3 { top: 108%; left: 38%; opacity: 1; filter: drop-shadow(0 0 7px var(--bp-glow)); }
.download-btn:hover .star-4,
.download-btn:focus-visible .star-4 { top: 88%; left: 84%; opacity: 1; filter: drop-shadow(0 0 7px var(--bp-glow)); }
.download-btn:hover .star-5,
.download-btn:focus-visible .star-5 { top: 10%; left: 108%; opacity: 1; filter: drop-shadow(0 0 8px var(--bp-glow)); }
.download-btn:hover .star-6,
.download-btn:focus-visible .star-6 { top: -30%; left: 60%; opacity: 1; filter: drop-shadow(0 0 7px var(--bp-glow)); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--hair-strong); }
.kbd-inline {
  font-family: var(--mono); font-size: 11px; font-style: normal;
  padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.08);
  color: var(--text-dim); margin-left: 2px;
}

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center; gap: 64px;
  max-width: 1320px; margin: 0 auto;
  padding: 80px 36px 100px;
}
.hero-centered {
  grid-template-columns: 1fr;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  max-width: 1080px;
  padding: 56px 36px 48px;
  min-height: 92svh;
}
.hero-centered .hero-cta { justify-content: center; }
.hero-inner { max-width: 580px; }
.hero-centered .hero-inner { max-width: 720px; display: flex; flex-direction: column; align-items: center; }

/* Brand mark uses the logo as the H in Hynite. */
.hero-mark { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.hero-centered .hero-mark {
  gap: 0;
  margin-bottom: 22px; margin-top: 0;
}
.hero-logo {
  width: 64px; height: 64px;
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--bp-glow) 70%, transparent));
}
.hero-centered .hero-logo {
  width: clamp(86px, 10vw, 128px);
  height: clamp(86px, 10vw, 128px);
  filter: drop-shadow(0 0 60px color-mix(in srgb, var(--bp-glow) 60%, transparent))
          drop-shadow(0 12px 40px rgba(0,0,0,0.5));
}
.hero-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(48px, 6.5vw, 80px);
  letter-spacing: 0; line-height: 0.95;
  margin-left: -2px; margin-bottom: -0.03em;
  padding-bottom: 0.16em;
  display: inline-block;
  overflow: visible;
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--bp-glow) 25%, white 75%) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-centered .hero-name {
  font-size: clamp(52px, 6.2vw, 86px);
  letter-spacing: 0;
}
.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55;
  margin: 0 0 32px;
  color: rgba(242, 238, 248, 0.82); text-wrap: pretty;
}
.hero-centered .hero-sub {
  font-size: clamp(16px, 1.25vw, 19px);
  max-width: 620px; margin: 0 auto 28px;
}
.hero-sub em { font-style: italic; color: var(--accent-text); font-weight: 500; }
.hero-cta {
  display: flex; gap: 12px;
  flex-wrap: wrap;
}

/* Cycling hero screenshot — split layout = right column, centered = below CTAs */
.hero-shot { width: 100%; display: flex; justify-content: center; align-items: center; }
.hero-shot-bottom {
  width: 100%; max-width: 700px;
  margin-top: 34px;
  display: flex; justify-content: center;
}
.hero-shot-bottom .shot-frame {
  max-width: 880px;
  transform: perspective(2200px) rotateX(6deg);
}
.shot-frame {
  position: relative; width: 100%; max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--hair-strong);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.7),
    0 0 80px color-mix(in srgb, var(--bp-glow) 22%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg);
  background: var(--bp-bg-deep);
}
.shot-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1.0s ease;
}
.shot-frame img.on { opacity: 1; }
.shot-dots {
  position: absolute; right: 18px; bottom: 18px;
  display: flex; gap: 6px;
}
.shot-dot {
  width: 18px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.25); border: 0; padding: 0; cursor: pointer;
  transition: background .25s;
}
.shot-dot.on { background: rgba(255,255,255,0.9); }
.shot-dot:hover { background: rgba(255,255,255,0.6); }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: transparent; border: 0; color: var(--text-faint);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: color .2s;
  animation: bob 2.4s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--text); }
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(4px); } }

/* ─── Section shell ─── */
.sec {
  position: relative; padding: 80px 36px;
  max-width: 1320px; margin: 0 auto;
}
.sec-eyebrow {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: 16px max-content minmax(48px, 1fr);
  align-items: center;
  gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64); margin-bottom: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.sec-eyebrow svg {
  width: 15px;
  height: 15px;
  color: var(--accent-text);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--bp-glow) 55%, transparent));
}
.sec-eyebrow::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bp-glow) 48%, transparent), transparent);
}
.sec-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.0; letter-spacing: 0;
  margin: 0 0 calc(22px - 0.16em); padding-bottom: 0.16em; text-wrap: balance;
  overflow: visible;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.78) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-sub {
  font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6;
  color: var(--text-dim); text-wrap: pretty;
  margin: 0;
}

/* Bento layouts (each section has its own asymmetric grid) */
.bento { display: grid; gap: 22px; }
.bento-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ─── Library bento ─── */
.bento-library {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}
.bento-library .bento-copy { padding-right: 12px; }
.bento-library .bento-grid { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.library-rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 700px) { .library-rail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .library-covers { grid-template-columns: repeat(2, 1fr); } }

/* App-style game covers copied from the desktop renderer behavior. */
.game-cover {
  position: relative;
  display: block;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
  min-width: 0;
}

.library-covers {
  --row-card-width: 150px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cover-art {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 20%, var(--cover-a), transparent 40%),
    linear-gradient(145deg, var(--cover-a), var(--cover-b));
  background-size: cover;
  background-clip: padding-box;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.32);
  contain: layout paint;
  transition: box-shadow 200ms ease, transform 180ms ease;
}

.cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #15171c;
  animation: skeletonBreath 1800ms ease-in-out infinite;
}

.cover-art:has(.cover-img.loaded)::before {
  opacity: 0;
  animation: none;
}

@keyframes skeletonBreath {
  0%, 100% { background-color: #15171c; }
  50% { background-color: #272b38; }
}

.landing-game-cover:hover .cover-art,
.landing-game-cover:focus-visible .cover-art {
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.5),
    0 0 34px color-mix(in srgb, var(--cover-glow) 30%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.cover-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 300ms ease;
}

.cover-img.loaded { opacity: 1; }

.cover-reveal {
  display: none;
  z-index: 4;
}

.landing-game-cover:hover .cover-reveal,
.landing-game-cover:focus-visible .cover-reveal {
  position: absolute;
  inset: 0;
  display: block;
  padding: 12px;
  background: rgba(10, 11, 14, 0.22);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  animation: coverRevealIn 160ms ease-out;
}

@keyframes coverRevealIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cover-logo {
  position: absolute;
  top: 14%;
  left: 12px;
  right: 12px;
  height: 24%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cover-logo-img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.cover-action {
  position: absolute;
  top: 58%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

.cover-action-play {
  background: var(--text);
  color: #0d0e10;
}

.cover-action-play > svg { margin-left: 2px; }

.cover-action-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: #ffffff;
}

.cover-action-details {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cover-action-details:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 255, 255, 0.26);
}

.cover-info-mark {
  font-size: 24px;
  font-weight: 750;
  font-family: Georgia, serif;
  line-height: 1;
}

.cover-playtime {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.cover-state-pill {
  position: absolute;
  z-index: 5;
  left: 8px;
  top: 8px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 160ms ease;
}

.landing-game-cover:hover .cover-state-pill,
.landing-game-cover:focus-visible .cover-state-pill {
  opacity: 1;
}

/* Folder paths terminal-card on the left */
.library-paths {
  display: flex; flex-direction: column;
  background: rgba(8,8,11,0.55);
  border: 1px solid var(--hair); border-radius: 12px;
  overflow: hidden;
  font-family: var(--mono); font-size: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-top: 8px;
}

.local-map-panel {
  display: grid;
  gap: 0;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
}

.local-map-line {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.local-map-line strong {
  font-size: 13px;
}

.local-map-line span {
  color: var(--text-2, rgba(255, 255, 255, 0.58));
  font-size: 12px;
}

.folder-tree {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 12px;
  color: var(--text-dim);
}

.folder-tree strong,
.folder-tree span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  font-family: var(--mono);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-tree span {
  margin-left: 24px;
}
.paths-h {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--hair);
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint);
}
.paths-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bp-glow); box-shadow: 0 0 10px var(--bp-glow);
  animation: pulse 1.4s ease-in-out infinite;
}
.paths-h-right { color: var(--accent-text); font-weight: 500; }
.path-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hair);
}
.path-row:last-child { border-bottom: 0; }
.path-row code { color: var(--text); font-family: var(--mono); font-size: 12px; }
.path-status { font-size: 11px; }
.path-ok { color: rgba(120, 240, 180, 0.85); font-family: var(--mono); }
.path-scanning { color: var(--accent-text); display: inline-flex; align-items: center; gap: 8px; }
.scan-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bp-glow); box-shadow: 0 0 8px var(--bp-glow);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (max-width: 900px) {
  .bento-library { grid-template-columns: 1fr; }
}

/* ─── Spotlight bento ─── */
.bento-spotlight {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
}
.keys-stack {
  display: flex; align-items: center; gap: 14px;
  margin: 12px 0 18px;
}
.bigkey {
  font-family: var(--mono); font-weight: 500;
  font-size: 22px; line-height: 1;
  padding: 18px 22px; min-width: 64px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--hair-strong);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -3px 0 rgba(0,0,0,0.35),
    0 8px 24px rgba(0,0,0,0.45),
    0 0 32px color-mix(in srgb, var(--bp-glow) 18%, transparent);
  color: var(--text);
}
.key-plus { font-family: var(--mono); color: var(--text-faint); font-size: 24px; }
.keys-hint {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-faint);
  letter-spacing: 0.04em;
}
.keys-cta {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent-text); font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.04em;
}
.keys-cta:hover { color: #ffffff; }

.bento-demo { display: flex; justify-content: center; }
.spot-inline {
  width: 100%; max-width: 580px;
}

.spot-card {
  background: rgba(14, 12, 22, 0.7);
  backdrop-filter: blur(40px) saturate(140%);
  -webkit-backdrop-filter: blur(40px) saturate(140%);
  border: 1px solid var(--hair-strong);
  border-radius: 16px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 60px color-mix(in srgb, var(--bp-glow) 16%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}
.spot-search {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--hair);
  color: var(--text-dim);
}
.spot-search input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--text); font-family: var(--body); font-size: 15px;
}
.spot-search input::placeholder { color: var(--text-faint); }
.spot-esc { font-size: 10px; color: var(--text-faint); }

.spot-results { max-height: 360px; overflow-y: auto; padding: 6px; }
.spot-empty { padding: 40px 20px; text-align: center; color: var(--text-faint); font-size: 13px; }
.spot-row {
  display: grid; grid-template-columns: 40px 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
.spot-row.on { background: rgba(255,255,255,0.06); }
.spot-row-art {
  width: 40px; height: 40px; border-radius: 6px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bp-glow) 60%, black) 0%, color-mix(in srgb, var(--bp-glow) 30%, black) 100%);
  border: 1px solid var(--hair);
  position: relative; overflow: hidden;
}
.spot-row-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,0.05) 6px 7px);
}
.spot-row-text { min-width: 0; }
.spot-row-title { font-weight: 600; font-size: 13.5px; color: var(--text); }
.spot-row-meta { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.spot-row-source {
  font-family: var(--mono); font-size: 9.5px; color: var(--text-dim);
  letter-spacing: 0.06em; text-transform: lowercase;
  padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,0.04);
}
.spot-row-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-text);
}

.spot-foot {
  display: flex; gap: 16px; align-items: center;
  padding: 10px 18px; border-top: 1px solid var(--hair);
  font-family: var(--mono); font-size: 10px; color: var(--text-faint);
  letter-spacing: 0.04em;
}
.spot-foot kbd { font-size: 9.5px; padding: 2px 4px; margin-right: 3px; }
.spot-foot-right { margin-left: auto; }

/* per-id mini art tints for spotlight rows */
.spot-row-art[data-id="subnautica2"] { background: linear-gradient(135deg, #0a1c2a, #2cc6d8); }
.spot-row-art[data-id="ultrakill"]   { background: linear-gradient(135deg, #190303, #e8243e); }
.spot-row-art[data-id="abiotic"]     { background: linear-gradient(135deg, #06180f, #2ce0a8); }
.spot-row-art[data-id="spire2"]      { background: linear-gradient(135deg, #150a02, #f29a1f); }
.spot-row-art[data-id="repo"]        { background: linear-gradient(135deg, #0a0602, #f0b53a); }
.spot-row-art[data-id="mixtape"]     { background: linear-gradient(135deg, #0e0418, #c44eff); }
.spot-row-art[data-id="blanc"]       { background: linear-gradient(135deg, #10131a, #cdd6e0); }
.spot-row-art[data-id="windrose"]    { background: linear-gradient(135deg, #06121a, #3a8fb8); }
.spot-row-art[data-id="diablo4"]     { background: linear-gradient(135deg, #1a0606, #c8492a); }
.spot-row-art[data-id="skate"]       { background: linear-gradient(135deg, #1a1a1f, #a89870); }
.spot-row-art[data-id="undusted"]    { background: linear-gradient(135deg, #1a1206, #c8884a); }
.spot-row-art[data-id="spell"]       { background: linear-gradient(135deg, #0e1820, #5f8aa8); }
.spot-row-art[data-id="belowzero"]   { background: linear-gradient(135deg, #061620, #4ac0d8); }
.spot-row-art[data-id="walk"]        { background: linear-gradient(135deg, #18141a, #8a7aa0); }
.spot-row-art[data-id="gambo"]       { background: linear-gradient(135deg, #2a1a08, #d8924a); }

/* Shipped Spotlight palette styling, adapted from apps/desktop/src/renderer/spotlight.css. */
.spotlight-demo-shell {
  width: 100%;
  max-width: 720px;
  height: min(460px, 72vh);
  min-height: 360px;
}

.spotlight-panel {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(16, 17, 20, 0.97);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  animation: spotlightPanelIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.spotlight-panel.launching {
  place-items: center;
  grid-template-rows: 1fr;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@keyframes spotlightPanelIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.spotlight-search {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.spotlight-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f5f6;
  font-size: 18px;
  letter-spacing: 0;
}

.spotlight-search input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.spotlight-list {
  min-height: 0;
  overflow: hidden auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.spotlight-list::-webkit-scrollbar { width: 7px; }
.spotlight-list::-webkit-scrollbar-track { background: transparent; }
.spotlight-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}
.spotlight-list::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.36); }
.spotlight-list::-webkit-scrollbar-button,
.spotlight-list::-webkit-scrollbar-corner {
  display: none;
  background: transparent;
}

.spotlight-row {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.spotlight-row.active {
  background: rgba(255, 255, 255, 0.09);
}

.spotlight-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #202229;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 760;
}

.spotlight-icon.has-image {
  background: transparent;
}

.spotlight-icon.has-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.spotlight-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.spotlight-copy strong,
.spotlight-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-copy strong {
  font-size: 14px;
  font-weight: 650;
}

.spotlight-copy em {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-style: normal;
}

.spotlight-action {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 650;
}

.spotlight-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.spotlight-footer {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.spotlight-footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-launch-handoff {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: transparent;
}

.spotlight-launch-identity {
  width: min(520px, 78vw);
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.spotlight-launch-logo {
  max-width: 100%;
  max-height: 170px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.75));
  user-select: none;
}

.spotlight-launch-identity h1 {
  max-width: 100%;
  margin: 0 0 -0.12em;
  padding-bottom: 0.12em;
  color: #f5f5f6;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: 0;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.78);
}

.spotlight-launch-line {
  width: min(320px, 62vw);
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.spotlight-launch-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  transform: translateX(-115%);
  animation: spotlightLaunchLine 1.35s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes spotlightLaunchLine {
  0% { transform: translateX(-115%); }
  72% { transform: translateX(115%); }
  to { transform: translateX(115%); }
}

@media (max-width: 900px) {
  .bento-spotlight { grid-template-columns: 1fr; }
}

/* ─── Sources bento ─── */
.bento-sources {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas:
    "copy     wish"
    "sources  wish";
  gap: 16px;
}
.bento-sources .bento-copy { grid-area: copy; }
.src-card-wishlist { grid-area: wish; }
.src-card-sources  { grid-area: sources; }
.src-card-quote    { grid-area: quote; }

@media (max-width: 900px) {
  .bento-sources {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "wish" "sources";
  }
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head h2,
.source-panel h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.source-active {
  border-top: 0.5px solid var(--hair);
  padding-top: 18px;
  margin-bottom: 0;
  display: grid;
  gap: 12px;
}

.source-list {
  display: grid;
  gap: 6px;
}

.source-card {
  display: grid;
  gap: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.source-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
}

.source-card > .source-row {
  background: none;
  border: none;
  border-radius: 0;
}

.source-row-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.source-row-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text);
}

.source-row-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--text-faint);
}

.source-url {
  opacity: 0.7;
  font-family: var(--mono);
  font-size: 10px;
}

.source-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-action {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0.5px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim);
  padding: 0 8px;
  font-size: 12px;
  cursor: pointer;
}

.icon-action:hover,
.icon-action:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: 0;
}

.icon-action.danger {
  width: 28px;
  padding: 0;
  color: rgba(255, 255, 255, 0.48);
}

.icon-action.danger:hover {
  color: #ff6b6b;
  background: rgba(255, 80, 80, 0.12);
}

.source-panel,
.source-search {
  border-top: 0.5px solid var(--hair);
  padding-top: 18px;
  display: grid;
  gap: 14px;
}

.source-results {
  display: grid;
  gap: 6px;
}

.wishlist-calendar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  overflow-anchor: none;
  border-top: 0;
  padding-top: 0;
}

.wishlist-day-list {
  display: grid;
  gap: 0;
}

.wishlist-day-row {
  display: grid;
  gap: 5px;
  padding: 1px 0;
}

.wishlist-day-row.has-items {
  padding: 4px 0 6px;
}

.wishlist-day-heading {
  display: grid;
  grid-template-columns: max-content minmax(40px, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 18px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 700;
}

.wishlist-day-heading::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.wishlist-day-row.has-items .wishlist-day-heading {
  color: rgba(255, 255, 255, 0.78);
}

.wishlist-day-row.has-items .wishlist-day-heading::after {
  background: rgba(255, 255, 255, 0.16);
}

.wishlist-month-marker {
  display: grid;
  grid-template-columns: max-content minmax(40px, 1fr);
  gap: 10px;
  align-items: center;
  margin: 5px 0 1px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.wishlist-month-marker::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04));
}

.wishlist-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 3px;
}

.calendar-cover {
  position: relative;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.calendar-cover .cover-art {
  border-radius: 6px;
}

.calendar-cover .wishlist-source-pill {
  position: absolute;
  z-index: 6;
  left: 7px;
  right: auto;
  bottom: 6px;
  min-height: 18px;
  padding: 0 6px;
  font-size: 8px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.calendar-cover:hover .cover-art,
.calendar-cover:focus-visible .cover-art {
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.5),
    0 0 30px color-mix(in srgb, var(--cover-glow) 28%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.calendar-cover:hover .cover-reveal,
.calendar-cover:focus-visible .cover-reveal {
  position: absolute;
  inset: 0;
  display: block;
  padding: 8px;
  background: rgba(10, 11, 14, 0.22);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  animation: coverRevealIn 160ms ease-out;
}

.calendar-cover:hover .wishlist-source-pill,
.calendar-cover:focus-visible .wishlist-source-pill {
  opacity: 1;
}

.calendar-cover .cover-logo {
  left: 7px;
  right: 7px;
  top: 12%;
}

.calendar-cover .cover-action {
  width: 30px;
  height: 30px;
}

.calendar-cover .cover-info-mark {
  font-size: 15px;
}

.calendar-cover .cover-playtime {
  left: 7px;
  right: 7px;
  bottom: 7px;
  font-size: 8px;
}

.wishlist-source-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.wishlist-source-pill.available {
  background: rgba(91, 213, 151, 0.14);
  color: rgb(154, 239, 194);
}

.wishlist-source-pill.missing {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.58);
}

.src-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 20px 22px;
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}
.src-card-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.src-card-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-text);
}
.src-card-count {
  font-family: var(--mono); font-size: 11px; color: var(--text-faint);
}

.src-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.src-list li {
  display: grid; grid-template-columns: 36px 1fr auto;
  gap: 12px; align-items: center;
  padding: 11px 6px;
  border-bottom: 1px solid var(--hair);
}
.src-list li:last-child { border-bottom: 0; }
.src-row-muted { opacity: 0.5; }
.src-cover {
  width: 36px; height: 50px; border-radius: 5px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bp-glow) 60%, black), color-mix(in srgb, var(--bp-glow) 25%, black));
  border: 1px solid var(--hair);
  position: relative; overflow: hidden;
}
.src-cover::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(180deg, transparent 0 4px, rgba(255,255,255,0.04) 4px 5px);
}
.src-cover[data-id="gambo"]    { background: linear-gradient(135deg, #2a1a08, #d8924a); }
.src-cover[data-id="windrose"] { background: linear-gradient(135deg, #06121a, #3a8fb8); }
.src-cover[data-id="blanc"]    { background: linear-gradient(135deg, #10131a, #cdd6e0); }
.src-cover[data-id="spire2"]   { background: linear-gradient(135deg, #150a02, #f29a1f); }

.src-info { min-width: 0; }
.src-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.src-meta { font-size: 11px; color: var(--text-faint); font-family: var(--mono); }

.src-pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(255,255,255,0.045); color: var(--text-dim);
  border: 1px solid var(--hair);
  white-space: nowrap;
}
.src-pill-free {
  background: color-mix(in srgb, var(--bp-glow) 15%, transparent);
  border-color: color-mix(in srgb, var(--bp-glow) 35%, transparent);
  color: var(--accent-text);
}
.src-pill-source {
  background: rgba(80, 220, 180, 0.1);
  border-color: rgba(80, 220, 180, 0.3);
  color: rgb(140, 240, 200);
}
.src-pill-demo {
  background: rgba(240, 200, 80, 0.1);
  border-color: rgba(240, 200, 80, 0.3);
  color: rgb(255, 220, 130);
}

.src-sources { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 12px; }
.src-sources li { display: flex; align-items: center; gap: 12px; }
.src-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: rgba(120, 240, 180, 0.8);
  box-shadow: 0 0 10px rgba(120, 240, 180, 0.6);
}
.src-dot-warn { background: rgba(240, 200, 80, 0.9); box-shadow: 0 0 10px rgba(240, 200, 80, 0.6); }
.src-add {
  width: 100%; padding: 9px;
  background: rgba(255,255,255,0.04); border: 1px dashed var(--hair-strong);
  border-radius: 8px; color: var(--text-dim);
  font-family: var(--mono); font-size: 11px; cursor: pointer;
  transition: all .2s;
}
.src-add:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.src-card-quote { padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; }
.src-quote {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(15px, 1.2vw, 18px); line-height: 1.45;
  margin: 0 0 14px; color: var(--text); text-wrap: balance;
  letter-spacing: 0;
}
.src-quote-by {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-faint);
  letter-spacing: 0.06em;
}

/* ─── Footer ─── */
.foot {
  position: relative; padding: 100px 36px 40px;
  max-width: 1320px; margin: 80px auto 0;
  border-top: 1px solid var(--hair);
}
.foot-cta { text-align: center; max-width: 1020px; margin: 0 auto 80px; }
.foot-mark {
  display: inline-flex; align-items: center; gap: 0; margin-bottom: 24px;
  font-family: var(--display); font-size: 18px; font-weight: 600;
}
.foot-mark img { width: 128px; height: 128px;
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--bp-glow) 60%, transparent)); }
.foot-mark span { margin-left: -5px; }
.foot-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(48px, 7vw, 96px); line-height: 0.95; letter-spacing: 0;
  margin: 0 0 calc(28px - 0.16em); padding-bottom: 0.16em;
  overflow: visible;
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--bp-glow) 30%, white 70%) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.foot-meta { font-family: var(--mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.04em; }

.foot-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; padding: 40px 0; border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
@media (max-width: 740px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
.foot-grid > div { display: flex; flex-direction: column; gap: 8px; }
.foot-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.foot-grid a { font-size: 13px; color: var(--text-dim); transition: color .2s; }
.foot-grid a:hover { color: var(--text); }
.foot-grid span { font-size: 13px; color: var(--text-dim); }

.foot-baseline {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
}
.foot-brand { font-family: var(--display); font-size: 13px; color: var(--text-dim); }
.foot-fine { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.06em; }

/* ─── No-grain mode ─── */
.no-grain .bg-grain { display: none; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 18px 60px;
    gap: 40px;
  }
  .sec { padding: 60px 18px; }
  .foot { padding: 80px 18px 32px; }
}
