/* Base styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7f8fa;
    color: #222;
    margin: 0;
    padding: 0;
    transition: background 0.3s, color 0.3s;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.logo h2 {
    margin: 0;
    font-weight: 700;
    color: #2a7ae2;
}

.header-controls {
    display: flex;
    align-items: center;
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 8px;
    transition: color 0.3s;
}

.sun-icon { display: inline; }
.moon-icon { display: none; }
body.dark .sun-icon { display: none; }
body.dark .moon-icon { display: inline; }

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0 32px 0;
}

.hero-content {
    flex: 1 1 350px;
}

.hero-title {
    font-size: 2.5rem;
    margin: 0 0 12px 0;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 24px;
}

.hero-buttons .btn {
    margin-right: 12px;
}

.hero-image {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder-image {
    width: 100px;
    height: 100px;
    background: #e0e7ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 700;
}

/* Accordion styles */
.accordion {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background: #fff;
    overflow: hidden;
}
.accordion-item + .accordion-item {
    border-top: 1px solid #e0e0e0;
}
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}
.accordion-header:hover {
    background: #f0f4fa;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    background: #f9fafd;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}
.accordion-item.active .accordion-content {
    padding: 16px 20px;
    max-height: 200px;
}
.accordion-icon {
    font-size: 1.3rem;
    transition: transform 0.3s;
}
.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* Signup form */
.signup {
    margin: 40px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 32px 24px;
}
.signup-content h2 {
    margin-top: 0;
}
.email-form {
    margin-top: 16px;
}
.form-group {
    display: flex;
    align-items: center;
}
#emailInput {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cfd8dc;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    outline: none;
}
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn-primary {
    background: #2a7ae2;
    color: #fff;
}
.btn-primary:hover {
    background: #1a5bb8;
}
.btn-secondary {
    background: #e0e7ef;
    color: #2a7ae2;
}
.btn-secondary:hover {
    background: #cfd8dc;
}
.btn-danger {
    background: #e53935;
    color: #fff;
}
.btn-danger:hover {
    background: #b71c1c;
}
.form-message {
    margin-top: 10px;
    font-size: 0.98rem;
    color: #2a7ae2;
}

/* Action buttons */
.actions {
    margin: 32px 0;
    text-align: center;
}
.action-buttons .btn {
    margin: 0 10px;
}

.footer {
    text-align: center;
    color: #888;
    margin-top: 40px;
    font-size: 0.98rem;
}

/* Dark mode styles */
body.dark {
    background: #181c24;
    color: #f7f8fa;
}
body.dark .container,
body.dark .signup,
body.dark .accordion {
    background: #232837;
    color: #f7f8fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
body.dark .header {
    border-bottom: 1px solid #232837;
}
body.dark .accordion-header:hover {
    background: #232837;
}
body.dark .accordion-content {
    background: #232837;
}
body.dark .btn-secondary {
    background: #232837;
    color: #90caf9;
}
body.dark .btn-secondary:hover {
    background: #181c24;
}
body.dark .btn-primary {
    background: #1976d2;
}
body.dark .btn-primary:hover {
    background: #1565c0;
}
body.dark .btn-danger {
    background: #b71c1c;
}
body.dark .btn-danger:hover {
    background: #e53935;
}
body.dark .form-message {
    color: #90caf9;
}
body.dark .footer {
    color: #aaa;
}

@media (max-width: 700px) {
    .container {
        padding: 10px;
    }
    .hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-image {
        margin-top: 24px;
    }
    .signup {
        padding: 18px 8px;
    }
}
