/* =========================================================
   ChefGood — Computer Systems Design
   stylesheet for index.html
   ========================================================= */

:root {
  --bg: #16110e;
  --bg-2: #1e1712;
  --surface: #221a15;
  --surface-2: #2a2018;
  --line: #3a2d23;
  --ink: #f4ede3;
  --muted: #b5a695;
  --faint: #8d7f6e;
  --accent: #ff6a3d;
  --accent-2: #ff8a5c;
  --champagne: #ffc38f;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --nav-w: 272px;
}

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

html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.12;
  color: var(--ink);
  font-weight: 600;
}

p { color: var(--muted); }

.mono { font-family: var(--mono); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #1a120c;
  padding: 10px 16px;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  font-family: var(--display);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-accent {
  background-color: var(--accent);
  color: #1a120c;
}
.btn-accent:hover { background-color: var(--accent-2); transform: translateY(-2px); }
.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--champagne); color: var(--champagne); transform: translateY(-2px); }

.overline {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---------------- Sidebar navigation ---------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  background-color: var(--bg-2);
  border-right: 1px solid var(--line);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease;
}
.nav-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 34px 28px 28px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--accent);
  color: #1a120c;
  font-weight: 700;
  font-size: 15px;
}
.brand-name { color: var(--ink); }
.nav-tagline {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 34px;
}
.nav-link {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover { color: var(--ink); background-color: var(--surface); }
.nav-link.active { color: var(--accent); background-color: var(--surface); }
.nav-divider {
  height: 1px;
  background-color: var(--line);
  margin: auto 0 22px;
}
.nav-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.nav-contact-item {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}
.nav-contact-item:hover { color: var(--champagne); }
.nav-contact-item.muted { color: var(--faint); }
.nav-cta { justify-content: center; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 8, 5, 0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.25s ease;
}
.nav-overlay.show { pointer-events: auto; }

.menu-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 120;
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1a120c;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.open .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Main layout ---------------- */
.page-main { margin-left: var(--nav-w); }

/* ---------------- Hero ---------------- */
.hero-section {
  padding: 90px 56px 80px;
  background-color: var(--bg);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}
.hero-title {
  font-size: 54px;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
  color: var(--ink);
}
.hero-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 620px;
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-proof {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.proof-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hero-visual { position: relative; }
.diag-panel {
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.diag-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background-color: var(--surface);
}
.diag-dot { width: 11px; height: 11px; border-radius: 50%; }
.diag-dot.red { background-color: var(--danger); }
.diag-dot.amber { background-color: var(--warn); }
.diag-dot.green { background-color: var(--ok); }
.diag-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
}
.diag-body { padding: 20px 18px; }
.diag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.diag-row span { color: var(--faint); }
.diag-row strong { color: var(--ink); font-weight: 500; }
.diag-row strong.ok { color: var(--ok); }
.diag-bar {
  height: 8px;
  background-color: var(--surface-2);
  border-radius: 999px;
  margin: 14px 0 12px;
  overflow: hidden;
}
.diag-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--champagne));
  border-radius: 999px;
}
.diag-foot {
  padding: 12px 16px;
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--accent-2);
}

.float-card {
  position: absolute;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.float-card-a { top: -26px; left: -34px; }
.float-card-b { bottom: -22px; right: -20px; }
.float-num {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  color: var(--champagne);
  line-height: 1;
}
.float-label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------------- Trust strip ---------------- */
.trust-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-2);
  padding: 22px 56px;
}
.trust-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.trust-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
}
.trust-track span {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------------- Section scaffolding ---------------- */
.caps-section,
.method-section,
.why-section,
.industries-section,
.faq-section,
.contact-section {
  padding: 88px 56px;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 {
  font-size: 40px;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.section-lede { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* ---------------- Capabilities ---------------- */
.caps-section { background-color: var(--bg); }
.caps-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.cap-item {
  padding: 40px 36px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
}
.cap-item:nth-child(2n) { border-right: none; }
.cap-index {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}
.cap-title { font-size: 24px; margin-bottom: 14px; }
.cap-desc { font-size: 16px; margin-bottom: 20px; }
.cap-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cap-tags li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--champagne);
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------------- Metrics ---------------- */
.metrics-section {
  background-color: var(--accent);
  padding: 60px 56px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.metric {
  font-family: var(--display);
  font-size: 52px;
  font-weight: 700;
  color: #1a120c;
  line-height: 1;
}
.metrics-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 14px;
}
.metric-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  color: #4a2a1a;
  letter-spacing: 0.03em;
}

/* ---------------- Method timeline ---------------- */
.method-section { background-color: var(--bg-2); }
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background-color: var(--line);
}
.tline-step {
  position: relative;
  padding: 0 0 34px 40px;
}
.tline-step:last-child { padding-bottom: 0; }
.tline-dot {
  position: absolute;
  left: -34px;
  top: 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #1a120c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}
.tline-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
}
.tline-card h3 { font-size: 20px; margin-bottom: 8px; }
.tline-card p { font-size: 15px; }

/* ---------------- Comparison table ---------------- */
.why-section { background-color: var(--bg); }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--bg-2);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table th,
.compare-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.compare-table thead th {
  font-family: var(--display);
  font-size: 15px;
  color: var(--muted);
  background-color: var(--surface);
}
.compare-table tbody th {
  font-weight: 500;
  color: var(--ink);
}
.compare-table .col-highlight {
  color: var(--accent);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.td-x { color: var(--faint); }
.td-yes { color: var(--ok); font-weight: 600; }
.compare-table td.col-highlight { background-color: var(--surface); }

/* ---------------- Industries ---------------- */
.industries-section { background-color: var(--bg-2); }
.industry-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.industry-chip {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 26px;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.industry-chip:hover {
  border-color: var(--accent);
  color: var(--champagne);
  transform: translateY(-2px);
}

/* ---------------- Quote ---------------- */
.quote-section {
  background-color: var(--bg);
  padding: 88px 56px;
  text-align: center;
}
.quote-inner { max-width: 780px; margin: 0 auto; }
.quote-mark {
  font-family: var(--display);
  font-size: 90px;
  line-height: 0.4;
  color: var(--accent);
  margin-bottom: 28px;
}
.quote-text {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 24px;
}
.quote-attr { font-family: var(--mono); font-size: 13px; color: var(--faint); letter-spacing: 0.03em; }

/* ---------------- FAQ ---------------- */
.faq-section { background-color: var(--bg-2); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  background-color: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 26px 24px; font-size: 16px; }

/* ---------------- Contact ---------------- */
.contact-section { background-color: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 { font-size: 38px; margin-bottom: 20px; }
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-key {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-val { font-size: 17px; color: var(--ink); font-weight: 500; }
a.contact-line:hover .contact-val { color: var(--champagne); }

.contact-form {
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--faint); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; }
.form-note { margin-top: 14px; font-size: 14px; color: var(--ok); min-height: 20px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background-color: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 72px 56px 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand .nav-brand { margin-bottom: 18px; }
.footer-desc { font-size: 15px; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.footer-col a { color: var(--muted); font-size: 15px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--champagne); }
.footer-static { color: var(--muted); font-size: 15px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  position: relative;
}
.footer-legal { font-size: 14px; color: var(--faint); }
.footer-mark {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--surface-2);
  line-height: 1;
}

/* ---------------- Scroll reveal ---------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .hero-title { font-size: 44px; }
  .caps-list { grid-template-columns: 1fr; }
  .cap-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .cap-item { border-right: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .site-nav { transform: translateX(-100%); }
  .site-nav.open { transform: translateX(0); }
  .menu-toggle { display: flex; }
  .page-main { margin-left: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 70px 24px 64px; }
  .hero-title { font-size: 38px; }
  .hero-visual { margin-top: 20px; }
  .float-card-a { left: 8px; top: -18px; }
  .float-card-b { right: 8px; bottom: -18px; }
  .caps-section, .method-section, .why-section,
  .industries-section, .faq-section, .contact-section,
  .quote-section { padding: 64px 24px; }
  .trust-section { padding: 20px 24px; }
  .metrics-section { padding: 48px 24px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-labels { grid-template-columns: repeat(2, 1fr); }
  .metric { font-size: 44px; }
  .contact-grid { grid-template-columns: 1fr; }
  .quote-text { font-size: 24px; }
  .section-head h2 { font-size: 32px; }
  .footer-mark { font-size: 40px; }
}

@media (max-width: 560px) {
  .hero-title { font-size: 32px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}
