body {
    background-color: var(--bg-canvas);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 60px;
}

main.homepage-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero {
    text-align: center;
    padding: 6rem 1rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero .title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero .title .text-dark {
    color: var(--slate-900);
}

.hero .title .text-primary {
    color: var(--blue-600);
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

.hero .btn-primary {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--blue-200);
    box-shadow: var(--shadow-sm);
}

.hero .btn-primary:hover {
    background-color: var(--blue-50);
    border-color: var(--blue-300);
    color: var(--text-primary);
}

.hero .btn-secondary {
    background-color: var(--bg-primary);
    color: var(--text-inverse);
    border: 2px solid var(--bg-primary);
    display: inline-flex;
}

.hero .btn-secondary:hover {
    background-color: var(--bg-primary-hover);
    border-color: var(--bg-primary-hover);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 4rem 1rem;
}

.feature-card {
    background-color: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--blue-50);
    color: var(--blue-600);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--slate-900);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.text-dark {
    color: var(--slate-900);
}

.text-primary {
    color: var(--blue-600);
}

@media (max-width: 768px) {
    .hero {
        padding-top: 4rem;
    }

    .hero .title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }
}

.legal-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.legal-section {
    background-color: var(--bg-surface);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--blue-600);
    margin: 0 0 1rem 0;
}

.legal-section p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 0.75rem 0;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
}

.credits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credits-list li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.credits-list li:last-child {
    border-bottom: none;
}

.credits-list a {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 500;
}

.credits-list a:hover {
    text-decoration: underline;
}

.sitemap-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 2rem 1rem 4rem;
}

.sitemap-category {
    background-color: var(--bg-surface);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
}

.sitemap-category h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue-600);
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--blue-100);
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list li {
    padding: 0.5rem 0;
}

.sitemap-list a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.sitemap-list a:hover {
    color: var(--blue-600);
    padding-left: 0.5rem;
}

.sitemap-list a::before {
    content: "→";
    margin-right: 0.75rem;
    color: var(--blue-400);
    font-weight: 400;
}