/* METACOMPILER — metacompiler.me */

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-hover: #1a1a1a;
  --text: #e8e8e8;
  --text-dim: #999;
  --accent: #c0392b;
  --accent-hover: #e74c3c;
  --link: #5dade2;
  --link-hover: #85c1e9;
  --border: #2a2a2a;
  --max-width: 900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); }

/* -- Layout -- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--border); }

/* -- Hero -- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px 64px;
}

.hero-cover {
  width: 280px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  font-style: italic;
}

.hero .tagline {
  font-size: 1.2rem;
  max-width: 640px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero .tagline strong { color: #fff; }

/* -- Buttons -- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); color: #fff; }

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* -- Section headings -- */
section h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  text-align: center;
}

/* -- About -- */
.about p {
  max-width: 720px;
  margin: 0 auto 20px;
  text-align: left;
}

.about .pull-quote {
  font-style: italic;
  color: var(--text-dim);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 32px auto;
  max-width: 640px;
}

/* -- Downloads grid -- */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 32px auto 0;
}

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 16px;
  text-align: center;
  transition: background 0.2s;
}

.dl-card:hover { background: var(--bg-hover); }

.dl-card .lang-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.dl-card .lang-native {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.dl-card .dl-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.dl-card .dl-links a {
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
}

.dl-card .dl-links a:hover {
  background: var(--bg-hover);
  border-color: var(--text-dim);
  color: #fff;
}

/* -- Buy -- */
.buy-options {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.buy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 32px;
  text-align: center;
  min-width: 200px;
}

.buy-card .format { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.buy-card .price { font-size: 1.4rem; color: var(--accent); margin-bottom: 12px; }

/* -- Author -- */
.author-section {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 720px;
  margin: 0 auto;
}

.author-section p { margin-bottom: 16px; }

/* -- Footer -- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }

/* -- Responsive -- */
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1rem; }
  .hero-cover { width: 200px; }
  .downloads-grid { grid-template-columns: repeat(2, 1fr); }
  .author-section { flex-direction: column; }
  section { padding: 48px 0; }
}

@media (max-width: 380px) {
  .downloads-grid { grid-template-columns: 1fr; }
}
