:root {
    --primary: #a855f7;
    --primary-light: #c084fc;
    --primary-dark: #7e22ce;
    --primary-glow: rgba(168, 85, 247, 0.4);
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

a {
    text-decoration: none;
    color: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Layout Components --- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

nav.nav-legal .container {
    justify-content: space-between;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.lang-switch:hover {
    border-color: var(--primary);
    background: var(--glass-highlight);
    transform: translateY(-2px);
}

.nav-back-btn {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    transition: var(--transition);
}

.nav-back-btn:hover {
    background: var(--glass-highlight);
    border-color: var(--primary);
    transform: translateX(-5px);
}

.logo {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.logo:hover {
    filter: brightness(1.2);
}

/* --- Hero Section --- */

.hero-section {
    position: relative;
    padding: 12rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background Glows */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
}

.hero-section::before {
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.hero-section::after {
    background: #3b82f6;
    bottom: -100px;
    left: -100px;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 5rem;
    position: relative;
}

.hero-content {
    flex: 1.2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-title span {
    display: block;
    background: linear-gradient(to right, var(--primary), #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-main-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.hero-description {
    flex: 1.2;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 540px;
    font-weight: 400;
}

.hero-image {
    flex: 0.7;
    position: relative;
    max-width: 450px;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(168, 85, 247, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

@media (max-width: 991px) {
    .hero-main-row {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* --- Buttons --- */

.btn-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(168, 85, 247, 0.5);
    background: var(--primary-light);
}

.btn-outline {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--glass-highlight);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* --- Features Section --- */

.features {
    padding: 10rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 5rem;
    color: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 3rem 2rem;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Footer --- */

footer {
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

footer .logo {
    margin-bottom: 1.5rem;
    display: inline-block;
}

footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

footer .footer-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

footer .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

footer .footer-links a:hover {
    color: var(--primary);
}

/* --- Animations --- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-fade-in {
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-content {
        order: 2;
        width: 100%;
    }
    
    .hero-image {
        order: 1;
        width: 80%;
        max-width: 400px;
    }
    
    .hero-description {
        margin: 0 auto 3rem;
    }
    
    .btn-group {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .feature-card {
        padding: 2.5rem 1.5rem;
    }
}
/* --- Document Pages --- */

.doc-section {
    padding: 10rem 0 6rem;
    min-height: 80vh;
}

.doc-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem;
    backdrop-filter: blur(10px);
}

.doc-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.doc-content .last-updated {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.doc-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1.25rem;
    color: #fff;
}

.doc-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.doc-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.doc-content li {
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    .doc-content {
        padding: 2.5rem 1.5rem;
    }
    
    .doc-content h1 {
        font-size: 2.25rem;
    }
}
