/* ExoTune — minimal indie tool landing
   No frameworks, no JS, no analytics. Vanilla CSS only.
   Aesthetic: dark mode, subtle gradient, modern indie tool feel. */

:root {
  --bg: #0e0f13;
  --bg-elevated: #1a1c23;
  --fg: #e8e9ed;
  --fg-muted: #9095a3;
  --accent: #4a9eff;
  --accent-hover: #65aeff;
  --border: #2a2d36;
  --max-width: 980px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility: visible focus + skip link */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
  color: white;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Header */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(14, 15, 19, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

@media (max-width: 480px) {
  header .container { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
  nav a:first-child { margin-left: 0; }
  nav a { margin-left: 0; }
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.2rem;
}
.logo-mark { color: var(--accent); display: inline-block; }
.logo:hover { color: var(--fg); }
nav a { margin-left: 1.5rem; color: var(--fg-muted); font-size: 0.95rem; }
nav a:hover { color: var(--fg); }

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  background: radial-gradient(ellipse at top, rgba(74, 158, 255, 0.08), transparent 60%);
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.15s;
}
.cta:hover { background: var(--accent-hover); color: white; }
.cta-large { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
.hero .meta {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* Sections */
section { padding: 4rem 0; }
section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature p { color: var(--fg-muted); font-size: 0.95rem; }

/* Screenshots */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.screenshot-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.screenshot-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

/* Download */
.download { text-align: center; background: var(--bg-elevated); }
.download p { color: var(--fg-muted); margin-bottom: 1.5rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.checksums {
  margin-top: 1rem !important;
  font-size: 0.85rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.checksums code {
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* About */
.about p {
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 auto 1rem;
  font-size: 1.05rem;
}

/* Sub-pages (license, changelog, contact) */
.page { padding: 4rem 0 6rem; }
.page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.page .lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}
.page h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  text-align: left;
}
.page p, .page li {
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}
.page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.page code {
  background: var(--bg-elevated);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.container.narrow { max-width: 740px; }

/* License page */
.license-text {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--fg-muted);
  white-space: pre-wrap;
  overflow-x: auto;
}

/* Changelog */
.release {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.release:last-child { border-bottom: 0; }
.release > header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  background: transparent;
  border: 0;
  position: static;
  padding: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.release > header h2 { margin: 0; font-size: 1.3rem; }
.release-date {
  color: var(--fg-muted);
  font-weight: 400;
  font-size: 0.95rem;
}
.release-tag {
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.release ul { padding-left: 1.5rem; }
.release li { margin-bottom: 0.4rem; }

/* Contact */
.contact-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.contact-block h2 { margin-top: 0; }
.contact-email {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.5rem 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.contact-meta {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
details {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}
details:first-of-type { border-top: 0; padding-top: 0; }
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--fg);
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
}
details summary::before {
  content: "▸";
  position: absolute;
  left: 0;
  transition: transform 0.15s;
}
details[open] summary::before { transform: rotate(90deg); }
details p { margin-top: 0.75rem; }

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
footer a { color: var(--fg-muted); }
footer a:hover { color: var(--accent); }
