/* Account pages (login + dashboard). Same palette and type as the client UI
   and the landing page, so site and app read as one product. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/inter-latin-600-normal.woff2") format("woff2");
}

:root {
  --font-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, "Apple Color Emoji", Arial, sans-serif;
  --bg: #191919;
  --surface: #202020;
  --surface-hover: #262626;
  --surface-active: #2c2c2c;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f4f4ed;
  --text-dim: #ebebeb;
  --muted: rgba(255, 255, 255, 0.45);
  --accent: #4a051c;
  --accent-hover: #7d0e33;
  --accent-active: #380414;
  --glow-core: rgba(160, 20, 66, 0.85);
  --glow-mid: rgba(125, 14, 51, 0.5);
  --glow-far: rgba(74, 5, 28, 0.4);
  --danger: #b3261e;
  --ok: #4f8f5f;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(120% 90% at 50% 0%, #1e1e1e 0%, var(--bg) 55%, #151515 100%);
  color: var(--text);
  color-scheme: dark;
  font-family: var(--font-sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ---------- chrome ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(25, 25, 25, 0.72);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}

.brand__mark {
  width: 92px;
  height: auto;
  filter: drop-shadow(0 0 10px var(--glow-mid));
}

.brand__tld {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.who__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  object-fit: cover;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px 22px 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wrap--narrow {
  max-width: 460px;
  padding-top: 12vh;
}

/* ---------- cards ---------- */

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(32, 32, 32, 0.72);
  padding: 22px;
  animation: fade-up 320ms ease both;
}

.card + .card {
  animation-delay: 60ms;
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card h1,
.card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card__hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 26px;
}

.hero__mark {
  width: 264px;
  max-width: 72vw;
  height: auto;
  filter: drop-shadow(0 0 16px var(--glow-mid)) drop-shadow(0 0 44px var(--glow-far));
}

.hero__tld {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--muted);
  text-shadow: 0 0 16px rgba(160, 20, 66, 0.55);
}

/* ---------- buttons + fields ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-dim);
  font: 500 14.5px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.btn:active {
  background: var(--surface-active);
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.btn--primary {
  border-color: rgba(0, 0, 0, 0.2);
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
}

.btn--primary:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: var(--accent-hover);
}

.btn--primary:active {
  background: var(--accent-active);
}

.btn--wide {
  width: 100%;
}

.btn--small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13.5px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1b1b1b;
  color: var(--text);
  font: 500 14.5px/1 var(--font-sans);
}

.input:focus {
  outline: none;
  border-color: var(--line-strong);
  background: #202020;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.row > .field {
  flex: 1 1 240px;
}

/* ---------- download card ---------- */

.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download__actions .btn {
  flex: 1 1 220px;
}

.download__id {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  opacity: 0.65;
}

.download__meta {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- lists ---------- */

.changelog {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-dim);
  font-size: 13.5px;
}

.changelog li {
  position: relative;
  padding-left: 16px;
  line-height: 1.5;
}

.changelog li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--glow-core);
}

.changelog strong {
  color: var(--text);
  font-weight: 600;
}

.changelog a {
  color: var(--text-dim);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.changelog a:hover {
  color: var(--text);
}

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

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 24, 24, 0.6);
}

.item__main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.item__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}

.item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.item__actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
}

.pill {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill--ok {
  border-color: rgba(79, 143, 95, 0.5);
  color: #8fd0a1;
}

.pill--warn {
  border-color: rgba(160, 20, 66, 0.6);
  color: #e0849f;
}

.pill--danger {
  border-color: rgba(179, 38, 30, 0.6);
  color: #ef8b84;
}

.empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-hover);
  border-radius: 6px;
  background: rgba(74, 5, 28, 0.16);
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.note--error {
  border-left-color: var(--danger);
  background: rgba(179, 38, 30, 0.14);
}

.note--ok {
  border-left-color: var(--ok);
  background: rgba(79, 143, 95, 0.14);
}

.foot {
  margin-top: 26px;
  text-align: center;
  color: rgba(255, 255, 255, 0.28);
  font-size: 12.5px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
}

@media (max-width: 560px) {
  .item {
    flex-direction: column;
    align-items: stretch;
  }

  .item__actions {
    justify-content: stretch;
  }

  .item__actions .btn {
    flex: 1;
  }
}
