/* Dark-only palette, deliberately in the same family as llamanexus.makershop.fi's
   style.css (same neutral scale: --bg/--bg-elevated/--border/--text/--text-muted,
   same .site-header/.hero/.product-grid/.site-footer building blocks) so the two
   sites read as part of the same maker's work, with FastECU's own warm
   red-orange accent standing in for LlamaNexus's terracotta one. Everything
   below the neutral tokens is plain hand-written CSS, no build step, no
   framework — just static files a PHP host can serve as-is. */
:root {
  --bg: #1e1e1e;
  --bg-sidebar: #181818;
  --bg-elevated: #262624;
  --border: #3a3835;
  --text: #e8e6e1;
  --text-muted: #a19d95;
  --accent: #e2734a;
  --accent-hover: #ec8560;
  --danger: #e57373;
  --success: #81c995;
  --stable: #81c995;
  --progress: #e0b95c;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

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

* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

a { color: inherit; text-decoration: none; }
.link-strong { color: var(--accent); font-weight: 600; }
.link-strong:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: none; border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg-elevated); }
.btn:disabled,
.btn.btn-disabled { opacity: 0.5; cursor: default; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(6px);
}
.site-header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.01em; font-size: 16px; }
.site-brand img { width: 22px; height: 22px; border-radius: 4px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--text-muted); }
.site-nav a:hover { color: var(--text); }

/* Landing page */
.hero { max-width: 760px; margin: 0 auto; padding: 76px 24px 32px; text-align: center; }
.hero-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin: 0 0 14px; }
.hero h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.hero-subtitle { margin: 16px auto 0; max-width: 600px; color: var(--text-muted); font-size: 17px; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 10px 0 0; font-size: 12.5px; color: var(--text-muted); }

.screenshot-wrap { max-width: 1040px; margin: 8px auto 0; padding: 0 24px 64px; }
.screenshot-frame {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.screenshot-frame img { display: block; width: 100%; height: auto; border-radius: 6px; }
.screenshot-caption { margin: 12px 4px 0; font-size: 13px; color: var(--text-muted); text-align: center; }

/* Generic content section */
.section { max-width: 1040px; margin: 0 auto; padding: 12px 24px 64px; }
.section-header { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 8px; }
.section-title { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.section-lead { margin: 12px 0 0; color: var(--text-muted); font-size: 15px; }
.section-alt { background: var(--bg-sidebar); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Two-card "product" grid, reused for the Qt vs Electron comparison */
.product-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.15s;
}
.product-card:hover { border-color: var(--accent); }
.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.status-pill { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.status-pill.stable { color: var(--stable); background: rgba(129, 201, 149, 0.12); }
.status-pill.progress { color: var(--progress); background: rgba(224, 185, 92, 0.14); }
.product-card h3 { margin: 10px 0 0; font-size: 18px; }
.product-card-tagline { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.product-card-description { margin: 12px 0 0; font-size: 13.5px; color: var(--text-muted); flex: 1; }
.product-card-link { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--accent); }
.product-card:hover .product-card-link { text-decoration: underline; }

/* Feature category cards */
.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-card {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 20px 22px;
}
.feature-card h3 { margin: 0 0 10px; font-size: 15px; }
.feature-card ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--text-muted); display: flex; flex-direction: column; gap: 6px; }
.feature-card li::marker { color: var(--accent); }

/* "What's new" status list — dot + label, echoing the app's own connection-status rows */
.status-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-elevated); }
.status-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.status-row + .status-row { border-top: 1px solid var(--border); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.status-dot.done { background: var(--stable); }
.status-dot.progress { background: var(--progress); }
.status-row-title { font-size: 14px; font-weight: 600; }
.status-row-desc { margin: 3px 0 0; font-size: 13.5px; color: var(--text-muted); }

/* Supported models table */
.models-columns { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.models-columns h3 { font-size: 11.5px; font-weight: 700; margin: 0 0 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.models-columns ul { margin: 0; padding-left: 18px; font-size: 13.5px; display: flex; flex-direction: column; gap: 7px; }
.models-columns li::marker { color: var(--accent); }
.models-note { margin: 28px 0 0; font-size: 13px; color: var(--text-muted); }

/* Download section */
.download-card {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
}
.download-actions { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: auto; }
.site-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}
.site-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .section-title { font-size: 22px; }
}
