/* Base Styles */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 0.5rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    margin-bottom: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.emoji {
    font-style: normal;
}

/* Hero Section */
.hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 6rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Form */
.waitlist-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

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

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

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

/* Success Message */
.success-message {
    margin-top: 1.5rem;
    padding: 2rem;
    background-color: #f0fdf4;
    color: #166534;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.success-message.hidden {
    display: none;
}

.success-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #166534;
}

.success-message p {
    font-size: 1rem;
    margin: 0;
    color: #166534;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Celebration Animation */
.success-message.celebrate {
    animation: celebrateIn 0.6s ease-out forwards;
}

@keyframes celebrateIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    50% {
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Button Success State */
.btn-primary.success-check {
    background-color: #10b981 !important;
    animation: checkPulse 0.5s ease-out;
}

@keyframes checkPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Form Fade Out */
.waitlist-form.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Confetti Effect */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(calc(100vh + 10px)) rotate(360deg);
    }
}

/* Add some confetti shapes variation */
.confetti:nth-child(odd) {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.confetti:nth-child(even) {
    border-radius: 2px;
}

.confetti:nth-child(3n) {
    width: 6px;
    height: 12px;
}

.confetti:nth-child(4n) {
    width: 12px;
    height: 6px;
}

.confetti:nth-child(5n) {
    transform: rotate(45deg);
}

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

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature .emoji {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 2rem 0 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Version */
.version {
    font-size: 0.625rem;
    color: #d1d5db;
    margin-left: 0.25rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem;
    }
    
    .subtitle {
        font-size: 1.125rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .btn-primary {
        padding: 0.75rem 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-content {
        padding: 3rem 0;
    }
    
    .section-content h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .section-content p {
        font-size: 1rem;
    }
    
    .section-divider {
        padding-bottom: 3rem;
        margin-bottom: 4rem;
    }
}

/* Section Content Spacing */
.section-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 0;
    text-align: center;
}

.section-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
    color: var(--text);
}

.section-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    border-bottom: 1px solid var(--border);
    padding-bottom: 5rem;
    margin-bottom: 6rem;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero, .features {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Features Detailed - moved from inline styles */
.features-detailed {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin: 6rem auto;
    max-width: 1000px;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-item.reverse .feature-text {
    order: 2;
}

.feature-text h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.feature-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
}

.nerd-note {
    font-size: 1rem;
    color: var(--text);
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    font-weight: 500;
}

@media (max-width: 800px) {
    .feature-item, .feature-item.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .feature-item.reverse .feature-text {
        order: 1;
    }
    .visual-mock-feature {
        order: 2;
    }
}
