/* Homepage Sections */

/* Hero */
.hero {
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(174, 82, 242, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(62, 179, 252, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Prompt box */
.prompt-box {
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.prompt-box:focus-within {
    border-color: var(--color-purple);
    box-shadow: var(--shadow-glow);
}

.prompt-box__input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: var(--space-md) var(--space-lg);
    min-width: 0;
}

.prompt-box__input:focus {
    outline: none;
}

.prompt-box__input::placeholder {
    color: var(--text-muted);
}

.prompt-box__btn {
    flex-shrink: 0;
}

/* Secondary action buttons below prompt */
.hero__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Trust badges row below hero */
.hero__trust {
    margin-top: var(--space-2xl);
}

/* How It Works */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.step__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step__text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* Connector line between steps */
.steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.67% + 28px);
    right: calc(16.67% + 28px);
    height: 2px;
    background: var(--border-default);
    z-index: 0;
}

/* Persona Cards */
.persona-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.persona-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-default);
}

.persona-card__icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.persona-card__name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.persona-card__role {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
}

.persona-card__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features grid */
.feature {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.feature__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(174, 82, 242, 0.1);
    border: 1px solid rgba(174, 82, 242, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.feature__content {
    flex: 1;
}

.feature__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.feature__text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    text-align: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-4xl) var(--space-2xl);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
}

.cta h2 {
    margin-bottom: var(--space-md);
}

.cta p {
    font-size: 1.15rem;
    margin-bottom: var(--space-2xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta__form {
    display: flex;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    padding: 5px 5px 5px var(--space-lg);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.cta__form:focus-within {
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(174, 82, 242, 0.1);
}

.cta__form .form-group {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}

.cta__form .form-group:focus-within {
    border-color: transparent;
    box-shadow: none;
}

.cta__form .form-label {
    display: none;
}

.cta__form .form-input {
    font-size: 0.95rem;
    padding: var(--space-sm) 0;
}

.cta__form .btn {
    flex-shrink: 0;
    border-radius: var(--radius-full);
    padding: 0.7rem 1.75rem;
    font-size: 0.95rem;
}

/* Waiting list form (stacked layout) */
.cta__form--stacked {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 520px;
    gap: var(--space-md);
    align-items: stretch;
}

.cta__form--stacked .form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    text-align: left;
}

.cta__form--stacked .form-input {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}

.cta__form--stacked .form-input:focus {
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(174, 82, 242, 0.1);
    outline: none;
}

.cta__form--stacked .form-group {
    flex: unset;
}

.cta__form-row {
    display: flex;
    gap: var(--space-md);
}

.cta__form-row .form-group {
    flex: 1;
}

.cta__form--stacked .btn {
    border-radius: var(--radius-md);
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    margin-top: var(--space-sm);
}

/* Responsive overrides for home */
@media (max-width: 768px) {
    .cta__form-row {
        flex-direction: column;
    }

    .hero {
        padding: var(--space-2xl) 0;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .prompt-box {
        flex-direction: column;
        padding: var(--space-md);
    }

    .prompt-box__btn {
        width: 100%;
    }

    .prompt-box__btn .btn {
        width: 100%;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .steps::before {
        display: none;
    }

    .cta__form {
        flex-direction: column;
    }

    .cta {
        padding: var(--space-3xl) var(--space-lg);
    }
}
