/* ============================================================
   MC3 Tech Labs — Public Site Design System
   Charcoal + Gold. Inter. Mobile-first. Accessible (WCAG AA).
   ============================================================ */

:root {
  --charcoal-900: #14161B;
  --charcoal-800: #1A1C22;
  --charcoal-700: #23262D;
  --charcoal-600: #2F333D;
  --gold-500: #C8A84B;
  --gold-400: #D4B85E;
  --gold-600: #A8893A;
  --gold-100: rgba(200, 168, 75, 0.12);
  --gold-200: rgba(200, 168, 75, 0.28);
  --ink: #FAFAFA;
  --muted: #A1A1AA;
  --muted-2: #71717A;
  --line: #2F333D;
  --line-soft: rgba(255, 255, 255, 0.07);
  --build: #3B82F6;
  --ai: #8B5CF6;
  --manage: #10B981;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--charcoal-900);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.band { background: var(--charcoal-800); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-500); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold-500); display: inline-block; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content: ''; width: 22px; height: 2px; background: var(--gold-500); display: inline-block; }

.lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.gold { color: var(--gold-500); }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(20, 22, 27, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer; font-size: 1.2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  padding: 0 20px; min-height: 46px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold-500); color: #16181D; }
.btn-primary:hover { background: var(--gold-400); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-400); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--charcoal-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-200); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.4em; }
.card .icon {
  width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: var(--gold-100); color: var(--gold-500); font-size: 1.2rem; margin-bottom: 16px;
}
.card p:last-child { margin-bottom: 0; }
.card .link { color: var(--gold-500); font-weight: 600; font-size: 0.9rem; display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }

.pill {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: var(--gold-100); color: var(--gold-400); border: 1px solid var(--gold-200);
}
.pill.build { background: rgba(59,130,246,0.12); color: #93C5FD; border-color: rgba(59,130,246,0.3); }
.pill.ai { background: rgba(139,92,246,0.12); color: #C4B5FD; border-color: rgba(139,92,246,0.3); }
.pill.manage { background: rgba(16,185,129,0.12); color: #6EE7B7; border-color: rgba(16,185,129,0.3); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--muted-2); font-size: 0.85rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row i { color: var(--gold-500); }

.hero-panel {
  background: linear-gradient(160deg, var(--charcoal-700), var(--charcoal-800));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg);
}
.hero-panel h3 { font-size: 1.05rem; }
.svc-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.svc-row:last-child { border-bottom: none; }
.svc-row .icon { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.svc-row .icon.b { background: rgba(59,130,246,0.14); color: #93C5FD; }
.svc-row .icon.a { background: rgba(139,92,246,0.14); color: #C4B5FD; }
.svc-row .icon.m { background: rgba(16,185,129,0.14); color: #6EE7B7; }
.svc-row strong { display: block; font-size: 0.95rem; }
.svc-row p { font-size: 0.85rem; margin: 2px 0 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.step { background: var(--charcoal-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 0.72rem; font-weight: 700; color: var(--gold-500); letter-spacing: 0.1em;
}
.step h4 { font-size: 0.98rem; margin: 8px 0 4px; }
.step p { font-size: 0.82rem; margin: 0; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .amount { font-size: 2rem; font-weight: 700; color: var(--gold-500); letter-spacing: -0.03em; }
.price-card .amount small { font-size: 0.85rem; color: var(--muted-2); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.price-card li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--muted); padding: 5px 0; }
.price-card li i { color: var(--gold-500); margin-top: 4px; font-size: 0.75rem; }
.price-card.featured { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-200), var(--shadow-md); }
.price-card .tag { align-self: flex-start; margin-bottom: 10px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field .req { color: var(--gold-500); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 0.95rem; color: var(--ink);
  background: var(--charcoal-900); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 48px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-100);
}
.field .hint { font-size: 0.78rem; color: var(--muted-2); margin-top: 6px; }
.form-note { font-size: 0.8rem; color: var(--muted-2); }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 0.9rem; display: none; }
.form-status.ok { display: block; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.35); color: #6EE7B7; }
.form-status.err { display: block; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.35); color: #FCA5A5; }

/* ---------- Impact / band ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.stat { background: var(--charcoal-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .n { font-size: 1.7rem; font-weight: 700; color: var(--gold-500); }
.stat .l { font-size: 0.8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--charcoal-800); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 0.98rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold-500); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq .answer { padding: 0 22px 18px; color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--charcoal-700), var(--charcoal-800));
  border: 1px solid var(--gold-200); border-radius: var(--radius-lg);
  padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 0.2em; }
.cta-band p { margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--charcoal-800); border-top: 1px solid var(--line-soft); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand img { height: 46px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted-2); }

/* ---------- Utility ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold-500); color: #16181D; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 34px; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.divider { height: 1px; background: var(--line-soft); margin: 40px 0; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 76px; left: 0; right: 0; background: var(--charcoal-800);
    border-bottom: 1px solid var(--line); padding: 20px 24px; gap: 18px;
  }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 62px 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 30px; }
  .nav-cta .btn-ghost { display: none; }
  .stat-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
