/*
 * DocuSync - Home Page Styles
 * Front-theme Theme 1
 * Page-specific styles for the home/landing page
 */

/* ─────────────────────────────────────────────────────────────
   Hero Section
───────────────────────────────────────────────────────────── */
.hero-section {
    padding: 64px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
}

.hero-section h1 {
    font-size: clamp(34px, 4vw, 52px);
    letter-spacing: -0.9px;
    line-height: 1.05;
}

.hero-subtitle {
    margin: 14px 0 0;
    max-width: 64ch;
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    line-height: 1.6;
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Hero Card - Product Preview */
.hero-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 18px;
}

.hero-card-header {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 700;
}

.hero-card-desc {
    margin: 8px 0 0;
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: var(--font-size-base);
}

.hero-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    color: var(--text-secondary);
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
    stroke: var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   How It Works - Steps Section
───────────────────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.step-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 18px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(12, 16, 28, 0.14);
}

.step-card h3 {
    margin: 12px 0 0;
    font-size: var(--font-size-md);
}

.step-card p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: var(--font-size-base);
}

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

.feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 18px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(12, 16, 28, 0.14);
}

.feature-card .icon-box {
    margin-bottom: 4px;
}

.feature-card h4 {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-top: 10px;
}

.feature-card p {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: var(--font-size-base);
}

/* ─────────────────────────────────────────────────────────────
   Testimonials / Quotes
───────────────────────────────────────────────────────────── */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.quote-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 18px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}

.quote-card:hover {
    transform: translateY(-2px);
}

.quote-icon {
    width: 32px;
    height: 32px;
    color: rgba(var(--accent-rgb), 0.3);
    margin-bottom: 8px;
}

.quote-card blockquote {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.55;
    font-size: var(--font-size-base);
    font-style: italic;
}

.quote-author {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--success-rgb), 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-avatar svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.quote-author-info {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.quote-author-info strong {
    display: block;
    color: var(--text-primary);
    font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   Pricing Cards
───────────────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: start;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base);
}

.pricing-card.featured {
    border: 2px solid var(--accent);
    transform: translateY(-6px);
    position: relative;
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
}

.pricing-card h3 {
    margin: 0;
    font-size: var(--font-size-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-card h3 svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.pricing-price {
    margin: 14px 0 6px;
    font-size: var(--font-size-3xl);
    font-weight: 950;
}

.pricing-price span {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-muted);
}

.pricing-card>p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: var(--font-size-base);
}

.pricing-card ul {
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.pricing-card li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.pricing-card li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Check icon - green */
.pricing-card li svg.check-icon {
    color: var(--success);
    stroke: var(--success);
}

/* Cross icon - red */
.pricing-card li svg.cross-icon {
    color: #ef4444;
    stroke: #ef4444;
}

.pricing-card .btn {
    margin-top: 18px;
    text-align: center;
    justify-content: center;
}

/* ─────────────────────────────────────────────────────────────
   Newsletter Section - Premium Redesign
───────────────────────────────────────────────────────────── */
.newsletter-section {
    padding: 0;
}

.newsletter-banner {
    position: relative;
    border-radius: var(--radius-xl);
    /* Refined deep blue/slate gradient - professional and elegant */
    background: linear-gradient(135deg, #1e293b 0%, #334155 40%, #475569 100%);
    padding: 48px 32px;
    overflow: hidden;
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* Decorative background elements - subtle accent glows */
.newsletter-banner::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(91, 92, 255, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.newsletter-banner::after {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5b5cff 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(91, 92, 255, 0.35),
        0 0 0 4px rgba(91, 92, 255, 0.15);
}

.newsletter-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
    stroke: #fff;
}

.newsletter-content h2 {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.newsletter-content>p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin-bottom: 24px;
}

.newsletter-form {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.newsletter-form form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form .btn {
    background: #fff;
    color: var(--accent);
    border: none;
    padding: 14px 24px;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
}

.newsletter-form .btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.newsletter-form .btn svg {
    color: var(--accent);
}

.newsletter-fine-print {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
}

.newsletter-fine-print svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────────
   Responsive Styles
───────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        order: -1;
    }

    .steps-grid,
    .features-grid,
    .quotes-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner .btn-group {
        justify-content: center;
    }

    /* Newsletter responsive */
    .newsletter-banner {
        padding: 40px 24px;
    }

    .newsletter-form form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }

    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 40px 0 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

    /* Newsletter small screen */
    .newsletter-banner {
        padding: 32px 20px;
        border-radius: var(--radius-lg);
    }

    .newsletter-icon {
        width: 56px;
        height: 56px;
    }

    .newsletter-icon svg {
        width: 24px;
        height: 24px;
    }

    .newsletter-content h2 {
        font-size: 22px;
    }
}