@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@200;400;600;700&display=swap');

:root {
    --text-color: #EFEFEF;
    --text-color-secondary: rgba(255, 255, 255, 0.7);
    --text-color-tertiary: rgba(255, 255, 255, 0.5);
    --background-color: #1a1a1a;
    --highlight-color: #00A2E8;
    --card-background: #222222;
    --card-hover-background: #333333;
    --border-color: rgba(255, 255, 255, 0.1);
    --error-color: #E81123;
}

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

body {
    font-family: 'Segoe UI', 'Verdana', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.container {
    max-width: 960px;
    width: 100%;
    text-align: center;
}

header {
    margin-bottom: 4rem;
}

.logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 200;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-color-secondary);
}

.download-section {
    margin-bottom: 4rem;
}

.button {
    display: inline-block;
    background-color: var(--highlight-color);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button.secondary {
    background-color: transparent;
    border: 2px solid var(--text-color-tertiary);
    color: var(--text-color-secondary);
}

.button:hover {
    background-color: #0090cf;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 162, 232, 0.2);
}

.button.secondary:hover {
    background-color: var(--text-color-tertiary);
    color: var(--background-color);
}

.button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.version-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color-tertiary);
}

.screenshot-section {
    margin-bottom: 4rem;
}

.screenshot {
    width: 100%;
    max-width: 800px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--card-background);
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 400px; /* Placeholder height */
}

.features {
    margin-bottom: 4rem;
}

.features h2 {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to a single column */
    gap: 2rem;
    text-align: left;
}

.feature-item {
    background: var(--card-background);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--highlight-color);
}

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

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.requirements ul {
    list-style: none;
    padding-left: 0;
}

.requirements li {
    background: transparent;
    padding: 0.5rem 0;
    border-left: none;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.requirements li::before {
    content: '●';
    color: var(--highlight-color);
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.5rem;
}

footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color-tertiary);
}

footer a {
    color: var(--highlight-color) !important;
    text-decoration: none;
}

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

.disclaimer {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 1rem;
    background: rgba(232, 17, 35, 0.1);
    border: 1px solid var(--error-color);
    color: var(--text-color);
}

.modal-dialog a, .requirements a, footer a {
    color: var(--highlight-color);
    text-decoration: none;
}

.modal-dialog a:hover, .requirements a:hover, footer a:hover {
    text-decoration: underline;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-dialog {
    background: #2a1a1a; /* Dark red background */
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--error-color);
    max-width: 600px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(232, 23, 35, 0.5);
    animation: pulse-border 2s infinite;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--background-color);
    background-color: var(--error-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    animation: pulse-red 2s infinite;
}

.modal-dialog h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--error-color);
    margin-bottom: 0;
}

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

.warning-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.warning-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--text-color-secondary);
}

.warning-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--error-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-confirm {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-confirm input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 23, 35, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(232, 23, 35, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(232, 23, 35, 0);
    }
}

@keyframes pulse-border {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(232, 23, 35, 0.4); }
    50% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 35px rgba(232, 23, 35, 0.7); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(232, 23, 35, 0.4); }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }
    .tagline {
        font-size: 1rem;
    }
    .button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .feature-grid {
        /* Switch to a 2-column grid on larger screens */
        grid-template-columns: repeat(2, 1fr);
    }
}
