/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0e1a;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #3b82f6, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(59, 130, 246, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(59, 130, 246, 0.6), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(59, 130, 246, 0.4), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(59, 130, 246, 0.7), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    background-attachment: fixed;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 80px 0;
    background: rgba(10, 14, 26, 0.8);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.logo h1 {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    position: relative;
}

.logo-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.typing-container {
    margin-bottom: 20px;
    min-height: 40px;
}

.typing-text {
    font-size: 1.3rem;
    color: #3b82f6;
    font-weight: 500;
    margin: 0;
    font-style: italic;
}

.typing-text::after {
    content: '|';
    color: #3b82f6;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 40px;
    line-height: 1.4;
}

.highlight {
    color: #3b82f6;
    font-weight: 600;
}

.cta-section {
    margin-top: 50px;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.4);
}

.discord-btn i {
    font-size: 1.3rem;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.discord-btn:hover .btn-glow {
    left: 100%;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.card-dots {
    display: flex;
    gap: 8px;
}

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    opacity: 0.6;
}

.card-dots span:nth-child(1) { background: #ef4444; }
.card-dots span:nth-child(2) { background: #f59e0b; }
.card-dots span:nth-child(3) { background: #10b981; }

.code-line {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    margin-bottom: 8px;
    color: #e2e8f0;
}

.keyword {
    color: #3b82f6;
    font-weight: 600;
}

.class-name {
    color: #10b981;
    font-weight: 500;
}

.indent {
    color: #94a3b8;
    margin-left: 20px;
}

/* Platforms Section */
.platforms {
    padding: 100px 0;
    text-align: center;
}

.platforms h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.platform-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    padding: 32px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.1);
}

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

.platform-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
}

.platform-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.platform-card p {
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.platform-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    text-align: center;
}

.features h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 40px 0;
    margin-top: 100px;
    text-align: center;
}

.simple-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.simple-footer h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #3b82f6;
    margin: 0;
}

.footer-discord {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-discord:hover {
    color: #5865f2;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Discord Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 20, 25, 0.95) 100%);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-header h3 {
    color: #5865f2;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 30px;
}

.discord-info {
    text-align: center;
    margin-bottom: 30px;
}

.discord-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.discord-info h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.discord-info p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.discord-info ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.discord-info li {
    color: #e2e8f0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.discord-info li i {
    color: #10b981;
    font-size: 0.9rem;
}

.modal-actions {
    text-align: center;
}

.join-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.success-message {
    margin-top: 20px;
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeIn 0.5s ease;
}

.success-message i {
    font-size: 1.2rem;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .logo h1 {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .platforms h2,
    .features h2 {
        font-size: 2.5rem;
    }
    
    .platforms-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .discord-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .platform-card,
    .feature-card {
        padding: 24px 20px;
    }
}