/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 16px;
}
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-text p {
    font-size: 0.65rem;
    color: #475569;
    margin-top: 2px;
    letter-spacing: 0.3px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.fiverr-btn {
    background: #0f172a;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.2,0,0,1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.fiverr-btn i { font-size: 1rem; }
.fiverr-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.about-header-btn {
    background: #eff6ff;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e40af;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 40px;
    transition: 0.2s;
}
.about-header-btn:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

/* Hero – Unified Card */
/* Hero – Unified Card with Rich Multi-Color Gradient */
.hero {
    padding: 48px 0 40px;
    background: transparent;
}
.hero-card {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 25%, #fdf4ff 50%, #fff7ed 75%, #f8fafc 100%);
    border-radius: 40px;
    padding: 48px 48px;
    box-shadow: 0 20px 35px -8px rgba(0,0,0,0.05), 0 4px 8px rgba(0,0,0,0.02);
    border: 1px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168,85,247,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-left {
    text-align: left;
}
.hero-badge {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 8px rgba(37,99,235,0.15);
}
.hero-left h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-left p {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 28px;
    line-height: 1.6;
}
.hero-stats {
    display: flex;
    gap: 32px;
    margin: 24px 0 28px;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-cta .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    box-shadow: 0 8px 16px rgba(37,99,235,0.2);
}
.hero-cta .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 12px 20px rgba(37,99,235,0.25);
}
.hero-cta .btn-outline {
    border: 1.5px solid #3b82f6;
    color: #2563eb;
}
.hero-cta .btn-outline:hover {
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    border-color: #2563eb;
    color: #1e40af;
}
.hero-right {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 28px;
    padding: 28px 24px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06), 0 16px 24px -8px rgba(37,99,235,0.15);
    border: 1px solid rgba(255,255,255,0.08);
}
.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
}
.code-dot:nth-child(2) { background: #f59e0b; }
.code-dot:nth-child(3) { background: #10b981; }
.code-content {
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.7;
}
.code-line {
    display: flex;
}
.code-prompt {
    color: #34d399;
    margin-right: 12px;
    user-select: none;
    font-weight: 600;
}
.code-output {
    color: #fcd34d;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-left h2 { font-size: 2rem; }
    .hero-card { padding: 32px 24px; }
}

/* Filter Bar */
.filter-section {
    margin: 24px 0 16px;
}
.search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    padding: 4px 4px 4px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.search-wrapper i { color: #94a3b8; }
#filterInput {
    flex: 1;
    border: none;
    padding: 14px 10px;
    font-size: 0.95rem;
    background: transparent;
    outline: none;
}
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.cat-chip {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.cat-chip.active {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}
.cat-chip:hover { background: #f1f5f9; }
.cat-chip.active:hover { background: #1e293b; }

/* Testimonials */
.testimonial-section { margin: 24px 0 10px; }
.testimonial-carousel {
    background: white;
    border-radius: 24px;
    padding: 24px 28px;
    border: 1px solid #eef2ff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}
.testimonial-slide {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.testimonial-avatar {
    width: 56px;
    height: 56px;
    background: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-weight: bold;
    flex-shrink: 0;
}
.testimonial-content {
    flex: 1;
    font-style: italic;
    color: #334155;
}
.testimonial-text { font-size: 1rem; line-height: 1.6; }
.testimonial-author {
    font-weight: 700;
    color: #0f172a;
    margin-top: 10px;
    font-style: normal;
}
.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}
.testimonial-dots { display: flex; gap: 8px; }
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: 0.2s;
}
.dot.active {
    background: #0f172a;
    width: 24px;
    border-radius: 4px;
}
.nav-arrow {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    color: #1e293b;
}
.nav-arrow:hover { background: #e2e8f0; }

/* Scraper Cards */
/* ----- Enhanced Scraper Cards ----- */
.scraper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin: 20px 0 60px;
}

.scraper-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.2,0,0,1);
    overflow: hidden;
    border: 1px solid #eef2ff;
    position: relative;
}
.scraper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.scraper-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 36px -12px rgba(37,99,235,0.15), 0 8px 16px -8px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}
.scraper-card:hover::before {
    opacity: 1;
}

/* Card Icon Area */
.card-img {
    height: 120px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #7db0f3;
    border-bottom: 1px solid #eef2ff;
    position: relative;
    overflow: hidden;
}
.card-img::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.card-img i {
    filter: drop-shadow(0 4px 6px rgba(37,99,235,0.2));
    transition: transform 0.3s ease;
}
.scraper-card:hover .card-img i {
    transform: scale(1.1);
}

/* Category Badge on Card */
.card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #2563eb;
    border: 1px solid rgba(37,99,235,0.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    z-index: 5;
}

/* Card Content */
.card-content {
    padding: 20px 18px 18px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 0.85rem;
    color: #475569;
    margin: 10px 0 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Field Preview Chips */
.field-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 16px;
}

.chip {
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.chip:hover {
    background: #e0e7ff;
    color: #2563eb;
    border-color: #bdd3ff;
}

.field-count-badge {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(37,99,235,0.2);
    margin-left: auto;
}

/* Detail Link Button */
.detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    color: #1e40af;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 12px 0;
    text-align: center;
    width: 100%;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}
.detail-link i {
    transition: transform 0.25s ease;
}
.detail-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.1), transparent);
    transition: left 0.5s ease;
}
.detail-link:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-color: #2563eb;
    box-shadow: 0 8px 16px rgba(37,99,235,0.2);
}
.detail-link:hover i {
    transform: translateX(5px);
}
.detail-link:hover::before {
    left: 100%;
}

/* Card Footer with Stats */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 500;
}
.platform-badge i {
    color: #10b981;
    font-size: 0.65rem;
}

.delivery-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 500;
}
.delivery-badge i {
    color: #f59e0b;
    font-size: 0.65rem;
}

/* Detail Page */
.detail-container {
    max-width: 1100px;
    margin: 40px auto;
    background: white;
    border-radius: 40px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 36px;
}
.breadcrumb {
    margin-bottom: 20px;
    color: #64748b;
    font-size: 0.9rem;
}
.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
    cursor: pointer;
}
.breadcrumb a:hover { text-decoration: underline; }
.scraper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 2px solid #eef2ff;
    padding-bottom: 20px;
    margin-bottom: 24px;
}
.scraper-title {
    font-size: 2rem;
    font-weight: 800;
}
.field-group {
    background: #f9fafb;
    border-radius: 24px;
    padding: 20px 24px;
    margin: 24px 0;
}
.field-group h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: 10px;
}
.field-item {
    background: white;
    padding: 8px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Menlo', monospace;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.field-item i { color: #10b981; font-size: 0.7rem; }

/* Output Format */
.default-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.sample-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.sample-data {
    background: #1e293b;
    color: #e2e8f0;
    padding: 18px;
    border-radius: 20px;
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.csv-sample {
    background: #0d9488;
    color: #f0fdf4;
}
.json-key { color: #7dd3fc; }
.json-string { color: #86efac; }
.json-number { color: #fbbf24; }
.copy-btn {
    background: #334155;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}
.copy-btn:hover { background: #475569; }
details { margin-top: 16px; }
details summary {
    cursor: pointer;
    font-weight: 600;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}
details summary:hover { color: #2563eb; }

.contact-block {
    text-align: center;
    margin-top: 32px;
    padding: 32px;
    background: linear-gradient(120deg, #eff6ff, white);
    border-radius: 32px;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-primary {
    background: #0f172a;
    color: white;
    padding: 12px 32px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.btn-primary i { font-size: 1rem; }
.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid #0f172a;
    color: #0f172a;
    padding: 12px 28px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.btn-outline:hover { background: #0f172a; color: white; }

/* Privacy */
.privacy-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 40px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
    padding: 40px;
}
.privacy-container h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.privacy-container .last-updated {
    color: #64748b;
    margin-bottom: 32px;
    font-size: 0.9rem;
}
.privacy-container h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: #1e293b;
}
.privacy-container p { margin-bottom: 16px; color: #334155; line-height: 1.7; }
.privacy-container ul { margin-left: 24px; margin-bottom: 16px; color: #334155; }
.privacy-container li { margin-bottom: 8px; }
.privacy-container a { color: #3b82f6; text-decoration: none; }
.privacy-container a:hover { text-decoration: underline; }

/* Mobile FAB */
.mobile-fab {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0f172a;
    color: white;
    padding: 14px 24px;
    border-radius: 60px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 50;
    text-decoration: none;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    background: rgba(15,23,42,0.95);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    max-width: 550px;
    width: 90%;
    border-radius: 32px;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 40px rgba(0,0,0,0.2);
}
.close-modal {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 28px;
    cursor: pointer;
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.close-modal:hover { background: #e2e8f0; }

.footer {
    text-align: center;
    padding: 40px 0 32px;
    border-top: 1px solid #e2e8f0;
    margin-top: 48px;
    color: #64748b;
    font-size: 0.8rem;
}
.footer a { color: #64748b; text-decoration: underline; }
.footer a:hover { color: #3b82f6; }

/* Focus */
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-left h2 { font-size: 2rem; }
    .hero-card { padding: 32px 24px; }
}
@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .hero h2 { font-size: 1.8rem; }
    .detail-container { padding: 20px; }
    .privacy-container { padding: 24px; }
    .header-actions .about-header-btn span { display: none; }
    .header-actions .about-header-btn i { margin: 0; }
    .mobile-fab { display: flex; }
    .cta-buttons { flex-direction: column; }
    .logo-text p { font-size: 0.55rem; }
    .logo-img { height: 35px; }
}