:root {
    --dl-accent: #b41e1e;
    --dl-accent-hover: #d42a2a;
    --dl-glow: 0 0 30px rgba(180, 30, 30, 0.25);
    --dl-bg-card: linear-gradient(145deg, #140808, #0a0303);
    --dl-header-start: #200a0a;
    --dl-header-end: #050101;
    --header-bg: rgba(32, 10, 10, 0.92);
    --header-border: rgba(180, 30, 30, 0.2);
    --header-nav-color: #aa6666;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

.main-content {
    max-width: 1260px;
    width: 100%;
    padding: 2rem 1.5rem;
}

.hero {
    text-align: center;
    padding: 2.5rem 1rem 3rem;
}

.hero-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.2rem;
    display: block;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(180, 30, 30, 0.2);
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #f0d0d0, #c04040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: var(--dl-accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    min-height: 48px;
}

.btn-primary:hover {
    background: var(--dl-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--dl-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    min-height: 48px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-color: var(--dl-accent);
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #1a1a2e;
    color: #c0c0e0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    min-height: 48px;
}

.btn-github:hover {
    background: #252545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(120, 120, 200, 0.15);
}

.btn-presets {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: #e0a0a0;
    border: 1px solid rgba(180, 30, 30, 0.4);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    min-height: 48px;
}

.btn-presets:hover {
    background: rgba(180, 30, 30, 0.12);
    border-color: var(--dl-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--dl-glow);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--dl-accent), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--dl-bg-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: linear-gradient(135deg, rgba(180, 30, 30, 0.2), transparent 50%, rgba(255, 255, 255, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.feature-card:hover {
    transform: scale(1.03);
    box-shadow: var(--dl-glow);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #e0b0b0;
}

.feature-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.screenshots-section {
    margin-bottom: 3rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.screenshot-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #000;
}

.screenshot-card:hover {
    transform: scale(1.03);
    box-shadow: var(--dl-glow);
    z-index: 2;
}

.screenshot-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.screenshot-card .screenshot-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.6rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #ccc;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 800px;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
}

.about-section li {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding-left: 1.2rem;
    position: relative;
}

.about-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--dl-accent);
}

.page-footer {
    width: 100%;
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
}

.page-footer .footer-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.page-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}

.page-footer a:hover {
    color: #ff8888;
}

.presets-section {
    margin-bottom: 3rem;
}

.presets-panel {
    background: linear-gradient(135deg, #1f0a0a, #0d0303);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    border: 1px solid rgba(180, 30, 30, 0.25);
    box-shadow: 0 0 30px rgba(180, 30, 30, 0.1), inset 0 0 30px rgba(180, 30, 30, 0.05);
}

.presets-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: linear-gradient(135deg, rgba(180, 30, 30, 0.35), transparent 50%, rgba(180, 30, 30, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.presets-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e0a0a0;
    margin-bottom: 0.5rem;
    margin-top: 1.2rem;
}

.presets-content h3:first-child {
    margin-top: 0;
}

.presets-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.presets-content code {
    background: rgba(180, 30, 30, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
    color: #e0a0a0;
}

.presets-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--dl-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 2px;
}

.presets-cta {
    margin-top: 1.2rem;
    text-align: center;
}

.btn-presets-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    background: var(--dl-accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    min-height: 50px;
}

.btn-presets-cta:hover {
    background: var(--dl-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(180, 30, 30, 0.4);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #aaa;
    font-size: 2.4rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    color: white;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-icon { width: 72px; height: 72px; }
    .features-grid { grid-template-columns: 1fr; }
    .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
    .presets-panel { padding: 1.25rem; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .screenshots-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-secondary, .btn-github, .btn-presets { justify-content: center; }
}
