:root {
  color-scheme: dark;
  --ink: #f7efe1;
  --ink-soft: #cfc3af;
  --muted: #928b82;
  --bg: #080a0c;
  --panel: rgba(13, 17, 20, 0.9);
  --line: rgba(247, 239, 225, 0.16);
  --blue: #8fc9dc;
  --ember: #e97332;
  --gold: #d0b276;
  --danger: #d44b35;
  --ok: #8fdcaa;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(24, 48, 56, 0.52), rgba(8, 10, 12, 0.12) 38%),
    linear-gradient(45deg, rgba(116, 44, 28, 0.34), rgba(8, 10, 12, 0.18) 46%),
    var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.launcher-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  padding: 32px 0;
}

.hero-panel,
.auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

.hero-panel {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
}

.hero-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 12, 0.06), rgba(8, 10, 12, 0.92)),
    linear-gradient(90deg, rgba(8, 10, 12, 0.9), rgba(8, 10, 12, 0.2));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: clamp(28px, 5vw, 54px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.9;
}

.hero-copy p {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.build-card {
  width: min(360px, 100%);
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 12, 0.72);
}

.build-card span,
.build-card small,
.account-card p,
.account-card small,
.fine-print,
.status-line {
  color: var(--muted);
}

.build-card strong {
  display: block;
  margin: 4px 0;
  color: var(--gold);
}

.desktop-download {
  width: min(360px, 100%);
  margin-top: 16px;
}

.auth-panel {
  padding: clamp(22px, 4vw, 36px);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}

.tab,
.button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 10, 12, 0.62);
  color: var(--ink-soft);
  font-weight: 800;
  cursor: pointer;
}

.tab.active,
.button.primary {
  background: var(--ember);
  border-color: var(--ember);
  color: #1b0b05;
}

.auth-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 239, 225, 0.18);
  border-radius: 6px;
  background: rgba(4, 5, 6, 0.85);
  color: var(--ink);
}

input:focus {
  outline: 2px solid rgba(143, 201, 220, 0.5);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(143, 220, 170, 0.28);
  border-radius: 8px;
  background: rgba(143, 220, 170, 0.08);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 18px rgba(143, 220, 170, 0.9);
}

.account-card p,
.account-card strong,
.account-card small {
  display: block;
  margin: 0;
}

.launcher-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.button.launch {
  background: linear-gradient(135deg, var(--blue), var(--gold));
  border-color: transparent;
  color: #061014;
}

.button.secondary {
  padding-inline: 16px;
}

.button.disabled {
  pointer-events: none;
  filter: grayscale(1);
  opacity: 0.45;
}

.download-progress {
  margin-top: 18px;
}

.progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(247, 239, 225, 0.18);
  border-radius: 999px;
  background: rgba(4, 5, 6, 0.82);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--ember));
  box-shadow: 0 0 18px rgba(143, 201, 220, 0.42);
  transition: width 180ms ease;
}

.progress-track.indeterminate .progress-bar {
  width: 38%;
  animation: progress-sweep 1s ease-in-out infinite;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  min-height: 20px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.status-line {
  min-height: 22px;
  margin: 16px 0 0;
  line-height: 1.45;
}

.status-line.error {
  color: var(--danger);
}

.status-line.ok {
  color: var(--ok);
}

.fine-print {
  margin: 18px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

@keyframes progress-sweep {
  0% {
    transform: translateX(-105%);
  }

  100% {
    transform: translateX(280%);
  }
}

@media (max-width: 900px) {
  .launcher-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-panel {
    min-height: 520px;
  }
}

@media (max-width: 560px) {
  .launcher-shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0;
  }

  .tabs,
  .launcher-actions {
    grid-template-columns: 1fr;
  }
}
