/* SmechVisor site -- dark industrial theme */

:root {
  --bg:         #0a0a0a;
  --bg-raised:  #111111;
  --text:       #f0f0f0;
  --text-dim:   #888888;
  --text-muted: #444444;
  --accent:     #ff5a4e;
  --accent-dim: rgba(255,90,78,0.12);
  --blue:       #3b82f6;
  --border:     #1e1e1e;
  --max-width:  1060px;
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 0.55em; }
p { color: var(--text-dim); margin: 0 0 1em; }
a { color: var(--text); text-decoration: none; }
code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.88em;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* ── Header ──────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.93);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}

.brand {
  display: flex; align-items: center; gap: 0.55rem;
  margin-right: auto;
}

.brand-logo { width: 32px; height: 32px; }

.brand-name { font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; }

.nav { display: flex; gap: 1.5rem; }

.nav a {
  color: var(--text-dim); font-size: 0.9rem;
  transition: color 0.12s;
}
.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 30px; height: 30px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); }

/* ── Buttons ──────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 5px;
  font-size: 0.9rem; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, transform 0.1s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #0a0a0a; }
.btn-primary:hover { background: #ff7167; }

.btn-outline { background: transparent; color: var(--text); border-color: #2a2a2a; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero ─────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: 4rem 1.5rem;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 25% 60%, rgba(255,90,78,0.18), transparent 48%),
    radial-gradient(circle at 75% 35%, rgba(59,130,246,0.12), transparent 50%);
  animation: drift 20s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1)    translate(0,0); }
  to   { transform: scale(1.12) translate(-2%,2%); }
}

.hero-content { position: relative; z-index: 1; max-width: 780px; }

.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

.hero-sub {
  font-size: 1.1rem; color: var(--text-dim);
  margin-bottom: 2rem; max-width: 620px; margin-inline: auto;
}

.hero-actions {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
}

/* ── Sections ─────────────────────────────────────── */

main > section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.about, .cta, .community { text-align: center; }
.about p, .cta p, .community p {
  max-width: 620px; margin-inline: auto;
}

/* ── Feature grid ─────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}

.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.6rem;
}

.feature-icon {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--accent);
  margin-bottom: 1rem;
  position: relative;
}

/* Icon variants -- minimal CSS shapes */
.feature-icon::before, .feature-icon::after {
  content: ""; position: absolute;
  border: 2px solid #0a0a0a;
}

.feature-icon-kvm::before  { inset: 12px 10px; border-radius: 2px; }
.feature-icon-kvm::after   { inset: 18px 16px; border-radius: 1px; }
.feature-icon-gpu::before  { inset: 10px; transform: rotate(45deg); }
.feature-icon-dash::before { top: 14px; left: 10px; right: 10px; height: 0; }
.feature-icon-dash::after  { top: 20px; left: 10px; right: 10px; height: 0; }
.feature-icon-vfio::before { inset: 10px; border-radius: 50%; }
.feature-icon-openrc::before { top: 10px; left: 10px; width: 10px; height: 22px; border-radius: 1px; }
.feature-icon-openrc::after  { top: 10px; right: 10px; width: 10px; height: 22px; border-radius: 1px; }
.feature-icon-musl::before { inset: 14px 10px; border-radius: 2px; }

.feature-card h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.88rem; margin: 0; }

/* ── Vision ───────────────────────────────────────── */

.vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

/* ── Downloads ────────────────────────────────────── */

.downloads-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: flex; flex-direction: column; gap: 16px;
}

.download-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.6rem;
}

.download-card-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 0.9rem;
}
.download-card-header h3 { margin: 0; font-size: 1rem; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-alpha {
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.4);
}
.badge-beta {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255,90,78,0.4);
}

.download-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  margin: 1.1rem 0;
  font-size: 0.87rem;
}
.download-meta dt { color: var(--text-muted); font-weight: 600; }
.download-meta dd { margin: 0; word-break: break-all; }
.download-meta code { font-size: 0.8rem; }

.download-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.coming-soon-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.6rem;
  opacity: 0.6;
}
.coming-soon-card h3 { font-size: 1rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.coming-soon-card p  { font-size: 0.88rem; margin: 0; }

.verify-cmd {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  color: var(--text);
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  text-align: left;
  margin: 1rem auto;
  max-width: 620px;
}

/* ── Footer ───────────────────────────────────────── */

.site-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-logo { width: 48px; height: 48px; margin-bottom: 0.6rem; }
.footer-brand { font-weight: 700; margin-bottom: 0.5rem; }
.site-footer a { color: var(--blue); }

/* ── Responsive nav ───────────────────────────────── */

@media (max-width: 700px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem; gap: 0.8rem;
    display: none;
  }
  .nav.open { display: flex; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}
