:root {
    --primary: #00788f;
    --primary-bright: #0097b2;
    --primary-soft: #e3f4f7;
    --primary-softer: #f2fafb;
    --ink: #0f2430;
    --text: #263842;
    --muted: #5a6b74;
    --border: #dce6e9;
    --bg: #ffffff;
    --bg-soft: #f5f8f9;
    --radius: 18px;
    --radius-small: 12px;
    --shadow: 0 1px 2px rgb(15 36 48 / 0.06), 0 12px 32px rgb(15 36 48 / 0.08);
    --shadow-strong: 0 24px 60px rgb(15 36 48 / 0.18);
    --container: 1180px;
    --header-height: 72px;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

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

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--primary-bright);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary-bright);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 35%, transparent);
}

.button--ghost {
    background: transparent;
    color: var(--primary);
}

.button--ghost:hover {
    background: var(--primary-soft);
}

.button--white {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--primary);
}

.button--outline-white {
    border-color: rgb(255 255 255 / 0.7);
    background: transparent;
    color: #ffffff;
}

.button--small {
    padding: 9px 16px;
    font-size: 0.925rem;
}

.text-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.text-link::after {
    content: " →";
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    background: rgb(255 255 255 / 0.94);
    backdrop-filter: saturate(180%) blur(12px);
}

.topbar__inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-bright), var(--primary));
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
}

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

.nav__link {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav__link:hover {
    color: var(--ink);
    background: var(--bg-soft);
}

.hero {
    padding: 72px 0;
    background: linear-gradient(180deg, var(--primary-softer), var(--bg));
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.hero__title {
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.hero__lead {
    max-width: 560px;
    color: var(--muted);
    font-size: clamp(1.075rem, 1.6vw, 1.2rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__media {
    position: relative;
}

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

.hero__media::before {
    content: "";
    position: absolute;
    inset: 24px -24px -24px 24px;
    z-index: -1;
    border-radius: 24px;
    background: var(--primary-soft);
}

.badges {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badges li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.badges li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 800;
}

.section {
    padding: 88px 0;
}

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

.section-head {
    max-width: 720px;
    margin-bottom: 44px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-head--center {
    margin-inline: auto;
    align-items: center;
    text-align: center;
}

.section-head__title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
}

.section-head__lead {
    color: var(--muted);
    font-size: 1.1rem;
}

.media-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.media-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.media-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.media-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
}

.media-card__tag {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.media-card__title {
    font-size: 1.15rem;
    font-weight: 700;
}

.media-card__text {
    color: var(--muted);
    font-size: 0.975rem;
}

.media-card__more {
    margin-top: auto;
    padding-top: 6px;
    color: var(--primary);
    font-weight: 700;
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

.feature + .feature {
    margin-top: 80px;
}

.feature--reverse .feature__media {
    order: 2;
}

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

.feature__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.feature__title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 800;
}

.feature__text {
    color: var(--muted);
}

.checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist li {
    display: flex;
    gap: 12px;
}

.checklist li::before {
    content: "✓";
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    counter-increment: step;
}

.step::before {
    content: counter(step, decimal-leading-zero);
    color: var(--primary-bright);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.step__title {
    font-size: 1.1rem;
    font-weight: 700;
}

.step__text {
    color: var(--muted);
    font-size: 0.975rem;
}

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

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery__item--wide {
    grid-column: span 2;
}

.gallery__item--tall {
    grid-row: span 2;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery__item:hover img {
    transform: scale(1.04);
}

.gallery__item figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 28px 16px 14px;
    background: linear-gradient(180deg, transparent, rgb(15 36 48 / 0.78));
    color: #ffffff;
    font-size: 0.925rem;
    font-weight: 600;
}

.faq {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--bg);
}

.faq__item summary {
    padding: 18px 22px;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    list-style-position: inside;
}

.faq__item summary::marker {
    color: var(--primary);
}

.faq__item p {
    padding: 0 22px 20px;
    color: var(--muted);
}

.cta-band {
    padding: 72px 0;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgb(255 255 255 / 0.16), transparent 60%),
        linear-gradient(135deg, var(--primary-bright), var(--primary));
    color: #ffffff;
}

.cta-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: center;
    gap: 32px;
}

.cta-band__title {
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
}

.cta-band__text {
    margin-top: 10px;
    color: rgb(255 255 255 / 0.88);
    font-size: 1.1rem;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-band :focus-visible {
    outline-color: #ffffff;
}

.breadcrumbs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.breadcrumbs li + li::before {
    content: "›";
    margin-right: 8px;
}

.breadcrumbs a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.article-hero {
    padding: 56px 0 0;
    background: linear-gradient(180deg, var(--primary-softer), var(--bg));
}

.article-hero__inner {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.article-hero__title {
    font-size: clamp(2.1rem, 4.4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.article-hero__lead {
    color: var(--muted);
    font-size: clamp(1.075rem, 1.6vw, 1.25rem);
}

.article-cover {
    max-width: 1080px;
    margin: 40px auto 0;
}

.article-cover img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
}

.article-layout {
    padding: 56px 0 88px;
}

.prose {
    max-width: 760px;
    margin: 0 auto;
}

.prose > * + * {
    margin-top: 20px;
}

.prose h2 {
    margin-top: 48px;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 800;
}

.prose h3 {
    margin-top: 32px;
    font-size: 1.2rem;
    font-weight: 700;
}

.prose ul,
.prose ol {
    padding-left: 1.3rem;
}

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

.prose li::marker {
    color: var(--primary);
    font-weight: 700;
}

.prose a {
    color: var(--primary);
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.prose strong {
    color: var(--ink);
}

.prose figure {
    margin-top: 36px;
    margin-bottom: 36px;
}

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

.prose figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

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

.image-pair img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.callout {
    padding: 22px 24px;
    border-left: 4px solid var(--primary-bright);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
    background: var(--primary-softer);
    color: var(--ink);
}

.callout strong {
    display: block;
    margin-bottom: 4px;
}

.site-footer {
    padding: 64px 0 32px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.site-footer__about {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer__title {
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 800;
}

.site-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.site-footer__list a {
    text-decoration: none;
}

.site-footer__list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.site-footer__bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
}

@media (max-width: 960px) {
    .hero__grid,
    .feature,
    .cta-band__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__grid {
        gap: 48px;
    }

    .feature {
        gap: 32px;
    }

    .feature--reverse .feature__media {
        order: 0;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 180px;
    }

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

@media (max-width: 640px) {
    .container {
        padding: 0 18px;
    }

    .nav__link {
        display: none;
    }

    .hero {
        padding: 48px 0 56px;
    }

    .hero__media::before {
        display: none;
    }

    .section {
        padding: 64px 0;
    }

    .gallery__item--wide {
        grid-column: span 2;
    }

    .image-pair,
    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-cover img {
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
