/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #0a0a0b;
    --color-surface: #141417;
    --color-border: #2a2a2f;
    --color-text: #e4e4e7;
    --color-text-muted: #71717a;
    --color-primary: #6366f1;
    --color-primary-hover: #818cf8;
    --color-accent: #f59e0b;
    --color-danger: #ef4444;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: 840px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
header {
    padding: 1rem 0 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

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

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    color: var(--color-accent);
}

.subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.hero-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}

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

/* Problem Section */
.problem {
    padding: 3rem 0;
}

.problem-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
}

.timeline-item .time {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    min-width: 80px;
}

.timeline-item .event {
    font-size: 1rem;
}

.timeline-item.crickets .event {
    color: var(--color-danger);
    font-weight: 500;
}

.problem-text {
    color: var(--color-text-muted);
    text-align: center;
    font-size: 1rem;
}

/* Gap Section */
.gap {
    padding: 3rem 0;
}

.gap h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.gap-visual {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
}

.gap-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gap-row:last-child {
    margin-bottom: 0;
}

.gap-row .label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    min-width: 120px;
}

.flow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.step {
    padding: 0.5rem 1rem;
    background: var(--color-border);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.step.filled {
    background: var(--color-primary);
    color: white;
}

.step.empty {
    background: transparent;
    border: 2px dashed var(--color-border);
    color: var(--color-text-muted);
}

.step.highlight-step {
    background: var(--color-accent);
    color: var(--color-bg);
}

.arrow {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Solution Section */
.solution {
    padding: 3rem 0;
    text-align: center;
}

.solution h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.solution-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: left;
}

.feature {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    transition: border-color 0.2s, opacity 0.2s;
}

.feature.highlighted {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, var(--color-surface) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.feature.dimmed {
    opacity: 0.6;
}

.feature.dimmed:hover {
    opacity: 0.8;
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.feature p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.feature-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--color-border);
    color: var(--color-text-muted);
}

.feature-tag.accent {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta > p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.signup-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-main {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    transition: all 0.3s ease;
}

.signup-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s, width 0.3s ease, min-width 0.3s ease;
}

.signup-form input[type="email"]:focus {
    border-color: var(--color-primary);
}

.signup-form input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

.signup-form button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.signup-form button:hover {
    background: var(--color-primary-hover);
}

.form-drawer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.form-drawer.open {
    max-height: 220px;
    opacity: 1;
    margin-top: 1rem;
}

/* Expanded state - email full width, hide inline button */
.signup-form.expanded .form-main {
    flex-direction: column;
}

.signup-form.expanded .form-main input[type="email"] {
    width: 100%;
    min-width: 100%;
}

.signup-form.expanded .submit-btn {
    display: none;
}

/* Button inside drawer */
.submit-btn-expanded {
    width: 100%;
    margin-top: 1rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.form-drawer label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    text-align: left;
}

.form-drawer textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    outline: none;
    resize: none;
    transition: border-color 0.2s;
}

.form-drawer textarea:focus {
    border-color: var(--color-primary);
}

.form-drawer textarea::placeholder {
    color: var(--color-text-muted);
}

.form-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* Success message */
.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.form-success.visible {
    display: block;
    animation: fadeIn 0.4s ease;
}

.form-success .success-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: var(--color-accent);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-success h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--color-text-muted);
}

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

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

footer > p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.social-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--color-primary);
}

.copyright {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .gap-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .gap-row .label {
        margin-bottom: 0.5rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}
