:root {
    --bg: #f7f9fc;
    --paper: #ffffff;
    --surface-soft: #edf3f7;
    --ink: #111827;
    --ink-soft: #243244;
    --muted: #667085;
    --line: #e4eaf2;
    --dark: #111827;
    --dark-2: #172033;
    --accent: #2f5674;
    --accent-2: #2f5674;
    --accent-3: #e7eff4;
    --cream: #f8fbff;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(17, 24, 39, 0.09);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3 {
    margin-top: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}

.nav,
.section,
.proof-strip,
.band,
.cta,
.site-footer,
.page-hero,
.content-section {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-logo {
    width: 188px;
    height: 54px;
    display: block;
    background-image: url("assets/devize-logo.png?v=full-blue-1");
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 750;
}

.nav-links a {
    padding: 10px 12px;
    border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--accent);
    background: var(--surface-soft);
}

.nav-button {
    margin-left: 6px;
    color: var(--white) !important;
    background: var(--accent-2) !important;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 13px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-weight: 800;
}

.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 70px max(20px, calc((100vw - 1180px) / 2)) 78px;
    color: var(--white);
    background: #244a66;
    isolation: isolate;
}

.hero::after {
    display: none;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background-image:
        linear-gradient(90deg, rgba(21, 50, 70, 0.18) 0%, rgba(21, 50, 70, 0.04) 42%, rgba(21, 50, 70, 0) 76%),
        url("assets/hero-flex-field.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 13% 44%, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(90deg, rgba(24, 51, 70, 0.72) 0%, rgba(36, 74, 102, 0.18) 35%, rgba(36, 74, 102, 0) 62%);
}


.hero-content {
    position: relative;
    z-index: 2;
    width: min(590px, 52%);
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.76rem;
    font-weight: 900;
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.76);
}

h1 {
    max-width: 590px;
    margin-bottom: 22px;
    font-size: clamp(2.65rem, 4.9vw, 4.45rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(1.8rem, 3.4vw, 3.25rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-text,
.section-heading p,
.feature-card p,
.band p,
.cta p,
.page-hero p,
.content-section p,
.policy-list li,
.plain-list li,
.link-grid span {
    color: var(--muted);
}

.hero-text {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.14rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-badges span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    font-size: 0.86rem;
    font-weight: 850;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: var(--radius);
    font-weight: 900;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.primary {
    color: var(--white);
    background: #2f5674;
    box-shadow: 0 14px 32px rgba(6, 18, 30, 0.24);
}

.secondary {
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--white);
}

.hero .secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.proof-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: -35px;
    padding: 18px;
    position: relative;
    z-index: 3;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.proof-strip span {
    padding: 8px 12px;
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 800;
}

.section {
    padding: 86px 0 18px;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 30px;
}

.feature-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
    gap: 16px;
}

.feature-card,
.content-card,
.table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: none;
}

.feature-card {
    min-height: 250px;
    padding: 24px;
}

.feature-card-large {
    grid-row: span 2;
    background: var(--accent-2);
    color: var(--white);
}

.feature-card-large p {
    color: rgba(255, 255, 255, 0.70);
}

.feature-card-large a {
    display: inline-flex;
    margin-top: 22px;
    color: var(--white);
    font-weight: 900;
}

.card-kicker {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.feature-card-large .card-kicker {
    color: rgba(255, 255, 255, 0.78);
}

.band {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 38px;
    align-items: start;
    margin-top: 72px;
    padding: 42px;
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
}

.band .eyebrow {
    color: var(--accent);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.process-grid div {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.process-grid span,
.process-grid strong {
    display: block;
}

.process-grid span {
    color: var(--accent);
    font-weight: 950;
}

.process-grid strong {
    margin: 14px 0 8px;
    font-size: 1.2rem;
}

.process-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.link-grid a {
    min-height: 145px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.link-grid a:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 86, 116, 0.42);
    background: var(--paper);
}

.link-grid strong,
.link-grid span {
    display: block;
}

.link-grid strong {
    margin-bottom: 10px;
    font-size: 1.12rem;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 78px;
    margin-bottom: 78px;
    padding: 36px;
    border-radius: var(--radius);
    color: var(--white);
    background: var(--accent-2);
    box-shadow: var(--shadow);
}

.cta .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.cta p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.70);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 0 42px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer p {
    margin: 0;
}

.site-footer div {
    display: flex;
    gap: 18px;
}

.site-footer a:hover {
    color: var(--accent);
}

.text-link {
    color: var(--accent);
    font-weight: 850;
}

.text-link:hover {
    text-decoration: underline;
}

.page-hero {
    padding: 86px 0 38px;
}

.page-hero h1 {
    max-width: 980px;
    font-size: clamp(2.35rem, 4.8vw, 4.4rem);
}

.page-hero p {
    max-width: 760px;
    font-size: 1.1rem;
}

.content-section {
    padding: 26px 0 76px;
}

.legal-content {
    max-width: 940px;
}

.card-grid {
    display: grid;
    gap: 16px;
}

.card-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.card,
.content-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: none;
}

.card p {
    color: var(--muted);
}

.content-card {
    margin-bottom: 18px;
}

.content-card h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

.highlight-card {
    border-color: rgba(47, 86, 116, 0.28);
    background: var(--accent-3);
}

.highlight-card p:last-child {
    margin-bottom: 0;
}

.project-feature {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 18px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.project-feature h2,
.project-card h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.35rem);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.project-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.project-card:first-child {
    border-color: rgba(47, 86, 116, 0.38);
    background: var(--accent-3);
}

.policy-list,
.plain-list {
    padding-left: 20px;
}

.policy-list li,
.plain-list li {
    margin: 10px 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    background: var(--surface-soft);
}

tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 980px) {
    .hero {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .hero-content {
        width: min(620px, 100%);
    }

    .hero-backdrop {
        background-position: 58% center;
    }

    .hero-backdrop::before {
        background:
            linear-gradient(90deg, rgba(24, 51, 70, 0.86) 0%, rgba(36, 74, 102, 0.42) 54%, rgba(36, 74, 102, 0.14) 100%);
    }

    .feature-layout,
    .band,
    .process-grid,
    .link-grid,
    .project-feature,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-large {
        grid-row: auto;
    }

    .nav {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        gap: 0;
        padding-top: 8px;
    }

    .nav.is-open .nav-links {
        display: grid;
    }

    .nav.is-open .nav-links a {
        padding: 12px 0;
        border-top: 1px solid var(--line);
        border-radius: 0;
    }

    .nav.is-open .nav-links .nav-button {
        margin: 10px 0 0;
        padding: 12px 16px;
        border-radius: var(--radius);
        text-align: center;
    }
}

@media (max-width: 700px) {
    .nav,
    .section,
    .proof-strip,
    .band,
    .cta,
    .site-footer,
    .page-hero,
    .content-section {
        width: min(100% - 28px, 1180px);
    }

    .hero {
        padding-inline: 14px;
        min-height: 680px;
    }

    h1 {
        font-size: clamp(2.45rem, 12vw, 3.45rem);
    }

    .hero-backdrop {
        background-position: 62% center;
    }

    .hero-backdrop::before {
        background: linear-gradient(180deg, rgba(24, 51, 70, 0.94) 0%, rgba(36, 74, 102, 0.76) 54%, rgba(36, 74, 102, 0.30) 100%);
    }

    .card-grid.two {
        grid-template-columns: 1fr;
    }

    .proof-strip {
        justify-content: flex-start;
    }

    .band,
    .cta {
        padding: 26px;
    }

    .cta,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .site-footer div {
        flex-wrap: wrap;
    }

    .button {
        width: 100%;
    }
}
