:root {
  color-scheme: light dark;
  --bg: #f2f4f0;
  --surface: #fafbf8;
  --surface-2: #e9eee9;
  --text: #17201d;
  --muted: #5d6964;
  --line: #d3dad4;
  --primary: #176b55;
  --primary-strong: #0f5844;
  --secondary: #365f92;
  --header-bg: rgba(242, 244, 240, .88);
  --shadow: 0 18px 50px rgba(27, 45, 38, .10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
}

:root[data-theme="dark"] {
  --bg: #101512;
  --surface: #151c18;
  --surface-2: #1b241f;
  --text: #edf2ed;
  --muted: #aab5af;
  --line: #2d3932;
  --primary: #68b79d;
  --primary-strong: #85c9b2;
  --secondary: #8aa7cc;
  --header-bg: rgba(16, 21, 18, .88);
  --shadow: 0 22px 58px rgba(0, 0, 0, .30);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101512;
    --surface: #151c18;
    --surface-2: #1b241f;
    --text: #edf2ed;
    --muted: #aab5af;
    --line: #2d3932;
    --primary: #68b79d;
    --primary-strong: #85c9b2;
    --secondary: #8aa7cc;
    --header-bg: rgba(16, 21, 18, .88);
    --shadow: 0 22px 58px rgba(0, 0, 0, .30);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 112px 0; }
.section-muted { background: var(--surface-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 14px; border-radius: 8px; background: var(--primary); color: white; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); background: var(--header-bg); backdrop-filter: blur(16px); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { color: var(--text); display: flex; align-items: center; text-decoration: none; }
.brand img, .site-footer img { width: 164px; height: 48px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a { color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 600; transition: color .2s; }
.main-nav > a:hover { color: var(--text); }
.main-nav .nav-contact { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.theme-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.theme-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px; }
.menu-button span:not(.sr-only) { display: block; height: 2px; background: currentColor; margin: 4px 0; border-radius: 2px; }

.hero { padding-top: 94px; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 64px; }
.eyebrow { margin: 0 0 15px; color: var(--primary); font-size: .79rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(3rem, 6vw, 5.2rem); }
h2 { margin-bottom: 18px; font-size: clamp(2.1rem, 4vw, 3.65rem); }
h3 { font-size: 1.32rem; }
.hero-lead { max-width: 670px; margin: 0; color: var(--muted); font-size: 1.17rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 27px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid transparent; border-radius: 11px; text-decoration: none; font-weight: 750; cursor: pointer; transition: transform .18s, background .18s, border-color .18s, box-shadow .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--primary); color: #fff; box-shadow: 0 9px 24px color-mix(in srgb, var(--primary) 25%, transparent); }
.button-primary:hover { background: var(--primary-strong); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.button-secondary:hover { border-color: var(--primary); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; fill: none; stroke: var(--primary); stroke-width: 1.6; }
.hero-showcase { position: relative; min-width: 0; }
.showcase-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.showcase-label { display: flex; align-items: center; gap: 8px; margin: 0 0 0 4px; color: var(--muted); font-size: .84rem; font-weight: 750; }
.showcase-label span { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 12%, transparent); }
.showcase-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.showcase-switch-button { min-width: 52px; padding: 7px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: .8rem; font-weight: 800; cursor: pointer; }
.showcase-switch-button.is-active { background: var(--primary); color: #fff; }
.browser-card, .case-browser { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.browser-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 15px; border-bottom: 1px solid var(--line); background: var(--surface); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 7px; color: var(--muted); font-size: .72rem; }
.showcase-browser { display: block; color: inherit; text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.showcase-browser:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 48%, var(--line)); box-shadow: 0 24px 64px color-mix(in srgb, var(--primary) 14%, transparent); }
.showcase-image-wrap { position: relative; overflow: hidden; background: var(--surface-2); }
.browser-card img { width: 100%; aspect-ratio: 1.44; object-fit: cover; object-position: top; transition: transform .28s ease, filter .28s ease; }
.showcase-browser:hover img { transform: scale(1.018); filter: saturate(1.03) contrast(1.02); }
.showcase-open { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 9px; background: rgba(15, 40, 32, .92); color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.22); font-size: .82rem; font-weight: 800; backdrop-filter: blur(8px); }
.showcase-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 16px 4px 0; }
.showcase-footer p { max-width: 420px; margin: 0; color: var(--muted); font-size: .9rem; }
.showcase-footer a { flex: 0 0 auto; color: var(--primary); font-size: .87rem; font-weight: 800; text-underline-offset: 4px; }
.showcase-footer a:hover { color: var(--primary-strong); }

.trust-strip { border-block: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { padding: 27px 28px; border-right: 1px solid var(--line); }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-size: .96rem; }
.trust-grid span { margin-top: 3px; color: var(--muted); font-size: .82rem; }

.section-heading { max-width: 720px; margin-bottom: 50px; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 1.05rem; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 310px; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: transform .22s, border-color .22s, box-shadow .22s; }
.service-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: var(--shadow); }
.service-number { position: absolute; top: 29px; right: 32px; color: var(--primary); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.service-card h3 { max-width: 360px; margin: 40px 0 15px; font-size: 1.55rem; }
.service-card p { max-width: 560px; color: var(--muted); }
.service-card ul { margin: 24px 0 0; padding: 0; list-style: none; }
.service-card li { position: relative; padding: 7px 0 7px 20px; border-top: 1px solid var(--line); font-size: .91rem; }
.service-card li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

.case-study { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.case-toolbar { display: flex; gap: 7px; padding: 12px; border-bottom: 1px solid var(--line); }
.case-tab { padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.case-tab.is-active { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.case-content { display: grid; grid-template-columns: .72fr 1.28fr; gap: 42px; align-items: center; padding: 42px; }
.case-copy h3 { margin-bottom: 16px; font-size: clamp(1.65rem, 3vw, 2.45rem); }
.case-copy > p:not(.case-status) { color: var(--muted); }
.case-status { margin: 0 0 14px; color: var(--primary); font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.case-points { margin: 24px 0 30px; padding: 0; list-style: none; }
.case-points li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.case-points li::before { content: "✓"; margin-right: 10px; color: var(--primary); font-weight: 800; }
.case-browser img { width: 100%; aspect-ratio: 1.44; object-fit: cover; object-position: top; }
.case-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.case-results > div { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.case-results span { color: var(--primary); font-size: .75rem; font-weight: 850; }
.case-results strong { display: block; margin: 16px 0 6px; }
.case-results p { margin: 0; color: var(--muted); font-size: .9rem; }

.process-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.sticky-heading { position: sticky; top: 120px; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list > li > span { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--primary); font-weight: 850; }
.process-list h3 { margin: 3px 0 8px; }
.process-list p { margin: 0; color: var(--muted); }

.section-accent { background: #183f34; color: #f2f5f1; }
.section-accent .eyebrow { color: #9bd5c0; }
.about-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 85px; align-items: center; }
.about-mark { min-height: 390px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); background: rgba(255,255,255,.045); }
.about-mark span { font-size: clamp(6rem, 13vw, 11rem); font-weight: 800; letter-spacing: -.12em; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.82); }
.about-copy p:not(.eyebrow) { max-width: 720px; color: rgba(242,245,241,.75); font-size: 1.05rem; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; }
.about-facts div { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.about-facts strong, .about-facts span { display: block; }
.about-facts span { margin-top: 3px; color: rgba(242,245,241,.62); font-size: .88rem; }

.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; align-items: start; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { position: relative; padding: 25px 44px 25px 0; cursor: pointer; list-style: none; font-size: 1.08rem; font-weight: 750; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 5px; top: 22px; color: var(--primary); font-size: 1.5rem; font-weight: 400; }
.accordion details[open] summary::after { content: "−"; }
.accordion details p { margin: -5px 0 26px; padding-right: 50px; color: var(--muted); }

.contact-section { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; align-items: start; }
.contact-copy { position: sticky; top: 120px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.04rem; }
.contact-links { margin-top: 36px; }
.contact-links a, .contact-links > div { display: block; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 650; overflow-wrap: anywhere; }
.contact-links > *:last-child { border-bottom: 1px solid var(--line); }
.contact-links span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.contact-form { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-form label { display: block; margin-bottom: 16px; font-size: .86rem; font-weight: 720; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: var(--bg); color: var(--text); transition: border-color .18s, box-shadow .18s; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.consent { display: flex !important; gap: 10px; align-items: flex-start; color: var(--muted); font-weight: 500 !important; }
.consent input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; }
.consent a { color: var(--text); }
.form-submit { width: 100%; }
.form-submit:disabled { cursor: wait; opacity: .68; transform: none; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.form-note, .form-message { margin: 12px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.form-message { min-height: 1.2em; color: var(--primary); font-weight: 700; }
.form-message[data-type="success"] { color: #16805f; }
.form-message[data-type="warning"] { color: #a26713; }
.form-message[data-type="error"] { color: #b33a3a; }

.site-footer { padding: 46px 0; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 38px; align-items: center; }
.site-footer p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a, .footer-end a { color: var(--muted); font-size: .84rem; text-decoration: none; }
.footer-end { text-align: right; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .button, .service-card { transition: none; } }

@media (max-width: 980px) {
  .section { padding: 86px 0; }
  .hero-grid, .process-layout, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero { padding-top: 70px; }
  .hero-copy { max-width: 780px; }
  .sticky-heading, .contact-copy { position: static; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .case-content { grid-template-columns: 1fr; }
  .about-mark { min-height: 250px; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-end { text-align: left; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { height: 68px; }
  .brand img { width: 147px; }
  .menu-button { display: block; }
  .main-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .main-nav .nav-contact { margin-top: 10px; text-align: center; }
  .theme-button { margin-top: 10px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.1rem); }
  .hero-grid { gap: 46px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-meta { flex-direction: column; gap: 10px; }
  .showcase-heading-row, .showcase-footer { align-items: flex-start; }
  .showcase-footer { flex-direction: column; gap: 10px; }
  .services-grid, .case-results, .about-facts, .field-row { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 27px; }
  .case-content { padding: 24px; gap: 30px; }
  .case-toolbar { overflow-x: auto; }
  .case-tab { flex: 0 0 auto; }
  .process-list li { grid-template-columns: 45px 1fr; gap: 15px; }
  .contact-form { padding: 23px; }
  .footer-nav { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .section { padding: 72px 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 4px; }
  .trust-grid > div:last-child { border-bottom: 0; }
  .browser-bar span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}