/* UwAmp web site. Colours taken from the UwAmp icon (blue -> indigo). Light and dark themes follow the system. */

:root {
  --brand-1: #7a8bff;
  --brand-2: #5157ee;
  --brand-3: #2a28a8;
  --accent: #4f5bd5;
  --accent-hover: #3f4bc5;
  --bg: #ffffff;
  --bg-soft: #f4f5fa;
  --card: #ffffff;
  --text: #1a1d26;
  --muted: #5d6377;
  --line: #e3e6ef;
  --code-bg: #f1f2f8;
  --shadow: 0 1px 2px rgba(20, 22, 60, .06), 0 8px 28px rgba(20, 22, 60, .08);
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #7a87ff;
    --accent-hover: #93a0ff;
    --bg: #0f1117;
    --bg-soft: #141720;
    --card: #181b25;
    --text: #e8eaf1;
    --muted: #9aa1b3;
    --line: #272b38;
    --code-bg: #1d212c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace; font-size: .9em; }
code { background: var(--code-bg); border-radius: 5px; padding: .1em .35em; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: .05em .4em; background: var(--card); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.icon { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.35em; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(79, 91, 213, .35); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-light { background: #fff; color: #2a28a8; box-shadow: 0 8px 24px rgba(10, 10, 60, .25); }
.btn-light:hover { background: #f1f2ff; }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .5em .9em; font-size: .92rem; border-radius: 8px; box-shadow: none; }
.btn small { font-weight: 500; opacity: .8; }

/* ------------------------------------------------------------------ header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { color: var(--muted); padding: .45em .8em; border-radius: 8px; font-weight: 550; }
.nav a:not(.btn):hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav a.active { color: var(--text); }
.nav .lang { font-size: .85rem; letter-spacing: .04em; }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.nav .btn { margin-left: 6px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--text); padding: 8px; border-radius: 8px; cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .75em .8em; }
  .nav-sep { display: none; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(122, 139, 255, .55), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(42, 40, 168, .9), transparent 65%),
    linear-gradient(135deg, #5a67f2 0%, #4347d8 45%, #2a28a8 100%);
  padding: 84px 0 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.hero-in { position: relative; z-index: 1; text-align: center; }
.hero h1 { max-width: 15em; margin: 0 auto .4em; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40em; margin: 0 auto 1.8em; color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-meta { margin: 18px 0 0; font-size: .92rem; color: rgba(255, 255, 255, .78); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px 6px 6px; border-radius: 99px; font-size: .9rem; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
}
.pill:hover { text-decoration: none; background: rgba(255, 255, 255, .2); }
.pill b { background: #fff; color: #3b3fd6; border-radius: 99px; padding: 2px 9px; font-size: .78rem; }
.hero-shot { position: relative; z-index: 1; max-width: 1000px; margin: 56px auto 0; padding: 0 20px; }
.window {
  border-radius: 14px 14px 0 0; overflow: hidden; background: #15171c;
  box-shadow: 0 -2px 0 rgba(255, 255, 255, .15) inset, 0 30px 80px rgba(8, 8, 40, .55);
  border: 1px solid rgba(255, 255, 255, .18); border-bottom: 0;
}
.window-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding-left: 12px; background: #1c1f27; }
.window-bar img { border-radius: 3px; }
.window-bar span { margin-right: auto; font-size: .8rem; color: #a3a9b8; }
.window-bar i { position: relative; width: 44px; height: 100%; }
.window-bar i::before, .window-bar i::after { content: ""; position: absolute; left: 50%; top: 50%; border-color: #9aa0ae; }
.window-bar i:nth-of-type(1)::before { width: 10px; height: 0; border-top: 1px solid; transform: translate(-50%, 0); }
.window-bar i:nth-of-type(2)::before { width: 9px; height: 9px; border: 1px solid; transform: translate(-50%, -50%); }
.window-bar i:nth-of-type(3)::before, .window-bar i:nth-of-type(3)::after { width: 12px; height: 0; border-top: 1px solid; transform: translate(-50%, 0) rotate(45deg); }
.window-bar i:nth-of-type(3)::after { transform: translate(-50%, 0) rotate(-45deg); }
.window > img { display: block; width: 100%; }

/* ------------------------------------------------------------------ sections */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: block; color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 920px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  box-shadow: 0 8px 18px rgba(81, 87, 238, .3);
}
.feature p { color: var(--muted); margin: 0; }

.also { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.also span { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 14px; font-size: .92rem; color: var(--muted); }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 26px; width: 40px; height: 40px; margin-top: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 750; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.step { padding: 82px 26px 26px; }
.step p { color: var(--muted); margin: 0; }

/* screenshots */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 26px; }
.tabs button {
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--muted); cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: .5em 1.1em;
}
.tabs button[aria-selected="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.shots .shot { display: none; max-width: 1000px; margin: 0 auto; }
.shots .shot.active { display: block; }
.shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: zoom-in; display: block; }
.shot p { text-align: center; color: var(--muted); margin-top: 16px; }

.cta-band { text-align: center; color: #fff; border-radius: 20px; padding: 56px 24px; background: linear-gradient(135deg, #5a67f2, #2a28a8); }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }

/* ------------------------------------------------------------------ download */
.page-head { padding: 64px 0 36px; text-align: center; }
.page-head p { color: var(--muted); font-size: 1.1rem; }
.dl-cards { max-width: 920px; margin: 0 auto; }
.dl-card { position: relative; display: flex; flex-direction: column; padding: 30px; }
.dl-card.recommended { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.badge { position: absolute; top: -12px; left: 30px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; border-radius: 99px; padding: 3px 11px; }
.dl-card h2 { font-size: 1.45rem; margin-bottom: .3em; }
.dl-card .size { color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.dl-card ul { list-style: none; padding: 0; margin: 0 0 24px; color: var(--muted); }
.dl-card li { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.dl-card li .icon { color: var(--accent); margin-top: 3px; }
.dl-card .btn { margin-top: auto; justify-content: center; flex-wrap: wrap; white-space: normal; text-align: center; }
.dl-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 34px 0 0; color: var(--muted); }
.dl-steps span { display: inline-flex; align-items: center; gap: 8px; }
.dl-steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); font-size: .8rem; }
.dl-note { text-align: center; font-size: .92rem; color: var(--muted); margin-top: 22px; }

details.archives { max-width: 920px; margin: 48px auto 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
details.archives summary { cursor: pointer; padding: 18px 24px; font-weight: 650; display: flex; align-items: center; gap: 10px; list-style: none; }
details.archives summary::-webkit-details-marker { display: none; }
details.archives summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--muted); }
details.archives[open] summary::after { content: "–"; }
.archives-body { padding: 0 24px 22px; }
.archives-table { width: 100%; border-collapse: collapse; }
.archives-table td { padding: 8px 0; border-top: 1px solid var(--line); }
.archives-table td:first-child { font-weight: 600; width: 40%; }
.archives-table a { margin-right: 16px; }

/* ------------------------------------------------------------------ documentation */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 48px 20px 80px; }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: .95rem; }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; color: var(--muted); padding: 5px 10px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.active { color: var(--accent); border-left-color: var(--accent); text-decoration: none; }
.doc-body h1 { font-size: 2.2rem; }
.doc-body section { padding-top: 12px; margin-bottom: 44px; scroll-margin-top: 80px; }
.doc-body h2 { font-size: 1.55rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.doc-body h3 { margin-top: 1.5em; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; }
.doc-body li { margin: 4px 0; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.doc-body th, .doc-body td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-body th { background: var(--bg-soft); font-weight: 650; }
.doc-body td:first-child { white-space: nowrap; }
.note { border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 1.2em; }
@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .toc { display: none; }
  .doc-body table { display: block; overflow-x: auto; }
  .doc-body td:first-child { white-space: normal; }
  .doc-body code { overflow-wrap: anywhere; }
}

/* ------------------------------------------------------------------ support */
.support-cards { max-width: 980px; margin: 0 auto; }
.support-card { display: flex; flex-direction: column; }
.support-card .feature-icon { margin-bottom: 16px; }
.support-card p { color: var(--muted); }
.support-card .btn { margin-top: auto; align-self: flex-start; }
.questions { max-width: 980px; margin: 44px auto 0; }
.questions ul { list-style: none; padding: 0; margin: 0; }
.questions li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.questions li span { color: var(--muted); font-size: .9rem; white-space: nowrap; }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 34px 0 20px; margin-top: 0; font-size: .95rem; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { border-radius: 7px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand span { color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--muted); font-size: .85rem; margin-top: 18px; }

/* ------------------------------------------------------------------ lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8, 9, 20, .86); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 92vh; border-radius: 10px; box-shadow: 0 20px 70px rgba(0, 0, 0, .6); }
