:root {
    --primary: #28304B;
    --primary-light: #2E3854;
    --primary-dark: #1C2238;
    --surface: #f5f5f7;
    --surface-warm: #faf9f7;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --border: #e5e5e7;
    --white: #ffffff;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 800px;
}

/* Navigation */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.nav__logo img {
    width: 32px;
    height: 32px;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* Hero */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 56px;
}

.hero--short {
    min-height: 50vh;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(28, 34, 56, 0.92) 0%,
        rgba(28, 34, 56, 0.6) 40%,
        rgba(28, 34, 56, 0.2) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    color: var(--white);
    max-width: 680px;
}

.hero__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.hero__title {
    font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 540px;
}

/* Sections */

.section {
    padding: clamp(60px, 5vw, 100px) 0;
}

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

.section--dark {
    background: var(--primary);
    color: var(--white);
}

.section--dark .section__eyebrow {
    color: rgba(255, 255, 255, 0.5);
}

.section--dark .section__text {
    color: rgba(255, 255, 255, 0.75);
}

.section--dark a {
    color: rgba(255, 255, 255, 0.9);
}

.section__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.section__title {
    font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin-bottom: 20px;
}

.section--dark .section__title {
    color: var(--white);
}

.section__text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 680px;
}

.section__text + .section__text {
    margin-top: 16px;
}

.section__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 500;
    color: var(--primary);
    margin-top: 24px;
}

.section__link::after {
    content: "\2192";
    transition: transform 0.2s;
}

.section__link:hover {
    opacity: 1;
}

.section__link:hover::after {
    transform: translateX(4px);
}

.section--dark .section__link {
    color: rgba(255, 255, 255, 0.9);
}

/* Grid layouts */

.grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

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

.grid--2-narrow {
    grid-template-columns: 5fr 4fr;
}

.grid--reverse .grid__media {
    order: -1;
}

.grid__media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

/* Quote block */

.quote {
    border-left: 3px solid var(--primary);
    padding-left: 24px;
    margin: 32px 0;
    font-size: 19px;
    font-style: italic;
    line-height: 1.6;
    color: var(--text);
}

.section--dark .quote {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.85);
}

.quote__author {
    display: block;
    font-style: normal;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 12px;
}

.section--dark .quote__author {
    color: rgba(255, 255, 255, 0.5);
}

/* Cards */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card__number {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.card__desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* CTA block */

.cta {
    text-align: center;
    padding: clamp(60px, 6vw, 100px) 24px;
    background: var(--primary);
    color: var(--white);
}

.cta__title {
    font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta__text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.cta__btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 980px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta__btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Image gallery row */

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

.gallery img {
    border-radius: var(--radius);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: var(--shadow);
}

/* Footer */

.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 56px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 16px;
}

.footer__brand img {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1);
}

.footer__about {
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.footer__heading {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer__links {
    list-style: none;
}

.footer__links li + li {
    margin-top: 10px;
}

.footer__links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--white);
    opacity: 1;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer__bottom a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 24px;
}

/* Page content (subpages) */

.page-header {
    padding-top: calc(56px + 64px);
    padding-bottom: 48px;
    text-align: center;
}

.page-header__title {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.page-header__sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.prose {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
}

.prose h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.prose h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 36px;
    margin-bottom: 12px;
}

.prose p + p {
    margin-top: 16px;
}

.prose ul, .prose ol {
    margin: 16px 0;
    padding-left: 24px;
}

.prose li + li {
    margin-top: 8px;
}

.prose img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin: 32px 0;
}

.prose .highlight {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
    border-left: 3px solid var(--primary);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

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

.prose th {
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Animations */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

.fade-up--d1 { animation-delay: 0.15s; }
.fade-up--d2 { animation-delay: 0.3s; }
.fade-up--d3 { animation-delay: 0.45s; }

/* Responsive */

@media (max-width: 900px) {
    .grid--2,
    .grid--2-narrow {
        grid-template-columns: 1fr;
    }

    .grid--reverse .grid__media {
        order: 0;
    }

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

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

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer__bottom a {
        margin-left: 0;
        margin-right: 16px;
    }

    .hero__content {
        padding: 48px 0;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 70vh;
    }

    .hero--short {
        min-height: 40vh;
    }

    .nav__inner {
        height: 48px;
    }

    .hero {
        margin-top: 48px;
    }

    .page-header {
        padding-top: calc(48px + 40px);
    }
}
