/* veloeditor.app — Velo's own palette (src/ui/Theme.cpp): calm, dark, no glow. */
:root {
  --bg: #1b1d20;
  --bg-lift: #212429;
  --panel: #232529;
  --elev: #2a2c30;
  --border: #34373d;
  --border-soft: #26282c;
  --text: #e8e9eb;
  --text-dim: #9a9ea6;
  --text-faint: #6f747c;
  --accent: #4f9cf5;     /* Theme::accent() */
  --accent-hi: #6db3ff;  /* logo gradient, top */
  --accent-lo: #3a7bd5;  /* logo gradient, bottom */
  --on-accent: #0c1320;
  --radius: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(115% 75% at 50% -8%, var(--bg-lift) 0%, var(--bg) 60%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 4px; }

.wrap {
  flex: 1 0 auto;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem 3rem;
}

/* --- Hero ------------------------------------------------------------- */
.hero { text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .hero { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.logo {
  width: 84px;
  height: 84px;
  display: inline-block;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .5));
}

.title {
  font-size: clamp(2.2rem, 6vw, 2.9rem);
  font-weight: 650;
  letter-spacing: -.025em;
  margin: 1.1rem 0 0;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text);
  margin: .6rem 0 0;
}

.lede {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 46ch;
  margin: 1rem auto 0;
}

/* --- Buttons ---------------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { flex: 0 0 auto; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-primary:active { background: var(--accent-lo); }

.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--elev); border-color: #454951; }

.btn:focus:not(:focus-visible) { outline: none; }

/* --- Download meta ---------------------------------------------------- */
.dl-meta {
  margin: 1.2rem 0 0;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.85;
}
.dl-meta .ver { color: var(--text); font-weight: 600; }
.dl-meta .ver:hover { color: var(--accent-hi); text-decoration: none; }
.dl-meta .hint { color: var(--text-faint); }

.others {
  margin: 1.4rem 0 0;
  font-size: .82rem;
  color: var(--text-faint);
  line-height: 1.9;
}
.others a { color: var(--text-dim); }
.others a:hover { color: var(--accent-hi); }
.others .others-lead { color: var(--text-faint); }

/* --- Screenshot ------------------------------------------------------- */
.shot { margin: clamp(3rem, 8vw, 4.5rem) 0 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1680 / 960;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  background: var(--panel);
}
.shot figcaption {
  margin: .9rem 0 0;
  font-size: .82rem;
  color: var(--text-faint);
  text-align: center;
}

/* --- Footer ----------------------------------------------------------- */
.foot {
  flex-shrink: 0;
  border-top: 1px solid var(--border-soft);
  margin-top: clamp(3rem, 8vw, 4.5rem);
  padding: 1.6rem 1.5rem 2.2rem;
  text-align: center;
}
.foot-links {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .85rem;
}
.foot-links a { color: var(--text-dim); }
.foot-links a:hover { color: var(--accent-hi); }
.foot p {
  margin: .85rem auto 0;
  font-size: .78rem;
  color: var(--text-faint);
  max-width: 54ch;
}

.noscript {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: .9rem;
}

@media (max-width: 420px) {
  .actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
