:root {
    --bg-color: #1a1a1a;
    --primary-color: #2c2c2c;
    --accent-color: #007aff;
    --text-color: #f0f0f0;
    --subtle-text-color: #888;
    --border-color: #444;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --switch-bg: #555;
}

body.light-mode {
    --bg-color: #f0f2f5;
    --primary-color: #ffffff;
    --text-color: #1c1e21;
    --subtle-text-color: #606770;
    --border-color: #dddfe2;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --switch-bg: #ccc;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header --- */
header {
    padding: 1.5rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.control-button {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem; /* Make emojis larger */
    line-height: 1;
    transition: background-color 0.2s;
}

.control-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.light-mode .control-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}


/* --- Hero Section --- */
.hero {
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    margin-bottom: 2.5rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--subtle-text-color);
    max-width: 700px;
    margin: 0 auto;
}

.hero-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}

.app-screenshot-placeholder {
    width: min(900px, 100%);
    height: 514px;
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 18px 50px var(--shadow-color);
    overflow: hidden;
    transition: background-color 0.3s, border-color 0.3s;
}

.window-body {
    height: 100%;
    position: relative;
}

.hero-footer {
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #0056b3;
}

.subtle-note {
    font-size: 0.8rem !important;
    margin-top: 1rem;
    color: var(--subtle-text-color) !important;
}

/* --- Carousel banner --- */
.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.carousel .slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel .slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    background-color: var(--primary-color);
}

.carousel .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Make disabled buttons look different */
.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease;
    z-index: 2; /* Ensure buttons are on top */
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-btn:hover { background: rgba(0,0,0,0.6); }

.carousel-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    display: flex;
    gap: 8px;
    z-index: 2; /* Ensure dots are on top */
}
.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
}
.carousel-dots button.active { background: var(--accent-color); }

/* --- Features Section --- */
.features {
    padding: 4rem 2rem;
    text-align: center;
}

.features h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--subtle-text-color);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--subtle-text-color);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }
    .banner-top h1 {
        font-size: 2.2rem;
    }
    .banner-top p {
        font-size: 1rem;
    }
    .hero-image {
        margin-bottom: 2rem;
    }
    .features {
        padding: 2rem 1rem;
    }
}