/* Raidex Keys landing page - the Claude Design draft "Raidex Keys Landing"
   (design/claude-design), in the brand's colours (design/BRAND.md). */

@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url(fonts/ChakraPetch-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(fonts/ChakraPetch-Bold.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(fonts/IBMPlexSans-Regular.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(fonts/IBMPlexSans-Medium.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(fonts/IBMPlexSans-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/IBMPlexMono-Regular.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/IBMPlexMono-Medium.woff2) format("woff2"); }

:root {
  --void: #07080F;
  --surface: #0D1022;
  --window: #0B0D1C;
  --sidebar: #0A0C18;
  --card: #0F1326;
  --head: #0C0F20;
  --selected: #151033;
  --chrome: #12162A;
  --line: #1B2038;
  --line-soft: #171B33;
  --line-strong: #23293F;
  --frame: #3A3252;
  --arkan: #7C5CFF;
  --glow: #A78BFF;
  --glow-hover: #C7B6FF;
  --keystone: #A335EE;
  --timer: #C9A227;
  --text: #E8EAF6;
  --text-2: #C3C8E0;
  --text-3: #AFB6D6;
  --text-4: #8E94B8;
  --text-5: #6E7599;
  --text-6: #4E5472;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* height: auto, or a picture keeps the height of its attribute while the
   width shrinks with the column - the shots would stand 720 px tall. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glow); text-decoration: none; }
a:hover { color: var(--glow-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--arkan); outline-offset: 3px; border-radius: 4px; }
h1 .nb { white-space: nowrap; }
code { font-family: var(--mono); font-size: 0.93em; color: var(--text-3); }
p { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--arkan); color: var(--sidebar); padding: 8px 14px; border-radius: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }

/* The horizontal lockup: glyph, RAIDEX, KEYS - on one line, never wrapped. */
.lockup { display: flex; align-items: center; gap: 11px; color: var(--text); }
.lockup img { flex: none; }
.wordmark { font-family: var(--display); font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; }
.wordmark span { font-weight: 600; letter-spacing: 0.2em; color: var(--arkan); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 8, 15, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; padding-block: 14px; }
.top .wordmark { font-size: 17px; }
.top nav { flex: 1; display: flex; gap: 26px; justify-content: flex-end; align-items: center; font-size: 14px; }
.top nav a.plain { color: var(--text-3); }
.top nav a.plain:hover { color: var(--text); }
.btn {
  display: inline-block; font-weight: 600; border-radius: 10px; font-size: 15px;
  padding: 14px 24px; background: var(--arkan); color: var(--sidebar); white-space: nowrap;
}
.btn:hover { background: #8E72FF; color: var(--sidebar); }
.btn.ghost { background: none; border: 1px solid var(--frame); color: var(--text); padding: 13px 23px; }
.btn.ghost:hover { border-color: var(--arkan); color: var(--text); }
.btn.small { font-size: 14px; padding: 9px 18px; border-radius: 8px; }

.langs { display: flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.langs button {
  font: 500 11px/1 var(--mono); letter-spacing: 0.12em; color: var(--text-5);
  background: none; border: 0; padding: 8px 10px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--selected); color: var(--text); }
.langs button:hover { color: var(--text); }

/* Hero */
.hero {
  padding-block: clamp(64px, 9vw, 116px) clamp(56px, 7vw, 96px);
  background: radial-gradient(110% 85% at 16% 0%, #1A1440 0%, var(--window) 52%, var(--void) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero .copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font: 12px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--arkan); }
h1 {
  margin: 0; font: 700 clamp(34px, 5vw, 56px)/1.08 var(--display);
  letter-spacing: 0.01em; text-wrap: balance;
}
.lead { max-width: 54ch; font-size: clamp(16px, 1.5vw, 18px); color: var(--text-3); text-wrap: pretty; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.meta { font: 12px var(--mono); color: var(--text-5); }
.hero-glyph {
  flex: 0 0 auto; width: clamp(140px, 18vw, 216px); margin: 0 auto;
  filter: drop-shadow(0 0 52px rgba(124, 92, 255, 0.42));
}

/* The gallery (#einblicke): the addon's window and timer, drawn from its own
   code by `make screenshots`, each shot in the page's language. */
.window {
  background: var(--window); border: 1px solid var(--line-strong); border-radius: 12px;
  overflow: hidden; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}
.caption { font: 11px var(--mono); color: var(--text-5); margin-top: 12px; text-align: center; }

/* Every shot opens at its own size (lightbox.js): the rail holds a 1280 px
   picture at a size where a table can be made out but not read. */
.shot { display: block; border-radius: 12px; cursor: zoom-in; }
.shot .window { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.shot:hover .window, .shot:focus-visible .window { border-color: var(--arkan); }
.shot:focus-visible { outline: 2px solid var(--arkan); outline-offset: 4px; }

.lightbox {
  max-width: none; max-height: none; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; background: none; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 6, 16, 0.88); }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox img {
  display: block; width: auto; max-width: 94vw; max-height: 84vh;
  background: var(--window); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox .caption { max-width: 74ch; padding-inline: 16px; }
/* The three buttons sit over the backdrop, clear of the picture. */
.lb-nav {
  position: fixed; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  font: 26px/1 var(--display); color: var(--text-3); cursor: pointer;
  background: rgba(20, 22, 42, 0.8); border: 1px solid var(--line-strong); border-radius: 50%;
}
.lb-nav:hover { color: var(--text); border-color: var(--arkan); }
.lb-nav:focus-visible { outline: 2px solid var(--arkan); outline-offset: 3px; }
.lb-nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-nav.close { right: 16px; top: 16px; font-size: 24px; }
@media (max-width: 640px) {
  .lightbox img { max-width: 84vw; }  /* room beside it for the two buttons */
  .lb-nav { width: 38px; height: 38px; font-size: 22px; }
  .lb-nav.prev { left: 8px; }
  .lb-nav.next { right: 8px; }
  .lb-nav.close { right: 8px; top: 8px; }
}

/* Sections */
section.block { padding-top: clamp(56px, 7vw, 92px); }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.section-head::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--arkan); transform: rotate(45deg); }
.section-head::after { content: ""; flex: 1 1 24px; height: 1px; background: var(--line); }
h2, .section-head h1 { margin: 0; font: 400 12px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-4); white-space: nowrap; }
.grid { display: grid; gap: 16px; }
.grid.features { grid-template-columns: repeat(4, 1fr); }
/* One download, the addon, across the wrap. */
.grid.downloads { grid-template-columns: 1fr; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.features .tile { padding: 24px; gap: 9px; }
.tile h3 { margin: 0; font: 600 18px/1.35 var(--display); letter-spacing: 0.01em; }
.features .tile h3 { font-size: 17px; }
.tile p { font-size: 14px; line-height: 1.65; color: var(--text-4); text-wrap: pretty; }
/* The gallery (#einblicke): eight 1280 px pictures do not fit a page side by
   side at a size where anything in them can be read, so one shows at a time.
   A click opens one unscaled (lightbox.js). */
/* Without JS the shots are a column, each its own link - carousel.js adds .on
   and lays them side by side, one in view at a time. */
.carousel { position: relative; margin-top: 22px; }
.carousel .track { display: flex; flex-direction: column; gap: 30px; }
.carousel figure { margin: 0; }
.carousel .caption { text-wrap: pretty; }

.carousel.on { overflow: hidden; padding: 0 0 8px; }
.carousel.on .track {
  flex-direction: row; gap: 0; align-items: flex-start;
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) { .carousel.on .track { transition: none; } }
.carousel.on figure { flex: 0 0 100%; padding: 0 clamp(0px, 6vw, 74px); }
.carousel.on .window { box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5); }

/* The arrows sit over the gutter beside the shot, centred on the picture -
   the caption below is left out of the reckoning. */
.cnav {
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%);
  width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--text-3);
  background: var(--surface); border: 1px solid var(--line-strong);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.cnav:hover, .cnav:focus-visible { color: var(--text); border-color: var(--arkan); background: var(--card); }
.cnav:focus-visible { outline: 2px solid var(--arkan); outline-offset: 3px; }
.cnav .ico { width: 22px; height: 22px; fill: none; }
.cnav.prev { left: 0; }
.cnav.next { right: 0; }
@media (max-width: 900px) { .cnav { display: none; } }

.dots { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--line-strong); border: 0; transition: background 0.15s ease, width 0.2s ease;
}
.dots button:hover { background: var(--frame); }
.dots button[aria-selected="true"] { background: var(--arkan); width: 22px; border-radius: 99px; }
.dots button:focus-visible { outline: 2px solid var(--arkan); outline-offset: 3px; }

.note {
  margin-top: 16px; background: var(--window); border: 1px solid var(--line-strong);
  border-left: 2px solid var(--timer); border-radius: 12px; padding: 22px 26px;
  display: flex; flex-direction: column; gap: 8px;
}
.note h3 { margin: 0; font: 600 16px var(--display); }
.note p { max-width: 76ch; font-size: 14px; color: var(--text-4); line-height: 1.7; text-wrap: pretty; }

/* Downloads: the addon's icon frame (BRAND.md, "Icon on every platform") */
.frame { width: 44px; height: 44px; padding: 7px; }
.frame.addon { border-radius: 50%; background: var(--sidebar); border: 2px solid #6B5A32; padding: 6px; }
/* A download: icon, name, size, version and the hash chip over the file's
   link, at the tile's foot. */
.tile .dl { display: flex; flex-direction: column; gap: 3px; }
.tile .dl:first-of-type { margin-top: auto; padding-top: 8px; }
.dl-head { display: flex; flex-wrap: wrap; align-items: center; column-gap: 9px; row-gap: 3px; }
.dl-head b { margin-right: 3px; font: 600 14px/1.4 var(--sans); color: var(--text); }
/* Its own line under the name, so every download has the same shape however
   long its meta reads: name · size, version, build, time · file · hash. */
.dl-meta { flex-basis: 100%; display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; font: 11px/1.4 var(--mono); color: var(--text-5); }
.dl-meta > span + span::before { content: "·"; margin-inline: 6px; color: var(--text-6); }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px; padding: 1px 7px 1px 5px; border-radius: 999px; cursor: pointer;
  font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--text-4);
  background: var(--chrome); border: 1px solid var(--line-strong);
}
.chip .ico { width: 12px; height: 12px; color: var(--glow); }
.chip span { color: var(--text-2); }
.chip:hover { border-color: var(--arkan); color: var(--text-3); }
.chip.copied::after { content: " ✓"; color: var(--glow); }
.tile a.file { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
/* The hash under the file it belongs to, not squeezed into the meta line
   beside size, version, build and time. */
.dl-sums { margin-top: 5px; }
.dl-sums .chip { margin-left: 0; }
/* The download icons: which file is whose at a glance, in the link's colour. */
.ico { width: 18px; height: 18px; flex: none; fill: currentColor; }
.icos { display: inline-flex; gap: 5px; flex: none; color: var(--glow); }
a.sums { white-space: nowrap; }
a.sums .ico { width: 15px; height: 15px; margin-right: 4px; vertical-align: -3px; }
.fine { margin-top: 16px; font-size: 13px; color: var(--text-5); }

/* The data page (daten/): prose in the cells, and paths that may wrap. Its
   tables answer "what is written where", so nothing may be cut off. */
.data-page .section-head { margin-top: 44px; }
.data-page .grid { margin-top: 20px; }
.data-page table.files td { white-space: normal; vertical-align: top; }
.data-page table.files td.mono { overflow-wrap: anywhere; min-width: 250px; }
.data-page table.files td.type { min-width: 260px; }
.data-page code { font: 12px var(--mono); color: var(--text-3); }
.data-page .note { margin-top: 28px; }

/* Footer */
footer { margin-top: clamp(56px, 7vw, 92px); border-top: 1px solid var(--line); background: var(--sidebar); }
.foot { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; padding-block: 44px; }
.foot > div { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.foot .about { flex: 1 1 280px; gap: 12px; }
.foot .about .wordmark { font-size: 15px; }
.foot .about p { color: var(--text-5); line-height: 1.7; max-width: 46ch; }
.foot .links { flex: 0 1 200px; }
.foot .licence { flex: 0 1 260px; color: var(--text-5); line-height: 1.7; }
.foot .label { color: var(--text-6); letter-spacing: 0.16em; }
.legal { border-top: 1px solid var(--chrome); }
.legal .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 18px; font-size: 12px; color: var(--text-6); }
.legal nav { display: flex; gap: 18px; }
.legal a { color: var(--text-5); }
.legal a:hover { color: var(--text); }

@media (max-width: 1000px) {
  .grid.features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .top nav a.plain { display: none; }
  .top nav { gap: 12px; }
}
@media (max-width: 640px) {
  .grid.features { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .top .lockup .wordmark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The download page (site/downloads/): every file in a table, from files.json. */
.files-page { padding-top: clamp(48px, 6vw, 80px); }
.files-page .section-head { margin-bottom: 18px; }
.files-page .intro { max-width: 70ch; color: var(--text-3); }
.table-wrap { overflow-x: auto; margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
table.files { width: 100%; border-collapse: collapse; font-size: 14px; }
table.files th {
  padding: 11px 16px; text-align: left; white-space: nowrap; background: var(--head);
  font: 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-5);
}
table.files td { padding: 12px 16px; border-top: 1px solid var(--line-soft); vertical-align: middle; white-space: nowrap; }
table.files tbody tr:hover td { background: var(--card); }
table.files td.name a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
table.files td.type { color: var(--text-3); white-space: normal; min-width: 190px; }
table.files td.mono { font: 12px var(--mono); color: var(--text-4); }
table.files .num { text-align: right; }
table.files td.note { color: var(--text-5); padding-block: 22px; }
table.files .chip { margin-left: 0; }
