:root {
    --bg-main: #020617;
    --bg-secondary: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --primary-color: #06b6d4; /* Cyan */
    --primary-glow: rgba(6, 182, 212, 0.5);
    
    --purple-color: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.5);
    
    --gradient-main: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    
    --card-bg: rgba(30, 41, 59, 0.4);
    --card-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 100%);
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.sphere-1 {
    width: 500px;
    height: 500px;
    background: var(--purple-color);
    top: -100px;
    left: -100px;
    animation: float 20s infinite ease-in-out;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    bottom: -100px;
    right: -100px;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 30px); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s var(--transition);
}

/* Header */
header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: white;
}

.logo img {
    height: 36px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: white;
}

.btn-header {
    background-color: var(--primary-color);
    color: #000;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.2s ease;
    border: 1px solid var(--primary-color);
}

.btn-header:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Buttons */
.btn-primary {
    position: relative;
    padding: 1px;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary .btn-content {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: white;
    padding: 12px 28px;
    border-radius: 99px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: background 0.3s;
    font-family: var(--font-heading);
}

.btn-primary .btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: var(--gradient-main);
    z-index: 1;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover .btn-glow {
    transform: translateX(0);
}

.btn-primary.small .btn-content {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary.large .btn-content {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Hero */
.hero {
    padding: 120px 0 100px;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
}

.dot.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.hero-image-wrapper {
    flex: 1.4;
    position: relative;
    perspective: 800px;
}

.hero-image-glow {
    position: absolute;
    inset: 10%;
    background: var(--gradient-main);
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}

.hero-img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.hero-image-wrapper:hover .hero-img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Features */
.features {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.4s var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.feature-card .card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover .card-bg {
    opacity: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border-radius: 12px;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* CTA */
.cta {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box .glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Legal Pages */
.legal-wrapper {
    padding: 100px 0;
}

.legal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 60px;
    backdrop-filter: blur(10px);
}

.legal-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.legal-content p, .legal-content ul {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content strong {
    color: var(--text-primary);
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 60px 0;
    background: #020617;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 24px;
/*    filter: invert(1);*/
}

.copyright {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.legal-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: transparent;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .hero-buttons {
        align-items: center;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-img {
        transform: none;
    }
    
    .hero-image-wrapper:hover .hero-img {
        transform: scale(1.02);
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .legal-content {
        padding: 30px;
    }
}
/* Image Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1400px;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.2);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform:scale(0.9); opacity: 0;} 
    to {transform:scale(1); opacity: 1;}
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
        margin-top: 50%;
        transform: translateY(-50%);
    }
}
