/**
 * Premium SaaS-style layer: glass UI, sticky nav, hero polish, problems, process, floating CTA, scroll progress.
 * Loaded after styles.css on index.html
 */

/* ----- Scroll progress ----- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 10001;
    background: linear-gradient(90deg, #0ea5e9, #6366f1, #a855f7);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.6);
    transition: width 0.08s linear;
    pointer-events: none;
}

/* ----- Subtle cursor glow (pointer devices only) ----- */
.cursor-glow {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

@media (hover: hover) and (pointer: fine) {
    body.has-cursor-glow .cursor-glow {
        display: block;
    }
}

/* ----- Sticky nav: glass on hero → solid bar on scroll ----- */
.nav.nav--premium {
    position: sticky;
    top: 0;
    z-index: 10000;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    transition:
        background-color 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        backdrop-filter 0.35s ease,
        -webkit-backdrop-filter 0.35s ease;
}

/* Prevent nav inner row from forcing page-wide horizontal scroll */
.nav.nav--premium .nav-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
}

/* On hero: subtle frosted strip (readable; not “invisible” on busy gradient) */
.nav.nav--premium:not(.nav--solid) {
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.nav.nav--premium.nav--solid {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
}

[data-theme="dark"] .nav.nav--premium:not(.nav--solid) {
    background: rgba(15, 23, 42, 0.72);
    border-bottom-color: rgba(51, 65, 85, 0.45);
}

[data-theme="dark"] .nav.nav--premium.nav--solid {
    background: rgba(15, 23, 42, 0.88);
    border-bottom-color: rgba(51, 65, 85, 0.65);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Brand: stacked lockup (saves horizontal space; no awkward inline subtitle) */
.nav.nav--premium .nav-content {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.5rem;
    min-height: 4rem;
    height: auto;
    padding: 0.55rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.nav.nav--premium .nav-brand--link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    max-width: min(17.5rem, 42vw);
    justify-self: start;
    border-radius: 0.5rem;
    margin: 0;
    padding: 0.25rem 0.5rem 0.25rem 0;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.nav.nav--premium .nav-brand--link:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.nav.nav--premium.nav--solid .nav-brand--link:hover {
    background-color: rgba(37, 99, 235, 0.06);
}

.nav.nav--premium .nav-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
    line-height: 1.15;
}

.nav.nav--premium .nav-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav.nav--premium .nav-subtitle {
    margin-left: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.85);
    white-space: nowrap;
}

/* Long positioning line: allow wrap so desktop nav stays usable */
.nav.nav--premium .nav-subtitle--full {
    white-space: normal;
    text-transform: none;
    letter-spacing: 0.015em;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.25;
    max-width: min(17rem, 42vw);
}

@media (min-width: 1100px) {
    .nav.nav--premium .nav-subtitle--full {
        max-width: 19rem;
        font-size: 0.65625rem;
    }
}

.nav.nav--premium.nav--solid .nav-subtitle--full {
    color: #64748b;
}

[data-theme="dark"] .nav.nav--premium.nav--solid .nav-subtitle--full {
    color: #94a3b8;
}

.nav.nav--premium:not(.nav--solid) .nav-title {
    color: #f8fafc;
}

.nav.nav--premium.nav--solid .nav-subtitle {
    color: #64748b;
}

.nav.nav--premium.nav--solid .nav-title {
    color: #0f172a;
}

[data-theme="dark"] .nav.nav--premium.nav--solid .nav-title {
    color: #f1f5f9;
}

[data-theme="dark"] .nav.nav--premium.nav--solid .nav-subtitle {
    color: #94a3b8;
}

.nav.nav--premium:not(.nav--solid) .nav-link {
    color: rgba(248, 250, 252, 0.88);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.35rem 0.4rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav.nav--premium:not(.nav--solid) .nav-link:hover {
    color: #7dd3fc;
    background-color: rgba(255, 255, 255, 0.06);
}

.nav.nav--premium:not(.nav--solid) .nav-link.active {
    color: #7dd3fc;
    background-color: rgba(125,211,252,0.12);
}

.nav.nav--premium.nav--solid .nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.35rem 0.4rem;
    border-radius: 0.375rem;
}

.nav.nav--premium.nav--solid .nav-link:hover {
    background-color: rgba(37, 99, 235, 0.08);
}

.nav.nav--premium .mobile-menu-btn {
    justify-self: end;
}

.nav.nav--premium:not(.nav--solid) .mobile-menu-btn {
    color: #f1f5f9;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav.nav--premium:not(.nav--solid) .mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Theme toggle: visible on dark frosted bar */
.nav.nav--premium:not(.nav--solid) .theme-toggle {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f8fafc;
}

.nav.nav--premium:not(.nav--solid) .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
}

[data-theme="dark"] .nav.nav--premium:not(.nav--solid) .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(148, 163, 184, 0.35);
}

.nav.nav--premium:not(.nav--solid) .nav-cta {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 0.95rem;
    border-radius: 9999px;
    box-shadow: 0 2px 16px rgba(14, 165, 233, 0.35);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav.nav--premium:not(.nav--solid) .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    color: #fff;
}

.nav.nav--premium.nav--solid .nav-cta {
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 0.95rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
}

.nav.nav--premium.nav--solid .nav-cta:hover {
    filter: brightness(1.05);
    color: #fff;
}

/* Tighter link row; only show full desktop nav on wide screens */
.nav.nav--premium .nav-links.desktop-nav {
    gap: 0.25rem 0.35rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
}

@media (min-width: 768px) and (max-width: 1299px) {
    .nav.nav--premium .desktop-nav {
        display: none;
    }

    .nav.nav--premium .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 1300px) {
    .nav.nav--premium .desktop-nav {
        display: flex;
    }

    .nav.nav--premium .mobile-menu-btn {
        display: none;
    }
}

/* Slightly tighter type when many links fit one row but space is tight */
@media (min-width: 1300px) and (max-width: 1499px) {
    .nav.nav--premium:not(.nav--solid) .nav-link,
    .nav.nav--premium.nav--solid .nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.3rem;
    }

    .nav.nav--premium:not(.nav--solid) .nav-cta,
    .nav.nav--premium.nav--solid .nav-cta {
        font-size: 0.75rem;
        padding: 0.45rem 0.75rem;
    }
}

/* Mobile drawer under premium nav */
.nav.nav--premium .mobile-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav.nav--premium.nav--solid .mobile-nav {
    background: var(--theme-surface-alt, #f8fafc);
    border-top-color: var(--theme-border, #e2e8f0);
}

[data-theme="dark"] .nav.nav--premium.nav--solid .mobile-nav {
    background: rgba(30, 41, 59, 0.95);
}

.nav.nav--premium:not(.nav--solid) .mobile-nav-link {
    color: rgba(248, 250, 252, 0.92);
}

.nav.nav--premium:not(.nav--solid) .mobile-nav-link:hover,
.nav.nav--premium:not(.nav--solid) .mobile-nav-link.active {
    color: #7dd3fc;
}

.nav.nav--premium:not(.nav--solid) .theme-toggle-mobile {
    color: rgba(248, 250, 252, 0.92);
}

.nav.nav--premium:not(.nav--solid) .theme-toggle-mobile:hover {
    color: #fff;
}

.nav.nav--premium:not(.nav--solid) .theme-toggle-label {
    color: rgba(248, 250, 252, 0.88);
}

/* ----- Hero: particles + typing + trust + profile ring ----- */
.hero.hero--saas {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 6rem;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(2px 2px at 60% 70%, rgba(14,165,233,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.25) 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 80%, rgba(99,102,241,0.35) 0%, transparent 100%);
    background-size: 100% 100%;
    animation: particle-drift 18s ease-in-out infinite;
    opacity: 0.55;
    pointer-events: none;
}

@keyframes particle-drift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(12px, -8px); }
    66% { transform: translate(-8px, 12px); }
}

.hero-headline-display {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 0 2px 40px rgba(0,0,0,0.25);
}

.hero-typing-wrap {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: #7dd3fc;
    margin-bottom: 1.25rem;
    min-height: 1.5em;
}

.hero-typing-wrap .cursor-blink {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #38bdf8;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-subvalue {
    font-size: 1.125rem;
    line-height: 1.65;
    color: #cbd5e1;
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    backdrop-filter: blur(8px);
}

.hero-trust-badge i {
    width: 0.95rem;
    height: 0.95rem;
    color: #34d399;
}

.hero-visual-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-profile-ring {
    position: relative;
    padding: 5px;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #0ea5e9, #6366f1, #a855f7, #0ea5e9);
    background-size: 300% 300%;
    animation: ring-glow 8s ease infinite;
    box-shadow:
        0 0 60px rgba(14, 165, 233, 0.35),
        0 24px 48px rgba(0, 0, 0, 0.35);
}

@keyframes ring-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-profile-ring-inner {
    border-radius: 1.1rem;
    overflow: hidden;
    background: #0f172a;
    line-height: 0;
}

.hero-profile-ring img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

/* ----- Problems I solve ----- */
.problems-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--theme-surface-alt, #f8fafc) 0%, var(--theme-bg, #fff) 100%);
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 1180px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .problems-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.problem-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(99, 102, 241, 0.18));
    border: 1px solid rgba(14, 165, 233, 0.35);
}

.problem-card-icon i {
    width: 1.35rem;
    height: 1.35rem;
    color: #0ea5e9;
}

.problems-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2.75rem;
}

.problem-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.problem-bad {
    font-size: 0.875rem;
    color: #dc2626;
    margin-bottom: 0.65rem;
    font-weight: 600;
}

.problem-good {
    font-size: 0.9375rem;
    color: #059669;
    font-weight: 600;
}

.problem-arrow {
    color: #64748b;
    margin: 0.5rem 0;
    font-size: 1.25rem;
    line-height: 1;
}

[data-theme="dark"] .problem-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(71, 85, 105, 0.5);
}

[data-theme="dark"] .problem-bad { color: #f87171; }
[data-theme="dark"] .problem-good { color: #34d399; }

/* ----- My process timeline ----- */
.process-section {
    padding: 5rem 0;
    background: var(--theme-bg);
}

.process-section--premium {
    background: linear-gradient(180deg, var(--theme-bg, #fff) 0%, var(--theme-surface-alt, #f8fafc) 50%, var(--theme-bg, #fff) 100%);
}

.process-section--premium .process-step-icon {
    box-shadow: 0 12px 36px rgba(14, 165, 233, 0.18);
}

[data-theme="dark"] .process-section--premium {
    background: linear-gradient(180deg, var(--theme-bg) 0%, rgba(30, 41, 59, 0.35) 50%, var(--theme-bg) 100%);
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1100px;
    margin: 2rem auto 0;
    position: relative;
}

@media (min-width: 900px) {
    .process-timeline {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    .process-timeline::before {
        content: '';
        position: absolute;
        top: 2.25rem;
        left: 8%;
        right: 8%;
        height: 3px;
        background: linear-gradient(90deg, #0ea5e9, #6366f1);
        border-radius: 9999px;
        opacity: 0.35;
    }
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 0.75rem;
    position: relative;
}

.process-step-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(14, 165, 233, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-step:hover .process-step-icon {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25);
}

.process-step-icon i {
    width: 1.75rem;
    height: 1.75rem;
}

.process-step-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--theme-text);
    margin-bottom: 0.35rem;
}

.process-step-desc {
    font-size: 0.875rem;
    color: var(--theme-text-muted, #64748b);
    line-height: 1.5;
    max-width: 220px;
    margin: 0 auto;
}

/* ----- Testimonials premium glass ----- */
.testimonials--premium .testimonial-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonials--premium .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .testimonials--premium .testimonial-card {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(71, 85, 105, 0.5);
}

.testimonials--premium .trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.testimonials--premium .trust-logos li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.testimonials--premium .trust-logos-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--theme-text-muted, #64748b);
    margin: 0 0 0.75rem;
}

.testimonials--premium .trust-logo-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--theme-text, #334155);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 9999px;
}

[data-theme="dark"] .testimonials--premium .trust-logo-pill {
    background: rgba(51, 65, 85, 0.4);
    border-color: rgba(100, 116, 139, 0.45);
    color: #e2e8f0;
}

.testimonials--premium .author-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    flex-shrink: 0;
}

/* ----- Floating CTA ----- */
.floating-cta {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.floating-cta-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    box-shadow:
        0 4px 24px rgba(14, 165, 233, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cta-main:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.45);
}

.floating-cta-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease;
}

.floating-cta-wa:hover {
    transform: scale(1.08);
}

.floating-cta-wa svg {
    display: block;
}

.project-card .project-footer {
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ----- Button ripple ----- */
.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ----- Contact: WhatsApp block ----- */
.contact-whatsapp-cta {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(37, 211, 102, 0.25);
}

.contact-whatsapp-cta p {
    font-size: 0.875rem;
    color: var(--theme-text-muted);
    margin-bottom: 0.75rem;
}

.contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    background: #25d366;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.contact-whatsapp-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.contact-quick-reply {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--theme-text-muted);
    background: rgba(14, 165, 233, 0.08);
    border-radius: 0.5rem;
    border-left: 3px solid #0ea5e9;
}

/* ----- Preloader premium ----- */
.preloader--premium .preloader-spinner {
    border-top-color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* ----- Case study: before/after ----- */
.case-study-compare {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .case-study-compare {
        grid-template-columns: 1fr 1fr;
    }
}

.case-study-compare-col {
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--theme-border);
}

.case-study-compare-col--before {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.25);
}

.case-study-compare-col--after {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.case-study-compare-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.case-study-compare-col--before .case-study-compare-label { color: #dc2626; }
.case-study-compare-col--after .case-study-compare-label { color: #059669; }

.case-study-banner {
    min-height: 220px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #312e81 100%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem 1.5rem;
    margin: 0;
    border: none;
}

.case-study-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.case-study-banner h1 {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 0.5rem;
}

.case-study-banner .case-study-tagline {
    color: #c7d2fe;
    font-size: 1.125rem;
}

/* Simple metric chart mock (case study pages) */
.case-study-chart-wrap {
    max-width: 720px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}
.case-study-chart {
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--theme-surface-alt, #f8fafc);
    border: 1px solid var(--theme-border, #e2e8f0);
}
.case-study-chart h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--theme-text, #1e293b);
}
.case-study-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 1rem;
    min-height: 140px;
    padding-top: 0.5rem;
}
.case-study-chart-bar {
    flex: 1;
    max-width: 4.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
    background: linear-gradient(180deg, #6366f1, #0ea5e9);
    position: relative;
    transition: height 0.8s ease;
}
.case-study-chart-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--theme-text-muted, #64748b);
    white-space: nowrap;
}
.case-study-chart-bar--muted {
    background: linear-gradient(180deg, #94a3b8, #cbd5e1);
}
.case-study-chart-legend {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--theme-text-muted, #64748b);
}
.case-study-chart-legend span::before {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 2px;
    margin-right: 0.35rem;
    vertical-align: middle;
}
.case-study-chart-legend .is-after::before {
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
}
.case-study-chart-legend .is-before::before {
    background: #94a3b8;
}

/* Scroll reveal helper */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Hero (business headline) ----- */
.hero-headline-display--primary {
    font-size: clamp(1.85rem, 4.6vw, 3.05rem);
    line-height: 1.12;
}

.hero-headline-em {
    display: block;
    font-weight: 800;
    background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 45%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.hero-subhead-primary {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    line-height: 1.65;
    color: #e2e8f0;
    max-width: 36rem;
    margin-bottom: 1rem;
}

.hero-resume-aux {
    margin-top: 1.15rem;
}

.hero-resume-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.hero-resume-link:hover {
    color: #bae6fd;
}

.hero-resume-link-icon {
    width: 1rem;
    height: 1rem;
}

.hero-bg-gradient {
    animation: hero-glow 10s ease-in-out infinite alternate, hero-hue 16s ease-in-out infinite;
}

@keyframes hero-hue {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(12deg); }
}

/* ----- Services glass cards ----- */
.services--premium {
    padding: 5rem 0;
}

.solution-card--glass {
    background: rgba(255, 255, 255, 0.58) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07) !important;
}

.solution-card--glass:hover {
    border-color: rgba(96, 165, 250, 0.65) !important;
}

[data-theme="dark"] .solution-card--glass {
    background: rgba(30, 41, 59, 0.55) !important;
    border-color: rgba(71, 85, 105, 0.65) !important;
}

/* ----- Results / impact (standalone band) ----- */
.impact-section--standalone {
    margin: 0;
    padding: 4.5rem 0;
    border-radius: 0;
}

.impact-section--standalone .container {
    max-width: 1100px;
}

.section-header--compact {
    margin-bottom: 1.75rem;
}

.section-header--compact .section-description {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.impact-metric-value .count-up {
    font: inherit;
    font-weight: inherit;
    color: inherit;
}

.impact-metric-value--text {
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.results-impact-bullets {
    list-style: none;
    margin: 2rem auto 0;
    padding: 1.25rem 1.5rem;
    max-width: 520px;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.results-impact-bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--theme-text, #1e293b);
    margin-bottom: 0.5rem;
}

.results-impact-bullets li:last-child {
    margin-bottom: 0;
}

.results-impact-bullets i {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    color: #059669;
}

.results-impact-cta {
    text-align: center;
    margin-top: 2.25rem;
}

.results-impact-cta--dual {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

[data-theme="dark"] .results-impact-bullets {
    background: rgba(30, 41, 59, 0.45);
    border-color: rgba(71, 85, 105, 0.55);
}

[data-theme="dark"] .results-impact-bullets li {
    color: #e2e8f0;
}

.testimonials-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.testimonials-cta .btn {
    min-width: 12rem;
}

/* ----- Projects CTA row ----- */
.projects-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

.project-link--primary {
    font-weight: 700;
    color: #0ea5eb;
}

.project-link--primary:hover {
    color: #0284c7;
}

.inline-link-strong {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.inline-link-strong:hover {
    color: #1d4ed8;
}

[data-theme="dark"] .inline-link-strong {
    color: #7dd3fc;
}

.calculator-cta-hint {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--theme-text-muted, #64748b);
    text-align: center;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ----- Skills strip CTA ----- */
.skills-cta--conversion {
    text-align: center;
    margin-top: 2.5rem;
    padding: 2rem 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.22);
}

.skills-cta-text {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--theme-text, #1e293b);
}

.skills-cta-text em {
    font-style: normal;
    color: #0ea5e9;
}

[data-theme="dark"] .skills-cta-text {
    color: #e2e8f0;
}

/* ----- Section CTA bar (after About, Blog, FAQ, Experience) ----- */
.section-cta-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1.75rem 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.22);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.section-cta-bar-text {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--theme-text, #1e293b);
    max-width: 36rem;
    line-height: 1.45;
}

.section-cta-bar-text em {
    font-style: normal;
    color: #6366f1;
}

[data-theme="dark"] .section-cta-bar {
    border-color: rgba(129, 140, 248, 0.3);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.08));
}

[data-theme="dark"] .section-cta-bar-text {
    color: #e2e8f0;
}

@media (min-width: 640px) {
    .section-cta-bar {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 1.75rem 2rem;
    }

    .section-cta-bar .btn {
        flex-shrink: 0;
    }
}

.process-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.process-cta .btn {
    margin: 0 0.35rem;
}
