/* EngineAI Authority Score - Landing Page Styles */

.eas-landing {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border: #334155;
}

/* Hero Section */
.eas-hero {
    padding: 80px 24px 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 100%);
}

.eas-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 16px;
}

.eas-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.eas-hero__title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eas-hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Search Box */
.eas-search {
    max-width: 560px;
    margin: 0 auto 40px;
}

.eas-search__form {
    width: 100%;
}

.eas-search__input-wrap {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    transition: border-color 0.2s;
}

.eas-search__input-wrap:focus-within {
    border-color: var(--primary);
}

.eas-search__input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
}

.eas-search__input-wrap input::placeholder {
    color: var(--text-secondary);
}

.eas-search__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.eas-search__btn:hover {
    background: var(--primary-dark);
}

.eas-search__btn:active {
    transform: scale(0.98);
}

.eas-search__btn.loading .btn-text {
    display: none;
}

.eas-search__btn.loading .btn-loader {
    display: block;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.eas-search__hint {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Stats */
.eas-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.eas-stat {
    text-align: center;
}

.eas-stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.eas-stat__label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Section Styles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* Score Factors */
.eas-breakdown {
    padding: 80px 24px;
    background: var(--bg-dark);
}

.score-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.factor-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform0.2s, border-color 0.2s;
}

.factor-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.factor-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.factor-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.factor-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.factor-weight {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Modules Grid */
.eas-modules {
    padding: 80px 24px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.module-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.module-number {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.module-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.module-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Pricing */
.eas-pricing {
    padding: 80px 24px;
    background: var(--bg-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    background: var(--primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.pricing-features li::before {
    content: "✓";
    color: var(--secondary);
    margin-right: 8px;
}

.pricing-btn {
    display: block;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 10px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .eas-hero {
        padding: 60px 16px 40px;
    }

    .eas-stats {
        gap: 24px;
    }

    .eas-search__input-wrap {
        flex-direction: column;
    }

    .eas-search__btn {
        width: 100%;
        justify-content: center;
    }
}
