:root {
  --bg: #141414;
  --surface: #1e1e1e;
  --surface-hover: #252b5c;
  --border: #2e2e2e;
  --text: #e0e0e0;
  --text-dim: #888;
  --text-muted: #555;
  --accent: #7c86e1;
  --bronze: #c4aa78;
  --bronze-bg: #1c1a16;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 48px;
}

.hero {
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fade-in 600ms ease-out 100ms both;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo */

.logo-wrap {
  margin-bottom: 28px;
}

.logo-record {
  width: 120px;
  height: 120px;
  display: block;
}


/* Wordmark & tagline */

.wordmark {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
}

.tagline {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 40px;
}

/* Download section */

.download-section {
  width: 100%;
  margin-bottom: 32px;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.download-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  min-height: 56px;
  overflow: hidden;
}

.download-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 134, 225, 0.15);
}

.download-btn:hover .btn-arrow {
  transform: translateY(2px);
}

.download-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.download-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-arrow {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 200ms ease;
  line-height: 1;
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.btn-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.btn-chip {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
}

.btn-version {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
}

/* Shimmer skeleton while version loads */
.btn-version.skeleton {
  width: 52px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Recommended badge */
.badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--bronze);
  background: var(--bronze-bg);
  border: 1px solid var(--bronze);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

.badge[hidden] {
  display: none;
}

.system-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Pitch copy */

.pitch {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Secondary links */

.secondary-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.secondary-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}

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

.link-sep {
  color: var(--border);
  font-size: 14px;
  user-select: none;
}

/* Footer */

footer {
  padding: 0 24px 32px;
}

.footer-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}

.footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-link:hover {
  color: var(--text-dim);
}

/* Mobile */

@media (max-width: 480px) {
  main {
    padding: 48px 20px 40px;
  }

  .logo-record {
    width: 96px;
    height: 96px;
  }

  .wordmark {
    font-size: 36px;
  }

  .tagline {
    font-size: 17px;
    margin-bottom: 32px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .pitch {
    font-size: 15px;
  }
}
