:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-light: #1e88e5;
  --accent: #00b0ff;
  --bg: #0a0f1e;
  --bg-card: #101828;
  --bg-card-hover: #162040;
  --text: #e8eaf6;
  --text-muted: #90a4ae;
  --border: #1e2d4a;
  --footer-bg: #060b14;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
header {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(180deg, #0d1b3e 0%, var(--bg) 100%);
}

.brand {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
}

.brand span {
  color: var(--accent);
}

.tagline {
  margin-top: 8px;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── NAV ── */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  background-color: #0d1b3e;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: #fff;
  background: var(--primary);
}

/* ── MAIN ── */
main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 20px;
}

/* ── SECTION HEADINGS ── */
.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── APP GRID ── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.app-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.icon-metronome { background: linear-gradient(135deg, #1565c0, #00b0ff); }
.icon-staff     { background: linear-gradient(135deg, #1b5e20, #69f0ae); }
.icon-fretboard { background: linear-gradient(135deg, #4a148c, #ce93d8); }
.icon-bricks    { background: linear-gradient(135deg, #b71c1c, #ff7043); }

.app-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.app-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── APP PAGE ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 32px;
  transition: color 0.2s;
}

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

.app-hero {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 40px;
}

.app-hero .app-icon {
  width: 96px;
  height: 96px;
  font-size: 3rem;
  border-radius: 22px;
  flex-shrink: 0;
}

.app-hero-text h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.app-hero-text .subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.badge-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.badge-store:hover {
  background: #1a1a2e;
  border-color: var(--accent);
}

.badge-store .store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge-store .store-label small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* ── CONTENT SECTIONS ── */
.content-section {
  margin-bottom: 36px;
}

.content-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.content-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── EULA / ABOUT ── */
.prose {
  max-width: 720px;
}

.prose h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.prose .updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.prose h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 28px 0 10px;
}

.prose p,
.prose li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
  margin-bottom: 10px;
}

.prose a {
  color: var(--accent);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 24px 20px;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .brand { font-size: 2rem; }
  .app-hero { flex-direction: column; }
  .app-hero .app-icon { width: 72px; height: 72px; font-size: 2.2rem; }
}
