:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #11110f;
  --muted: #676760;
  --line: #deded8;
  --soft: #eeeee9;
  --dark: #11110f;
  --accent: #1f7a5c;
  --accent-soft: #dcece6;
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section-pad { padding: 120px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-color: var(--line); }
.nav-wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 650; letter-spacing: -0.035em; }
.brand > span:last-child > span { color: var(--accent); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center;
  background: var(--dark); color: white; font-weight: 750; letter-spacing: -0.08em; font-family: Georgia, serif;
}
.nav-menu { display: flex; align-items: center; gap: 32px; color: #393934; font-size: 14px; font-weight: 520; }
.nav-menu a { transition: opacity .2s ease; }
.nav-menu a:hover { opacity: .62; }
.nav-cta { padding: 11px 17px; border: 1px solid #c9c9c3; border-radius: 999px; background: rgba(255,255,255,.55); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; }
.menu-toggle span { display: block; width: 22px; height: 1px; background: var(--text); margin: 5px 0; }

.hero { padding-top: 104px; min-height: calc(100vh - 76px); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 74px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; color: #696963; display: flex; align-items: center; gap: 9px; margin-bottom: 24px; }
.eyebrow .dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px var(--accent-soft); }
.hero h1, .section-heading h2, .replace-copy h2, .metrics-copy h2, .contact-copy h2 { margin: 0; letter-spacing: -0.055em; font-weight: 610; line-height: .98; }
.hero h1 { font-size: clamp(56px, 6.6vw, 94px); max-width: 760px; }
.hero h1 span { color: #74746d; }
.hero-lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 650px; margin: 30px 0 34px; letter-spacing: -.015em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 50px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid transparent; font-weight: 620; font-size: 14px; cursor: pointer; transition: transform .2s ease, opacity .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--dark); color: white; }
.button-primary:hover { background: #272724; }
.button-ghost { border-color: #cecec8; background: transparent; }
.hero-note { margin-top: 28px; color: #898982; font-size: 12px; }

.hero-visual { min-width: 0; }
.visual-shell { border: 1px solid #d8d8d2; background: rgba(255,255,255,.66); border-radius: 24px; box-shadow: 0 30px 80px rgba(30,30,20,.07); overflow: hidden; }
.visual-topline { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e2e2dc; font-size: 12px; color: #5f5f59; }
.status { display: flex; align-items: center; gap: 7px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #2d9a71; box-shadow: 0 0 0 4px #e1f3ec; }
.flow { min-height: 360px; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center; gap: 14px; padding: 36px 22px; background: radial-gradient(circle at center, #fff 0, #fafaf7 48%, #f4f4ef 100%); }
.flow-side { display: grid; gap: 13px; }
.mini-card { padding: 15px 14px; border: 1px solid #deded8; border-radius: 13px; background: rgba(255,255,255,.76); display: grid; gap: 4px; box-shadow: 0 5px 16px rgba(30,30,20,.03); }
.mini-card span { font-size: 12px; font-weight: 680; }
.mini-card small { color: #8b8b84; font-size: 10px; }
.flow-core { position: relative; display: grid; place-items: center; min-height: 220px; }
.flow-core > span { position: absolute; bottom: 14px; font-size: 11px; color: #777770; }
.core-badge { width: 74px; height: 74px; border-radius: 22px; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 21px; font-weight: 720; z-index: 2; box-shadow: 0 16px 36px rgba(0,0,0,.15); }
.core-ring { position: absolute; border: 1px solid #d8d8d1; border-radius: 50%; }
.ring-1 { width: 132px; height: 132px; }
.ring-2 { width: 190px; height: 190px; opacity: .6; }
.visual-footer { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #e2e2dc; }
.visual-footer div { padding: 17px 18px; display: grid; gap: 5px; border-right: 1px solid #e2e2dc; }
.visual-footer div:last-child { border-right: 0; }
.visual-footer strong { font-size: 10px; color: #999992; }
.visual-footer span { font-size: 11px; font-weight: 620; }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.25); }
.trust-grid { min-height: 84px; display: grid; grid-template-columns: repeat(6,1fr); align-items: center; text-align: center; color: #797972; font-size: 12px; }
.trust-grid span { padding: 12px; }

.section-heading { max-width: 850px; margin-bottom: 54px; }
.section-heading.narrow { max-width: 690px; }
.section-heading h2, .replace-copy h2, .contact-copy h2 { font-size: clamp(40px, 4.2vw, 62px); }
.section-heading p, .replace-copy p, .contact-copy p { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 700px; margin: 24px 0 0; }
.cards-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.feature-card { min-height: 310px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.56); display: flex; flex-direction: column; transition: background .2s ease, transform .2s ease; }
.feature-card:hover { background: #fff; transform: translateY(-2px); }
.card-index { color: #9a9a93; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.feature-card h3 { margin: 68px 0 14px; font-size: 26px; letter-spacing: -.035em; font-weight: 610; }
.feature-card p { color: var(--muted); line-height: 1.6; max-width: 540px; margin: 0 0 28px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tag-row span { padding: 7px 10px; border-radius: 999px; background: var(--soft); font-size: 10px; color: #6b6b65; }

.replace-section { background: #efefe9; border-top: 1px solid #e0e0da; border-bottom: 1px solid #e0e0da; }
.replace-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 80px; align-items: start; }
.text-link { display: inline-flex; gap: 7px; margin-top: 30px; font-weight: 650; font-size: 14px; border-bottom: 1px solid #999991; padding-bottom: 4px; }
.replace-list { border-top: 1px solid #d1d1ca; }
.replace-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; padding: 25px 0; border-bottom: 1px solid #d1d1ca; font-size: 14px; }
.replace-row span { color: #71716b; }
.replace-row b { font-weight: 620; }

.process-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }
.process-step { padding: 32px 28px 10px 0; min-height: 260px; border-right: 1px solid var(--line); }
.process-step + .process-step { padding-left: 28px; }
.process-step:last-child { border-right: 0; }
.process-step > span { font-size: 11px; color: #999992; font-weight: 700; }
.process-step h3 { margin: 72px 0 12px; font-size: 22px; letter-spacing: -.035em; }
.process-step p { margin: 0; color: var(--muted); line-height: 1.58; font-size: 14px; }

.metrics-section { padding-top: 20px; }
.metrics-panel { border-radius: 26px; background: var(--dark); color: white; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: end; }
.eyebrow.light { color: #8f8f88; }
.metrics-copy h2 { font-size: clamp(42px, 4.8vw, 68px); max-width: 620px; }
.metrics-grid { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid #34342f; border-left: 1px solid #34342f; }
.metrics-grid div { min-height: 140px; padding: 22px; border-right: 1px solid #34342f; border-bottom: 1px solid #34342f; display: flex; flex-direction: column; justify-content: space-between; }
.metrics-grid strong { font-size: 28px; font-weight: 450; color: #8f8f88; }
.metrics-grid span { font-size: 13px; color: #d8d8d3; }

.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 90px; align-items: start; }
.contact-meta { margin-top: 34px; display: grid; gap: 8px; color: #6f6f68; font-size: 13px; }
.contact-meta a { color: var(--text); font-weight: 600; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: grid; gap: 18px; box-shadow: 0 20px 50px rgba(30,30,20,.05); }
.contact-form label { display: grid; gap: 8px; font-size: 12px; font-weight: 650; color: #4c4c47; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #d7d7d0; background: #fafaf8; border-radius: 10px; padding: 13px 14px; outline: none; color: var(--text); transition: border-color .2s ease, box-shadow .2s ease; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #a3a39c; box-shadow: 0 0 0 3px #eeeeea; }
.button-full { width: 100%; }
.form-note { margin: -5px 0 0; text-align: center; color: #8b8b84; font-size: 10px; line-height: 1.5; }

.site-footer { border-top: 1px solid var(--line); }
.footer-wrap { min-height: 120px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; }
.footer-copy { text-align: center; color: #888881; font-size: 11px; }
.footer-links { justify-self: end; display: flex; gap: 18px; font-size: 11px; color: #6d6d67; }
.footer-brand { font-size: 16px; }
.footer-brand .brand-mark { width: 27px; height: 27px; border-radius: 8px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .section-pad { padding: 90px 0; }
  .hero { min-height: auto; padding-top: 70px; }
  .hero-grid, .replace-grid, .contact-grid, .metrics-panel { grid-template-columns: 1fr; gap: 54px; }
  .hero-copy { max-width: 760px; }
  .trust-grid { grid-template-columns: repeat(3,1fr); padding: 12px 0; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(3), .process-step:nth-child(4) { border-top: 1px solid var(--line); }
  .metrics-panel { padding: 46px; }
  .footer-wrap { grid-template-columns: 1fr; padding: 34px 0; justify-items: start; }
  .footer-copy { text-align: left; }
  .footer-links { justify-self: start; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav-wrap { height: 68px; }
  .menu-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 68px; left: 14px; right: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px;
    background: #fafaf7; display: none; flex-direction: column; align-items: stretch; gap: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.08);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 10px; }
  .nav-cta { text-align: center; margin-top: 5px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .flow { min-height: 300px; grid-template-columns: 1fr 1fr; }
  .flow-core { grid-column: 1 / -1; grid-row: 1; min-height: 150px; }
  .flow-side { grid-row: 2; }
  .ring-2 { width: 156px; height: 156px; }
  .ring-1 { width: 112px; height: 112px; }
  .core-badge { width: 64px; height: 64px; }
  .visual-footer { grid-template-columns: 1fr; }
  .visual-footer div { border-right: 0; border-bottom: 1px solid #e2e2dc; }
  .visual-footer div:last-child { border-bottom: 0; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .cards-grid, .process-grid, .metrics-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 280px; }
  .feature-card h3 { margin-top: 52px; }
  .replace-row { grid-template-columns: 1fr; gap: 8px; }
  .process-step, .process-step + .process-step { padding: 28px 0; min-height: auto; border-right: 0; border-top: 1px solid var(--line); }
  .process-step:first-child { border-top: 0; }
  .process-step h3 { margin-top: 38px; }
  .metrics-panel { padding: 28px; }
  .metrics-grid { border-left: 0; }
  .metrics-grid div { min-height: 112px; }
  .contact-form { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
