:root {
  --bg-dark: #0b1110;
  --bg-dark-2: #111a18;
  --bg-light: #f4f5f1;
  --bg-soft: #ecefe8;
  --card: #ffffff;
  --text: #131714;
  --text-light: #e8eeea;
  --muted: #7f897f;
  --gold: #c8a768;
  --sage: #90a191;
  --border: #d7ddd4;
  --radius: 16px;
  --shadow: 0 22px 50px rgba(8, 12, 10, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  margin: 0 0 0.8rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-family: Manrope, Inter, sans-serif;
}

h1 { font-size: clamp(2.1rem, 4.9vw, 4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

.container { width: min(1160px, 92vw); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 13, 11, 0.92);
  border-bottom: 1px solid rgba(200, 167, 104, 0.22);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  height: 98px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  color: var(--text-light);
  font-size: 0.95rem;
}

.main-nav a { opacity: 0.94; }
.main-nav a:hover { color: var(--gold); opacity: 1; }

.menu-toggle {
  display: none;
  border: 1px solid rgba(200, 167, 104, 0.5);
  color: var(--text-light);
  background: transparent;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font: inherit;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 0.76rem 1.16rem;
  border: 1px solid transparent;
  background: var(--gold);
  color: #1a140b;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(200, 167, 104, 0.25); }
.btn-sm { padding: 0.55rem 0.96rem; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(200, 167, 104, 0.65); }

.hero {
  background: radial-gradient(circle at 85% 0%, #1f2a26 0%, #0b1110 52%, #090e0d 100%);
  color: var(--text-light);
  padding: 6.3rem 0 5.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 0.85rem;
}

.lead { color: #d3dcd5; max-width: 62ch; font-size: 1.06rem; }
.hero-cta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-panel {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(200, 167, 104, 0.38);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-panel h2 { font-size: 1.25rem; }
.hero-panel ul { margin: 0 0 0.8rem; padding: 0 0 0 1.1rem; }
.hero-panel li { margin-bottom: 0.52rem; color: #e1e8e3; }
.hero-panel p { color: #a8b6ab; margin: 0; font-size: 0.93rem; }

.signal-strip {
  background: #111916;
  color: var(--text-light);
  border-top: 1px solid rgba(200, 167, 104, 0.2);
  border-bottom: 1px solid rgba(200, 167, 104, 0.2);
  padding: 2.1rem 0;
}

.signal-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.signal-grid h2 { font-size: clamp(1.2rem, 2.1vw, 1.75rem); max-width: 28ch; }
.signal-points { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.signal-points span {
  border: 1px solid rgba(200, 167, 104, 0.42);
  color: #d6dfd8;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-size: 0.84rem;
}

.section { padding: 6.6rem 0; }
.section-soft { background: var(--bg-soft); }

section[id] {
  scroll-margin-top: 210px;
}

#example-output-anchor {
  display: block;
  position: relative;
  top: -210px;
  visibility: hidden;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: start;
}

.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.about-card ul { margin: 0; padding: 0 0 0 1rem; }
.about-card li { margin-bottom: 0.45rem; }

.cards-3x {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.14rem;
  box-shadow: 0 1px 0 rgba(15, 22, 17, 0.03);
}

.steps {
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.engine-carousel {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(200, 167, 104, 0.55);
  background: #fff;
  color: #7c622f;
  font-size: 1rem;
  cursor: pointer;
}

.engine-track-wrap {
  overflow: hidden;
}

.engine-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.engine-track::-webkit-scrollbar { display: none; }

.engine-slide {
  position: relative;
  flex: 0 0 clamp(300px, 34vw, 360px);
  max-width: 360px;
  min-width: 300px;
  min-height: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.engine-slide:nth-child(1) { background: linear-gradient(160deg, #edf3ef, #dfe9e3); border-color: #c0d0c5; }
.engine-slide:nth-child(2) { background: linear-gradient(160deg, #e3ece6, #d3e0d8); border-color: #b1c6b7; }
.engine-slide:nth-child(3) { background: linear-gradient(160deg, #d8e5dd, #c5d7cc); border-color: #9fb8a8; }
.engine-slide:nth-child(4) { background: linear-gradient(160deg, #cdded4, #b8cdbf); border-color: #8ca994; }
.engine-slide:nth-child(5) { background: linear-gradient(160deg, #c1d6ca, #a8bfaf); border-color: #789982; }
.engine-slide:nth-child(6) { background: linear-gradient(160deg, #b4cdbf, #96b09f); border-color: #65876f; }
.engine-slide:nth-child(7) { background: linear-gradient(160deg, #a6c2b2, #839d8e); border-color: #526e5d; }

.step-num {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(200, 167, 104, 0.65);
  color: #7c622f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0;
}

.engine-slide h3 {
  margin-bottom: 0.35rem;
  font-size: 1.04rem;
}

.engine-slide p {
  margin-bottom: 0;
  line-height: 1.45;
  font-size: 0.94rem;
}

.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.bullets { margin: 1rem 0 0; padding: 0; list-style: none; }
.bullets li { position: relative; padding-left: 1.05rem; margin-bottom: 0.62rem; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.boundary-grid > div {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem;
  box-shadow: 0 8px 24px rgba(12, 20, 16, 0.05);
}

.turnaround-line {
  color: #4f5851;
  margin: 1.25rem 0 0;
  max-width: none;
  white-space: nowrap;
}

.snapshot-cta {
  margin-top: 2rem;
  padding: 1.6rem;
  background: linear-gradient(160deg, #101714, #0d1311);
  color: var(--text-light);
  border: 1px solid rgba(200, 167, 104, 0.22);
  border-radius: var(--radius);
}

.snapshot-cta h3 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

.snapshot-cta p {
  color: #d5ddd7;
}

.snapshot-grid h4 {
  color: var(--text-light);
}

.snapshot-grid p {
  color: #d5ddd7;
}

.snapshot-grid .btn {
  color: #1a140b;
}

.snapshot-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.snapshot-grid > div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 167, 104, 0.2);
  border-radius: 12px;
  padding: 0.95rem;
}

.snapshot-grid h4 {
  margin-bottom: 0.45rem;
  font-size: 0.96rem;
}

.snapshot-grid ul {
  margin: 0;
  padding-left: 1rem;
}

.snapshot-grid li {
  margin-bottom: 0.4rem;
  color: #dce4df;
}

.snapshot-grid .btn {
  margin-top: 0.75rem;
}

@media (max-width: 820px) {
  .turnaround-line {
    white-space: normal;
  }

  .snapshot-grid {
    grid-template-columns: 1fr;
  }
}

.chips { display: flex; flex-wrap: wrap; gap: 0.58rem; margin-top: 1.1rem; }
.chips span {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
}

.example-output {
  margin-top: 3rem;
  padding-top: 1.6rem;
}

.example-head {
  margin-bottom: 0.7rem;
}

.example-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
}

.example-head p {
  margin: 0;
  color: #556159;
  font-size: 0.95rem;
}

.example-controls {
  margin-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.example-controls label {
  font-size: 0.85rem;
  color: #4f5b53;
  font-weight: 600;
}

.example-controls select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font: inherit;
  background: #fff;
}

.kpi-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: 0 10px 26px rgba(12, 20, 16, 0.06);
}

.kpi-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  color: #5b665f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  margin: 0;
  color: #0f1a14;
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.15;
}

.kpi-meta {
  margin: 0.32rem 0 0;
  color: #5e665f;
  font-size: 0.78rem;
  line-height: 1.35;
}

.chart-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.chart-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #dde4db;
  box-shadow: 0 14px 34px rgba(12, 20, 16, 0.08);
  padding: 0.95rem;
}

.chart-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.chart-card canvas {
  width: 100% !important;
  height: 290px !important;
  display: block;
}

.chart-empty {
  margin: 0.5rem 0 0;
  color: #5e665f;
  font-size: 0.86rem;
}

.insight-strip {
  margin-top: 0.95rem;
  background: #f9fbf8;
  border: 1px solid #dbe5da;
  border-radius: 12px;
  padding: 0.9rem;
}

.decision-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.insight-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c695f;
  font-weight: 700;
}

.insight-classification {
  margin: 0;
  font-size: 0.86rem;
  color: #1f3d2b;
  font-weight: 600;
  background: #ecf4eb;
  border: 1px solid #cadcc9;
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
}

.insight-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.insight-block {
  background: #ffffff;
  border: 1px solid #dde4db;
  border-radius: 10px;
  padding: 0.4rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.insight-block:hover {
  border-color: #c7d6c7;
  box-shadow: 0 10px 24px rgba(12, 20, 16, 0.06);
  transform: translateY(-1px);
}

.insight-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.72rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.insight-title {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4f5e55;
  font-weight: 600;
}

.insight-toggle-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ee;
  color: #395540;
  font-size: 1rem;
  font-weight: 700;
}

.insight-content {
  padding: 0 0.72rem 0.7rem;
}

.insight-toggle.is-open .insight-toggle-icon {
  content: "−";
}

.insight-toggle.is-open {
  border-color: #c7d6c7;
  box-shadow: 0 12px 26px rgba(12, 20, 16, 0.07);
}

.insight-toggle.is-open .insight-toggle-btn {
  padding-bottom: 0.45rem;
}

.insight-strip ul {
  margin: 0;
  padding-left: 1rem;
}

.insight-strip li {
  margin: 0.25rem 0;
  color: #24322b;
  font-size: 0.92rem;
}

.section-contact {
  background: linear-gradient(165deg, #101714, #0c1210);
  color: var(--text-light);
  border-top: 1px solid rgba(200, 167, 104, 0.2);
}

.contact-wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; }
.contact-wrap p { color: #d1dbd3; max-width: 60ch; }
.contact-actions { min-width: 270px; display: flex; flex-direction: column; gap: 0.65rem; }

.site-footer {
  background: #0a0f0d;
  color: #d4dbd5;
  border-top: 1px solid rgba(200, 167, 104, 0.24);
  padding: 1.15rem 0;
}

.footer-wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.92rem; }
.site-footer a { color: var(--gold); }

.intake-helper {
  margin: 1rem 0 0;
  color: #4f5851;
  max-width: 62ch;
}

.intake-offer-note {
  margin: 0.95rem 0 0;
  color: #395540;
  font-size: 0.95rem;
  font-weight: 600;
}

.intake-form {
  margin-top: 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

#intake-form {
  scroll-margin-top: 210px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.form-section {
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
}

.form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.form-section-compact {
  padding-top: 0;
}

.form-section-note {
  margin: 0 0 1rem;
  color: #5e665f;
  font-size: 0.92rem;
}

.form-span-2 {
  grid-column: span 2;
}

.form-assumption-note {
  margin: 1rem 0 0;
  color: #5e665f;
  font-size: 0.92rem;
  max-width: 62ch;
}

.required-progress {
  margin: 0 0 0.9rem;
  color: #5e665f;
  font-size: 0.88rem;
  font-weight: 600;
}

.required-sequence {
  min-height: 124px;
}

.required-step {
  animation: fadeIn 0.18s ease;
}

.required-actions {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.65rem;
}

.required-actions .btn[disabled] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.submit-block {
  margin-top: 1.1rem;
}

.submit-note {
  margin: 0 0 0.8rem;
  color: #4f5851;
  max-width: 52ch;
}

.wizard-actions {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.65rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.intake-form h3 {
  margin-bottom: 0.45rem;
}

.intake-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.intake-form textarea {
  margin-top: 0.3rem;
  resize: vertical;
}

.intake-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
}

.intake-actions p {
  margin: 0;
  color: #5e665f;
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .cards-3x { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid, .section-grid, .two-up, .contact-wrap, .signal-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  .signal-points { margin-top: 0.2rem; }
}

@media (max-width: 820px) {
  .nav-wrap { min-height: 102px; }
  .brand-logo { height: 76px; }

  .menu-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    position: absolute;
    right: 4vw;
    top: 96px;
    min-width: 230px;
    background: #131a17;
    border: 1px solid rgba(200, 167, 104, 0.3);
    border-radius: 12px;
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .main-nav.open { display: flex; }
  .main-nav .btn { width: 100%; }

  .cards-3x, .steps, .boundary-grid, .form-grid { grid-template-columns: 1fr; }
  .kpi-grid, .chart-grid, .insight-columns { grid-template-columns: 1fr; }
  .engine-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }

  .engine-track {
    gap: 0.7rem;
  }

  .engine-slide {
    flex-basis: 86%;
    max-width: none;
    min-width: 0;
    min-height: 250px;
  }
  .hero { padding: 5.2rem 0 4.5rem; }
}
