/* ========================================
   LANDING PAGE STYLES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    --primary: #FF2E63;
    --secondary: #08D9D6;
    --dark: #252A34;
    --light: #EAEAEA;
    --accent: #FFD23F;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1d26 100%);
    color: var(--light);
    line-height: 1.6;
}

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

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 10;
}

.nav-brand h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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


.lang-selector {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.lang-selector:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-selector:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 217, 214, 0.3);
}

.lang-selector option {
    background: var(--dark);
    color: var(--light);
    padding: 0.5rem;
}

.btn-launch {
    background: rgba(8, 217, 214, 0.2);
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-launch:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-2px);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 5;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(234, 234, 234, 0.8);
    max-width: 700px;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #d91e50);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 46, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 46, 99, 0.4);
}

.btn-primary.btn-large {
    padding: 1.5rem 4rem;
    font-size: 1.4rem;
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--light);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-image {
    position: absolute;
    bottom: 0;
    right: 10%;
    width: 400px;
    height: 400px;
    opacity: 0.1;
    pointer-events: none;
}

.bracket-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.bracket-line {
    position: absolute;
    background: var(--secondary);
    animation: pulse 3s ease-in-out infinite;
}

.bracket-line:nth-child(1) {
    width: 200px;
    height: 3px;
    top: 50px;
    left: 0;
    animation-delay: 0s;
}

.bracket-line:nth-child(2) {
    width: 3px;
    height: 150px;
    top: 50px;
    left: 200px;
    animation-delay: 0.5s;
}

.bracket-line:nth-child(3) {
    width: 200px;
    height: 3px;
    top: 200px;
    left: 200px;
    animation-delay: 1s;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(8, 217, 214, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(234, 234, 234, 0.8);
    font-size: 1.1rem;
}

/* ========================================
   DOCUMENTATION SECTION
   ======================================== */

.docs-section {
    padding: 6rem 0;
}

.docs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.docs-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.docs-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
}

.docs-tab.active {
    background: linear-gradient(135deg, var(--primary), #d91e50);
    border-color: var(--primary);
    color: white;
}

.docs-content {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    min-height: 500px;
}

.doc-tab-content {
    display: none;
}

.doc-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.doc-tab-content h1 {
    color: var(--secondary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.doc-tab-content h2 {
    color: var(--accent);
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.doc-tab-content h3 {
    color: var(--light);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.doc-tab-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.doc-tab-content ul, .doc-tab-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

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

.doc-tab-content code {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-family: 'Space Mono', monospace;
    color: var(--accent);
}

.doc-tab-content pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.doc-tab-content a {
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.doc-tab-content a:hover {
    border-bottom-color: var(--secondary);
}

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: rgba(234, 234, 234, 0.5);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 46, 99, 0.1), rgba(8, 217, 214, 0.1));
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 3rem 0 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand h3 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(234, 234, 234, 0.6);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(234, 234, 234, 0.5);
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .docs-content {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
