/* Quorumstack Systems - dark warm infra (charcoal + amber) */

:root {
  --bg: #141210;
  --surface: #1F1C18;
  --surface-2: #2A241C;
  --text: #F5F0E8;
  --muted: #A8A29E;
  --primary: #F59E0B;
  --primary-dark: #D97706;
  --primary-soft: rgba(245, 158, 11, 0.12);
  --success: #4ADE80;
  --border: rgba(245, 240, 232, 0.1);
  --glow: 0 0 48px rgba(245, 158, 11, 0.08);
  --font: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1160px;
  --nav-h: 72px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #FCD34D; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(20, 18, 16, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.05rem; font-weight: 700; color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-icon { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 0.5rem 1rem; background: var(--primary); color: #141210 !important;
  border-radius: 8px; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--primary-dark); color: #141210 !important; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); }

.hero {
  padding: 4.5rem 0 4rem;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.1), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.hero-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--primary); background: var(--primary-soft);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.35rem 0.75rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--primary); }
.hero-lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 2rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.35rem; font-family: var(--font);
  font-size: 0.92rem; font-weight: 700; border-radius: 8px;
  border: 1px solid transparent; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #141210; }
.btn-primary:hover { background: var(--primary-dark); color: #141210; }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.hero-metrics { display: flex; gap: 2rem; flex-wrap: wrap; }
.metric-val { display: block; font-size: 1.5rem; font-weight: 800; }
.metric-lbl { font-size: 0.78rem; color: var(--muted); }

.ops-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--glow);
}
.ops-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.ops-title { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.ops-status { font-size: 0.72rem; color: var(--success); font-weight: 600; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.ops-table th {
  text-align: left; font-family: var(--font-mono); font-weight: 500;
  color: var(--muted); padding: 0.5rem 0; font-size: 0.68rem;
}
.ops-table td { padding: 0.55rem 0; border-top: 1px solid var(--border); }
.ops-table td.ok { color: var(--success); font-weight: 600; }
.ops-table td.run { color: var(--primary); font-weight: 600; }
.ops-footer {
  display: flex; gap: 2rem; margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.ops-footer .lbl { display: block; font-size: 0.65rem; color: var(--muted); text-transform: uppercase; }
.ops-footer strong { font-family: var(--font-mono); font-size: 1.1rem; }
.ops-footer .down { color: var(--success); }

section { padding: 4.5rem 0; }
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 0.6rem; }
.section-header p { color: var(--muted); max-width: 36rem; }
.section-tag {
  display: block; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem;
}

.product { background: var(--surface); border-block: 1px solid var(--border); }
.feature-rows { display: flex; flex-direction: column; gap: 0; }
.feature-row {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.5rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--primary); font-weight: 500; }
.feature-row h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature-row p { font-size: 0.92rem; color: var(--muted); }

.integration-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
.integration-grid > div {
  padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.integration-grid h4 {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-bottom: 0.5rem;
}
.integration-grid p { font-size: 0.88rem; color: var(--muted); }

.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.testimonial {
  padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.testimonial p { font-size: 0.95rem; margin-bottom: 1rem; }
.testimonial footer { font-size: 0.82rem; color: var(--muted); }
.customer-logos { text-align: center; font-size: 0.85rem; color: var(--muted); }

.pricing-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 800px; }
.price-card {
  padding: 1.75rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.price-card--featured { border-color: var(--primary); box-shadow: var(--glow); }
.price-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.price { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin-bottom: 1.5rem; }
.price-card li {
  font-size: 0.88rem; color: var(--muted); padding: 0.35rem 0;
  padding-left: 1.2rem; position: relative;
}
.price-card li::before { content: "?"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.price-card .btn { width: 100%; }

.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0; background: none; border: none; color: var(--text);
  font-family: inherit; font-size: 0.95rem; font-weight: 600; text-align: left; cursor: pointer;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding-bottom: 1rem; font-size: 0.9rem; color: var(--muted); }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-question svg { transition: transform 0.2s; flex-shrink: 0; }

.contact { padding-bottom: 5rem; }
.contact-box {
  text-align: center; padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
}
.contact-box h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 0.75rem; }
.contact-box p { color: var(--muted); max-width: 32rem; margin: 0 auto 1.5rem; }
.site-footer {
  border-top: 1px solid var(--border); padding: 2.5rem 0;
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-brand-block { flex: 1 1 220px; }
.footer-logo { margin-bottom: 0.35rem; }
.footer-brand-block p { font-size: 0.85rem; color: var(--muted); }
.footer-aside {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer nav a { font-size: 0.85rem; color: var(--muted); }
.footer-connect { display: flex; flex-shrink: 0; }
.connect-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.connect-badge-x {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(245, 158, 11, 0.55);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.28);
}
.connect-badge-x:hover {
  color: #FCD34D;
  border-color: rgba(245, 158, 11, 0.75);
  background: var(--primary-soft);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.25),
    0 6px 18px rgba(245, 158, 11, 0.22);
}
.connect-badge svg { flex-shrink: 0; width: 24px; height: 24px; }
.footer-copy { font-size: 0.8rem; color: var(--muted); width: 100%; margin-top: 0.5rem; }

.legal-page { padding: 3rem 1.5rem 4rem; max-width: 640px; margin-inline: auto; }
.legal-page h1 { font-size: 1.85rem; margin-bottom: 0.5rem; }
.legal-page .updated { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.legal-page p { margin-bottom: 1rem; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 900px) {
  .hero-grid, .testimonial-grid, .pricing-cards, .integration-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: var(--bg); padding: 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-actions { position: relative; }
}
