/* style.css */
:root {
    --bg-color: #0A0A0B;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --accent-primary: #3B82F6;
    --accent-hover: #2563EB;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Ambient glow background effect */
.ambient-background {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12) 0%, rgba(10, 10, 11, 0) 50%);
    z-index: -1;
    pointer-events: none;
}

/* Typography styles */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

.gradient-text {
    background: linear-gradient(135deg, #E0E7FF 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fixed Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    background: rgba(10, 10, 11, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.logo i {
    font-size: 1.6rem;
    color: var(--accent-primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Common Section Layout */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Glassmorphism Utilities */
.glass-panel,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
    margin-bottom: 2rem;
    animation: fadeInDown 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tech-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

@media(min-width: 768px) {
    .hero-content h1 {
        font-size: 5rem;
    }
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-inline: auto;
}

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

.glow-btn {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.hero-showcase {
    width: 100%;
    max-width: 1200px;
    margin-top: 4rem;
    position: relative;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: 0.2s;
    z-index: 1;
}

.showcase-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 50%;
    background: var(--accent-primary);
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
}

.showcase-window {
    background: rgba(20, 20, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-window:hover {
    transform: translateY(-8px);
}

.showcase-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.showcase-title {
    flex-grow: 1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-left: -54px;
    /* Compensate for the dots width to perfectly center */
    letter-spacing: 0.5px;
}

.showcase-img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 700px;
    object-position: top;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(20deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(12deg);
    }
}

/* Button Components */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.full-width {
    width: 100%;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Platforms Grid Layout */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
}

.platform-card {
    padding: 2rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    user-select: none;
}

.platform-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
}

.platform-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.platform-card:hover i {
    color: var(--text-primary);
}

.platform-card h3 {
    font-size: 1rem;
    font-weight: 600;
}

.platform-card p.req {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.platform-card p.arch {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.65;
    margin-top: 0.25rem;
    letter-spacing: 0.2px;
}

/* Download Section Custom Layout */
.download-container {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.download-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.download-header i {
    font-size: 2.5rem;
}

.download-header h3 {
    font-size: 1.5rem;
}

.version-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: auto;
}

.download-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.checksum-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.checksum-container p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.checksum-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: monospace;
}

.checksum-box code {
    color: #9CA3AF;
    word-break: break-all;
    font-size: 0.9rem;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

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

/* Bottom Info Cards (Privacy & GitHub) */
.bottom-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.privacy-card, .support-card {
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.support-card {
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

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

.privacy-icon i, .support-icon i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.privacy-icon i {
    color: #10B981;
}

.support-icon i {
    color: #ffffff;
}

.privacy-card h2, .support-card h2 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.privacy-card p, .support-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer Styling */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Hide center nav links on small screens */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 3rem 1.5rem;
        margin-top: 2rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .download-container,
    .privacy-card,
    .support-card {
        padding: 2rem 1.5rem;
    }
}