:root {
  color-scheme: dark;
  --bg: #0d0f0e;
  --surface: #151917;
  --surface-2: #1e2420;
  --line: #314039;
  --text: #eef5ef;
  --muted: #9eaaa2;
  --accent: #30d5a6;
  --accent-2: #f3b23b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(48, 213, 166, 0.13), transparent 42%),
    linear-gradient(300deg, rgba(243, 178, 59, 0.10), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.badge,
.version {
  border: 1px solid rgba(48, 213, 166, 0.45);
  border-radius: 999px;
  color: #bdf8e8;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  min-height: 260px;
  padding: 42px 0 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 7vw, 70px);
  line-height: 1;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.apps {
  display: grid;
  gap: 18px;
}

.update-note {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  border: 1px solid rgba(48, 213, 166, 0.42);
  border-radius: 8px;
  background: rgba(29, 127, 104, 0.18);
  padding: 16px 18px;
}

.update-note strong {
  color: #d9fff5;
  font-size: 18px;
}

.update-note span {
  color: var(--muted);
}

.login-card {
  width: min(520px, 100%);
  margin: 72px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 25, 23, 0.96);
  padding: 28px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.login-card h1 {
  font-size: clamp(32px, 6vw, 52px);
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0f1211;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

.login-form input:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(48, 213, 166, 0.18);
}

.login-message {
  min-height: 20px;
  margin: 0;
  color: #ffd4cf;
  font-weight: 700;
}

.app-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 25, 23, 0.94);
  padding: 22px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.app-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid #2f8f76;
  border-radius: 8px;
  background: #173e34;
  color: #d9fff5;
  font-size: 25px;
  font-weight: 900;
}

.app-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.app-title-row h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

.app-title-row p,
.hint {
  color: var(--muted);
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1211;
  padding: 12px;
}

.meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.meta dd {
  margin: 5px 0 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.command {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1211;
  color: #d9fff5;
  padding: 12px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #28b592;
  border-radius: 6px;
  background: #1d7f68;
  color: white;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.download:disabled {
  cursor: wait;
  opacity: 0.7;
}

.download:hover {
  filter: brightness(1.08);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
}

.secondary-link:hover {
  border-color: var(--accent);
}

.secondary-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  padding: 0 13px;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: var(--accent);
}

@media (max-width: 760px) {
  .app-card,
  .meta,
  .hero {
    grid-template-columns: 1fr;
  }

  .app-title-row {
    display: grid;
  }
}
