:root {
  --bg: #F8F7F3;
  --bg-soft: #EFEEE7;
  --bg-card: #FFFFFF;
  --ink: #1E232B;
  --ink-2: #3B4A5A;
  --steel: #5B7C99;
  --steel-dark: #47617A;
  --steel-deep: #38506A;
  --steel-soft: #A9BCCA;
  --charcoal: #3B4A5A;
  --charcoal-dark: #2A3542;
  --rule: #D8D6CE;
  --cream: #F8F7F3;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--steel-dark);
  text-decoration: none;
}

a:hover {
  color: var(--steel-deep);
}

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-dark);
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 800;
}

/* ---------- Anvil Navigation ---------- */
.anvil-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-card);
  border-bottom: 2px solid var(--steel);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.wordmark {
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.anvil-mark {
  position: relative;
  width: 30px;
  height: 32px;
  display: inline-block;
  flex-shrink: 0;
}

.anvil-mark .anvil-body {
  position: absolute;
  inset: 0;
  background: var(--steel);
  clip-path: polygon(8% 0%, 92% 0%, 92% 16%, 70% 44%, 70% 100%, 30% 100%, 30% 44%, 8% 16%);
}

.anvil-mark .anvil-face {
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 13%;
  background: var(--steel-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--steel-dark);
}

.nav-cta {
  display: inline-block;
  background-color: var(--steel);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: var(--steel-dark);
  color: #FFFFFF;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.toggle-bar {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--ink);
  border-radius: 2px;
}

/* ---------- Gears Hero ---------- */
.gears-hero {
  background-color: var(--bg);
  padding: 80px 0 70px;
  border-bottom: 1px solid var(--rule);
}

.gears-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.gears-copy h1 {
  font-size: 44px;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 4px;
  cursor: pointer;
  border: 0;
}

.btn-primary {
  background-color: var(--steel);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--steel-dark);
  color: #FFFFFF;
}

.btn-ghost {
  background-color: transparent;
  color: var(--steel-dark);
  border: 2px solid var(--steel);
}

.btn-ghost:hover {
  background-color: var(--steel);
  color: #FFFFFF;
}

/* Gears visual */
.gears-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.gears-stage {
  position: relative;
  width: 420px;
  height: 360px;
}

.gear {
  position: absolute;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--c) 0deg 12deg, transparent 12deg 24deg);
}

.gear-a {
  --c: #5B7C99;
  --hub: #3B4A5A;
  --hole: #F8F7F3;
  width: 230px;
  height: 230px;
  top: 0;
  left: 20px;
  z-index: 1;
  animation: spin 42s linear infinite;
}

.gear-b {
  --c: #3B4A5A;
  --hub: #5B7C99;
  --hole: #F8F7F3;
  width: 176px;
  height: 176px;
  top: 180px;
  left: 200px;
  z-index: 2;
  animation: spin 30s linear infinite reverse;
}

.gear .wheel {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: var(--c);
}

.gear .hub {
  position: absolute;
  top: 41%;
  left: 41%;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: var(--hub);
}

.gear .hub::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34%;
  height: 34%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--hole);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Statement ---------- */
.statement {
  background-color: var(--charcoal-dark);
  color: #FFFFFF;
  text-align: center;
  padding: 64px 0;
}

.statement-line {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  max-width: 760px;
  margin: 0 auto 14px;
  color: #FFFFFF;
}

.statement-note {
  font-size: 17px;
  color: var(--steel-soft);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- About ---------- */
.about-section {
  background-color: var(--bg);
  padding: 84px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

.about-heading h2 {
  font-size: 34px;
}

.about-copy p {
  color: var(--ink-2);
  margin-bottom: 18px;
  font-size: 17px;
}

.about-points {
  list-style: none;
  margin-top: 8px;
}

.about-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 600;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  background: var(--steel);
  border-radius: 2px;
}

/* ---------- Stats ---------- */
.stats-section {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 54px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  padding: 8px 0;
}

.stat-num {
  display: block;
  font-size: 52px;
  font-weight: 800;
  color: var(--steel-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Solutions ---------- */
.solutions-section {
  background-color: var(--bg);
  padding: 84px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: 34px;
  margin-bottom: 14px;
}

.section-lead {
  color: var(--ink-2);
  font-size: 17px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.solution {
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--steel);
  border-radius: 6px;
  padding: 30px;
}

.solution-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--steel-dark);
  background-color: var(--bg-soft);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.solution h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.solution p {
  color: var(--ink-2);
}

/* ---------- Process ---------- */
.process-section {
  background-color: var(--bg-soft);
  padding: 84px 0;
  border-top: 1px solid var(--rule);
}

.process-list {
  list-style: none;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 26px;
  padding-bottom: 40px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 54px;
  bottom: 0;
  width: 2px;
  background-color: var(--steel-soft);
}

.process-step:last-child::before {
  display: none;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  background-color: var(--steel);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 20px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.step-body h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.step-body p {
  color: var(--ink-2);
}

/* ---------- Compare ---------- */
.compare-section {
  background-color: var(--bg);
  padding: 84px 0;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.compare-table thead th {
  background-color: var(--charcoal-dark);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
}

.compare-table thead th:first-child {
  text-align: left;
}

.compare-table tbody th {
  color: var(--ink);
  font-weight: 700;
}

.compare-table tbody tr:nth-child(even) {
  background-color: var(--bg-soft);
}

.compare-table .has {
  color: var(--steel-deep);
  font-weight: 700;
}

.compare-table .partial {
  color: var(--ink-2);
}

.compare-table .none {
  color: var(--ink-2);
}

/* ---------- FAQ ---------- */
.faq-section {
  background-color: var(--bg-soft);
  padding: 84px 0;
  border-top: 1px solid var(--rule);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 20px 56px 20px 22px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--steel-dark);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  padding: 0 22px 22px;
  color: var(--ink-2);
}

/* ---------- CTA / Contact ---------- */
.cta-section {
  background-color: var(--charcoal-dark);
  padding: 84px 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.cta-copy .eyebrow {
  color: var(--steel-soft);
}

.cta-copy h2 {
  color: #FFFFFF;
  font-size: 34px;
  margin-bottom: 16px;
}

.cta-copy p {
  color: #E6EBEF;
  margin-bottom: 22px;
}

.cta-contacts {
  list-style: none;
}

.cta-contacts li {
  margin-bottom: 10px;
}

.cta-contacts .c-label {
  display: inline-block;
  width: 64px;
  font-weight: 700;
  color: var(--steel-soft);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.cta-contacts a {
  color: #FFFFFF;
  font-weight: 600;
}

.cta-contacts a:hover {
  color: var(--steel-soft);
}

.contact-form {
  background-color: var(--bg-card);
  border-radius: 6px;
  padding: 30px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background-color: #FFFFFF;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--steel);
  border-color: var(--steel);
}

.form-submit {
  width: 100%;
}

.form-status {
  margin-top: 12px;
  font-weight: 600;
  color: var(--steel-deep);
  min-height: 1.5em;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--bg);
  border-top: 3px solid var(--steel);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-about p {
  color: var(--ink-2);
  font-size: 15px;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: var(--ink-2);
  font-size: 15px;
}

.footer-col a:hover {
  color: var(--steel-dark);
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

.footer-bottom p {
  color: var(--ink-2);
  font-size: 14px;
}

/* ---------- Reveal animation ---------- */
.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: 960px) {
  .gears-hero-inner {
    grid-template-columns: 1fr;
  }
  .gears-copy h1 {
    font-size: 36px;
  }
  .gears-visual {
    order: 2;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 0 4px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    display: block;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--rule);
    font-size: 16px;
  }
  .nav-cta {
    display: none;
  }
  .nav-inner .nav-cta.nav-cta-mobile {
    display: block;
  }
  .gears-copy h1 {
    font-size: 30px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .statement-line {
    font-size: 24px;
  }
  .gears-visual {
    min-height: 240px;
  }
  .gears-stage {
    transform: scale(0.6);
    transform-origin: top center;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    text-align: center;
  }
  .process-step {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }
  .step-num {
    width: 56px;
    height: 56px;
    font-size: 17px;
  }
  .process-step::before {
    left: 27px;
    top: 46px;
  }
}
