:root {
    --bg: #08111f;
    --bg-soft: #0f1c30;
    --surface: #ffffff;
    --surface-alt: #edf2f8;
    --text: #0b1628;
    --text-muted: #4b5a70;
    --line: rgba(11, 22, 40, 0.12);
    --brand: #0f5ea8;
    --brand-dark: #0a3568;
    --accent: #d2a44c;
    --success: #dff5e6;
    --success-text: #14532d;
    --error: #fce8e6;
    --error-text: #991b1b;
    --shadow: 0 24px 48px rgba(8, 17, 31, 0.12);
    --radius: 22px;
    --container: min(1120px, calc(100vw - 2rem));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--text);
    background: #f5f8fc;
    line-height: 1.6;
}

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

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

.site-shell {
    min-height: 100vh;
}

.topbar {
    background: var(--bg);
    color: #d9e4f3;
    font-size: 0.95rem;
}

.topbar__inner,
.header__inner,
.hero__inner,
.section__inner,
.footer__inner {
    width: var(--container);
    margin: 0 auto;
}

.topbar__inner {
    padding: 0.7rem 0;
    display: flex;
    justify-content: center;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(11, 22, 40, 0.08);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 0;
}

.brand img {
    width: min(240px, 48vw);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-weight: 600;
}

.nav a.is-active,
.nav a:hover {
    color: var(--brand-dark);
    background: rgba(15, 94, 168, 0.08);
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    color: #fff;
}

.hero--compact {
    min-height: 360px;
}

.hero__slides,
.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    animation: hero-fade 18s infinite;
}

.hero__slide:nth-child(2) {
    animation-delay: 6s;
}

.hero__slide:nth-child(3) {
    animation-delay: 12s;
}

.hero__overlay {
    background:
        linear-gradient(120deg, rgba(5, 15, 29, 0.88), rgba(10, 53, 104, 0.68)),
        radial-gradient(circle at top left, rgba(210, 164, 76, 0.28), transparent 36%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding: 7rem 0 6rem;
}

.hero__content {
    max-width: 720px;
}

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

.hero h1,
.page-hero h1 {
    margin: 0 0 1rem;
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.08;
}

.hero p,
.page-hero p {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
}

.button--primary {
    background: var(--accent);
    color: #1f1606;
}

.button--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.section {
    padding: 5rem 0;
}

.section--tight {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

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

.section__heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section__heading h2 {
    margin: 0.3rem 0 0.8rem;
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.section__heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section--dark .section__heading p,
.section--dark .card p,
.section--dark .list li,
.section--dark .feature-list li {
    color: rgba(255, 255, 255, 0.82);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.card--dark {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.card h3,
.card h4 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
}

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

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

.stat {
    padding: 1.2rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.feature-list,
.list {
    margin: 0;
    padding-left: 1.1rem;
}

.split {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
}

.panel {
    background: var(--surface);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-panel {
    background: linear-gradient(180deg, #ffffff, #f4f8fd);
}

.contact-meta {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-meta__item {
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
}

.contact-meta__item span {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.contact-meta__item strong {
    display: block;
    margin-top: 0.35rem;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

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

.field label {
    font-weight: 700;
    font-size: 0.95rem;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(11, 22, 40, 0.16);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--text);
    background: #fff;
}

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

.field input:focus,
.field textarea:focus {
    outline: 2px solid rgba(15, 94, 168, 0.2);
    border-color: var(--brand);
}

.errors,
.messages {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.message {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    font-weight: 600;
}

.message--success {
    background: var(--success);
    color: var(--success-text);
}

.message--error {
    background: var(--error);
    color: var(--error-text);
}

.field__error {
    font-size: 0.9rem;
    color: var(--error-text);
}

.footer {
    background: var(--bg);
    color: #cdd8e8;
    padding: 2rem 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.footer__inner p {
    margin: 0;
}

@keyframes hero-fade {
    0%, 20% {
        opacity: 0;
    }
    25%, 55% {
        opacity: 1;
    }
    60%, 100% {
        opacity: 0;
    }
}

@media (max-width: 960px) {
    .grid--3,
    .stats,
    .split {
        grid-template-columns: 1fr;
    }

    .grid--2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .header__inner,
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
    }

    .hero__inner {
        padding: 5.5rem 0 4.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}
