/* Kyumus website. Colours come from the app icon: saffron, rose, plum. */

:root {
  --saffron: #ffb36b;
  --rose: #e0527a;
  --plum: #5a2a4f;
  --grad: linear-gradient(120deg, var(--saffron), var(--rose) 55%, #b2407a);

  --bg: #16131a;
  --bg-2: #1d1922;
  --card: #231e29;
  --line: rgb(255 255 255 / 0.08);
  --text: #f4eef0;
  --muted: #b6aab4;
  --ok: #6fdc9a;
  --shadow: 0 30px 80px -20px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.06);
  --glow-a: rgb(224 82 122 / 0.35);
  --glow-b: rgb(255 179 107 / 0.25);

  --radius: 18px;
  --font: "Adwaita Sans", "Inter", "Cantarell", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Adwaita Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbf7f4;
    --bg-2: #f4ede8;
    --card: #ffffff;
    --line: rgb(40 20 30 / 0.09);
    --text: #241a22;
    --muted: #6d5f68;
    --ok: #17834a;
    --shadow: 0 30px 70px -25px rgb(70 30 50 / 0.35), 0 0 0 1px rgb(40 20 30 / 0.07);
    --glow-a: rgb(224 82 122 / 0.22);
    --glow-b: rgb(255 179 107 / 0.28);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p a, .hint a, details a, .footer a { color: var(--rose); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { p a, .hint a, details a, .footer a { color: var(--saffron); } }
code { font-family: var(--mono); font-size: 0.9em; }
p code { background: var(--bg-2); padding: 0.1em 0.4em; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  background: var(--card); padding: 8px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 8px; }

/* ---- Navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.nav nav { display: flex; align-items: center; gap: 6px; }
.nav nav a {
  text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav nav a:hover { color: var(--text); background: var(--line); }
.nav nav a.nav-cta { color: var(--text); background: var(--line); }
@media (max-width: 640px) {
  .nav nav a:not(.nav-cta) { display: none; }
}

/* ---- Hero ---- */
.hero { position: relative; padding: 72px 0 40px; isolation: isolate; }
.glow {
  position: absolute; z-index: -1; inset: -10% -10% auto;
  height: 900px;
  background:
    radial-gradient(40% 45% at 30% 30%, var(--glow-b), transparent 70%),
    radial-gradient(45% 50% at 70% 35%, var(--glow-a), transparent 70%),
    radial-gradient(35% 40% at 50% 70%, rgb(90 42 79 / 0.35), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.glow.small { height: 600px; inset: 0 -10% auto; opacity: 0.8; }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-icon { filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.35)); margin-bottom: 20px; }
h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 22px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 20px 0 56px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.fill { fill: currentColor; stroke: none; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgb(224 82 122 / 0.8); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgb(224 82 122 / 0.9); }
.btn.ghost { background: var(--line); color: var(--text); }
.btn.ghost:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
.btn.big { font-size: 1.05rem; padding: 16px 26px; max-width: 100%; }
.btn .size { opacity: 0.8; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none !important; } }

.shot { margin: 0; }
.shot img { border-radius: 14px; box-shadow: var(--shadow); }
.hero-shot { max-width: 1060px; margin-inline: auto; }
.hero-shot img { border-radius: 16px; }
figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 14px; }

/* ---- Sections ---- */
.section { padding: 110px 0; position: relative; isolation: isolate; }
.section + .section { border-top: 1px solid var(--line); }
.gallery-section { padding-top: 0; border-top: 0 !important; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700;
  margin: 0 0 12px;
}
/* Beats ".copy p" and ".center-copy p", which set paragraphs to the muted colour. */
.section .eyebrow { color: var(--rose); }
@media (prefers-color-scheme: dark) { .section .eyebrow { color: var(--saffron); } }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 18px; }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.copy p, .center-copy p { color: var(--muted); font-size: 1.08rem; }
.center-copy { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.reverse .copy { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .copy { order: 0; }
}

.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: radial-gradient(circle, #000 34%, transparent 36%) center / 100% 100%, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.95;
}

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Signal path card */
.path { padding: 26px; }
.path-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; padding: 5px 12px; border-radius: 999px; }
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 18px; width: 2px; background: var(--grad); border-radius: 2px; opacity: 0.7; }
.steps li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 12px 30px; position: relative; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--rose); }
.step-name { font-weight: 600; }
.step-val { color: var(--muted); font-family: var(--mono); font-size: 0.88rem; text-align: right; }
.step-val.strong { color: var(--ok); font-weight: 600; }

/* Art section */
.art .glow { height: 700px; top: 10%; opacity: 0.6; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .pair { grid-template-columns: 1fr; } }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .feature { transition: none; } .feature:hover { transform: none; } }
.feature p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.ficon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--grad); box-shadow: 0 8px 20px -8px rgb(224 82 122 / 0.7);
}
.ficon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Rip card */
.rip { padding: 24px; }
.rip-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.mini-cover {
  width: 64px; height: 64px; border-radius: 10px; flex: none;
  background:
    radial-gradient(circle at 50% 50%, #f6e08a 0 30%, transparent 31%),
    repeating-conic-gradient(from 0deg, #a8603a 0 4deg, #5a2416 4deg 12deg);
  box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.6);
}
.rip-title { font-weight: 800; font-size: 1.25rem; }
.rip-sub { color: var(--muted); font-size: 0.95rem; }
.tracks { list-style: none; margin: 0; padding: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.tracks li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.tracks li:last-child { border-bottom: 0; }
.ok-text { color: var(--ok); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }

/* Download */
.download { overflow: hidden; }
.dl-card { max-width: 720px; margin: 0 auto; padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dl-card .btn.big { word-break: break-all; }
.hint { color: var(--muted); margin: 22px 0 10px; }
.hint.small { font-size: 0.92rem; margin-bottom: 0; }
.code { position: relative; width: 100%; text-align: left; }
.code pre {
  margin: 0; padding: 18px 20px; padding-right: 92px; border-radius: 12px; overflow-x: auto;
  background: #0f0d12; color: #f3e9ee; font-size: 0.9rem; line-height: 1.7;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
}
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  font: inherit; font-size: 0.85rem; font-weight: 600; color: #f3e9ee;
  background: rgb(255 255 255 / 0.1); border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer;
}
.copy-btn:hover { background: rgb(255 255 255 / 0.18); }
.source { max-width: 720px; margin: 28px auto 0; padding: 18px 24px; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.source summary { cursor: pointer; font-weight: 650; }
.source p { color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 0.94rem; }
.footer-inner { display: grid; gap: 8px; justify-items: center; text-align: center; }
.footer p { margin: 0; }
.brand.small { font-size: 1rem; color: var(--text); margin-bottom: 6px; }
.fine { font-size: 0.85rem; opacity: 0.85; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding-top: 48px; }
  .section { padding: 80px 0; }
  .path, .rip, .dl-card { padding: 20px; }
  .steps li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .step-val { text-align: left; }
}
