:root {
  --ink: #18211f;
  --muted: #66706d;
  --paper: #f4f6f3;
  --line: #dce2df;
  --accent: #e9674f;
  --accent-dark: #c94e39;
  --dark: #17201e;
  --container: min(1120px, calc(100% - 48px));
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(233,103,79,.25); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: 0; }

.cap-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; width: var(--container); min-height: 84px; margin: 0 auto; gap: 24px; background: rgba(244,246,243,.86); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(24,33,31,.28); border-radius: 50%; font-size: 13px; }
.cap-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 22px; border: 1px solid transparent; border-radius: 26px; background: transparent; font: inherit; font-weight: 750; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); }
.button-ghost { border-color: rgba(24,33,31,.22); background: #fff; color: var(--ink); }
.eyebrow { margin-bottom: 14px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

main { width: var(--container); margin: 0 auto; }
.cap-hero { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); gap: 54px; min-height: 560px; align-items: end; padding: 92px 0 70px; border-bottom: 1px solid var(--line); }
.cap-hero h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(44px, 5.8vw, 76px); font-weight: 540; }
.cap-hero-copy > p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 20px; }
.cap-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cap-hero-scope { padding: 30px; border-radius: 14px; background: linear-gradient(150deg,#24302c 0%,#17201e 100%); color: #fff; box-shadow: 0 22px 60px rgba(24,33,31,.12); }
.cap-hero-scope > span { display: block; margin-bottom: 18px; color: #f49b88; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.cap-hero-scope p { margin-bottom: 24px; color: rgba(255,255,255,.74); }
.cap-hero-scope ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cap-hero-scope li { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); font-weight: 700; }
.print-brand, .pdf-contact { display: none; }

.cap-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; padding: 34px 0 92px; }
.cap-summary article { min-height: 178px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cap-summary span { display: block; margin-bottom: 28px; color: var(--accent); font-size: 12px; font-weight: 850; }
.cap-summary strong { display: block; margin-bottom: 10px; font-size: 20px; line-height: 1.15; }
.cap-summary p { margin: 0; color: var(--muted); }

.cap-section { padding: 86px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: .48fr 1fr; gap: 50px; margin-bottom: 34px; align-items: end; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4.2vw, 54px); font-weight: 570; }
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.cap-grid article { min-height: 250px; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cap-card-label { display: block; margin-bottom: 34px; color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.cap-grid h3 { margin-bottom: 18px; font-size: 24px; font-weight: 620; }
.cap-grid p { margin: 0; color: var(--muted); }

.section-lead { max-width: 760px; margin: -10px 0 34px auto; color: var(--muted); font-size: 19px; }
.custom-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.custom-grid article { min-height: 260px; padding: 30px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.custom-grid article > span { display: block; margin-bottom: 48px; color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.custom-grid h3 { margin-bottom: 16px; font-size: clamp(25px,2.6vw,34px); font-weight: 620; }
.custom-grid p { max-width: 500px; margin: 0; color: var(--muted); }

.cap-band { width: calc(100% + 64px); margin-left: -32px; padding: 72px 32px; border: 0; border-radius: 14px; background: linear-gradient(150deg, #24302c 0%, #17201e 74%); color: #fff; }
.cap-band h2 { color: #fff; }
.data-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: hidden; border-radius: 10px; }
.data-grid article { display: grid; min-height: 150px; align-content: space-between; gap: 24px; padding: 24px; background: rgba(255,255,255,.07); }
.data-grid strong { font-size: 22px; }
.data-grid span { color: rgba(255,255,255,.68); }

.deployment-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.75fr); gap: 30px; align-items: stretch; }
.deployment-copy { display: grid; align-content: center; gap: 18px; padding: 12px 5% 12px 0; }
.deployment-copy p { margin: 0; color: #38423d; font-size: clamp(20px,2.2vw,28px); line-height: 1.4; }
.deployment-card { padding: 32px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.deployment-card > span { display: block; margin-bottom: 26px; color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.deployment-card ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.deployment-card li { padding-top: 14px; border-top: 1px solid var(--line); color: #38423d; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; gap: 26px; min-height: 260px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.steps span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 800; }
.steps strong { display: block; margin-bottom: 10px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); }

.cap-note { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 36px; align-items: end; margin: 20px 0 70px; padding: 46px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cap-note h2 { margin-bottom: 16px; font-size: clamp(31px, 3.8vw, 48px); font-weight: 570; }
.cap-note p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); }
.cap-note-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.modal { position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,22,20,.74); backdrop-filter: blur(8px); }
.modal-panel { position: relative; z-index: 1; width: min(620px,100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 42px; border-radius: 12px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.24); }
.modal-panel h2 { margin-bottom: 28px; font-size: clamp(29px,4vw,42px); font-weight: 570; }
.modal-close { position: absolute; z-index: 3; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 25px; cursor: pointer; }
.lead-form { display: grid; gap: 15px; align-content: start; }
.lead-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.lead-form input, .lead-form textarea { width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid #b9c1be; outline: none; background: transparent; color: var(--ink); resize: vertical; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #929a97; }
.form-note { margin: 0; color: var(--muted); font-size: 11px; }
.form-note a { color: var(--accent); text-decoration: underline; }
.form-status { min-height: 22px; margin: 0; font-size: 13px; }
.honeypot { position: absolute !important; left: -9999px !important; }
body.modal-open { overflow: hidden; }

@media (max-width: 920px) {
  :root { --container: min(100% - 30px, 680px); }
  .cap-header { position: static; min-height: auto; padding: 20px 0; flex-direction: column; align-items: flex-start; }
  .cap-actions { justify-content: flex-start; }
  .section-heading, .cap-note { grid-template-columns: 1fr; }
  .cap-note-actions { justify-content: flex-start; }
  .cap-hero { grid-template-columns: 1fr; min-height: auto; padding: 70px 0 52px; }
  .cap-summary, .cap-grid, .custom-grid, .data-grid, .steps, .deployment-layout { grid-template-columns: 1fr; }
  .section-lead { margin-left: 0; }
  .cap-section { padding: 64px 0; }
  .cap-band { width: 100%; margin-left: 0; padding: 56px 24px; }
  .deployment-copy { padding: 0; }
  .cap-note { padding: 34px 24px; }
  .modal-panel { padding: 30px 20px; }
}

@media (max-width: 560px) {
  .cap-actions, .cap-actions .button, .cap-hero-actions, .cap-hero-actions .button, .cap-note-actions, .cap-note .button { width: 100%; }
  .cap-hero h1 { font-size: 43px; }
  .cap-hero-scope { padding: 26px 22px; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; color: #111; font-size: 12px; }
  .cap-header, .cap-actions, .cap-hero-actions, .cap-note .button { display: none !important; }
  main { width: 100%; }
  .cap-hero { grid-template-columns: 1fr .55fr; gap: 18px; min-height: auto; padding: 0 0 22px; }
  .cap-hero h1 { font-size: 34px; }
  .cap-hero-copy > p:not(.eyebrow) { font-size: 14px; }
  .print-brand { display: block; margin-bottom: 28px; color: #111; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
  .cap-hero-scope { padding: 16px; background: #f2f2f2; color: #111; box-shadow: none; }
  .cap-hero-scope p { color: #444; }
  .cap-hero-scope p, .cap-hero-scope li { border-color: #ccc; font-size: 10px; }
  .cap-summary, .cap-grid, .custom-grid, .data-grid, .steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding-bottom: 22px; }
  .cap-section { padding: 22px 0; break-inside: avoid; }
  .section-heading { display: block; margin-bottom: 14px; }
  .section-heading h2, .cap-note h2 { font-size: 24px; }
  .section-lead { margin: 0 0 14px; font-size: 12px; }
  .cap-summary article, .cap-grid article, .custom-grid article, .steps li, .cap-note { min-height: 0; padding: 14px; border-color: #ccc; box-shadow: none; }
  .cap-card-label, .custom-grid article > span { margin-bottom: 12px; }
  .cap-grid h3, .custom-grid h3 { margin-bottom: 8px; font-size: 16px; }
  .cap-grid p, .custom-grid p, .cap-summary p, .steps p { font-size: 10px; }
  .cap-band { width: 100%; margin: 0; padding: 18px; border-radius: 0; background: #f2f2f2; color: #111; }
  .cap-band h2, .cap-band .data-grid span { color: #111; }
  .data-grid article { min-height: 80px; padding: 10px; background: #fff; border: 1px solid #ddd; }
  .data-grid strong { font-size: 14px; }
  .data-grid span { font-size: 9px; }
  .deployment-layout { grid-template-columns: 1fr 1fr; gap: 12px; }
  .deployment-copy p { font-size: 13px; }
  .deployment-card { padding: 14px; }
  .deployment-card li { padding-top: 6px; font-size: 9px; }
  .cap-note { display: block; margin: 16px 0 0; }
  .pdf-contact { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #ccc; font-size: 11px; }
  .pdf-contact a { font-weight: 800; }
}
