/* ============================================================
   Landing Page + Pricing — Glass Theme
   ============================================================ */

/* ── Section Spacing ──────────────────────────────────────── */
.landing-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.landing-section:first-child {
    padding-top: 60px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    padding: 80px 0 100px;
    text-align: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    font-size: 1.15rem;
    padding: 18px 44px;
}

.hero-mockup {
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-mockup-inner {
    padding: 24px;
    overflow: hidden;
}

.hero-mockup-inner .mockup-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(255,209,102,0.1));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}

/* ── Before / After ───────────────────────────────────────── */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.ba-card {
    padding: 20px;
    overflow: hidden;
}

.ba-card .ba-images {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.ba-card .ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.ba-card .ba-img.ba-before {
    z-index: 2;
}

.ba-card .ba-img.ba-after {
    z-index: 1;
}

.ba-card:hover .ba-img.ba-before {
    opacity: 0;
}

/* Placeholder for demo */
.ba-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}

.ba-placeholder.before {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.ba-placeholder.after {
    background: linear-gradient(135deg, rgba(255,107,53,0.12), rgba(255,209,102,0.08));
}

.ba-card .ba-label {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.ba-card .ba-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Features Grid ────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    text-align: center;
    transition: transform var(--transition), background var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── How It Works ─────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff8c5a);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(255,107,53,0.3);
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Arrow connectors between steps */
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 64px;
    right: -16px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* ── Referral Section ─────────────────────────────────────── */
.referral-section {
    text-align: center;
}

.referral-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 40px;
}

.referral-card .referral-highlight {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.referral-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ── Final CTA ────────────────────────────────────────────── */
.final-cta {
    text-align: center;
    padding-bottom: 40px;
}

.final-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ── Pricing Page ─────────────────────────────────────────── */
.pricing-section {
    padding: 60px 0 100px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 820px;
    margin: 0 auto;
}

.pricing-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
}

.pricing-card {
    padding: 40px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.recommended {
    border-color: var(--accent);
    background: rgba(255, 107, 53, 0.08);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), #ff8c5a);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-price {
    margin-bottom: 28px;
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 700;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li .icon-check {
    color: var(--success);
    font-weight: 700;
}

.pricing-features li .icon-cross {
    color: var(--text-muted);
}

.pricing-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-buttons form {
    display: contents;
}

/* ── API Card ─────────────────────────────────────────────── */
.api-card {
    border-color: rgba(59, 130, 246, 0.3);
}

.api-card .discount-hint {
    color: var(--success) !important;
}

.api-calc {
    margin-top: auto;
}

.api-calc .form-control {
    margin-bottom: 14px;
}

.api-calc-result {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-xs);
    margin-bottom: 4px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 4px 0;
}

.calc-row.discount-row {
    color: var(--success);
}

.calc-row.calc-total {
    border-top: 1px solid var(--border-glass);
    margin-top: 6px;
    padding-top: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-section {
    max-width: 700px;
    margin: 80px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-glass);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question .faq-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

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

    .pricing-grid-3 {
        grid-template-columns: 1fr 1fr;
        max-width: 820px;
    }

    .pricing-grid-3 .api-card {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .landing-section {
        padding: 60px 0;
    }

    .ba-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .step-card:not(:last-child)::after {
        display: none;
    }

    .pricing-grid,
    .pricing-grid-3 {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .final-cta h2 {
        font-size: 2rem;
    }

    .referral-card .referral-highlight {
        font-size: 2.5rem;
    }

    .referral-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 60px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero .btn {
        font-size: 1rem;
        padding: 14px 32px;
    }

    .pricing-card {
        padding: 28px 20px;
    }
}
