:root {
  --charcoal: #2b2b2b;
  --charcoal-deep: #201f1d;
  --orange: #c9622a;
  --orange-light: #e0783e;
  --cream: #f4e3d7;
  --sand: #d8d3cc;
  --warm-gray: #757068;
  --warm-brown: #3a3530;
  --text-dark: #2b2b2b;
  --text-muted: #4a4a4a;
  --white: #ffffff;
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 16px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}

h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; }
h3 { font-size: 20px; letter-spacing: -0.2px; }

p { margin: 0; }

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
}

a { color: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover { background: var(--orange-light); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.7); }

.btn--ghost-dark {
  background: transparent;
  color: var(--text-dark);
  border-color: rgba(43,43,43,0.25);
}
.btn--ghost-dark:hover { border-color: rgba(43,43,43,0.6); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo svg { height: 30px; width: auto; }
.logo-word {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
}
.logo-word .q { color: var(--logo-primary, var(--text-dark)); }
.logo-word .a { color: var(--orange); }
.logo--light { --logo-primary: #ffffff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav.is-scrolled {
  background: rgba(43,43,43,0.92);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.nav-links {
  display: none;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
  white-space: nowrap;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--orange-light); }
.nav-cta { display: none; white-space: nowrap; }
@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--charcoal) url("assets/bg-dark.png") center/cover no-repeat;
  color: var(--white);
  padding: 180px 0 120px;
  overflow: hidden;
}
#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 40px;
}
.tag {
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.hero h1 { max-width: 780px; }
.hero .lede { color: rgba(255,255,255,0.75); margin-top: 22px; }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero-tagline {
  margin-top: 56px;
  font-style: italic;
  font-size: 17px;
  color: var(--orange-light);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  max-width: 560px;
}

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-light { background: var(--white); }
.section-tint { background: linear-gradient(180deg, #fbf7f4, #f4e3d7 140%); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head .lede { margin-top: 14px; }

/* Problem cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.problem-card {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
}
.problem-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(201,98,42,0.45), transparent 70%);
}
.problem-card h3 { font-size: 18px; margin-bottom: 10px; position: relative; }
.problem-card p { color: rgba(255,255,255,0.65); font-size: 14.5px; position: relative; }
.problem-foot {
  margin-top: 40px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 720px;
}
.problem-foot strong { color: var(--text-dark); }

/* Foundation diagram */
.foundation-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.pillar {
  background: var(--white);
  border: 1px solid rgba(43,43,43,0.1);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 12px 30px rgba(43,43,43,0.06);
}
.pillar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange);
  margin-bottom: 14px;
  box-shadow: 0 0 0 6px rgba(201,98,42,0.15);
}
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--text-muted); font-size: 14.5px; }
.pillar--foundation {
  background: linear-gradient(120deg, var(--orange), var(--orange-light));
  border-color: transparent;
}
.pillar--foundation .dot {
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.25);
}
.pillar--foundation h3 { color: var(--white); }
.pillar--foundation p { color: rgba(255,255,255,0.9); }

/* Services */
.services { display: grid; gap: 22px; }
.service {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--charcoal-deep);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 34px;
}
@media (max-width: 640px) {
  .service { grid-template-columns: 60px 1fr; padding: 26px; gap: 18px; }
}
.service-icon img { width: 64px; height: 64px; }
@media (max-width: 640px) { .service-icon img { width: 46px; height: 46px; } }
.service-num {
  font-size: 13px;
  color: var(--orange-light);
  font-weight: 700;
  letter-spacing: 1px;
}
.service-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  margin: 10px 0 6px;
}
.service h3 { color: var(--white); font-size: 24px; margin-bottom: 12px; }
.service p.desc { color: rgba(255,255,255,0.65); max-width: 560px; margin-bottom: 18px; }
.service ul {
  list-style: none;
  margin: 0 0 18px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.service ul li {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 7px 14px;
}
.service .quote {
  font-style: italic;
  color: var(--orange-light);
  font-size: 14.5px;
}

/* Process */
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}
@media (max-width: 900px) {
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .process-step:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .process-track { grid-template-columns: 1fr; }
  .process-step:last-child { grid-column: auto; }
}
.process-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 20px;
  border: 1px solid rgba(43,43,43,0.08);
  box-shadow: 0 10px 26px rgba(43,43,43,0.05);
}
.process-step .num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  margin-bottom: 16px;
}
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--text-muted); }

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.why-item .dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(201,98,42,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.why-item .dot span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--orange);
}
.why-item h3 { margin-bottom: 10px; }
.why-item p { color: var(--text-muted); font-size: 14.5px; }

/* CTA */
.cta {
  text-align: center;
  padding: 130px 0;
}
.cta .wrap { display: flex; flex-direction: column; align-items: center; }
.cta .logo { margin-bottom: 30px; }
.cta h2 { max-width: 640px; }
.cta .lede { margin: 20px auto 0; text-align: center; }
.cta-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }

/* Footer */
footer {
  background: var(--charcoal-deep);
  color: rgba(255,255,255,0.55);
  padding: 46px 0;
  font-size: 13.5px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer a { text-decoration: none; color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--orange-light); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
