* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d1a;
  --bg-elev: #181828;
  --text: #fff;
  --text-dim: #a0a0b0;
  --accent: #00ffaa;
  --accent-dim: #00cc88;
  --error: #ff4f6d;
  --border: #2a2a3e;
}

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

main {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
}

h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.tagline {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 36px;
  line-height: 1.5;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

input[type="email"]:focus {
  border-color: var(--accent);
}

button {
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #0d0d1a;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

button:hover:not(:disabled) {
  background: var(--accent-dim);
}

button:disabled {
  background: var(--border);
  color: var(--text-dim);
  cursor: default;
}

.form-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.form-error {
  color: var(--error);
  font-size: 13px;
  min-height: 16px;
  margin-top: 4px;
}

.form-error:empty {
  margin-top: 0;
  min-height: 0;
}

.result {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid rgba(0, 255, 170, 0.25);
  border-radius: 12px;
  background: rgba(0, 255, 170, 0.04);
}

.result h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.result p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}

.result .download-cta {
  margin-top: 18px;
}

.download-link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: #0d0d1a;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s ease;
}

.download-link:hover {
  background: var(--accent-dim);
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #0d0d1a;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  main { padding: 0 4px; }
}
