/* SolarAI LLM Server V2 — shared stylesheet, purple theme */

:root {
  --purple: #7c3aed;
  --purple-deep: #4c1d95;
  --purple-dark: #2e1065;
  --purple-light: #a78bfa;
  --purple-glow: rgba(124, 58, 237, 0.35);
  --bg: #0d0716;
  --bg-alt: #150c24;
  --surface: #1c1130;
  --surface-2: #241640;
  --text: #e8e2f4;
  --text-dim: #a89cc4;
  --border: #32204f;
  --mono: "JetBrains Mono", "Fira Code", "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section.surface { background: var(--surface); }

h1, h2, h3 { color: #fff; line-height: 1.25; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--purple-light); }

p { color: var(--text-dim); margin-bottom: 14px; }
p.lead { font-size: 1.15rem; color: var(--text); }

a { color: var(--purple-light); text-decoration: none; }
a:hover { color: #c4b5fd; }

.mono { font-family: var(--mono); }
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
  border: 1px solid var(--border);
  background: rgba(124, 58, 237, 0.12);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 18px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 7, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.04em;
}
.brand span { color: var(--purple-light); }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text-dim);
  font-size: 0.92rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(124, 58, 237, 0.15); }
.nav-links a.active { color: #fff; background: var(--purple-deep); }

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-size: 1.3rem;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(124, 58, 237, 0.28), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(76, 29, 149, 0.35), transparent),
    var(--bg);
}
.hero.compact { min-height: 62vh; padding: 130px 0 60px; }
.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #fff 30%, var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero.compact h1 { font-size: 2.5rem; }
.hero p.sub {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 24px var(--purple-glow);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  margin-left: 10px;
}

/* ---------- Stats bar ---------- */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--purple-light);
}
.stat .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--purple); transform: translateY(-3px); }
.card .icon {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--purple-light);
  margin-bottom: 12px;
}
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Spec table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-size: 0.95rem;
}
.spec-table th, .spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.spec-table th {
  color: var(--purple-light);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface);
}
.spec-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.spec-table td { color: var(--text-dim); }
.spec-table tr:hover td { background: rgba(124, 58, 237, 0.07); }

/* ---------- Code / terminal block ---------- */
.terminal {
  background: #0a0513;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 24px;
  overflow: hidden;
}
.terminal .bar {
  background: var(--surface);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.terminal pre {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: #cbb8f0;
  overflow-x: auto;
  line-height: 1.7;
}
.terminal .c { color: #7c6f96; }
.terminal .g { color: #86efac; }
.terminal .p { color: var(--purple-light); }

/* ---------- Lists ---------- */
.checklist { list-style: none; margin: 20px 0; }
.checklist li {
  padding: 10px 0 10px 34px;
  position: relative;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.checklist li::before {
  content: "▸";
  position: absolute;
  left: 8px;
  color: var(--purple-light);
  font-weight: 700;
}
.checklist li strong { color: var(--text); }

/* ---------- Big number callout ---------- */
.callout {
  background: linear-gradient(135deg, var(--purple-dark), var(--bg-alt));
  border: 1px solid var(--purple-deep);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-top: 32px;
}
.callout .big {
  font-family: var(--mono);
  font-size: 3.4rem;
  font-weight: 700;
  color: #fff;
}
.callout .big span { color: var(--purple-light); }

/* ---------- Footer ---------- */
footer {
  background: #0a0513;
  border-top: 1px solid var(--border);
  padding: 44px 0 32px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
footer .brand { font-size: 0.95rem; }
footer nav a { color: var(--text-dim); font-size: 0.88rem; margin-left: 18px; }
footer nav a:hover { color: #fff; }
footer .fine {
  width: 100%;
  color: #6b5a8f;
  font-size: 0.8rem;
  font-family: var(--mono);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(13, 7, 22, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .hero h1 { font-size: 2.2rem; }
  .hero.compact h1 { font-size: 1.9rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .callout .big { font-size: 2.4rem; }
  .spec-table { font-size: 0.85rem; }
  .spec-table th, .spec-table td { padding: 10px 10px; }
}
