/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === SHARED === */
body {
    font-family: 'Outfit', system-ui, sans-serif;
    background: linear-gradient(145deg, #d1d5db 0%, #c4c9d4 40%, #b8bec9 70%, #adb4c0 100%);
    color: #1f2937;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

footer {
    width: 100%;
    border-top: none;
    padding: 2rem 1.5rem;
    background: #f9fafb;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.copyright {
    font-size: 0.875rem;
    color: #6b7280;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4b5563;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #1f2937;
}

.footer-links a:hover::after {
    width: 100%;
}

.separator {
    color: #d1d5db;
}

/* === SHARED PILLS === */
.service-pill,
.legal-nav a {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
    background: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.service-pill:hover,
.legal-nav a:hover,
.legal-nav a.active {
    border-color: #e5e7eb;
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* === HOME === */
@keyframes fadeInUp {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(75, 85, 99, 0.4); }
    50%       { box-shadow: 0 0 0 10px rgba(75, 85, 99, 0); }
}

#home main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

#home .container {
    text-align: center;
    max-width: 52rem;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.logo {
    width: 13rem;
    height: 13rem;
    margin: 0 auto 1rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

#home h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.ia {
    color: #000000;
    position: relative;
}

#home .tagline {
    font-size: 1.5rem;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 38rem;
    margin: 0 auto;
    line-height: 1.3;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-section {
    margin-top: 3.5rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.app-card-logo {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
}

.app-card-content {
    text-align: left;
    flex: 1;
}

.app-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.app-card-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* === LEGAL === */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.4rem 1.5rem;
    border-bottom: none;
    background: linear-gradient(145deg, #1f2937 0%, #374151 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

.logo-small {
    width: 6rem;
    height: 6rem;
}

#legal main {
    flex: 1;
    padding: 3rem 1.5rem;
}

#legal .container {
    max-width: 56rem;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.legal-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    scroll-margin-top: 8rem;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-section p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 1rem 0 1rem 1.5rem;
}

.legal-section li {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}


/* === MEDIA QUERIES === */
@media (min-width: 768px) {
    .logo {
        width: 15rem;
        height: 15rem;
    }

    #home h1 {
        font-size: 2.8rem;
    }

    #home .tagline {
        font-size: 1.75rem;
    }

.page-title {
        font-size: 3rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    #home h1 {
        font-size: 1.75rem;
    }

    #home .tagline {
        font-size: 1.25rem;
    }

    .description {
        font-size: 1rem;
    }

    .service-pill {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 0.75rem;
    }

    .separator {
        display: none;
    }

.page-title {
        font-size: 2rem;
    }

    .legal-section {
        padding: 1.5rem;
    }
}
