/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --bg-dark: #0a0a0f;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-primary: #8b5cf6;
    --accent-secondary: #d946ef;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --success-green: #34d399;
    --danger-red: #f87171;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Background Animations
   ========================================================================== */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: 0;
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.gradient-text {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

.text-green { color: var(--success-green); font-weight: 600; }
.text-red { color: var(--danger-red); opacity: 0.8; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-icon {
    font-size: 2rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    text-align: center;
    padding: 6rem 0 8rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

#animated-text {
    display: inline-block;
    transition: opacity 0.5s ease;
}

.hero-features .check {
    color: var(--success-green);
    font-weight: 800;
    margin-right: 0.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(139, 92, 246, 0.7);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ==========================================================================
   Comparison Section
   ========================================================================== */
.comparison {
    padding: 4rem 0;
}

.glass-panel {
    background: transparent;
    padding: 1rem;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.compare-table th, .compare-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table th {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.compare-table tr:hover td:not(.highlight-col) {
    background: rgba(255, 255, 255, 0.02);
}

.highlight-col {
    background: rgba(139, 92, 246, 0.08) !important;
    border-left: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-right: 1px solid rgba(139, 92, 246, 0.3) !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.compare-table th.highlight-col {
    border-top: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.compare-table tr:last-child td.highlight-col {
    border-bottom: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 6rem 0;
}

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

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

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

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

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-dark);
    position: relative;
    width: 90%;
    max-width: 400px;
    padding: 2.5rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.3s ease;
}

.download-card:hover:not(.disabled) {
    background: rgba(139, 92, 246, 0.2);
}

.download-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.platform-icon {
    font-size: 2rem;
}

.platform-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.platform-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-buttons { flex-direction: column; }
    .btn { text-align: center; }
}
