:root {
    --color-bg: #f8fafb;
    --color-surface: #ffffff;
    --color-text: #1a2b32;
    --color-text-muted: #5a6b72;
    --color-accent: #0d4f5c;
    --color-accent-hover: #0a3d47;
    --color-accent-light: #e6f2f4;
    --color-border: #dde5e8;
    --color-hero-bg: linear-gradient(160deg, #e6f2f4 0%, #f8fafb 55%, #ffffff 100%);
    --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 72rem;
    --header-height: 5.5rem;
    --radius: 0.75rem;
    --shadow-sm: 0 1px 3px rgba(13, 79, 92, 0.08);
    --shadow-md: 0 4px 20px rgba(13, 79, 92, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    color: var(--color-text);
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand__logo {
    display: block;
    height: 3.5rem;
    width: auto;
    max-width: min(22rem, 78vw);
    object-fit: contain;
    object-position: left center;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.25rem 0;
}

.site-nav a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Hero */

.hero {
    background: var(--color-hero-bg);
    padding: 4rem 0 5rem;
    border-bottom: 1px solid var(--color-border);
}

.hero__inner {
    max-width: 42rem;
}

.hero__eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: var(--color-accent-light);
    border-radius: 999px;
}

.hero h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero__lead {
    margin: 0 0 2rem;
    font-size: 1.1875rem;
    color: var(--color-text-muted);
    max-width: 36rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
}

/* Sections */

.section {
    padding: 4.5rem 0;
}

.section--alt {
    background: var(--color-surface);
    border-block: 1px solid var(--color-border);
}

.section__header {
    max-width: 40rem;
    margin-bottom: 2.5rem;
}

.section__header h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section__header p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.0625rem;
}

/* About */

.about__text {
    max-width: 42rem;
    margin: 0;
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.about__text + .about__text {
    margin-top: 1.25rem;
}

/* Feature grid */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.section--alt .feature-card {
    background: var(--color-bg);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #c5d8dc;
}

.feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 0.5rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
}

.feature-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* Built for */

.built-for__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.built-for__list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

.built-for__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--color-accent);
    border-radius: 50%;
}

/* Contact */

.download-section--temp .section__header {
    max-width: 44rem;
}

.download-section__badge {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a5a00;
    background: #fff4d6;
    border: 1px solid #f0d590;
    border-radius: 999px;
}

.download-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    max-width: 44rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.section--alt .download-card {
    background: var(--color-bg);
}

.download-card__title {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
}

.download-card__meta {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.download-card__desc {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    max-width: 32rem;
}

.download-card__btn {
    flex-shrink: 0;
}

.contact {
    text-align: center;
}

.contact .section__header {
    margin-inline: auto;
    text-align: center;
}

.contact__email {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.contact__email a {
    color: var(--color-text-muted);
}

.contact__email a:hover {
    color: var(--color-accent);
}

/* Footer */

.site-footer {
    padding: 2.5rem 0;
    background: var(--color-text);
    color: #a8b8be;
    font-size: 0.875rem;
    text-align: center;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.site-footer__logo {
    height: 2.75rem;
    width: auto;
    max-width: 14rem;
    object-fit: contain;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #d0e0e4;
}

.site-footer a:hover {
    color: #fff;
}

/* Responsive */

@media (max-width: 640px) {
    .site-header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-block: 0.75rem;
        height: auto;
        min-height: var(--header-height);
    }

    .brand__logo {
        height: 2.75rem;
        max-width: min(18rem, 62vw);
    }

    .site-nav {
        justify-content: flex-end;
    }

    .hero {
        padding: 3rem 0 3.5rem;
    }

    .section {
        padding: 3rem 0;
    }
}
