/* Solarized palette - https://ethanschoonover.com/solarized/ */
:root {
    --sol-base03: #002b36;
    --sol-base02: #073642;
    --sol-base01: #586e75;
    --sol-base00: #657b83;
    --sol-base0:  #839496;
    --sol-base1:  #93a1a1;
    --sol-base2:  #eee8d5;
    --sol-base3:  #fdf6e3;
    --sol-yellow: #b58900;
    --sol-orange: #cb4b16;
    --sol-red:    #dc322f;
    --sol-magenta:#d33682;
    --sol-violet: #6c71c4;
    --sol-blue:   #268bd2;
    --sol-cyan:   #2aa198;
    --sol-green:  #859900;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--sol-base01);
    background-color: var(--sol-base3);
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--sol-base02);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

a {
    color: var(--sol-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--sol-blue);
    color: var(--sol-base3);
}

.btn-primary:hover {
    background-color: #1e6fa8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--sol-green);
    color: var(--sol-base3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #6b7a00;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--sol-base3);
    border: 2px solid var(--sol-base3);
}

.btn-outline:hover {
    background-color: var(--sol-base3);
    color: var(--sol-blue);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.btn-large small {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 400;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--sol-blue) 0%, var(--sol-cyan) 100%);
    color: var(--sol-base3);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    color: var(--sol-base3);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 43, 54, 0.35);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.download-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.download-option {
    background: rgba(253, 246, 227, 0.15);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(253, 246, 227, 0.25);
}

.download-option h3 {
    color: var(--sol-base3);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.download-option p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.paypal-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.donation-amount {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.donation-amount label {
    font-weight: 600;
    font-size: 0.9rem;
}

.donation-amount select {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    background: var(--sol-base3);
    color: var(--sol-base02);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--sol-base2);
}

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

.feature {
    background: var(--sol-base3);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(101, 123, 131, 0.15);
    box-shadow: 0 4px 16px rgba(0, 43, 54, 0.06);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
}

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

.feature h3 {
    color: var(--sol-base02);
    margin-bottom: 1rem;
}

.feature p {
    color: var(--sol-base00);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background-color: var(--sol-base3);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.screenshot {
    text-align: center;
}

.screenshot img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 43, 54, 0.18);
    margin-bottom: 1rem;
    border: 1px solid rgba(101, 123, 131, 0.15);
}

.screenshot p {
    color: var(--sol-base00);
    font-style: italic;
}

/* Technical Specs Section */
.technical-specs {
    padding: 80px 0;
    background-color: var(--sol-base2);
}

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

.spec-group {
    background: var(--sol-base3);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(101, 123, 131, 0.15);
    box-shadow: 0 4px 16px rgba(0, 43, 54, 0.06);
}

.spec-group h3 {
    color: var(--sol-base02);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--sol-blue);
    padding-bottom: 0.5rem;
}

.spec-group ul {
    list-style: none;
}

.spec-group li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sol-base2);
    position: relative;
    padding-left: 1.5rem;
    color: var(--sol-base00);
}

.spec-group li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--sol-green);
    font-weight: bold;
}

.spec-group li:last-child {
    border-bottom: none;
}

.spec-group p {
    color: var(--sol-base00);
}

/* Permissions Section */
.permissions {
    padding: 80px 0;
    background-color: var(--sol-base3);
}

.permissions-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--sol-base00);
}

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

.permission {
    background: var(--sol-base2);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.permission h3 {
    color: var(--sol-base02);
    margin-bottom: 1rem;
}

.permission p {
    color: var(--sol-base00);
}

.privacy-note {
    background: var(--sol-base2);
    padding: 1.75rem 2rem;
    border-radius: 12px;
    text-align: left;
    margin-top: 3rem;
    border-left: 4px solid var(--sol-green);
}

.privacy-note p {
    color: var(--sol-base01);
    margin: 0;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--sol-blue) 0%, var(--sol-cyan) 100%);
    color: var(--sol-base3);
    text-align: center;
}

.download h2 {
    color: var(--sol-base3);
    margin-bottom: 1rem;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.download-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.download-info {
    opacity: 0.95;
}

.download-info p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.download-info a {
    color: var(--sol-base3);
    text-decoration: underline;
}

/* Changelog Section */
.changelog {
    padding: 80px 0;
    background-color: var(--sol-base2);
}

.changelog-more {
    text-align: center;
    margin-top: 2.5rem;
    color: var(--sol-base00);
}

/* Installation Section */
.installation {
    padding: 80px 0;
    background-color: var(--sol-base3);
}

.installation code,
.faq code {
    background: var(--sol-base2);
    color: var(--sol-base02);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--sol-base2);
}

.faq-item {
    background: var(--sol-base3);
    border-radius: 12px;
    border: 1px solid rgba(101, 123, 131, 0.15);
    box-shadow: 0 4px 16px rgba(0, 43, 54, 0.06);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
}

.faq-item summary {
    font-weight: 600;
    color: var(--sol-base02);
    cursor: pointer;
}

.faq-item summary:hover {
    color: var(--sol-blue);
}

.faq-item p {
    color: var(--sol-base00);
    margin-top: 1rem;
    line-height: 1.6;
}

.faq-item[open] summary {
    color: var(--sol-blue);
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--sol-base03);
    color: var(--sol-base1);
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--sol-cyan);
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-section a {
    color: var(--sol-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--sol-base02);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content {
        min-height: 400px;
    }

    .download-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .permissions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-icon {
        width: 80px;
        height: 80px;
    }

    .feature {
        padding: 1.5rem;
    }

    .spec-group {
        padding: 1.5rem;
    }

    .download-option {
        padding: 1.5rem;
    }
}
