/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #141832;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ===== Background Glow ===== */
.bg-glow {
    position: fixed;
    top: -40%;
    left: -20%;
    width: 140%;
    height: 140%;
    pointer-events: none;
}

/* ===== Navigation ===== */
.nav {
    width: 100%;
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    letter-spacing: 0.08em;
}

.nav-brand:hover {
    color: rgba(255, 255, 255, 0.8);
}

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

.nav-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.nav-hamburger svg {
    width: 24px;
    height: 24px;
    stroke: rgba(255, 255, 255, 0.6);
}

/* ===== Sections & Layout ===== */
.section {
    width: 100%;
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.section.hero {
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== Logo ===== */
.logo {
    display: inline-block;
    margin-bottom: 2rem;
}

.logo img {
    width: 220px;
    height: 220px;
    border-radius: 16px;
}

/* ===== Divider ===== */
.divider {
    width: 60px;
    height: 3px;
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* ===== Badge ===== */
.badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4em 1.2em;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* ===== Typography ===== */
.app-description {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

/* ===== CTA Buttons ===== */
.cta-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7em 1.5em;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn-coffee {
    background: #FFDD00;
    color: #000000;
    font-weight: 700;
}

.btn-coffee:hover {
    background: #e6c700;
}

.btn-coffee svg {
    width: 20px;
    height: 20px;
}

/* ===== Checkers Animation ===== */
.checkers {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 1rem;
}

.checker {
    width: 10px;
    height: 10px;
    opacity: 0.3;
    animation: pulse 1.8s ease-in-out infinite;
}

.checker:nth-child(2) { animation-delay: 0.2s; }
.checker:nth-child(3) { animation-delay: 0.4s; }
.checker:nth-child(4) { animation-delay: 0.6s; }
.checker:nth-child(5) { animation-delay: 0.8s; }

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ===== Screenshots ===== */
.screenshot-slot {
    text-align: center;
}

.screenshot-placeholder {
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.screenshot-slot .caption {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 0.6rem;
}

.screenshot-slot img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-slot img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    transition: background 0.2s ease, border-color 0.2s ease;
    scroll-margin-top: 2rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.feature-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ===== ADRR Section ===== */
.adrr-section {
    text-align: center;
    margin-top: 2.5rem;
}

.adrr-section a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.adrr-section a:hover {
    opacity: 0.8;
}

.adrr-section img {
    width: 150px;
    height: auto;
    margin-bottom: 0.5rem;
}

.adrr-section .discord-text {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.08em;
}

/* ===== Support Section ===== */
.support-section {
    text-align: center;
}

.support-section p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto 2rem;
}

/* ===== Footer ===== */
.footer {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    padding: 2rem 2rem 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.3);
}

/* ===== Buy Me a Coffee Fixed Button ===== */
.bmc-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

/* ===== Lightbox ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    z-index: 101;
    line-height: 1;
    padding: 0.5rem;
}

.lightbox-close:hover {
    color: #ffffff;
}

/* ===== Focus states for accessibility ===== */
a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .section { padding: 3rem 1.25rem; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-row { flex-direction: column; align-items: center; }
    .logo img { width: 160px; height: 160px; }
    .nav-inner { padding: 0.8rem 1.25rem; gap: 1rem; }
    .nav-hamburger { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #141832; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 1rem 1.25rem; gap: 1rem; }
    .nav-links.open { display: flex; }
    .footer-links { flex-direction: column; align-items: center; gap: 0.75rem; }
}
