:root {
    --navy: #0b1b33;
    --navy-2: #13294b;
    --ink: #18212f;
    --muted: #556173;
    --line: #e2e6ee;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --accent: #f5a524;
    --accent-ink: #1d1400;
    --link: #1c5fd6;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(11, 27, 51, .06), 0 8px 24px rgba(11, 27, 51, .06);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
}

img, svg { max-width: 100%; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 650;
    text-decoration: none;
    padding: .8em 1.4em;
    border-radius: 999px;
    border: 2px solid var(--accent);
    transition: transform .15s ease, box-shadow .15s ease;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(245, 165, 36, .35); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: #fff; box-shadow: none; }
.btn-small { padding: .45em 1em; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 27, 51, .97);
    backdrop-filter: saturate(160%) blur(8px);
    color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand strong { color: var(--accent); font-weight: 700; margin-left: 2px; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: #d6deea; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }

@media (max-width: 960px) {
    .nav-toggle-label { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; }
    .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
        content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: #fff; border-radius: 2px;
    }
    .nav-toggle-label span { top: 21px; }
    .nav-toggle-label span::before { top: -7px; left: 0; }
    .nav-toggle-label span::after { top: 7px; left: 0; }
    .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--accent); }
    .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 8px 20px 20px; border-top: 1px solid rgba(255,255,255,.08); }
    .nav-toggle:checked ~ .site-nav { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; }
    .site-nav a:not(.btn) { display: block; padding: 12px 8px; }
    .site-nav .btn { margin: 12px 0 0; text-align: center; }
}

/* Hero */
.hero {
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(245, 165, 36, .18), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(28, 95, 214, .25), transparent 60%),
        var(--navy);
    color: #dbe3ef;
    padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 60ch; color: #c9d3e2; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 1em; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 2.4em 0 0; padding: 0; list-style: none; font-size: .95rem; color: #aebbd0; }
.hero-proof li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 22ch; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #c9d3e2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #aebbd0; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (min-width: 720px) { .grid-pairs { grid-template-columns: repeat(2, 1fr); } }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 650; text-decoration: none; }
.card .more::after { content: " →"; }
a.card { text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-2px); border-color: #c8d0de; }

.icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: #fff4e0; color: #9a5b00;
    display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 22px; height: 22px; }

.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9a5b00; margin-bottom: .6em; }
.stack { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
    background: #fff4e0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239a5b00'%3E%3Cpath d='M8.1 13.4 4.7 10l-1.2 1.2 4.6 4.6 9.4-9.4-1.2-1.2z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.problem-list li::before { background: #fdecec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23b42318'%3E%3Ccircle cx='10' cy='10' r='3'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Stats / proof strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat strong { display: block; font-size: 2rem; color: var(--navy); letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Technologies */
.tech-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tech-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .95rem; font-weight: 600; color: var(--navy); }

/* Pricing */
.price { font-size: 1.6rem; font-weight: 750; color: var(--navy); margin: .2em 0 .4em; letter-spacing: -0.02em; }

/* Process */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 26px; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
    font-weight: 750; display: grid; place-items: center;
}
.steps h3 { margin-bottom: .2em; }
.steps p { color: var(--muted); }
.section-dark .steps p { color: #aebbd0; }

/* Case studies */
.case { scroll-margin-top: 90px; }
.case h3 { font-size: 1.35rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #c9d3e2; border-radius: 20px; padding: clamp(32px, 5vw, 56px); display: grid; gap: 20px; align-items: center; grid-template-columns: 1fr auto; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; } }

/* Article */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-soft); }
.callout { background: #fff8eb; border-left: 4px solid var(--accent); padding: 18px 22px; border-radius: 8px; margin: 1.4em 0; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: inherit; padding: 12px 14px;
    border: 1px solid #c9d1de; border-radius: 10px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(245, 165, 36, .5); border-color: var(--accent); }
.field .hint { font-weight: 400; color: var(--muted); }
.field-error, .validation-summary-errors { color: #b42318; font-size: .92rem; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.field-check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--muted); }
.field-check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-aside { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }
.contact-aside ul { list-style: none; padding: 0; margin: 0; }
.contact-aside li { margin-bottom: 10px; }

/* Footer */
.site-footer { background: #081427; color: #9fb0c8; padding: 56px 0 24px; font-size: .95rem; }
.site-footer a { color: #d6deea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.brand-footer { margin-bottom: .6em; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 20px; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
