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

:root {
    --primary: #5B4FD9;
    --primary-light: #7B6FE9;
    --primary-dark: #4A3FC8;
    --accent: #E94F8F;
    --secondary: #8B85B1;
    --background: #0D0B1A;
    --surface: #1A1728;
    --surface-light: #2A2640;
    --text: #F5F4F9;
    --text-muted: #9994B8;
    --success: #4FD9A0;
    --border: #3D3860;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.slideshow-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Logo */
.logo {
    position: fixed;
    top: 20px;
    left: 24px;
    z-index: 100;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 1;
}

.logo img {
    height: 32px;
    width: auto;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--surface);
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: fixed;
    top: 12px;
    right: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
    z-index: 100;
}

/* Slides */
.slide {
    display: none;
    width: 100%;
    max-width: 720px;
    animation: fadeIn 0.4s ease;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content {
    background: var(--surface);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid var(--border);
}

/* Email Slide */
#email-slide h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.description strong {
    color: var(--text);
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.email-form label {
    font-weight: 500;
    color: var(--text);
}

.email-form input {
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1.1rem;
    background: var(--surface-light);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.email-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 79, 217, 0.25);
}

.email-form input::placeholder {
    color: var(--secondary);
}

.credit {
    font-size: 0.875rem;
    color: var(--secondary);
    text-align: center;
}

.credit a {
    color: var(--primary);
    text-decoration: none;
}

.credit a:hover {
    text-decoration: underline;
}

/* Match Code Section */
.match-code-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.match-code-section label {
    font-size: 0.95rem;
}

.match-code-section .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.match-code-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

#matchCode {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    letter-spacing: 0.15em;
    text-align: center;
    font-size: 1.25rem;
}

/* Match Code Display (completion screen) */
.match-code-display {
    background: var(--surface-light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.match-code-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.match-code-value {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Share Section */
.share-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.share-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.share-url {
    display: flex;
    gap: 0.5rem;
}

.share-url input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-light);
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'SF Mono', Monaco, monospace;
}

.share-url input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Button variations */
.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    display: inline-block;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

/* Completion slides */
#complete-slide-solo .slide-content,
#complete-slide-paired .slide-content {
    text-align: center;
}

#complete-slide-solo h1,
#complete-slide-paired h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Section Intro Slides */
.section-intro .slide-content {
    text-align: center;
    padding: 4rem 3rem;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-intro h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.question-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Question Slides */
.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--surface-light);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.question-number {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--text);
}

.answer-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    background: var(--surface-light);
    color: var(--text);
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.answer-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 79, 217, 0.25);
}

.answer-input::placeholder {
    color: var(--secondary);
}

/* Completion Slide */
.completion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #3BC78A);
    border-radius: 50%;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

#complete-slide .slide-content {
    text-align: center;
}

#complete-slide h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.next-steps {
    background: var(--surface-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    text-align: left;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 79, 217, 0.4);
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Navigation */
.nav-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(to top, var(--background) 80%, transparent);
}

/* Responsive */
@media (max-width: 640px) {
    .slideshow-container {
        padding: 1rem;
        padding-bottom: 100px;
    }

    .slide-content {
        padding: 2rem 1.5rem;
    }

    #email-slide h1 {
        font-size: 1.75rem;
    }

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

    .nav-buttons {
        gap: 0.5rem;
        padding: 1rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}
