:root {
    --ink: #142433;
    --muted: #5b6c78;
    --line: #dce5eb;
    --surface: #ffffff;
    --surface-soft: #f3f7f9;
    --brand: #173b57;
    --brand-dark: #0d293e;
    --accent: #bf7a3f;
    --accent-soft: #f4e8dd;
    --success: #1c6d53;
    --shadow: 0 24px 60px rgba(18, 48, 70, 0.12);
    --radius: 20px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

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

button,
input,
textarea {
    font: inherit;
}

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

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.7rem, 7vw, 5.7rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
    font-size: 1.2rem;
}

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

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.narrow {
    max-width: 820px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--brand-dark);
    color: white;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(220, 229, 235, 0.8);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--brand);
    color: white;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.brand-name {
    white-space: nowrap;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.primary-nav a {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.primary-nav a:hover {
    color: var(--accent);
}

.primary-nav .nav-login {
    padding: 10px 17px;
    /*border: 1px solid var(--line);*/
    /*border-radius: 999px;*/
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--ink);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 10vw, 130px) 0;
    background:
        radial-gradient(circle at 80% 18%, rgba(191, 122, 63, 0.16), transparent 30%),
        linear-gradient(145deg, #f7fafb 0%, #edf4f7 100%);
}

.hero::after {
    position: absolute;
    right: -150px;
    bottom: -230px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(23, 59, 87, 0.13);
    border-radius: 50%;
    content: "";
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(50px, 7vw, 90px);
}

.hero-copy h1 {
    max-width: 760px;
    margin-bottom: 26px;
}

.hero-lead {
    max-width: 690px;
    margin-bottom: 32px;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 21px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.button-primary {
    background: var(--brand);
    color: white;
}

.button-primary:hover {
    background: var(--brand-dark);
}

.button-secondary {
    border-color: var(--line);
    background: white;
}

.button-light {
    background: white;
    color: var(--brand-dark);
}

.full-width {
    width: 100%;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-points span::before {
    margin-right: 8px;
    color: var(--success);
    content: "●";
    font-size: 0.7rem;
}

.hero-panel {
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.panel-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.panel-topline strong {
    display: block;
    font-size: 1.1rem;
}

.panel-label {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.status-pill {
    padding: 7px 12px;
    border-radius: 999px;
    background: #e7f4ee;
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 850;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.metric-card {
    min-height: 145px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
}

.metric-card span,
.metric-card small {
    display: block;
    color: var(--muted);
}

.metric-card strong {
    display: block;
    margin: 8px 0 4px;
    font-size: 1.25rem;
}

.flow-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding: 18px;
    border-radius: 16px;
    background: var(--brand);
    color: white;
    font-size: 0.76rem;
    font-weight: 800;
}

.flow-card i {
    width: 16px;
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
}

.section {
    padding: clamp(75px, 10vw, 120px) 0;
}

.section-muted {
    background: var(--surface-soft);
}

.section-heading {
    max-width: 840px;
    margin-bottom: 48px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 18px;
}

.section-heading p {
    font-size: 1.08rem;
}

.three-card-grid,
.capability-grid,
.platform-grid {
    display: grid;
    gap: 20px;
}

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

.feature-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.feature-number {
    display: inline-block;
    margin-bottom: 32px;
    color: var(--accent);
    font-weight: 850;
}

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(50px, 9vw, 110px);
}

.check-list {
    display: grid;
    gap: 18px;
}

.check-list article {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.check-list article > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 900;
}

.check-list p {
    margin-bottom: 0;
}

.capability-grid {
    grid-template-columns: repeat(3, 1fr);
}

.capability-grid article {
    min-height: 190px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.cta-section {
    padding: 0 0 clamp(75px, 10vw, 120px);
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(35px, 6vw, 65px);
    border-radius: 28px;
    background: var(--brand);
    color: white;
}

.cta-panel h2 {
    max-width: 760px;
    margin-bottom: 0;
}

.cta-panel .eyebrow {
    color: #e9bb94;
}

.page-hero {
    padding: clamp(80px, 11vw, 140px) 0;
    background: var(--surface-soft);
}

.page-hero.compact {
    padding-block: clamp(65px, 8vw, 100px);
}

.page-hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
}

.page-hero p {
    font-size: 1.18rem;
}

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

.platform-card {
    min-height: 310px;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.platform-card > span {
    display: inline-block;
    margin-bottom: 55px;
    color: var(--accent);
    font-weight: 900;
}

.two-column-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.two-column-list article {
    padding: 32px;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: clamp(45px, 8vw, 100px);
}

.contact-points {
    display: grid;
    gap: 20px;
    margin-top: 36px;
}

.contact-points article {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.contact-points strong,
.contact-points span {
    display: block;
}

.contact-points span {
    margin-top: 4px;
    color: var(--muted);
}

.contact-form {
    position: relative;
    padding: clamp(25px, 5vw, 42px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
}

.form-row label span {
    color: var(--muted);
    font-weight: 500;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #becbd4;
    border-radius: 10px;
    background: white;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(23, 59, 87, 0.12);
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #a33030;
    font-size: 0.88rem;
}

.form-alert {
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 10px;
    background: #fae8e8;
    color: #842b2b;
}

.form-note {
    margin: 14px 0 0;
    font-size: 0.82rem;
    text-align: center;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.legal-copy h2 {
    margin-top: 42px;
    font-size: 1.6rem;
}

.message-page {
    display: grid;
    min-height: 65vh;
    place-items: center;
    padding: 70px 0;
    background: var(--surface-soft);
}

.message-card {
    padding: clamp(32px, 6vw, 65px);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
    text-align: center;
}

.site-footer {
    padding-top: 62px;
    background: var(--brand-dark);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    padding-bottom: 45px;
}

.footer-grid p {
    max-width: 520px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand .brand-mark {
    background: white;
    color: var(--brand-dark);
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.84rem;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: 78px;
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: white;
        box-shadow: var(--shadow);
    }

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

    .primary-nav .nav-login {
        text-align: center;
    }

    .hero-grid,
    .split-section,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-copy {
        max-width: 760px;
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .metric-grid,
    .three-card-grid,
    .capability-grid,
    .platform-grid,
    .two-column-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .flow-card {
        align-items: stretch;
        flex-direction: column;
    }

    .flow-card i {
        width: 1px;
        height: 10px;
        margin-left: 8px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 700px) {
    .brand-logo {
        width: 165px;
    }
}