:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #8495f5;
    --secondary: #764ba2;
    --secondary-dark: #5d3b82;
    --secondary-light: #9368c4;
    --accent: #00f2fe;
    --accent-alt: #4facfe;
    --gold: #fbbf24;
    --gold-light: #fcd34d;
    --dark: #1a1a1a;
    --dark-light: #2d2d2d;
    --light: #ffffff;
    --gray: #f4f4f4;
    --gray-dark: #666666;
    --text: #333333;
    --text-light: #666666;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.16);
    --shadow-premium: 0 30px 80px rgba(102, 126, 234, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Spline Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navbar */
.navbar {
    padding: 24px 0;
    position: absolute;
    width: 100%;
    z-index: 100;
    top: 0;
    transition: var(--transition);
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
    backdrop-filter: blur(5px);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 28px;
    font-weight: 800;
    color: var(--light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-fast);
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-btn {
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: inline-block;
}

.login-btn {
    color: var(--light);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.register-btn {
    background: linear-gradient(135deg, var(--accent-alt), var(--accent));
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-image: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%),
        url('/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light);
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.15), transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 242, 254, 0.03) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 16px;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--accent);
    text-shadow: 0 2px 10px rgba(0, 242, 254, 0.5);
}

.gradient-text {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    background-size: 200% 200%;
    filter: drop-shadow(0 0 20px rgba(79, 172, 254, 0.5));
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin-bottom: 48px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 17px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.primary-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: var(--dark);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4), 0 4px 15px rgba(0, 242, 254, 0.2);
    font-weight: 800;
}

.primary-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.5), 0 6px 20px rgba(0, 242, 254, 0.3);
}

.primary-btn:active {
    transform: translateY(-2px) scale(1.01);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.12);
    color: var(--light);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
section {
    padding: 100px 0;
}

section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 700;
}

section .section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* Features Section */
.features {
    background: linear-gradient(180deg, var(--light) 0%, var(--gray) 100%);
}

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

.feature-card {
    padding: 48px 36px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

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

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(102, 126, 234, 0.2);
}

.feature-card .icon {
    font-size: 4rem;
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.feature-card .icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.feature-card:hover .icon {
    transform: scale(1.15) rotate(10deg);
}

.feature-card:hover .icon::before {
    opacity: 0.15;
}

.feature-card h3 {
    margin-bottom: 16px;
    color: var(--dark);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
}

/* Statistics Section */
.statistics {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 60%, #5d3b82 100%);
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.statistics::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.statistics::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.1), transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.statistics h2 {
    color: var(--light);
    position: relative;
    z-index: 1;
}

.statistics .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.stat-number {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-size: 1.15rem;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* How It Works Section */
.how-it-works {
    background: var(--light);
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.step {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.step-content {
    flex: 1;
    background: var(--light);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.step-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.step:nth-child(even) .step-content:hover {
    transform: translateX(-8px);
}

.step-content h3 {
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.step-content p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--light);
    text-align: center;
}

.cta-section h2 {
    color: var(--light);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--light);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--light);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    margin-top: 30px;
}

/* Legal Pages */
.legal-page {
    padding: 140px 20px 80px;
    max-width: 900px;
}

.legal-page h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 800;
}

.last-updated {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1rem;
    font-style: italic;
}

.legal-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    margin-top: 40px;
}

.table-of-contents {
    position: sticky;
    top: 100px;
    align-self: start;
    background: var(--gray);
    padding: 24px;
    border-radius: var(--border-radius);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.table-of-contents h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 12px;
}

.table-of-contents a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.table-of-contents a:hover,
.table-of-contents a.active {
    color: var(--primary);
    background: var(--light);
}

.legal-page section {
    margin-bottom: 48px;
    scroll-margin-top: 100px;
}

.legal-page h2 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-page h2 .icon {
    font-size: 1.5rem;
}

.legal-page h3 {
    color: var(--dark);
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.legal-page p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--text);
}

.legal-page ul, .legal-page ol {
    margin-bottom: 16px;
    padding-left: 28px;
}

.legal-page li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--text);
}

.legal-page strong {
    color: var(--dark);
    font-weight: 600;
}

.legal-page .highlight-box {
    background: var(--gray);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: var(--border-radius);
}

/* Responsive Design */
@media (max-width: 968px) {
    .legal-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .table-of-contents {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        min-height: 90vh;
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .step {
        flex-direction: column !important;
        text-align: center;
    }
    
    .step-content:hover,
    .step:nth-child(even) .step-content:hover {
        transform: translateY(-5px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .legal-page {
        padding: 100px 16px 60px;
    }
}
