:root {
    --purple-600: #5b21b6;
    --purple-700: #4c1d95;
    --purple-100: #ede9fe;
    --purple-50: #f5f3ff;
    --gray-900: #1a1a1a;
    --gray-700: #404040;
    --gray-500: #737373;
    --gray-300: #d4d4d4;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
    --white: #ffffff;
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Nunito Sans', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gray-900);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links > a:not(.btn):not(.lang-switcher a) {
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links > a:not(.btn):hover,
.nav-links > a:not(.btn).active {
    color: var(--purple-600);
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.lang-switcher a {
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.lang-switcher a:hover {
    color: var(--purple-600);
}

.lang-switcher a.active {
    color: var(--gray-700);
    font-weight: 600;
}

.lang-switcher span {
    color: var(--gray-300);
    font-size: 0.875rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--purple-600);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--purple-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--purple-600);
    border: 1.5px solid var(--purple-600);
}

.btn-secondary:hover {
    background: var(--purple-50);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover {
    color: var(--purple-600);
    background: var(--purple-50);
}

/* Section styles */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple-600);
    margin-bottom: 1rem;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* Page Header */
.page-header {
    padding: 8rem 2rem 4rem;
    background: var(--gray-50);
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
}

/* Footer */
footer {
    padding: 2.5rem 2rem;
    background: var(--gray-900);
    color: var(--white);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.footer-logo svg {
    border-radius: 6px;
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
}

.footer-minimal > p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background 0.2s ease;
}

.footer-social a:hover {
    background: var(--purple-600);
}

@media (max-width: 768px) {
    .footer-minimal {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Open State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation - Hidden by default */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Mobile Navigation - Child element sizing (fixed to prevent animation jank) */
    .nav-links > a:not(.btn) {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .nav-links .btn.btn-primary {
        width: auto;
        text-align: center;
    }

    .nav-links .lang-switcher {
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--gray-200);
    }

    /* Mobile Navigation - Open state */
    .nav-links.open {
        display: flex;
        max-height: 400px;
        opacity: 1;
        padding: 1.5rem 2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-container.simple {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
