:root {
  --bg: #0b1528;
  --card: #12203a;
  --text: #e8f2ff;
  --muted: #8fa8c9;
  --accent: #5eb0ff;
  --accent-soft: #2e7fd4;
  --border: #243a5c;
  --hover: #1a2f4d;
  --success: #7fdc8e;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' fill='none'%3E%3Cpath d='M0 100 L80 40 L140 70 L200 20 L280 55 L360 30 L400 45 L400 120 L0 120Z' fill='%231a3358' opacity='0.35'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(94, 176, 255, 0.18), transparent),
    linear-gradient(180deg, #0b1528 0%, #0f1e36 100%);
  background-size: 100% 140px, auto, auto;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: bottom center, center top, center;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 920px; margin: 0 auto; padding: 24px 16px 48px; }
.center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 48px);
  padding: 24px 16px;
}

header.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
header.brand .logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1a3358, #2a5a8a);
  border: 1px solid #3d6a9e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
header.brand .logo-wrap img { width: 36px; height: 36px; }
.title { font-size: 24px; font-weight: 700; letter-spacing: 0.2px; margin: 0; }
.subtitle { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { background: var(--hover); border-color: #2a3246; }
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
}
.card-title .title-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}
.card-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  flex: 1;
  min-height: 2.6em;
}
.card-actions {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.card-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.downloads-grid {
  align-items: stretch;
}

.btn .btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #1a2233;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.btn:hover { background: #1f2940; text-decoration: none; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  border-color: transparent;
  color: #fff;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; }

footer { margin-top: 32px; color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.panel .logo-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1a3358, #2a5a8a);
  border: 1px solid #3d6a9e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel .logo-wrap img { width: 44px; height: 44px; }
.panel h1 { font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.panel .lead { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.steps {
  text-align: left;
  background: #121826;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}
.steps ol { margin: 0; padding-left: 20px; }
.steps li { margin: 6px 0; }
.steps strong { color: var(--text); }
.hint { font-size: 12px; color: var(--muted); margin-top: 16px; }
.hint a { color: var(--accent); }

.spinner {
  width: 40px;
  height: 40px;
  margin: 12px auto;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
