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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-light);
}

.prompt-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.1);
}

.prompt-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prompt-text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
}

.record-section {
    text-align: center;
    margin-bottom: 50px;
}

.record-btn {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.record-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
}

.record-btn.recording {
    background: var(--danger);
    animation: pulse 1.5s infinite;
}

.record-icon {
    font-size: 2.5rem;
}

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

.timer {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.timer.active {
    color: var(--danger);
}

.hint {
    color: var(--text-light);
    font-size: 0.95rem;
}

.entries-section {
    margin-bottom: 40px;
}

.entries-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text);
}

.entry-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.entry-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.entry-duration {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

.entry-prompt {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 10px;
}

.entry-actions {
    display: flex;
    gap: 10px;
}

.entry-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.entry-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}

.entry-btn.delete {
    color: var(--danger);
}

.entry-btn.delete:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.stats-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.stat {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.privacy-notice {
    background: var(--card-bg);
    border: 2px solid var(--success);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    color: var(--text);
}

.privacy-notice strong {
    color: var(--success);
}

.cta-section {
    margin-top: 20px;
}

.cta-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.cta-section a:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--card-bg);
    margin: 10% auto;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text);
}

.modal-content h2 {
    margin-bottom: 15px;
    color: var(--text);
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}

#waitlistForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#waitlistForm input[type="email"] {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

#waitlistForm input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#waitlistForm button {
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

#waitlistForm button:hover {
    background: var(--primary-dark);
}

#formMessage {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}

#formMessage.success {
    color: var(--success);
}

#formMessage.error {
    color: var(--danger);
}

/* Responsive */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    .prompt-text {
        font-size: 1.25rem;
    }

    .record-btn {
        width: 140px;
        height: 140px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
    }
}
