@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --bg-surface: #13131a;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.05);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(10,10,15,0) 70%);
    z-index: -1;
    filter: blur(100px);
}
.bg-glow-2 {
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(10,10,15,0) 70%);
    z-index: -1;
    filter: blur(120px);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(19, 19, 26, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 100;
}
.logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.logo span {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Sola hizalama */
    text-align: left; /* Sola hizalama */
    padding: 0 10%; /* Sol ve sağdan hoş bir boşluk */
    margin-top: 0;
    position: relative;
    background: linear-gradient(rgba(10, 10, 15, 0.4), rgba(10, 10, 15, 0.9)), url('../img/logo.png') center center / contain no-repeat;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Sola hizalama */
    text-align: left; /* Sola hizalama */
    max-width: 650px; /* Metin genişliğini biraz daralttık */
    z-index: 1;
}
.hero-badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: slideDown 0.8s ease-out;
}
.hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 4rem); /* Yazıyı biraz küçülttük */
    font-weight: 900;
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}
.hero p {
    font-size: 1.1rem; /* Açıklamayı biraz küçülttük */
    color: var(--text-muted);
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease-out;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1.4s ease-out;
    justify-content: flex-start; /* Butonları sola yasladık */
}

/* Hero Image on Right */
.hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}
.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(10,10,15,0) 70%);
    filter: blur(50px);
    z-index: -1;
}
.hero-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px var(--primary-glow);
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.3), rgba(255,255,255,0));
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}
.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}
.btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* News Section */
.news-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.news-card {
    background: var(--bg-surface);
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #1e1e2d;
}
.news-content {
    padding: 1.5rem;
}
.news-date {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}
.news-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
}
.news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Features Section */
.features-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.feature-card {
    background: rgba(19, 19, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}
.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

/* Background Cyber Grid */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

/* Features Section */
.features-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.feature-card {
    background: rgba(19, 19, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
    background: rgba(19, 19, 26, 0.8);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(99,102,241,0.5));
}
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}
.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    padding: 4rem 5%;
    background: linear-gradient(90deg, rgba(99,102,241,0.05), rgba(139,92,246,0.05));
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin: 4rem 0;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(270deg, #3b82f6, #8b5cf6, #3b82f6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s ease infinite;
    margin-bottom: 0.5rem;
    display: block;
}
.stat-label {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 5%;
    max-width: 800px;
    margin: 0 auto;
}
.cta-section h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}
.cta-section p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Download Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(50px) scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.modal.show .modal-content {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.modal-close:hover {
    color: white;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
    gap: 2rem;
}
.modal-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px; /* Overlap the border */
    transition: all 0.2s;
}
.modal-tab svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.modal-tab:hover {
    color: var(--text);
}
.modal-tab.active {
    color: var(--text);
    border-bottom-color: #38bdf8; /* Blue underline */
}

/* Modal Tab Content */
.tab-content {
    display: none;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.tab-content.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Big Green Download Button */
.big-download-btn {
    background: #4ade80; /* TLauncher style green */
    color: #064e3b;
    width: 100%;
    border-radius: 0.5rem;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    position: relative;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 15px -3px rgba(74, 222, 128, 0.3);
}
.big-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(74, 222, 128, 0.4);
}
.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.btn-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    margin-bottom: 0.25rem;
}
.btn-filename {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.btn-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
    opacity: 0.9;
}
.recommend-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #38bdf8;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Secondary Actions */
.modal-secondary-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    gap: 0.5rem;
}
.modal-secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}
.modal-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}
.modal-secondary-row {
    display: flex;
    gap: 0.5rem;
}
.modal-secondary-row .modal-secondary-btn {
    flex: 1;
    justify-content: center;
}

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

@media (max-width: 768px) {
    /* Nav Mobile */
    nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
    }
    nav .logo {
        display: flex;
        justify-content: flex-start;
        width: auto;
        margin: 0;
    }
    nav .logo img {
        transform: scale(2.5) !important;
        transform-origin: left center !important;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        transform: none;
        margin-top: 0;
        gap: 0;
        background: rgba(19, 19, 26, 0.95);
        padding: 0;
        border-radius: 0;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
    .nav-links a {
        margin: 0;
        font-size: 1.1rem;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    /* Hero Mobile */
    .hero {
        align-items: center;
        text-align: center;
        padding: 12rem 5% 4rem 5%; /* Üstten navbar boşluğu nav'in gerçek yüksekliğine göre ayarlandı */
        justify-content: flex-start;
        background-size: cover !important;
        background-position: center top !important;
        min-height: 100vh;
    }
    .hero-content {
        align-items: center;
        text-align: center;
        margin-top: 2rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Buttons Mobile */
    .download-buttons {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    .download-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats Mobile */
    .stats-section {
        gap: 2rem;
        flex-direction: column;
        padding: 2rem 5%;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Features Mobile */
    .features-section {
        padding: 3rem 5%;
    }
    .feature-card {
        padding: 1.5rem;
    }
    
    /* News Mobile */
    .news-section {
        padding: 3rem 5%;
    }
    
    /* CTA Mobile */
    .cta-section {
        padding: 3rem 5%;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
    
    /* Modal Mobile */
    .modal-content {
        padding: 1.5rem;
        margin-top: 2rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-tabs {
        flex-direction: column;
        gap: 1rem;
        border-bottom: none;
        margin-bottom: 2rem;
    }
    .modal-tab {
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.5rem;
    }
    .modal-tab.active {
        background: rgba(255, 255, 255, 0.1);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
}
