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

:root {
    /* Light theme variables */
    --primary-color: #4a6cf7;
    --primary-hover: #3a56d4;
    --secondary-color: #6c757d;
    --text-color: #333333;
    --text-light: #6e6e6e;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-hover: rgba(0, 0, 0, 0.15);
    --card-bg: #ffffff;
    --container-width: 1200px;
    --border-radius: 10px;
    --button-radius: 8px;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    /* Dark theme variables */
    --primary-color: #5d7bf9;
    --primary-hover: #7089fa;
    --secondary-color: #9ca3af;
    --text-color: #e2e8f0;
    --text-light: #a1a1aa;
    --bg-color: #121212;
    --bg-secondary: #1f1f1f;
    --border-color: #2d2d2d;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-color-hover: rgba(0, 0, 0, 0.4);
    --card-bg: #1f1f1f;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

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

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.3px;
    margin-bottom: 1.2rem;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    line-height: 1.7;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section, .section-sm {
    padding: 6rem 0;
}

.section-sm {
    padding: 4rem 0;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-color));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

/* Flex utilities */
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.flex-center-items {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex-row { display: flex; flex-direction: row; }
.flex-column { display: flex; flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Grid columns */
[class*="column-"] {
    padding: 0 1rem;
}

.column-12 { width: 100%; }
.column-large-3 { width: 25%; }
.column-large-6 { width: 50%; }
.column-large-7 { width: 58.33%; }
.column-medium-5 { width: 41.67%; }
.column-medium-7 { width: 58.33%; }
.column-medium-9 { width: 75%; }

/* Text utilities */
.text-center { text-align: center; }
.text-right-large { text-align: right; }
.text-lg { font-size: 1.125rem; }
.text-h3 { font-size: 1.5rem; }

/* Spacing utilities */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.p-2 { padding: 0.5rem; }
.p-8 { padding: 2rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-6 { padding-left: 1.5rem; }
.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.left-0 { left: 0; }
.top-1\.5 { top: 0.375rem; }

/* Appearance utilities */
.border { 
    border: 1px solid var(--border-color); 
    transition: border-color 0.3s ease;
}
.rounded { border-radius: var(--border-radius); }
.select-none { user-select: none; }
.opacity-65 { opacity: 0.65; }

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color-hover);
}

/* Images */
.img, .app-screenshot {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.app-screenshot {
    width: 100%;
    max-width: 800px;
    box-shadow: 0 15px 30px var(--shadow-color);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.app-screenshot:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px var(--shadow-color-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--button-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.2);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 108, 247, 0.3);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    box-shadow: 0 10px 20px var(--shadow-color-hover);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-icon {
    margin-right: 0.5rem;
}

/* Feature list */
ul {
    list-style: none;
}

li.feature-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
}

li.feature-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 18px;
    height: 18px;
    background-color: var(--primary-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z'/%3E%3C/svg%3E");
    mask-size: cover;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z'/%3E%3C/svg%3E");
    -webkit-mask-size: cover;
}

/* Navigation */
.main-nav {
    padding: 1rem 0;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    transition: opacity 0.3s ease;
}

.logo a {
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Download section */
#downloads {
    margin: 2rem auto 4rem;
    max-width: 600px;
}

.download-options {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-badge {
    padding: 0.75rem 1.5rem;
    border-radius: var(--button-radius);
    background-color: var(--bg-secondary);
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.download-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.download-badge.disabled {
    opacity: 0.6;
    cursor: default;
}

.download-badge.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
}

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

.footer-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    margin: 0 0.5rem;
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.social-icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-icons li a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Media Queries */
@media (max-width: 991px) {
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .column-large-3, .column-large-6, .column-large-7 {
        width: 100%;
    }
    
    .text-right-large {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    section, .section-sm {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .column-medium-5, .column-medium-7, .column-medium-9 {
        width: 100%;
    }
    
    .order-medium-1 { order: 1; }
    .order-medium-2 { order: 2; }
    
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .download-options {
        flex-direction: column;
        width: 100%;
    }
    
    .download-badge {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .container {
        padding: 0 1rem;
    }
    
    section, .section-sm {
        padding: 3rem 0;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
    }
}