/* ScanCam — Brand Overrides & Enhancements */

/* ── Brand tokens ── */
:root {
    --sc-accent: #10B981;
    --sc-accent-light: #34d399;
    --sc-accent-glow: rgba(16, 185, 129, .18);
    --sc-cyan: #06b6d4;
}

/* ── Hero polish ── */
.hero {
    padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--sc-accent-glow), transparent 70%);
    top: -200px;
    left: -100px;
    pointer-events: none;
    animation: heroPulse 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, .1), transparent 70%);
    bottom: -200px;
    right: -100px;
    pointer-events: none;
    animation: heroPulse 8s ease-in-out 4s infinite alternate;
}

@keyframes heroPulse {
    0%   { opacity: .6; transform: scale(1); }
    100% { opacity: 1;  transform: scale(1.15); }
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0 0 1.25rem;
    background: linear-gradient(135deg, #fff 0%, var(--sc-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ── Section label pill ── */
.section-label {
    background: var(--sc-accent-glow);
    color: var(--sc-accent-light);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    padding: .45rem 1rem;
    border: 1px solid rgba(16, 185, 129, .15);
    backdrop-filter: blur(4px);
}

/* ── Store badges ── */
.hero .cta-row {
    gap: .75rem;
    align-items: center;
}

.hero .cta-row a {
    transition: transform .25s ease, box-shadow .25s ease;
    border-radius: 8px;
}

.hero .cta-row a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, .2);
}

/* Apple badge — visible artwork is the full image */
.hero .cta-row img[alt*="App Store"] {
    height: 46px;
    width: auto;
}

/* Google Play badge PNG has ~33% vertical transparent padding built in;
   use a larger height + negative margin so visible artwork matches Apple */
.hero .cta-row img[alt*="Google Play"] {
    height: 68px;
    width: auto;
    margin: -11px;
}

/* ── Section titles ── */
.section-title {
    font-weight: 700;
    letter-spacing: -.01em;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--sc-accent), var(--sc-cyan));
}

/* ── Cards ── */
.card {
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(16, 185, 129, .06), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, .2);
    box-shadow: 0 12px 40px rgba(16, 185, 129, .08);
}

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

.card .num {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--sc-accent), var(--sc-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: .3;
    transition: opacity .3s ease;
}

.card:hover .num {
    opacity: .5;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.card p {
    font-size: .93rem;
    line-height: 1.65;
}

/* ── Blog cards ── */
.card.blog-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: transform .4s ease;
}

.card.blog-card:hover img {
    transform: scale(1.03);
}

.card.blog-card .blog-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.card.blog-card .blog-excerpt {
    margin-top: .5rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
}

.card.blog-card .blog-read-more {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--sc-accent-light);
    font-weight: 600;
    font-size: .88rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: gap .2s ease;
}

.card.blog-card:hover .blog-read-more {
    gap: .6rem;
}

/* ── CTA band ── */
.cta-band {
    background: linear-gradient(135deg, rgba(16, 185, 129, .1), rgba(6, 182, 212, .08));
    border: 1px solid rgba(16, 185, 129, .15);
    padding: clamp(2.5rem, 5vw, 4rem) 2rem;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--sc-accent-glow), transparent 70%);
    top: -150px;
    right: -50px;
    pointer-events: none;
}

.cta-band h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 .75rem;
}

.cta-band p {
    max-width: 520px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.65;
}

.cta-band .cta-buttons {
    display: flex;
    gap: .75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-band .cta-buttons a {
    transition: transform .25s ease, box-shadow .25s ease;
    border-radius: 8px;
}

.cta-band .cta-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, .2);
}

.cta-band .cta-buttons img[alt*="App Store"] {
    height: 42px;
    width: auto;
}

.cta-band .cta-buttons img[alt*="Google Play"] {
    height: 62px;
    width: auto;
    margin: -10px;
}

/* ── Footer fix: layout uses h3 not h4 ── */
.footer-grid h3 {
    margin: 0 0 .75rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

/* ── Entrance animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
}

.reveal.visible {
    animation: fadeUp .6s cubic-bezier(.22, 1, .36, 1) forwards;
}

.reveal.visible:nth-child(2) { animation-delay: .08s; }
.reveal.visible:nth-child(3) { animation-delay: .16s; }

/* ── Mobile nav (hamburger) ── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 6px;
    gap: 5px;
    background: none;
    border: none;
    z-index: 60;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, .95);
    backdrop-filter: blur(20px);
    z-index: 55;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity .3s ease;
}

.mobile-nav-overlay.open {
    display: flex;
    opacity: 1;
}

.mobile-nav-overlay a {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 500;
    padding: .5rem 1rem;
    transition: color .2s;
}

.mobile-nav-overlay a:hover {
    color: var(--sc-accent-light);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .cta-band {
        padding: 2rem 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Smooth scroll offset for sticky header ── */
section[id] {
    scroll-margin-top: 5rem;
}

/* ── Active nav link ── */
.nav-links a.active {
    color: var(--sc-accent-light);
}

/* ── Selection color ── */
::selection {
    background: rgba(16, 185, 129, .25);
    color: #fff;
}

/* ── Focus visible for accessibility ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--sc-accent);
    outline-offset: 3px;
    border-radius: 4px;
}
