/* ==========================================================================
   BuildMyAI — shared stylesheet
   Design language: "Forge & Circuit" — Sheffield steel heritage meets
   AI workflow engineering. Deliberately avoids the generic purple/blue
   AI-SaaS gradient look: dark graphite + brushed-steel + molten-copper.
   ========================================================================== */

:root {
  --bg: #14161a;
  --bg-alt: #1a1d22;
  --panel: #1e2228;
  --panel-2: #242830;
  --border: #2d323b;
  --border-light: #3a404b;

  --text: #f3f1ec;
  --text-muted: #a7adb8;
  --text-faint: #6b717c;

  --copper: #e2823f;
  --copper-dark: #b9631f;
  --copper-light: #f4a565;
  --steel: #8b96a3;
  --steel-dark: #5b6472;
  --teal: #6fae9a;

  --radius: 4px;
  --radius-lg: 10px;
  --maxw: 1180px;

  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  background-attachment: fixed;
  background-position: center top;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--copper-light); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-muted); }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--copper);
  display: inline-block;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 22, 26, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; flex: none;
}
.logo .brand-build { color: var(--text); }
.logo .brand-ai { color: var(--copper); font-family: var(--font-mono); }

nav.primary-nav ul { display: flex; gap: 30px; align-items: center; }
nav.primary-nav a {
  color: var(--text-muted); font-size: 14.5px; font-weight: 500;
}
nav.primary-nav a:hover, nav.primary-nav a.active { color: var(--text); text-decoration: none; }
nav.primary-nav a.active { color: var(--copper-light); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-light);
  color: var(--text); width: 40px; height: 40px; border-radius: var(--radius);
  cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--copper); color: #191008; }
.btn-primary:hover { background: var(--copper-light); }
.btn-outline { background: transparent; border-color: var(--border-light); color: var(--text); }
.btn-outline:hover { border-color: var(--copper); color: var(--copper-light); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); }
.hero h1 .accent { color: var(--copper); }
.hero .lede { font-size: 18.5px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-actions--center { justify-content: center; }

.hero-kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--copper);
  margin-bottom: 18px;
}

.hero-art { position: relative; }

/* ---------- Hero flow diagram ---------- */
.flow-tag {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  margin-bottom: 16px; text-align: center;
}
.flow { display: flex; flex-direction: column; align-items: center; }
.flow-step {
  width: 100%; max-width: 360px;
  background: var(--panel); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 16px 20px; display: flex; align-items: center; gap: 16px;
}
.flow-step--agent {
  background: linear-gradient(135deg, var(--copper-dark), var(--copper));
  border-color: var(--copper-light);
  box-shadow: 0 10px 34px -12px rgba(226, 130, 63, .55);
  transform: scale(1.04);
}
.flow-step--done { border-color: var(--teal); }
.flow-icon {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
  color: var(--copper);
}
.flow-icon svg { width: 22px; height: 22px; }
.flow-step--agent .flow-icon { background: rgba(26, 16, 6, .18); color: #1a1006; }
.flow-step--done .flow-icon { color: var(--teal); }
.flow-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.flow-label { font-weight: 700; font-size: 15.5px; color: var(--text); }
.flow-sub { font-size: 12.5px; color: var(--text-muted); }
.flow-step--agent .flow-label,
.flow-step--agent .flow-sub { color: #1a1006; }
.flow-step--agent .flow-sub { color: #3a2410; }
.flow-arrow-wrap { height: 40px; display: flex; align-items: center; justify-content: center; }
.flow-arrow-path { stroke-dasharray: 5 6; animation: flowmove 0.9s linear infinite; }
@keyframes flowmove { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) {
  .flow-arrow-path { animation: none; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head.left { margin-left: 0; text-align: left; }

.bg-alt { background: var(--bg-alt); }

/* ---------- Stack pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; position: relative;
}
.pillar .tag {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em;
  color: var(--bg); background: var(--copper); display: inline-block;
  padding: 3px 9px; border-radius: 3px; margin-bottom: 18px;
}
.pillar h3 { font-size: 19px; margin-bottom: 10px; }
.pillar p { font-size: 14.5px; margin-bottom: 14px; }
.pillar a.stack-link { font-family: var(--font-mono); font-size: 12.5px; color: var(--steel); }
.pillar a.stack-link:hover { color: var(--copper-light); }
.pillar-icon { width: 34px; height: 34px; color: var(--copper); margin-bottom: 16px; }

/* ---------- Services / cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px;
}
.card h3 { font-size: 20px; }
.card .num { font-family: var(--font-mono); color: var(--copper); font-size: 13px; margin-bottom: 12px; display: block; }
.card ul { margin-top: 14px; }
.card ul li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 14.5px; color: var(--text-muted); }
.card ul li::before { content: "→"; position: absolute; left: 0; color: var(--copper); font-family: var(--font-mono); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.process::before {
  content: ""; position: absolute; top: 22px; left: 6%; right: 6%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-light) 0 8px, transparent 8px 14px);
}
.step { position: relative; padding: 0 18px; text-align: left; }
.step .step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--copper);
  color: var(--copper); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; margin-bottom: 18px; position: relative; z-index: 2;
}
.step h3 { font-size: 16.5px; }
.step p { font-size: 13.5px; }

/* ---------- Sheffield / local ---------- */
.local-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px;
}
.local-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; color: var(--text-muted); }
.local-list li svg { flex: none; width: 20px; height: 20px; color: var(--teal); margin-top: 2px; }

/* ---------- Founder panel ---------- */
.founder-panel {
  display: flex; align-items: center; gap: 44px;
  max-width: 760px; margin: 0 auto;
}
.founder-photo {
  flex: none; width: 168px; height: 168px; border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border-light); background: var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-faint);
}
.founder-photo svg { width: 40px; height: 40px; }
.founder-photo span { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.founder-bio { flex: 1; min-width: 0; }
.founder-bio h3 { font-size: 20px; margin-bottom: 10px; }
.founder-bio p { margin-bottom: 0; }
@media (max-width: 640px) {
  .founder-panel { flex-direction: column; text-align: center; gap: 24px; }
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-family: var(--font-body); font-size: 17px; font-weight: 600; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 20px;
}
.faq-q .plus { font-family: var(--font-mono); color: var(--copper); font-size: 20px; flex: none; transition: transform .2s ease; }
.faq-item[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a { padding: 0 0 22px; margin: 0; max-width: 70ch; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--copper-dark), var(--copper));
  border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #1a1006;
}
.cta-band h2 { color: #1a1006; }
.cta-band p { color: #3a2410; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: #1a1006; color: #f3d9b8; }
.cta-band .btn-primary:hover { background: #2a1c0e; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-family: var(--font-mono); color: var(--text-faint); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: var(--radius);
  color: var(--text); font-family: var(--font-body); font-size: 15px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 120px; }
.note-callout {
  border: 1px dashed var(--border-light); border-radius: var(--radius); padding: 14px 16px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); margin-top: 16px;
}

/* ---------- NAP / footer ---------- */
footer.site-footer { padding: 64px 0 40px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { color: var(--text-muted); font-size: 14.5px; }
.footer-grid ul li a:hover { color: var(--copper-light); }
.footer-brand p { max-width: 34ch; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }

/* ---------- Badges ---------- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  font-family: var(--font-mono); font-size: 12px; color: var(--steel); border: 1px solid var(--border-light);
  padding: 5px 10px; border-radius: 20px;
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); max-width: 22ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-faint); }

/* ---------- Placeholder callouts (for the user to edit) ---------- */
.todo {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; color: var(--teal);
  border: 1px solid var(--teal); border-radius: 3px; padding: 1px 7px; margin-left: 8px; vertical-align: middle;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .grid-2, .contact-grid, .local-panel { grid-template-columns: 1fr; }
  .pillars, .grid-3 { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; gap: 30px; }
  .process::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  nav.primary-nav { position: fixed; inset: 72px 0 0 0; background: var(--bg); padding: 30px 24px; display: none; z-index: 49; }
  nav.primary-nav.open { display: block; }
  nav.primary-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  nav.primary-nav a { font-size: 20px; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .nav-cta .btn-outline { display: none; }
  .pillars, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .local-panel { padding: 30px 22px; }
  section { padding: 60px 0; }
}
