:root {
    --ink-950: #08151d;
    --ink-900: #102531;
    --ink-850: #173241;
    --ink-800: #1d4052;
    --teal-600: #1b9aaa;
    --teal-500: #27b0bf;
    --teal-100: #dbf6f8;
    --sand-100: #f7f4ea;
    --gold-400: #c9a44b;
    --white: #ffffff;
    --slate-200: #d8e2ea;
    --slate-300: #c0ced8;
    --slate-500: #7890a0;
    --slate-700: #4a6273;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --line: rgba(16, 37, 49, 0.12);
    --shadow: 0 18px 40px rgba(6, 25, 36, 0.09);
    --shadow-soft: 0 10px 28px rgba(6, 25, 36, 0.06);
    --radius: 24px;
    --radius-sm: 16px;
    --shell: 1320px;
    --font-sans: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink-900);
    background:
        radial-gradient(circle at top left, rgba(39, 176, 191, 0.14), transparent 26rem),
        radial-gradient(circle at top right, rgba(201, 164, 75, 0.14), transparent 22rem),
        linear-gradient(180deg, #eef7f8 0%, #f8fbfb 48%, #f4f7f7 100%);
}

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

img {
    max-width: 100%;
    display: block;
}

main {
    overflow: clip;
}

.shell {
    width: min(var(--shell), calc(100% - 2rem));
    margin: 0 auto;
}

.narrow {
    max-width: 860px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(246, 250, 250, 0.88);
    border-bottom: 1px solid rgba(16, 37, 49, 0.07);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-soft);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-height: 88px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(16, 37, 49, 0.12);
    background: var(--white);
    padding: 0.35rem;
}

.brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand__text strong {
    font-size: 1.1rem;
    color: var(--ink-950);
}

.brand__text span {
    color: var(--slate-700);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
}

.site-nav a {
    padding: 0.8rem 0.95rem;
    border-radius: 999px;
    color: var(--slate-700);
    font-size: 0.95rem;
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink-950);
    background: rgba(39, 176, 191, 0.12);
}

.site-header__cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.button,
.button--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 50px;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button {
    background: linear-gradient(135deg, var(--teal-600), var(--ink-850));
    color: var(--white);
    box-shadow: 0 16px 30px rgba(16, 64, 82, 0.18);
}

.button:hover,
.button--ghost:hover {
    transform: translateY(-1px);
}

.button--ghost {
    border-color: rgba(16, 37, 49, 0.12);
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink-900);
}

.menu-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink-900);
}

.hero-section,
.page-hero {
    padding: 2rem 0 2rem;
}

.page-hero--celebration {
    padding-bottom: 1rem;
}

.split-panel--wide {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.hero-grid,
.split-panel {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: center;
    min-height: calc(100vh - 120px);
}

.hero-copy h1,
.page-hero h1,
.section-head h2,
.split-panel h2,
.cta-banner h2 {
    margin: 0;
    color: var(--ink-950);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 6vw, 5.1rem);
    max-width: 12ch;
}

.page-hero h1,
.section-head h2,
.split-panel h2,
.cta-banner h2 {
    font-size: clamp(2rem, 3.8vw, 3.3rem);
}

.lead,
.section-head p,
.card p,
.mini-card p,
.step-card p,
.site-footer p {
    color: var(--slate-700);
    line-height: 1.8;
}

.lead {
    font-size: 1.08rem;
    max-width: 62ch;
    margin: 1.1rem 0 0;
}

.lead--compact {
    margin-bottom: 0;
}

.eyebrow,
.card__eyebrow,
.card .card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--teal-600);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.button-row,
.button-stack {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.button-row {
    margin-top: 1.7rem;
}

.button-stack {
    flex-direction: column;
    margin-top: 1rem;
}

.hero-panel,
.card,
.metric-card,
.step-card,
.cta-banner {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel::before,
.card::before,
.metric-card::before,
.step-card::before,
.cta-banner::before {
    content: "";
    position: absolute;
    inset: auto auto -35% -10%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 176, 191, 0.16), transparent 70%);
    pointer-events: none;
}

.hero-panel {
    padding: 1.8rem;
}

.hero-panel__top strong {
    display: block;
    margin-top: 0.6rem;
    font-size: 1.4rem;
    line-height: 1.35;
}

.hero-panel__cards {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.mini-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 20px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.mini-card strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.mini-card__chip {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-weight: 900;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-600), var(--ink-850));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.stats-grid,
.cards-grid,
.steps-grid {
    display: grid;
    gap: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 2rem;
}

.metric-card {
    padding: 1.3rem 1.2rem;
}

.metric-card strong {
    display: block;
    font-size: 1.45rem;
    color: var(--ink-950);
}

.metric-card span {
    display: block;
    margin-top: 0.45rem;
    color: var(--slate-700);
    font-size: 0.95rem;
}

.section {
    padding: 2rem 0 4rem;
}

.section--tinted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(216, 242, 244, 0.35) 100%);
}

.section-head {
    max-width: 760px;
    margin-bottom: 1.6rem;
}

.section-head p {
    margin: 0.95rem 0 0;
}

.cards-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card {
    padding: 1.5rem;
}

.card h2,
.card h3 {
    margin: 0.4rem 0 0.7rem;
    line-height: 1.25;
    color: var(--ink-950);
}

.card h2 {
    font-size: 1.45rem;
}

.card h3 {
    font-size: 1.2rem;
}

.card--soft {
    background: rgba(255, 255, 255, 0.7);
}

.card--feature {
    min-height: 100%;
}

.card--service {
    min-height: 220px;
}

.thank-you-card {
    padding: 1.8rem;
}

.thank-you-card__grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.4rem;
}

.thank-you-aside {
    background:
        radial-gradient(circle at top right, rgba(39, 176, 191, 0.12), transparent 13rem),
        rgba(255, 255, 255, 0.82);
}

.steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
    padding: 1.5rem;
}

.step-card__number {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--gold-400);
    font-weight: 900;
    letter-spacing: 0.16em;
}

.step-card h3 {
    margin: 0 0 0.7rem;
    font-size: 1.14rem;
}

.stacked-cards,
.checklist {
    display: grid;
    gap: 1rem;
}

.checklist__item {
    padding: 1rem 1.15rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    color: var(--ink-900);
    line-height: 1.65;
}

.cta-banner {
    margin-top: 2rem;
    padding: 1.7rem;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}

.cta-banner p {
    margin: 0.7rem 0 0;
}

.form-shell {
    max-width: 1080px;
    margin: 0 auto;
}

.application-form {
    display: grid;
    gap: 1.2rem;
}

.form-section {
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.form-section__head {
    margin-bottom: 1.1rem;
}

.form-section__head h2 {
    margin: 0.45rem 0 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.is-hidden {
    display: none;
}

.field,
.field-group {
    display: grid;
    gap: 0.45rem;
}

.field {
    min-width: 0;
}

.field--full {
    grid-column: 1 / -1;
}

.field span {
    font-weight: 800;
    color: var(--ink-850);
    font-size: 0.94rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid rgba(16, 37, 49, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    min-height: 52px;
    padding: 0.9rem 1rem;
    font: inherit;
    color: var(--ink-900);
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field small {
    color: #b42318;
    font-weight: 700;
}

.field-group {
    grid-template-columns: 140px 1fr;
}

.field--inline {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.field--inline input {
    width: 18px;
    min-height: 18px;
    margin: 0;
}

.toggle-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
}

.toggle-card input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.toggle-card span {
    font-weight: 700;
    color: var(--ink-900);
}

.form-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.alert {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    font-weight: 700;
}

.alert--success {
    color: #0c6b4f;
    background: rgba(26, 127, 90, 0.12);
    border: 1px solid rgba(26, 127, 90, 0.22);
}

.alert--error {
    color: #b42318;
    background: rgba(180, 35, 24, 0.1);
    border: 1px solid rgba(180, 35, 24, 0.18);
}

.turnstile-box {
    display: inline-flex;
    min-height: 78px;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
}

.field-error {
    display: block;
    margin-top: 0.8rem;
    color: #b42318;
    font-weight: 700;
}

.button[disabled],
.button--ghost[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.site-footer {
    padding: 2rem 0 1.4rem;
    background: linear-gradient(180deg, rgba(16, 37, 49, 0.04) 0%, rgba(16, 37, 49, 0.08) 100%);
    border-top: 1px solid rgba(16, 37, 49, 0.07);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.site-footer__brand p {
    max-width: 34ch;
}

.site-footer h2 {
    margin: 0 0 0.8rem;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-850);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.footer-links li,
.footer-links a {
    color: var(--slate-700);
}

.footer-links a:hover {
    color: var(--ink-950);
}

.footer-links--compact li {
    line-height: 1.6;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.8rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(16, 37, 49, 0.08);
}

.site-footer__bottom p {
    margin: 0;
    font-size: 0.92rem;
}

@media (max-width: 1180px) {
    .cards-grid--four,
    .steps-grid,
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid,
    .split-panel,
    .split-panel--wide {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav,
    .site-header__cta {
        display: none;
    }

    .site-header__inner {
        flex-wrap: wrap;
        padding: 1rem 0;
    }

    .site-nav.is-open {
        display: grid;
        width: 100%;
        margin: 0;
        padding: 0.35rem 0 0.2rem;
    }

    .site-nav.is-open a {
        border-radius: 16px;
    }

    .site-header__cta.is-open {
        display: flex;
        width: 100%;
        padding-bottom: 0.2rem;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(var(--shell), calc(100% - 1.25rem));
    }

    .hero-section,
    .page-hero {
        padding-top: 3.6rem;
    }

    .hero-grid {
        min-height: auto;
    }

    .stats-grid,
    .cards-grid--four,
    .cards-grid--three,
    .steps-grid,
    .site-footer__grid,
    .site-footer__bottom,
    .form-grid,
    .field-group {
        grid-template-columns: 1fr;
    }

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

    .brand__text span {
        letter-spacing: 0.04em;
    }
}
