/* llauncher landing page.
   The page borrows the launcher's own language: pure black, one blue orb, glassy tiles,
   a pill row on top and the version where the launcher puts its clock. */

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/lexend-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/lexend-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-500-latin.woff2") format("woff2");
}

:root {
  --ink: #e9eef6;
  --ink-soft: #c3cddc;
  --mute: #8b97ab;
  --focus: #5ab0ff;
  --glass: rgba(18, 24, 35, 0.63);
  --glass-strong: rgba(26, 35, 48, 0.72);
  --edge: rgba(255, 255, 255, 0.08);
  --stroke: #263241;
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --orb: min(76vw, 780px);
}

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

html {
  background: #000;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

/* No background on body: html paints the black, so the orb (z-index -1) can show above it. */
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font: 400 1rem/1.65 var(--font);
}

/* ---- the orb: the one decorative thing on the page ------------------------------------- */
.orb {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: var(--orb);
  aspect-ratio: 1;
  right: calc(var(--orb) * -0.36);
  top: calc(var(--orb) * -0.34);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #d2f3ff 0, #55aeff 14%, #2f5bff 36%, #2a2fc4 62%, #0a1b6e 100%);
  box-shadow:
    0 0 90px 30px rgba(51, 140, 255, 0.35),
    0 0 260px 110px rgba(30, 70, 255, 0.2);
  opacity: 0;
  animation: orb-in 2.4s 0.1s ease-out forwards;
}
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 72% 74%, transparent 38%, rgba(0, 0, 0, 0.5) 100%);
}
@keyframes orb-in { to { opacity: 1; } }

/* ---- page frame ------------------------------------------------------------------------- */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px);
}

.bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass-strong);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.pill[aria-current="true"] { border-color: var(--focus); color: #fff; }
.pill:hover, .pill:focus-visible { transform: scale(1.06); color: #fff; }

/* the version sits where the launcher shows its clock */
.stamp {
  margin: 0;
  text-align: right;
  line-height: 1;
}
.stamp small {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.stamp b {
  font-size: clamp(2.6rem, 6vw, 3.9rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* ---- the grid: same rhythm as the launcher's home screen -------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto 1fr;   /* screenshot keeps its 16:9; the tile under it takes the rest */
  gap: 16px;
}

.tile {
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
}

.tile h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}
.tile p { margin: 0; color: var(--mute); font-size: 0.95rem; }

.tile-main {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
  padding: clamp(24px, 3.4vw, 46px);
  border-radius: 20px;
  background: var(--glass-strong);
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.tile-main .lede { max-width: 46ch; color: var(--ink-soft); font-size: 1.02rem; }
.tile-main .fine { font-size: 0.9rem; }

.btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 1rem 1.7rem;
  border-radius: 12px;
  background: var(--focus);
  color: #04101f;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover, .btn:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 0 0 3px rgba(90, 176, 255, 0.35), 0 12px 40px rgba(63, 140, 255, 0.35);
}

.tile-shot {
  grid-column: 3 / span 2;
  grid-row: 1;
  align-self: start;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
}
.tile-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feat { grid-column: span 1; }

.tile-install { grid-column: 1 / -1; }
.tile-install > h2 { font-size: 1.25rem; margin-bottom: 1.2rem; }
.methods {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
}
.methods h3 { margin: 0 0 0.5rem; font-size: 0.98rem; font-weight: 500; }
.note { margin-top: 1.4rem !important; font-size: 0.85rem !important; }

.tile-verify { grid-column: 3 / span 2; grid-row: 2; display: flex; flex-direction: column; }

pre {
  margin: 0.8rem 0 0;
  padding: 0.8rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
}
code {
  font: 500 0.8rem/1.6 var(--mono);
  color: #cfe2ff;
  white-space: pre-wrap;        /* wrap at spaces only, so a command never breaks mid-word */
  overflow-wrap: anywhere;
}
#sha { word-break: break-all; } /* a hash has no spaces */

.copy {
  align-self: flex-start;
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass-strong);
  color: var(--ink-soft);
  font: 500 0.88rem var(--font);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.copy:hover, .copy:focus-visible { transform: scale(1.06); border-color: var(--focus); color: #fff; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: clamp(28px, 4vw, 48px);
  color: var(--mute);
  font-size: 0.9rem;
}
.foot a { color: var(--ink-soft); text-underline-offset: 3px; }
.foot a:hover { color: #fff; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---- smaller screens -------------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-rows: none; }
  .tile-main, .tile-shot, .tile-install, .tile-verify { grid-column: 1 / -1; grid-row: auto; }
  .tile-verify { order: 9; }
  .methods { grid-template-columns: 1fr; }
  :root { --orb: min(104vw, 640px); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .feat { grid-column: 1 / -1; }
  .bar { flex-direction: column-reverse; align-items: stretch; }
  .stamp { text-align: left; }
  .stamp b { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; opacity: 1; }
  .pill, .btn, .copy { transition: none; }
  .pill:hover, .pill:focus-visible, .btn:hover, .btn:focus-visible, .copy:hover, .copy:focus-visible { transform: none; }
}
