/* ===================================================================
   DuplicateFinder — site.css
   Global styles + Home page
   =================================================================== */

/* ── CSS Variables ────────────────────────────────────────────────── */
:root {
    --df-blue:      #2563eb;
    --df-blue-dark: #1d4ed8;
    --df-navy:      #0f172a;
    --df-slate:     #1e293b;
    --df-orange:    #f97316;
    --df-orange-dk: #ea6a0a;
    --df-gray-50:   #f8fafc;
    --df-gray-100:  #f1f5f9;
    --df-gray-600:  #475569;
    --df-gray-800:  #1e293b;
    --df-radius:    0.75rem;
    --df-shadow:    0 4px 24px rgba(0,0,0,.08);
    --df-shadow-lg: 0 12px 48px rgba(0,0,0,.14);
}

/* ── Base ─────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    background: #fff;
}

/* ── Navbar ───────────────────────────────────────────────────────── */
#mainNavbar {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
#mainNavbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.10); }
#mainNavbar .navbar-brand { color: var(--df-navy); }
#mainNavbar .navbar-brand span { color: var(--df-blue); }
#mainNavbar .nav-link {
    color: var(--df-gray-600);
    font-weight: 500;
    transition: color .15s;
}
#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active { color: var(--df-blue); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn-primary {
    background: var(--df-blue);
    border-color: var(--df-blue);
    border-radius: 8px;
    font-weight: 600;
}
.btn-primary:hover { background: var(--df-blue-dark); border-color: var(--df-blue-dark); }

.btn-cta {
    background: var(--df-orange);
    border-color: var(--df-orange);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    padding: .75rem 2rem;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(249,115,22,.35);
}
.btn-cta:hover {
    background: var(--df-orange-dk);
    border-color: var(--df-orange-dk);
    color: #fff;
    box-shadow: 0 6px 20px rgba(249,115,22,.45);
    transform: translateY(-1px);
}
.btn-outline-light {
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    padding: .75rem 2rem;
}

/* ── Section spacing ──────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--df-navy);
}
.section-subtitle {
    font-size: 1.15rem;
    color: var(--df-gray-600);
    max-width: 600px;
    margin: 0 auto;
}
.section-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--df-blue);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--df-navy) 0%, #1a2e6b 50%, #0f2856 100%);
    color: #fff;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(59,130,246,.18) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(249,115,22,.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(59,130,246,.25);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,.35);
    border-radius: 99px;
    padding: .3rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: 1.25rem;
}
.hero h1 .accent { color: #60a5fa; }
.hero-lead {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.65;
}
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.hero-stat {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: #94a3b8;
}
.hero-stat i { color: #60a5fa; font-size: 1rem; }

/* ── App mockup ───────────────────────────────────────────────────── */
.app-mockup {
    background: #1e293b;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.07);
    user-select: none;
}
.mockup-titlebar {
    background: #0f172a;
    padding: .65rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.mockup-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.mockup-dot.red   { background: #ef4444; }
.mockup-dot.amber { background: #f59e0b; }
.mockup-dot.green { background: #22c55e; }
.mockup-title {
    font-size: .72rem;
    color: #64748b;
    margin-left: .5rem;
    font-family: monospace;
}
.mockup-body { padding: 1rem; }

/* Tabs bar */
.mockup-tabs {
    display: flex;
    gap: .25rem;
    margin-bottom: 1rem;
    background: #0f172a;
    border-radius: 8px;
    padding: .3rem;
}
.mockup-tab {
    flex: 1;
    text-align: center;
    padding: .35rem .5rem;
    border-radius: 6px;
    font-size: .7rem;
    color: #64748b;
    font-weight: 500;
}
.mockup-tab.active {
    background: #1e40af;
    color: #fff;
}

/* Stat cards row */
.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-bottom: 1rem;
}
.mockup-stat-card {
    background: #0f172a;
    border-radius: 8px;
    padding: .6rem .75rem;
    border: 1px solid rgba(255,255,255,.05);
}
.mockup-stat-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: #60a5fa;
    line-height: 1;
    margin-bottom: .2rem;
}
.mockup-stat-lbl {
    font-size: .6rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Progress bar */
.mockup-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .65rem;
    color: #94a3b8;
    margin-bottom: .35rem;
}
.mockup-progress-bar {
    height: 6px;
    border-radius: 99px;
    background: #1e3a5f;
    overflow: hidden;
    margin-bottom: 1rem;
}
.mockup-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    width: 72%;
}

/* Duplicate group rows */
.mockup-group {
    background: #0f172a;
    border-radius: 8px;
    padding: .5rem .75rem;
    margin-bottom: .4rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid rgba(255,255,255,.04);
}
.mockup-group-icon { color: #f97316; font-size: .9rem; flex-shrink: 0; }
.mockup-group-info { flex: 1; min-width: 0; }
.mockup-group-name { font-size: .72rem; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mockup-group-meta { font-size: .6rem; color: #64748b; }
.mockup-group-badge {
    font-size: .6rem;
    background: rgba(249,115,22,.15);
    color: #f97316;
    border-radius: 4px;
    padding: .15rem .4rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Stage pipeline indicator */
.mockup-pipeline {
    display: flex;
    gap: .3rem;
    margin-top: .75rem;
}
.mockup-stage {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: #1e3a5f;
    position: relative;
    overflow: hidden;
}
.mockup-stage.done { background: #22c55e; }
.mockup-stage.active { background: #3b82f6; }
.mockup-stage.active::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    100% { left: 100%; }
}

/* ── Problem / Solution ───────────────────────────────────────────── */
.problem-solution { background: var(--df-gray-50); }

.ps-card {
    background: #fff;
    border-radius: var(--df-radius);
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--df-shadow);
    border: 1px solid #e2e8f0;
    transition: transform .2s, box-shadow .2s;
}
.ps-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--df-shadow-lg);
}
.ps-icon-wrap {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}
.ps-icon-wrap.problem { background: rgba(239,68,68,.1); color: #ef4444; }
.ps-icon-wrap.solution { background: rgba(37,99,235,.1); color: var(--df-blue); }
.ps-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--df-navy);
}
.ps-card ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}
.ps-card ul li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .95rem;
    color: var(--df-gray-600);
    padding: .35rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.ps-card ul li:last-child { border-bottom: none; }
.ps-card ul li i { margin-top: .1rem; flex-shrink: 0; }
.ps-card ul.problem-list li i { color: #ef4444; }
.ps-card ul.solution-list li i { color: #22c55e; }

/* ── Features ─────────────────────────────────────────────────────── */
.features { background: #fff; }
.feature-card {
    background: var(--df-gray-50);
    border-radius: var(--df-radius);
    padding: 2rem 1.75rem;
    height: 100%;
    border: 1px solid #e2e8f0;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--df-blue), #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--df-shadow-lg);
    border-color: #bfdbfe;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(37,99,235,.1);
    color: var(--df-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
}
.feature-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--df-navy);
    margin-bottom: .5rem;
}
.feature-card p {
    font-size: .9rem;
    color: var(--df-gray-600);
    margin: 0;
    line-height: 1.6;
}

/* ── Carousel / Screenshots ───────────────────────────────────────── */
.screenshots { background: var(--df-navy); padding: 5rem 0; }
.screenshots .section-title { color: #fff; }
.screenshots .section-subtitle { color: #94a3b8; }
.screenshot-frame {
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.06);
    aspect-ratio: 16 / 8.4;   /* matches actual app screenshot proportions */
    display: flex;
    align-items: center;
    justify-content: center;
}
.screenshot-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* show full screenshot, no cropping */
    object-position: center top;
    display: block;
    background: #f8fafc;
}
.screenshot-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #475569;
    font-size: .85rem;
}
.screenshot-placeholder i { font-size: 3rem; margin-bottom: 1rem; color: #334155; }

.carousel-caption-custom {
    text-align: center;
    padding: 1.25rem 0 0;
}
.carousel-caption-custom h6 { color: #e2e8f0; font-weight: 600; margin-bottom: .25rem; }
.carousel-caption-custom p  { color: #64748b; font-size: .875rem; margin: 0; }

.carousel-indicators [data-bs-target] {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 2px solid transparent;
}

/* ── Carousel prev / next arrow buttons ───────────────────────────── */
/* Bootstrap defaults: white arrows, opacity 0.5 — invisible on light imgs */
/* Fix: dark pill background, shown on carousel hover only               */
#screenshotCarousel .carousel-control-prev,
#screenshotCarousel .carousel-control-next {
    width: 56px;
    opacity: 0;                          /* hidden at rest */
    transition: opacity .25s ease;
    z-index: 10;
}
#screenshotCarousel:hover .carousel-control-prev,
#screenshotCarousel:hover .carousel-control-next {
    opacity: 1;                          /* revealed on hover */
}
#screenshotCarousel .carousel-control-prev-icon,
#screenshotCarousel .carousel-control-next-icon {
    width: 2.75rem;
    height: 2.75rem;
    background-color: rgba(15, 23, 42, 0.72);  /* dark navy pill */
    border-radius: 50%;
    background-size: 45%;                /* arrow slightly smaller than circle */
    box-shadow: 0 2px 10px rgba(0,0,0,.35);
    transition: background-color .2s, transform .15s;
}
#screenshotCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#screenshotCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(15, 23, 42, 0.92);
    transform: scale(1.1);
}
/* Explicit white arrow SVG — overrides any Bootstrap filter weirdness */
#screenshotCarousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
#screenshotCarousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ── Pricing ──────────────────────────────────────────────────────── */
.pricing { background: var(--df-gray-50); }
.pricing-card {
    background: #fff;
    border-radius: var(--df-radius);
    border: 2px solid var(--df-blue);
    box-shadow: 0 0 0 6px rgba(37,99,235,.07), var(--df-shadow-lg);
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}
.pricing-header {
    background: linear-gradient(135deg, var(--df-blue), #1d4ed8);
    color: #fff;
    padding: 2rem 2.5rem;
    text-align: center;
}
.pricing-header h3 { font-weight: 800; margin-bottom: .25rem; }
.pricing-badge {
    display: inline-block;
    background: rgba(255,255,255,.2);
    border-radius: 99px;
    padding: .2rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255,255,255,.25);
}
.pricing-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
    gap: .15rem;
}
.pricing-currency { font-size: 1.6rem; font-weight: 700; margin-top: .4rem; }
.pricing-value    { font-size: 4.5rem; font-weight: 900; letter-spacing: -.04em; }
.pricing-period   { font-size: .9rem; color: rgba(255,255,255,.7); align-self: flex-end; margin-bottom: .4rem; }
.pricing-body { padding: 2rem 2.5rem; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .55rem 0;
    font-size: .95rem;
    color: var(--df-gray-600);
    border-bottom: 1px solid #f1f5f9;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: #22c55e; margin-top: .1rem; flex-shrink: 0; }
.pricing-promo {
    background: var(--df-gray-50);
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .85rem;
    color: var(--df-gray-600);
    text-align: center;
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
}
.pricing-promo i { color: var(--df-orange); }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq { background: #fff; }
.faq .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--df-radius) !important;
    margin-bottom: .75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.faq .accordion-button {
    font-weight: 600;
    font-size: .97rem;
    color: var(--df-navy);
    background: #fff;
    padding: 1.15rem 1.5rem;
}
.faq .accordion-button:not(.collapsed) {
    color: var(--df-blue);
    background: #f0f7ff;
    box-shadow: none;
}
.faq .accordion-button::after { flex-shrink: 0; }
.faq .accordion-body {
    font-size: .93rem;
    color: var(--df-gray-600);
    line-height: 1.7;
    background: #fff;
    padding: 1rem 1.5rem 1.25rem;
}

/* ── Footer CTA ───────────────────────────────────────────────────── */
.footer-cta {
    background: linear-gradient(135deg, var(--df-blue) 0%, #1d4ed8 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}
.footer-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .75rem;
}
.footer-cta p {
    color: rgba(255,255,255,.75);
    font-size: 1.1rem;
    margin-bottom: 2.25rem;
}

/* ── Scroll-reveal animation ──────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── Footer links ─────────────────────────────────────────────────── */
.footer-link { transition: color .15s; }
.footer-link:hover { color: #93c5fd !important; }

/* ── Responsive tweaks ────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .hero { padding: 4rem 0 3rem; }
    .hero h1 { font-size: 2.2rem; }
    .section { padding: 3.5rem 0; }
    .section-title { font-size: 1.8rem; }
    .pricing-card { max-width: 100%; }
}

/* ── Buy page / Manual page container ────────────────────────────── */
.page-body {
    padding: 3rem 0 5rem;
}

/* ── OS Requirements box ──────────────────────────────────────────── */
.os-requirements {
    background: var(--df-gray-50);
    border: 1px solid #e2e8f0;
    border-radius: var(--df-radius);
    padding: 1.5rem 1.75rem;
}
.req-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .4rem 0;
    font-size: .9rem;
    color: var(--df-gray-600);
}
.req-item i {
    color: var(--df-blue);
    margin-top: .15rem;
    flex-shrink: 0;
}

/* ── Disclaimer box ───────────────────────────────────────────────── */
.disclaimer-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fffbeb;
    border: 1.5px solid #fbbf24;
    border-radius: var(--df-radius);
    padding: 1.75rem 2rem;
    max-width: 860px;
    margin: 0 auto;
}
.disclaimer-icon {
    font-size: 1.75rem;
    color: #d97706;
    flex-shrink: 0;
    padding-top: .1rem;
}
.disclaimer-body h5 {
    font-weight: 700;
    color: #92400e;
    margin-bottom: .75rem;
    font-size: 1.05rem;
}
.disclaimer-body p {
    font-size: .92rem;
    color: #78350f;
    line-height: 1.65;
    margin-bottom: .65rem;
}
.disclaimer-body strong { color: #92400e; }

@media (max-width: 575.98px) {
    .disclaimer-box { flex-direction: column; }
    .disclaimer-icon { font-size: 1.5rem; }
}
