:root {
    --color-bg: #f4f4f1;
    --color-surface: #ffffff;
    --color-surface-soft: #ebebe8;
    --color-ink: #151616;
    --color-muted: #686b69;
    --color-border: rgba(21, 22, 22, 0.13);
    --color-dark: #0d0e0e;
    --color-dark-soft: #141515;
    --color-accent: #00866d;
    --color-accent-bright: #25b99a;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.07);
    --shadow-dark: 0 22px 70px rgba(0, 0, 0, 0.24);
    --section-space: clamp(5rem, 8vw, 8.5rem);
}

html { scroll-behavior: smooth; }
body {
    overflow-x: hidden;
    background: var(--color-bg);
    color: var(--color-ink);
}

::selection { background: rgba(0, 134, 109, 0.22); }

a, button, input, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--color-accent-bright);
    outline-offset: 3px;
}
input, textarea { transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
input:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: rgba(17, 23, 21, 0.3); }
input:focus-visible, textarea:focus-visible { box-shadow: 0 0 0 3px rgba(0, 134, 109, 0.1); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b42318; }
input:disabled, textarea:disabled { cursor: not-allowed; background: #edf0ee; color: #7a837f; }

.site-container {
    width: min(100% - 2.5rem, 80rem);
    margin-inline: auto;
}

.section-shell { padding-block: var(--section-space); }
.section-shell-tight { padding-block: clamp(4rem, 6vw, 6rem); }
.section-heading { max-width: 44rem; }
.section-heading.centered { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: #4f5552;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.62); }

.display-title {
    font-size: clamp(2.65rem, 6.2vw, 5.25rem);
    font-weight: 650;
    letter-spacing: -0.058em;
    line-height: 0.98;
    text-wrap: balance;
}
.section-title {
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    font-weight: 650;
    letter-spacing: -0.048em;
    line-height: 1.02;
    text-wrap: balance;
}
.body-large {
    color: var(--color-muted);
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    line-height: 1.75;
}

.btn {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 10px 28px rgba(0, 134, 109, 0.24);
}
.btn-primary:hover { background: #00745f; box-shadow: 0 14px 34px rgba(0, 134, 109, 0.32); }
.btn-secondary { border-color: var(--color-border); background: white; color: var(--color-ink); }
.btn-secondary:hover { border-color: rgba(17, 23, 21, 0.3); background: #f7f7f5; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.22); color: white; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.08); }
.btn-light { background: white; color: var(--color-ink); }
.btn-light:hover { background: #eeeeeb; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.5; transform: none; }

.topbar-premium { background: #080909; }
.navbar-premium {
    background: rgba(12, 13, 13, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}
.navbar-premium.is-scrolled {
    background: rgba(9, 10, 10, 0.97);
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
}
.nav-link { color: rgba(255, 255, 255, 0.64); }
.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.78);
    content: "";
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 180ms ease, transform 180ms ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: white; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }

.hero-premium {
    position: relative;
    isolation: isolate;
    min-height: min(48rem, 88vh);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(118deg, #090a0a 0%, #0e0f0f 58%, #131414 100%);
    color: white;
}
.hero-premium::before { position: absolute; top: 0; bottom: 0; left: 58%; width: 1px; background: rgba(255,255,255,0.07); content: ""; }
.hero-premium::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,0.28) 100%);
    content: "";
    pointer-events: none;
}
.hero-composition { display: grid; align-items: end; gap: 3rem; }
.hero-copy { max-width: 53rem; }
.hero-kicker {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-lede { max-width: 31rem; color: rgba(255,255,255,0.62); }
.hero-aside { padding-top: 0; }
.hero-aside-label { color: rgba(255,255,255,0.42); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }

.trust-editorial { border-bottom: 1px solid var(--color-border); background: #fff; }
.trust-editorial-inner { display: grid; gap: 2rem; padding-block: clamp(2.5rem,5vw,4.5rem); }
.trust-statement { max-width: 33rem; font-size: clamp(1.45rem,2.4vw,2.1rem); font-weight: 580; letter-spacing: -0.035em; line-height: 1.2; }
.trust-points { display: grid; border-top: 1px solid var(--color-border); }
.trust-point { display: grid; grid-template-columns: minmax(7.5rem,.65fr) 1fr; gap: 1.2rem; border-bottom: 1px solid var(--color-border); padding-block: .9rem; }
.trust-point strong { font-size: .82rem; }
.trust-point span { color: var(--color-muted); font-size: .78rem; }

.service-index { border-top: 1px solid rgba(255,255,255,.18); }
.service-row { position: relative; display: grid; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.14); padding-block: clamp(1.7rem,3vw,2.5rem); transition: border-color 180ms ease; }
.service-row:hover { border-color: rgba(255,255,255,.38); }
.service-row h3 { transition: color 180ms ease, transform 180ms ease; }
.service-row:hover h3 { color: white; transform: translateX(.25rem); }
.service-arrow { color: rgba(255,255,255,.45); transition: color 180ms ease, transform 180ms ease; }
.service-row:hover .service-arrow { color: white; transform: translateX(.25rem); }
.service-index-light { border-color: var(--color-border); }
.service-index-light .service-row { border-color: var(--color-border); }
.service-index-light .service-row:hover { border-color: rgba(21,22,22,.42); }
.service-index-light .service-row:hover h2 { transform: translateX(.25rem); }
.service-index-light .service-arrow { color: rgba(21,22,22,.48); }
.service-index-light .service-row:hover .service-arrow { color: var(--color-ink); }

.process-layout { display: grid; gap: 3rem; }
.process-editorial { border-top: 1px solid var(--color-border); }
.process-step { border-bottom: 1px solid var(--color-border); padding-block: 1.8rem; }
.process-content { max-width: 35rem; }

.faq-list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { display: flex; width: 100%; min-height: 4.9rem; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 1.1rem; text-align: left; }
.faq-icon { display: grid; width: 2rem; height: 2rem; flex: none; place-items: center; border-radius: 50%; background: rgba(21,22,22,0.06); color: var(--color-ink); transition: transform 220ms ease, background-color 220ms ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--color-ink); color: white; }
.faq-panel { display: grid; grid-template-rows: 0fr; color: var(--color-muted); transition: grid-template-rows 240ms ease, padding-bottom 240ms ease; }
.faq-panel > div { overflow: hidden; }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; padding-bottom: 1.5rem; }

.final-cta {
    border-top: 1px solid rgba(255,255,255,0.14);
    border-bottom: 1px solid rgba(255,255,255,0.14);
    background: #0d0e0e;
}
.final-cta-inner { display: grid; align-items: end; gap: 2rem; }

.page-hero {
    position: relative;
    overflow: hidden;
    /* The topbar and navbar are fixed (116px combined). Keep hero content
       below them even on a refreshed page with a restored scroll position. */
    padding-top: clamp(10rem, 14vw, 12rem);
    background: linear-gradient(118deg, #0a0b0b, #141515);
    color: white;
}
.page-hero > * { position: relative; z-index: 1; }

.surface-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: rgba(255,255,255,0.9); box-shadow: 0 14px 44px rgba(0,0,0,0.05); }
.footer-premium { border-top: 1px solid rgba(255,255,255,0.08); background: #090a0a; color: white; }
.footer-link { color: rgba(255,255,255,0.56); transition: color 160ms ease, transform 160ms ease; }
.footer-link:hover { color: white; }

.hero-element { transform: translateY(18px); }
.hero-element:not(.opacity-0) { transform: translateY(0); }
.reveal { transform: translateY(18px); }
.reveal:not(.opacity-0) { transform: translateY(0); }

@media (min-width: 640px) {
    .site-container { width: min(100% - 4rem, 80rem); }
    .service-row { grid-template-columns: minmax(12rem,.75fr) minmax(18rem,1.25fr) 1.5rem; align-items: center; }
}

@media (min-width: 1024px) {
    .hero-composition { grid-template-columns: minmax(0,1.55fr) minmax(18rem,.65fr); gap: 5rem; }
    .trust-editorial-inner { grid-template-columns: minmax(20rem,.9fr) minmax(25rem,1.1fr); align-items: center; gap: 7rem; }
    .process-layout { grid-template-columns: minmax(20rem,.8fr) minmax(28rem,1.2fr); gap: 7rem; }
    .process-intro { position: sticky; top: 9rem; align-self: start; }
    .final-cta-inner { grid-template-columns: minmax(0,1.4fr) auto; gap: 4rem; }
}

/* Cover fractional CSS viewport widths produced by browser zoom/DPI scaling. */
@media (max-width: 639.98px) {
    .site-container { width: min(100% - 2rem, 80rem); }
    .hero-premium { min-height: auto; }
    .display-title { font-size: clamp(2.55rem, 12vw, 3.45rem); line-height: 1.01; }
    .btn { width: 100%; }
    .hero-premium::before { display: none; }
    .service-row { padding-block: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
