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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0e27;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-animation {
    position: fixed;
    top: -50px;
    left: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    z-index: 0;
    background: 
        linear-gradient(125deg, 
            rgba(16, 185, 129, 0.03) 0%, 
            transparent 40%,
            transparent 60%,
            rgba(5, 150, 105, 0.03) 100%
        ),
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(5, 150, 105, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 35%);
    animation: float 25s ease-in-out infinite;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(16, 185, 129, 0.02) 100px,
            rgba(16, 185, 129, 0.02) 101px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(16, 185, 129, 0.02) 100px,
            rgba(16, 185, 129, 0.02) 101px
        );
    animation: gridMove 20s linear infinite;
}

@keyframes float {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.container {
    max-width: 1920px;
    width: 98%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 350px;
    grid-template-rows: auto 1fr;
}

header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.3) 100%);
    color: white;
    padding: 30px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

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

header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #10b981, #34d399, #6ee7b7, #10b981);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: gradientShift 8s ease infinite;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.5));
}

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

.subtitle {
    font-size: 0.95rem;
    margin-top: 6px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

main {
    padding: 25px 30px;
    grid-column: 1;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.section-header {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #f0f0f0;
    font-weight: 700;
}

h3 {
    font-size: 0.98rem;
    color: #f0f0f0;
    margin-bottom: 5px;
    font-weight: 600;
}

code {
    background: rgba(16, 185, 129, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    color: #6ee7b7;
    border: 1px solid rgba(110, 231, 183, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

code:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(110, 231, 183, 0.5);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    transform: scale(1.02);
}

.tool-name {
    color: #34d399;
    font-weight: 600;
}

a {
    color: #34d399;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

a:hover {
    color: #6ee7b7;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.badge.secondary {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.installation-section,
.manual-section {
    background: rgba(30, 41, 59, 0.5);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.installation-section::before,
.manual-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.installation-section:hover::before,
.manual-section:hover::before {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.installation-section:hover,
.manual-section:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.installation-section {
    border-left: 4px solid #10b981;
}

.manual-section {
    border-left: 4px solid #34d399;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(52, 211, 153, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover::before {
    opacity: 1;
}

.step:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.step-number {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    line-height: 32px;
    text-align: center;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.step-content {
    flex: 1;
}

.step-content p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.5;
    font-size: 0.88rem;
}

.os-paths {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.path-item {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #34d399;
}

.path-item strong {
    display: block;
    color: #e0e0e0;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.path-item code {
    display: block;
    word-break: break-all;
    font-size: 0.75rem;
}

.launch-info,
.troubleshooting {
    margin-top: 15px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.code-block {
    margin-top: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.code-block code {
    background: none;
    border: none;
    padding: 0;
    color: #34d399;
}

.faq-item {
    margin-bottom: 8px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.faq-question {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e0e0e0;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.faq-question:hover {
    background: rgba(16, 185, 129, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: #10b981;
    transition: transform 0.15s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s ease-out, padding 0.15s ease-out;
    padding: 0 16px;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 16px 12px 16px;
    transition: max-height 0.2s ease-in, padding 0.2s ease-in;
}

.faq-answer p {
    color: #94a3b8;
    line-height: 1.5;
    font-size: 0.8rem;
}

footer {
    background: rgba(15, 23, 42, 0.95);
    padding: 25px 30px;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    min-height: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-content > p {
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-align: left;
}

.social-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.social-section h3 {
    color: #10b981;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: left;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 72px;
}

.social-link:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateX(3px);
}

.social-link::after {
    display: none !important;
}

.social-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.social-info {
    flex: 1;
    text-align: left;
}

.social-title {
    display: block;
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.social-description {
    display: block;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    main {
        grid-column: 1;
    }
    
    footer {
        grid-column: 1;
        grid-row: 3;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .sponsor-links {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        padding: 40px 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    main {
        padding: 20px;
    }

    .installation-section,
    .manual-section {
        padding: 25px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .icon {
        font-size: 2rem;
    }

    .step {
        flex-direction: column;
        gap: 15px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        line-height: 35px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .os-paths {
        gap: 10px;
    }

    .path-item code {
        font-size: 0.75rem;
    }

    footer {
        padding: 20px;
        font-size: 0.9rem;
    }
}