:root {
  --bg: #0f1216;
  --panel: #171b21;
  --border: #2a2f38;
  --text: #e7eaee;
  --muted: #9aa4b2;
  --accent: #7cc4ff;
  --accent-strong: #3fa0f0;
  --green: #7ddc9a;
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 12px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

nav a:hover { color: var(--accent); }

main.wrap { padding-top: 32px; padding-bottom: 60px; }

h1 { font-size: 1.9rem; margin-bottom: 6px; }
h2 { font-size: 1.3rem; margin-top: 0; }
h3 { font-size: 1.1rem; margin: 0 0 4px; }
h4 { font-size: 0.95rem; color: var(--muted); margin: 14px 0 6px; }

.lede { color: var(--muted); max-width: 62ch; margin-bottom: 28px; }

.hero { padding: 24px 0 10px; }
.tagline { color: var(--muted); max-width: 60ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

.button {
  display: inline-block;
  background: var(--accent-strong);
  color: #05131f;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.button:hover { background: var(--accent); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.glossary dl { margin: 0; }
.glossary dt { color: var(--accent); font-weight: 600; margin-top: 14px; }
.glossary dt:first-child { margin-top: 0; }
.glossary dd { margin: 4px 0 0; color: var(--text); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}

.category { color: var(--muted); font-size: 0.85rem; margin-top: 0; }

.spec-row {
  border-top: 1px dashed var(--border);
  padding: 10px 0 6px;
}
.spec-row:first-of-type { border-top: none; }

.spec-value { display: block; font-weight: 700; font-size: 1.05rem; }
.spec-explain { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }

.power-block { margin: 4px 0 8px; }
.power-math { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.85rem; }
.power-math strong { color: var(--text); }

.note {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid var(--accent-strong);
  padding-left: 10px;
  margin: 10px 0;
}

.error {
  color: #ffb4b4;
  border-left: 3px solid #d64545;
  padding-left: 10px;
}

.formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #0b0e12;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.math-block { margin: 10px 0 14px; }

.mini-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 0.92rem;
}
.mini-table th, .mini-table td {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}
.mini-table th { color: var(--muted); font-weight: 600; width: 40%; }

.requests-table th { width: auto; }

.build-summary { margin-top: 6px; }
.build-line { font-size: 1.02rem; }

.min-setup { margin-top: 12px; }

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}
.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  background: #0b0e12;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.confirmation { text-align: left; }
.request-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

table { overflow-x: auto; display: block; }
