/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
    --shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    --accent: #5078b4;
    --accent2: #3d5d8c;
}

[data-theme="dark"] {
    --bg: #0b1220;
    --surface: #0f172a;
    --text: #e5e7eb;
    --muted: #cbd5e1;
    --border: #243244;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    --accent: #93c5fd;
    --accent2: #bfdbfe;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    margin-bottom: 2.5rem;
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    z-index: 10;
}

nav {
    display: flex;
    gap: 1.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    position: relative;
    padding-bottom: 0.15rem;
    transition: color 0.12s ease, transform 0.12s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent2);
    transition: width 0.18s ease;
}

nav a:hover {
    color: var(--accent2);
    transform: translateY(-1px);
}

nav a:hover::after {
    width: 100%;
}

.theme-toggle {
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: translateY(0);
}

main {
    padding: 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-text h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.02rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.94rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.hero-cta:hover {
    text-decoration: underline;
}

.hero-illustration {
    border-radius: 24px;
    padding: 1.5rem;
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration img {
    max-width: 100%;
    border-radius: 18px;
    display: block;
}

article {
    background: var(--surface);
    padding: 2.25rem 2.4rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.intro {
    margin-bottom: 2.5rem;
    font-size: 1.02rem;
    color: var(--muted);
}

article h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
}

article h2:first-of-type {
    margin-top: 0;
}

h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text);
    font-weight: 600;
}

p {
    margin-bottom: 1.1rem;
    text-align: left;
    line-height: 1.75;
    color: var(--text);
}

article a {
    color: var(--accent);
    text-decoration: none;
}

article a:hover {
    text-decoration: underline;
}

.faq {
    margin-top: 3rem;
}

.faq h2 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
    padding: 1.4rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.faq-item h3 {
    color: var(--accent);
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.96rem;
    color: var(--muted);
    margin-bottom: 0;
}

.faq-more {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.faq-more a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.faq-more a:hover {
    text-decoration: underline;
}

footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

footer p {
    margin-bottom: 0;
}

footer nav {
    margin-bottom: 0.75rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-illustration {
        order: -1;
    }

    article {
        padding: 1.8rem 1.5rem;
    }

    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    body {
        padding: 1rem 1rem 2.5rem;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    nav {
        gap: 1.1rem;
    }
}
