:root {
    color-scheme: light;
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-soft: #f0f3f7;
    --surface-tint: #eef7f5;
    --text: #1d2733;
    --muted: #647386;
    --heading: #0f1722;
    --border: #dfe5ec;
    --accent: #5d8f87;
    --accent-strong: #3f6f68;
    --accent-soft: #e6f3f0;
    --button-text: #ffffff;
    --footer-bg: #eef2f6;
    --shadow: 0 18px 48px rgba(31, 44, 61, 0.08);
    --shadow-hover: 0 24px 64px rgba(31, 44, 61, 0.13);
    --radius: 16px;
    --max: 1160px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f141b;
    --surface: #161d26;
    --surface-soft: #1d2631;
    --surface-tint: #172722;
    --text: #e7edf5;
    --muted: #a9b5c4;
    --heading: #f8fbff;
    --border: #2a3542;
    --accent: #8fc8bd;
    --accent-strong: #b1ded6;
    --accent-soft: #1d3631;
    --button-text: #0f141b;
    --footer-bg: #151c25;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 24px 64px rgba(0, 0, 0, 0.36);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0f141b;
        --surface: #161d26;
        --surface-soft: #1d2631;
        --surface-tint: #172722;
        --text: #e7edf5;
        --muted: #a9b5c4;
        --heading: #f8fbff;
        --border: #2a3542;
        --accent: #8fc8bd;
        --accent-strong: #b1ded6;
        --accent-soft: #1d3631;
        --button-text: #0f141b;
        --footer-bg: #151c25;
        --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
        --shadow-hover: 0 24px 64px rgba(0, 0, 0, 0.36);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

[id] {
    scroll-margin-top: 96px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(18px);
}

.site-header.is-compact {
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--heading);
    text-decoration: none;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 650;
}

nav a:hover,
nav a:focus-visible {
    color: var(--heading);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--heading);
    background: var(--surface);
    cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: var(--accent);
}

.theme-toggle-moon,
html[data-theme="dark"] .theme-toggle-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle-moon {
    display: inline;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle-sun {
        display: none;
    }

    :root:not([data-theme="light"]) .theme-toggle-moon {
        display: inline;
    }
}

main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 60px 18px 88px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(430px, 0.98fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    min-height: 620px;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    font-weight: 800;
}

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

h1,
h2,
h3 {
    color: var(--heading);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(3.2rem, 7vw, 6.2rem);
    font-weight: 850;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    font-weight: 800;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.08rem;
    font-weight: 760;
}

.hero-lede {
    max-width: 620px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 760;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--button-text);
    background: var(--accent);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 30%, transparent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--accent-strong);
}

.btn-small {
    min-height: 40px;
    padding: 9px 14px;
}

.text-link {
    color: var(--heading);
    font-weight: 720;
    text-underline-offset: 0.22em;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--accent-strong);
}

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

.pill-list li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    background: var(--surface);
    font-size: 0.9rem;
    font-weight: 650;
}

.pill-list svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-strong);
}

.hero-visual {
    position: relative;
    width: min(100%, 720px);
    justify-self: end;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.poster-track {
    display: flex;
    transition: transform 0.36s ease;
    will-change: transform;
}

.poster-slide {
    flex: 0 0 100%;
    margin: 0;
}

.poster-slide img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.poster-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.poster-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.poster-dot.is-active {
    width: 24px;
    background: #ffffff;
}

.section {
    margin-top: 96px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

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

.feature-card,
.steps-grid article,
.gallery-shell,
.pro-section,
.policy-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(20, 31, 45, 0.04);
}

.feature-card {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 12px;
    color: var(--accent-strong);
    background: var(--accent-soft);
}

.feature-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.feature-card p,
.steps-grid p,
.gallery-slide figcaption,
.pro-section p,
.policy-card p,
.policy-card li {
    color: var(--muted);
}

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

.steps-grid article {
    padding: 24px;
}

.step-number {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 999px;
    color: var(--button-text);
    background: var(--accent);
    font-weight: 800;
}

.gallery-shell {
    padding: 18px;
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.28s ease;
    will-change: transform;
}

.gallery-slide {
    flex: 0 0 calc(50% - 10px);
    margin: 0 20px 0 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.gallery-slide img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gallery-slide figcaption {
    padding: 14px 16px 16px;
    font-weight: 650;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.gallery-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--heading);
    background: var(--surface);
    cursor: pointer;
}

.gallery-button:hover,
.gallery-button:focus-visible {
    border-color: var(--accent);
}

.gallery-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.gallery-button svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.gallery-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 35%, transparent);
    cursor: pointer;
}

.gallery-dot.is-active {
    width: 24px;
    background: var(--accent);
}

.pro-section {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: clamp(24px, 4vw, 38px);
    background: var(--surface-tint);
}

.pro-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--accent-strong);
    background: var(--surface);
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1;
}

.pro-section h2 {
    font-size: clamp(1.75rem, 3.4vw, 3rem);
}

.pro-section p {
    margin-bottom: 0;
}

.site-footer {
    background: var(--footer-bg);
}

.footer-grid,
.footer-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr 1fr;
    gap: 28px;
    padding-top: 50px;
    padding-bottom: 38px;
}

.site-footer h2 {
    font-size: 1.1rem;
}

.site-footer p,
.site-footer dd {
    color: var(--muted);
}

.site-footer a {
    color: var(--heading);
    text-underline-offset: 0.2em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--accent-strong);
}

.faq-list {
    margin: 0;
}

.faq-list dt {
    color: var(--heading);
    font-weight: 760;
}

.faq-list dd {
    margin: 0 0 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    margin: 0;
    color: var(--muted);
}

.footer-bottom nav {
    justify-content: flex-start;
}

.policy-main {
    max-width: 900px;
}

.policy-card {
    padding: clamp(24px, 5vw, 52px);
}

.policy-card h1 {
    max-width: 18ch;
    font-size: clamp(2.25rem, 4.6vw, 3.9rem);
    line-height: 1.08;
}

.policy-card h2 {
    margin-top: 42px;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.policy-card ul {
    padding-left: 1.35rem;
}

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

.policy-card a {
    color: var(--accent-strong);
    font-weight: 720;
}

.policy-date {
    color: var(--muted);
}

.policy-toc {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 36px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.policy-toc a {
    display: inline-flex;
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--heading);
    background: var(--surface);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 650;
}

.policy-toc a:hover,
.policy-toc a:focus-visible {
    color: var(--accent-strong);
}

.simple-footer {
    margin-top: 0;
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
        gap: 32px;
    }

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

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-header nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .hero,
    .steps-grid,
    .pro-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-visual {
        width: 100%;
        justify-self: stretch;
    }

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

@media (max-width: 640px) {
    [id] {
        scroll-margin-top: 156px;
    }

    .site-header {
        padding: 14px;
    }

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 0.9rem;
    }

    main {
        padding: 40px 14px 64px;
    }

    h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    h2 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

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

    .feature-card {
        min-height: 0;
    }

    .gallery-slide {
        flex-basis: 100%;
        margin-right: 0;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
