:root {
    --ink: #14151f;
    --muted: #657085;
    --paper: #f7f4ee;
    --panel: #ffffff;
    --line: rgba(20, 21, 31, .12);
    --gold: #d8a642;
    --green: #176b5d;
    --blue: #2c5bd7;
    --wine: #8d3451;
    --night: #10131c;
    --radius: 8px;
    --shadow: 0 24px 70px rgba(20, 21, 31, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

button,
input,
textarea {
    font: inherit;
}

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

.church-header {
    position: fixed;
    inset: 16px 0 auto;
    z-index: 50;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(16, 19, 28, .78);
    color: #fff;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 48px rgba(16, 19, 28, .22);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-symbol {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #171102;
    background: linear-gradient(135deg, #f4d47b, var(--gold));
    font-weight: 950;
}

.brand-mark strong,
.brand-mark small {
    display: block;
    line-height: 1;
}

.brand-mark small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .66);
    font-weight: 800;
}

.church-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.church-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-weight: 800;
}

.church-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.nav-action,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.nav-action,
.button-primary {
    color: #171102;
    background: linear-gradient(135deg, #f4d47b, var(--gold));
    box-shadow: 0 14px 30px rgba(216, 166, 66, .24);
}

.button-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
}

.button-outline.dark-text {
    color: var(--ink);
    border-color: var(--line);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: transparent;
    padding: 11px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

.flash-success {
    margin-top: 104px;
    padding: 14px 16px;
    border: 1px solid rgba(23, 107, 93, .2);
    border-radius: var(--radius);
    color: #0f5b4f;
    background: #e5f6f1;
    font-weight: 850;
}

.hero-section {
    min-height: 780px;
    display: flex;
    align-items: center;
    padding: 136px 0 82px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 22%, rgba(216, 166, 66, .24), transparent 32%),
        linear-gradient(135deg, #11131d 0%, #17233a 48%, #123f39 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, .92fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: currentColor;
}

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

h1 {
    max-width: 800px;
    margin-bottom: 22px;
    font-size: clamp(44px, 7vw, 88px);
    line-height: .94;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
}

.hero-copy p,
.section-head p,
.contact-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, .76);
    font-size: 19px;
}

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

.command-center {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .24);
    backdrop-filter: blur(22px);
}

.command-top,
.command-metrics,
.signal-grid {
    display: grid;
    gap: 12px;
}

.command-top {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.command-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 16px 0;
}

.command-metrics div,
.signal {
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .1);
}

.command-metrics strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.command-metrics span,
.signal span {
    color: rgba(255, 255, 255, .66);
    font-size: 13px;
    font-weight: 750;
}

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

.signal.large {
    grid-column: span 2;
}

.signal strong {
    display: block;
    margin: 6px 0 12px;
}

.signal i {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), #fff);
}

.section {
    padding: 94px 0;
}

.section-compact {
    padding: 34px 0;
    background: #fff;
}

.section-muted {
    background: #eee9df;
}

.section-dark {
    color: #fff;
    background: var(--night);
}

.section-head {
    max-width: 860px;
    margin-bottom: 36px;
}

.section:not(.section-dark) .section-head p,
.module-card p,
.plan-card p,
.security-panel span,
.church-footer p {
    color: var(--muted);
}

.section-head.light p,
.section-dark .workflow-item p {
    color: rgba(255, 255, 255, .72);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.stats-row div {
    padding: 22px;
    background: #fff;
}

.stats-row strong,
.stats-row span {
    display: block;
}

.stats-row strong {
    margin-bottom: 4px;
    font-size: 20px;
}

.stats-row span {
    color: var(--muted);
    font-size: 14px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.module-card,
.workflow-item,
.plan-card,
.lead-form,
.security-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 42px rgba(20, 21, 31, .06);
}

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

.module-card.feature {
    grid-column: span 2;
    color: #fff;
    background: linear-gradient(135deg, #17233a, #176b5d);
}

.module-card.feature p {
    color: rgba(255, 255, 255, .72);
}

.module-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #171102;
    background: #f4d47b;
    font-weight: 950;
}

.split-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.workflow-list {
    display: grid;
    gap: 14px;
}

.workflow-item {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 18px;
    padding: 22px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
}

.workflow-item > strong {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: #171102;
    background: #f4d47b;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.security-panel {
    padding: 24px;
}

.security-panel span,
.security-panel strong {
    display: block;
}

.security-panel span {
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
}

.security-panel strong {
    font-size: 22px;
    line-height: 1.15;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.plan-card {
    padding: 28px;
}

.plan-card > span {
    color: var(--green);
    font-weight: 950;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .08em;
}

.plan-card.highlight {
    color: #fff;
    background: linear-gradient(135deg, #17233a, #8d3451);
}

.plan-card.highlight p,
.plan-card.highlight > span {
    color: rgba(255, 255, 255, .74);
}

.contact-grid {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    gap: 28px;
    align-items: start;
}

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

.contact-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-points span {
    padding: 9px 12px;
    border-radius: 999px;
    color: #fff;
    background: var(--night);
    font-size: 13px;
    font-weight: 850;
}

.lead-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 24px;
}

.form-row {
    display: grid;
    gap: 7px;
}

.form-row.full {
    grid-column: 1 / -1;
}

.form-row label {
    font-size: 13px;
    font-weight: 950;
}

.form-row input,
.form-row textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 13px 14px;
    color: var(--ink);
    outline: none;
}

.form-row textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(216, 166, 66, .18);
}

.church-footer {
    color: #fff;
    background: var(--night);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .75fr .75fr .75fr;
    gap: 34px;
    padding: 62px 0 36px;
}

.footer-brand small {
    color: rgba(255, 255, 255, .66);
}

.footer-grid h3 {
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-grid a {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, .72);
}

.footer-grid a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .58);
    font-size: 14px;
}

@media (max-width: 1080px) {
    .church-nav,
    .nav-action {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .church-nav.is-open {
        position: absolute;
        top: 70px;
        left: 20px;
        right: 20px;
        display: grid;
        padding: 10px;
        border-radius: var(--radius);
        background: var(--night);
        box-shadow: var(--shadow);
    }

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

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

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

@media (max-width: 680px) {
    .church-container {
        width: min(100% - 28px, 1180px);
    }

    .hero-section {
        min-height: auto;
        padding-top: 126px;
    }

    .command-metrics,
    .signal-grid,
    .module-grid,
    .stats-row,
    .security-grid,
    .plan-grid,
    .lead-form {
        grid-template-columns: 1fr;
    }

    .signal.large,
    .module-card.feature {
        grid-column: auto;
    }

    .workflow-item {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        display: grid;
    }
}
