:root {
    --bg-color: #0f1115;
    --bg-secondary: #161b22;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-primary: #FF512F;
    --accent-secondary: #F09819;
    --accent-gradient: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
    --card-bg: rgba(30, 41, 59, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
}

body.light-mode {
    --bg-color: #f3f4f6;
    --bg-secondary: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navbar */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo img {
    height: 32px;
    width: 32px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Professional Theme Toggle */
.theme-toggle {
    background: #111827;
    /* Deep dark bg */
    border-radius: 40px;
    width: 180px;
    height: 50px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.6),
        inset 0 -1px 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

body.light-mode .theme-toggle {
    background: #eef2f6;
    box-shadow:
        inset 3px 3px 8px rgba(163, 177, 198, 0.5),
        inset -3px -3px 8px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.toggle-blob {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: linear-gradient(90deg, #FF512F 0%, #F09819 100%);
    border-radius: 30px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 81, 47, 0.4);
}

/* Default (Dark Mode) -> Blob on Right */
.toggle-blob {
    transform: translateX(100%);
}

/* Light Mode -> Blob on Left */
body.light-mode .toggle-blob {
    transform: translateX(0);
}

.toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    height: 100%;
    user-select: none;
}

.toggle-option i {
    width: 18px;
    height: 18px;
    stroke-width: 2.5px;
}

/* Active Text Colors */
.toggle-option.option-dark {
    color: #ffffff;
}

body.light-mode .toggle-option.option-light {
    color: #ffffff;
}

body.light-mode .toggle-option.option-dark {
    color: #64748b;
}

.toggle-option.option-light {
    color: #6b7280;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 81, 47, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 81, 47, 0.4);
}

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

body.light-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

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

body.light-mode .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 81, 47, 0.15);
    color: #FF512F;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 81, 47, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 81, 47, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 81, 47, 0.2);
}

body.light-mode .badge {
    background: #fff7ed;
    color: #c2410c;
    border-color: #ffedd5;
}

body.light-mode .badge:hover {
    background: #ffedd5;
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.15);
}

.version-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

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

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

/* App Window Mockup */
.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.app-screenshot:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
}

body.light-mode .feature-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 81, 47, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Download Section */
.download {
    padding: 100px 0;
}

.download-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.download-content p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.download-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-primary);
    min-width: 250px;
    transition: all 0.3s;
}

.download-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.d-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.d-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.d-type {
    font-weight: 600;
}

.d-ext {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.small-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 20px;
}

.previous-versions {
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 10px;
    transition: color 0.3s;
    font-family: inherit;
}

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

.btn-text i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.btn-text.active i {
    transform: rotate(180deg);
}

.version-list {
    margin-top: 15px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 500px;
    /* Arbitrary max-height for animation */
    opacity: 1;
}

.version-list.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    border: none;
}

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.version-item:last-child {
    border-bottom: none;
}

.version-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

body.light-mode .version-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.v-tag {
    font-weight: 600;
    color: var(--text-primary);
}

.v-links {
    display: flex;
    gap: 15px;
}

.v-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.v-link:hover {
    color: var(--accent-primary);
}

.v-link i {
    width: 14px;
    height: 14px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 50px 0;
    background: var(--bg-secondary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.footer-logo img {
    height: 24px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-btns {
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* Installation Section */
.installation {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.install-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid var(--border-color);
}

body.light-mode .code-block {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.code-block code {
    color: var(--accent-primary);
    word-break: break-all;
}

body.light-mode .code-block code {
    color: #c2410c;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0 0 0 10px;
    transition: color 0.2s;
}

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

.steps-list {
    margin: 15px 0 15px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.steps-list li {
    margin-bottom: 8px;
}

.or-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 15px;
    font-style: italic;
}

.note-text {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.note-text strong {
    color: var(--accent-primary);
}