/* =============================================
   HOME.CSS — PDFlyst Homepage Styles
   Premium, conversion-focused design
   ============================================= */

/* ─── Font Override ──────────────────────────── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Utility ────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 17px;
    color: #64748B;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ─── Hero Section ───────────────────────────── */
.hero {
    background: linear-gradient(160deg, #F0F7FF 0%, #FAFBFF 50%, #F5F3FF 100%);
    padding: 80px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative background shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #BFDBFE 0%, transparent 70%);
    top: -120px;
    left: -100px;
}

.shape-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #DDD6FE 0%, transparent 70%);
    bottom: -80px;
    right: -60px;
}

.shape-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #BAE6FD 0%, transparent 70%);
    top: 30%;
    left: 60%;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #1D4ED8;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.2px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: #2563EB;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

/* Hero Title */
.hero-title {
    font-size: clamp(36px, 6vw, 62px);
    font-weight: 900;
    color: #0F172A;
    line-height: 1.13;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}

.hero-title-highlight {
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 19px);
    color: #475569;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
}

/* Hero CTA Group */
.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.35);
    letter-spacing: -0.1px;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    padding: 15px 24px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid #E2E8F0;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
    border-color: #CBD5E1;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

/* Hero Trust Bar */
.hero-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748B;
    font-size: 13px;
    font-weight: 500;
}

.trust-item svg {
    color: #94A3B8;
    flex-shrink: 0;
}

.trust-divider {
    width: 1px;
    height: 16px;
    background: #CBD5E1;
}

/* ─── Stats Bar ──────────────────────────────── */
.stats-bar {
    background: #0F172A;
    padding: 36px 0;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 48px;
}

.stat-number {
    font-size: 30px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: #94A3B8;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.stat-divider {
    width: 1px;
    height: 44px;
    background: #1E293B;
}

/* ─── Tools Section ──────────────────────────── */
.tools-section {
    padding: 80px 0;
    background: #F8FAFC;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: white;
    border: 1.5px solid #E2E8F0;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #64748B;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.tab:hover {
    border-color: #2563EB;
    color: #2563EB;
    background: #EFF6FF;
}

.tab.active {
    background: #2563EB;
    color: white;
    border-color: #2563EB;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.28);
}

.tab.active svg {
    stroke: white;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}

/* Tool Cards */
.tool-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border: 1.5px solid #F1F5F9;
    border-radius: 14px;
    padding: 20px 22px;
    text-decoration: none;
    color: inherit;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
}

.tool-card:hover {
    border-color: #BFDBFE;
    box-shadow: 0 6px 28px rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card.tool-coming-soon {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.tool-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--icon-bg, #EEF2FF);
    color: var(--icon-color, #4F46E5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tool-card:hover .tool-icon-wrap {
    transform: scale(1.08);
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
    line-height: 1.3;
}

.tool-info p {
    font-size: 13px;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-arrow {
    color: #CBD5E1;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.tool-card:hover .tool-arrow {
    color: #2563EB;
    transform: translateX(4px);
}

/* Tool Badges */
.tool-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-new {
    background: #DCFCE7;
    color: #16A34A;
}

.badge-coming {
    background: #F1F5F9;
    color: #94A3B8;
}

/* ─── How It Works ───────────────────────────── */
.how-it-works {
    padding: 80px 0;
    background: white;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    text-align: center;
    padding: 36px 28px;
    border-radius: 16px;
    background: #F8FAFC;
    border: 1.5px solid #F1F5F9;
    transition: all 0.25s ease;
}

.step-card:hover {
    background: #EFF6FF;
    border-color: #BFDBFE;
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.1);
}

.step-connector {
    padding: 0 16px;
    display: flex;
    align-items: center;
}

.step-number {
    font-size: 12px;
    font-weight: 800;
    color: #2563EB;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    opacity: 0.7;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #2563EB;
    box-shadow: 0 2px 14px rgba(37, 99, 235, 0.1);
}

.step-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    margin: 0;
}

/* ─── Benefits (Why Choose) ──────────────────── */
.why-choose {
    padding: 80px 0;
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5FF 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: white;
    border: 1.5px solid #F1F5F9;
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.25s ease;
}

.benefit-card:hover {
    border-color: #BFDBFE;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.09);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #EFF6FF 0%, #EEF2FF 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 14.5px;
    color: #64748B;
    line-height: 1.7;
    margin: 0;
}

/* ─── Testimonials ───────────────────────────── */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: #F8FAFC;
    border: 1.5px solid #F1F5F9;
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.25s ease;
}

.testimonial-card:hover {
    border-color: #BFDBFE;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.09);
    transform: translateY(-3px);
}

.testimonial-stars {
    font-size: 16px;
    color: #F59E0B;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 15px;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
}

.testimonial-author span {
    font-size: 13px;
    color: #94A3B8;
}

/* ─── CTA Section ────────────────────────────── */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1E3A8A 0%, #312E81 50%, #4C1D95 100%);
}

.cta-inner {
    text-align: center;
}

.cta-trust-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.cta-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
}

.cta-trust-item svg {
    color: rgba(255, 255, 255, 0.6);
}

.cta-section h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.cta-section p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-cta-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #1D4ED8;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-main:hover {
    background: #EFF6FF;
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

/* ─── Footer Enhancements ────────────────────── */
footer {
    background: #0F172A;
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
    align-items: start;
}

.footer-brand .footer-logo img {
    height: 40px;
    margin-bottom: 14px;
    display: block;
}

.footer-tagline {
    font-size: 14px;
    color: #64748B;
    line-height: 1.65;
    margin: 0;
    max-width: 240px;
}

.footer-section h4 {
    font-size: 13px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    font-weight: 400;
}

.footer-section ul li a:hover {
    color: #E2E8F0;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom .copyright p {
    color: #475569;
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #94A3B8;
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .stat-item {
        padding: 10px 32px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 56px 0 48px;
    }

    .hero-title {
        letter-spacing: -0.8px;
    }

    .hero-trust-bar {
        gap: 12px;
    }

    .trust-divider {
        display: none;
    }

    .stats-grid {
        gap: 0;
    }

    .stat-item {
        padding: 14px 20px;
        min-width: 140px;
    }

    .stat-divider {
        display: none;
    }

    .steps-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        max-width: 380px;
        margin: 0 auto;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        max-width: 100%;
        min-width: auto;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .auth-buttons .btn-primary {
        font-size: 13px;
        padding: 8px 14px;
    }
}

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        justify-content: center;
    }

    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .category-tabs {
        gap: 6px;
    }

    .tab {
        font-size: 13px;
        padding: 8px 14px;
    }

    .cta-trust-icons {
        flex-direction: column;
        gap: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .hero-badge {
        font-size: 12px;
        padding: 5px 12px;
    }
}