/* Mindev — Light-first design tokens */

:root {
    --surface-base: #f8fafc;
    --surface-raised: #ffffff;
    --text-primary: #334155;
    --text-muted: #64748b;
    --accent: #6366f1;
    --border-subtle: #e2e8f0;
}

html.dark {
    --surface-base: #020617;
    --surface-raised: #0f172a;
    --text-primary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-subtle: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Light / dark logos — do not rely on Tailwind JIT for these */
img.site-logo-dark {
    display: none;
}
html.dark img.site-logo-light {
    display: none !important;
}
html.dark img.site-logo-dark {
    display: block !important;
}

/* Floating theme toggle — hidden until hovered */
.theme-toggle-wrap {
    opacity: 0.12;
    transition: opacity 0.25s ease;
}
.theme-toggle-wrap:hover,
.theme-toggle-wrap:focus-within {
    opacity: 1;
}

html.dark .theme-icon-light { display: none; }
html.dark .theme-icon-dark { display: block !important; }
html:not(.dark) .theme-icon-dark { display: none; }
html:not(.dark) .theme-icon-light { display: block; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

@keyframes progress-bar {
    from { width: 0%; }
    to { width: 100%; }
}

.animate-progress-bar {
    animation: progress-bar 4.5s linear forwards;
}

#cart-items::-webkit-scrollbar { width: 4px; }
#cart-items::-webkit-scrollbar-track { background: transparent; }
#cart-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
html.dark #cart-items::-webkit-scrollbar-thumb { background: #475569; }

.product-card:hover {
    transform: translateY(-2px);
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 60;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    animation: fade-in 0.3s ease-out;
}
.toast-success {
    background: rgba(16, 185, 129, 0.95);
    color: white;
}
.toast-error {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

/* Dashboard mobile sidebar slide-in */
#user-sidebar.open,
#admin-sidebar.open { transform: translateX(0); }

/* CMS + product description content */
.cms-content h1 { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); margin-top: 1.5rem; margin-bottom: 0.75rem; line-height: 1.25; }
.cms-content h2 { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); margin-top: 1.75rem; margin-bottom: 0.75rem; line-height: 1.3; }
.cms-content h3 { font-size: 1.15rem; font-weight: 600; color: var(--text-primary); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.cms-content h4, .cms-content h5, .cms-content h6 { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-top: 1.25rem; margin-bottom: 0.5rem; }
.cms-content p { margin-bottom: 0.9rem; line-height: 1.75; color: var(--text-muted); }
.cms-content ul { list-style: disc; padding-left: 1.35rem; margin-bottom: 1rem; }
.cms-content ol { list-style: decimal; padding-left: 1.35rem; margin-bottom: 1rem; }
.cms-content li { margin-bottom: 0.4rem; line-height: 1.65; color: var(--text-muted); }
.cms-content li::marker { color: #6366f1; }
.cms-content a { color: #6366f1; text-decoration: underline; text-underline-offset: 2px; }
.cms-content a:hover { color: #4f46e5; }
.cms-content img { max-width: 100%; height: auto; border-radius: 0.75rem; margin: 1.25rem 0; box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08); }
.cms-content figure { margin: 1.25rem 0; }
.cms-content figcaption { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }
.cms-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9rem; overflow: hidden; border-radius: 0.5rem; }
.cms-content th, .cms-content td { border: 1px solid var(--border-subtle); padding: 0.65rem 0.85rem; text-align: left; }
.cms-content th { font-weight: 600; background: var(--surface-raised); color: var(--text-primary); }
.cms-content blockquote {
    border-left: 4px solid #6366f1;
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    background: rgba(99, 102, 241, 0.06);
    border-radius: 0 0.5rem 0.5rem 0;
}
.cms-content hr { border: none; border-top: 1px solid var(--border-subtle); margin: 1.75rem 0; }
.cms-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 1.25rem 0;
}
.cms-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875em;
}
.cms-content :not(pre) > code {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
}
html.dark .cms-content :not(pre) > code {
    background: rgba(129, 140, 248, 0.15);
    color: #a5b4fc;
}
.cms-content u { text-decoration: underline; }
.cms-content s, .cms-content del { text-decoration: line-through; opacity: 0.85; }
.cms-content strong, .cms-content b { color: var(--text-primary); font-weight: 700; }

/* Product detail page */
.product-detail-page .product-buy-card {
    transition: box-shadow 0.25s ease;
}
/* Gallery: natural height only — never stretch with the purchase column */
.product-detail-page .product-gallery {
    display: block;
    height: auto;
    max-width: 100%;
}
.product-gallery img {
    transition: transform 0.5s ease;
}
.product-gallery:hover img {
    transform: scale(1.02);
}
@media (prefers-reduced-motion: reduce) {
    .product-gallery:hover img { transform: none; }
}
/* Cap gallery height on large desktops so the hero image stays proportional */
@media (min-width: 1024px) {
    .product-detail-page .product-gallery > .relative {
        max-height: 480px;
        aspect-ratio: 4 / 3;
    }
}

/* Screen-reader only (SEO-friendly hidden text / skip links) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Admin SMM collapsible group */
.admin-nav-group > summary {
    list-style: none;
}
.admin-nav-group > summary::-webkit-details-marker {
    display: none;
}
.admin-nav-group[open] > summary .admin-nav-chevron {
    transform: rotate(180deg);
}

/* ─── Pricing page ────────────────────────────────────────── */
.pricing-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 55%, #f8fafc 100%);
}
html.dark .pricing-hero {
    background: linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
}
.pricing-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 60% at 90% 10%, rgba(99, 102, 241, 0.14), transparent 55%),
        radial-gradient(ellipse 40% 50% at 5% 90%, rgba(124, 58, 237, 0.08), transparent 50%);
}
.pricing-card:target {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 4px;
}

/* ─── Agency homepage ─────────────────────────────────────── */
.mindev-hero {
    position: relative;
    overflow: hidden;
    background: #fbfbfc;
    color: #0f172a;
}
html.dark .mindev-hero {
    background: #020617;
    color: #f8fafc;
}
.mindev-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
    opacity: 0.7;
}
html.dark .mindev-hero-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}
.mindev-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.75rem 1rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 640px) {
    .mindev-hero-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .mindev-hero-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        gap: 3.5rem;
        align-items: start;
        padding: 4.25rem 2rem 3.25rem;
    }
    .mindev-hero-visual { margin-top: 2.75rem; }
}
.mindev-hero-eyebrow {
    margin: 0 0 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #4f46e5;
}
html.dark .mindev-hero-eyebrow { color: #a5b4fc; }
.mindev-hero h1 {
    margin: 0;
    max-width: 11.2em;
    font-size: clamp(1.85rem, 4.8vw, 3.35rem);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: #0f172a;
}
html.dark .mindev-hero h1 { color: #f8fafc; }
.mindev-hero-lede {
    margin: 1.15rem 0 0;
    max-width: 36rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #475569;
}
html.dark .mindev-hero-lede { color: #94a3b8; }
@media (min-width: 768px) {
    .mindev-hero-lede { font-size: 1.125rem; }
}
.mindev-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1.6rem;
}
@media (min-width: 640px) {
    .mindev-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}
.mindev-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0.8rem 1.25rem;
    border-radius: 0.8rem;
    font-size: 0.925rem;
    font-weight: 650;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mindev-hero-btn-primary {
    background: #111827;
    color: #fff;
    border: 1px solid #111827;
}
.mindev-hero-btn-primary:hover { background: #020617; color: #fff; }
html.dark .mindev-hero-btn-primary {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #0f172a;
}
html.dark .mindev-hero-btn-primary:hover { background: #fff; color: #0f172a; }
.mindev-hero-btn-ghost {
    background: transparent;
    color: #334155;
    border: 1px solid #d6dbe4;
}
.mindev-hero-btn-ghost:hover { background: #f8fafc; color: #0f172a; }
html.dark .mindev-hero-btn-ghost {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.14);
}
html.dark .mindev-hero-btn-ghost:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.mindev-hero-trust {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.15rem;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 550;
}
.mindev-hero-trust li {
    position: relative;
    padding-left: 0.85rem;
}
.mindev-hero-trust li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #4f46e5;
}
html.dark .mindev-hero-trust { color: #94a3b8; }
.mindev-hero-trust-plain {
    margin: 1.25rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}
.mindev-hero-quiet {
    margin: 0.85rem 0 0;
    font-size: 0.8125rem;
}
.mindev-hero-quiet a {
    color: #64748b;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mindev-hero-quiet a:hover { color: #4f46e5; }

.mindev-work { position: relative; }
.mindev-work-kicker {
    margin: 0 0 0.7rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}
.mindev-work-slide { display: none; }
.mindev-work-slide.is-active { display: block; }
.mindev-work-frame {
    display: block;
    overflow: hidden;
    border-radius: 1.1rem;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
html.dark .mindev-work-frame {
    border-color: rgba(255, 255, 255, 0.08);
    background: #0b1220;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.mindev-work-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}
.mindev-work-meta { padding: 0.9rem 0.15rem 0; }
.mindev-work-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.mindev-work-title a { color: inherit; text-decoration: none; }
.mindev-work-title a:hover { color: #4f46e5; }
.mindev-work-blurb {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #64748b;
}
.mindev-work-tags {
    margin: 0.45rem 0 0;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: #4f46e5;
}
.mindev-work-caption {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}
.mindev-work-dots {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.85rem;
}
.mindev-work-dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
}
.mindev-work-dot.is-active { background: #4f46e5; width: 1.1rem; }
html.dark .mindev-work-dot { background: #334155; }
html.dark .mindev-work-dot.is-active { background: #818cf8; }

.mindev-system {
    border: 1px solid #e2e8f0;
    border-radius: 1.15rem;
    padding: 1.6rem 1.4rem 1.4rem;
    background: #fff;
}
html.dark .mindev-system {
    background: #0b1220;
    border-color: rgba(255, 255, 255, 0.08);
}
.mindev-system-mark {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #4f46e5;
}
.mindev-system-name {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0f172a;
}
html.dark .mindev-system-name { color: #f8fafc; }
.mindev-system-role {
    margin: 0.2rem 0 1.1rem;
    font-size: 0.8rem;
    color: #64748b;
}
.mindev-system-stack,
.mindev-system-qualities {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.mindev-system-stack { margin-bottom: 0.7rem; }
.mindev-system-stack li,
.mindev-system-qualities li {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    color: #334155;
}
.mindev-system-qualities li {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
}
html.dark .mindev-system-stack li {
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}
html.dark .mindev-system-qualities li {
    border-color: rgba(129, 140, 248, 0.3);
    background: rgba(79, 70, 229, 0.16);
    color: #c7d2fe;
}

.mindev-proof {
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
html.dark .mindev-proof {
    background: #020617;
    border-top-color: rgba(255, 255, 255, 0.06);
}
.mindev-proof-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.95rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem 1.5rem;
}
@media (min-width: 640px) {
    .mindev-proof-inner {
        grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
        padding: 1rem 1.5rem;
    }
}
@media (min-width: 1024px) {
    .mindev-proof-inner { padding-left: 2rem; padding-right: 2rem; }
}
.mindev-proof-item {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin: 0;
}
.mindev-proof-item dd {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: #0f172a;
    order: -1;
}
.mindev-proof-item dt {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}
html.dark .mindev-proof-item dd { color: #f8fafc; }
html.dark .mindev-proof-item dt { color: #94a3b8; }

@media (max-width: 767px) {
    .mindev-hero h1 { max-width: none; }
}

.agency-reveal {
    animation: agency-fade-up 0.7s ease-out both;
}
.agency-reveal-delay {
    animation-delay: 0.12s;
}
@keyframes agency-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.agency-stat {
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-subtle);
}
@media (min-width: 640px) {
    .agency-stat {
        border-top: none;
        border-left: 1px solid var(--border-subtle);
        padding-left: 1rem;
    }
    .agency-stat:first-child {
        border-left: none;
        padding-left: 0;
    }
}

.agency-mockup-glow {
    position: absolute;
    inset: 10% 5%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
    filter: blur(28px);
    z-index: 0;
}
.agency-mockup {
    z-index: 1;
}
.agency-mockup-window {
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.5s ease;
}
.agency-mockup:hover .agency-mockup-window {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}
.agency-mockup-float {
    animation: agency-float 5s ease-in-out infinite;
}
.agency-mockup-float-2 {
    animation: agency-float 5.5s ease-in-out infinite reverse;
}
@keyframes agency-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.agency-cta-orb {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    top: -80px;
    right: -60px;
    filter: blur(2px);
    pointer-events: none;
}
.agency-cta-orb::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    bottom: -120px;
    left: -180px;
}

@media (prefers-reduced-motion: reduce) {
    .agency-reveal,
    .agency-reveal-delay,
    .agency-mockup-float,
    .agency-mockup-float-2 {
        animation: none !important;
    }
    .agency-mockup-window {
        transform: none;
    }
}

/* ─── Mindev agency identity ──────────────────────────────── */
.md-hero {
    position: relative;
    overflow: hidden;
    background: #070b16;
    color: #e8eefc;
}
.md-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 35%, transparent 80%);
}
.md-hero-glow {
    position: absolute;
    width: 70%;
    height: 80%;
    left: 20%;
    top: -20%;
    background: radial-gradient(circle at 40% 40%, rgba(79, 70, 229, 0.32), transparent 58%);
    pointer-events: none;
}
.md-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c7d2fe;
    border: 1px solid rgba(165, 180, 252, 0.25);
    background: rgba(79, 70, 229, 0.16);
}
.md-kicker-light {
    color: #4338ca;
    border-color: #c7d2fe;
    background: #eef2ff;
}
html.dark .md-kicker-light {
    color: #c7d2fe;
    border-color: rgba(165, 180, 252, 0.25);
    background: rgba(79, 70, 229, 0.16);
}
.md-kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #818cf8;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
}
.md-display {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 750;
    color: #f8fafc;
    max-width: 18ch;
}
.md-lede {
    margin: 1.35rem 0 0;
    max-width: 46rem;
    font-size: 1.125rem;
    line-height: 1.65;
    color: #94a3b8;
}
.md-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    font-size: 0.875rem;
    color: #cbd5e1;
}
.md-flags {
    display: inline-flex;
    gap: 0.35rem;
}
.md-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e2e8f0;
}
.md-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.35rem;
    border-radius: 0.85rem;
    background: #4f46e5;
    color: #fff;
    font-size: 0.925rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.28);
    transition: background 0.15s ease, transform 0.15s ease;
}
.md-btn-primary:hover { background: #4338ca; color: #fff; }
.md-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.35rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255,255,255,0.16);
    color: #e2e8f0;
    font-size: 0.925rem;
    font-weight: 600;
    text-decoration: none;
}
.md-btn-ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }
.md-section { padding: 4.5rem 0; }
.md-section-alt { background: #f8fafc; }
html.dark .md-section-alt { background: #020617; }
.md-section-head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.md-h2 {
    margin: 0.4rem 0 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
    font-weight: 750;
    color: #0f172a;
}
html.dark .md-h2 { color: #f8fafc; }
.md-section-copy {
    margin: 0.85rem 0 0;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.65;
}
html.dark .md-section-copy { color: #94a3b8; }
.md-card {
    height: 100%;
    padding: 1.6rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.md-card:hover {
    transform: translateY(-3px);
    border-color: #c7d2fe;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
html.dark .md-card {
    background: #0b1220;
    border-color: rgba(255,255,255,0.08);
}
.md-card-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.8rem;
    display: grid;
    place-items: center;
    background: #eef2ff;
    color: #4338ca;
    margin-bottom: 1rem;
}
html.dark .md-card-icon { background: rgba(79, 70, 229, 0.18); color: #c7d2fe; }
.md-card-title {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}
html.dark .md-card-title { color: #f8fafc; }
.md-card-body {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}
html.dark .md-card-body { color: #94a3b8; }
.md-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0;
}
.md-stack li {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
}
html.dark .md-stack li { background: rgba(255,255,255,0.06); color: #cbd5e1; }
.md-why {
    padding: 1.6rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
}
html.dark .md-why { background: #0b1220; border-color: rgba(255,255,255,0.08); }
.md-why h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: #0f172a;
}
html.dark .md-why h3 { color: #f8fafc; }
.md-why > p {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
}
.md-why ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}
.md-why li {
    position: relative;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.45;
}
html.dark .md-why li { color: #cbd5e1; }
.md-why li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #4f46e5;
}
.md-process {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}
@media (min-width: 900px) {
    .md-process { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
.md-process li {
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    background: #fff;
}
html.dark .md-process li { background: #0b1220; border-color: rgba(255,255,255,0.08); }
.md-step-num {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #4f46e5;
    margin-bottom: 0.7rem;
}
.md-process h3 {
    margin: 0 0 0.45rem;
    font-size: 1.1rem;
    font-weight: 750;
    color: #0f172a;
}
html.dark .md-process h3 { color: #f8fafc; }
.md-step-tag {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4338ca;
    line-height: 1.45;
}
html.dark .md-step-tag { color: #a5b4fc; }
.md-process p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}
.md-cta {
    text-align: center;
    padding: 3.5rem 1.5rem;
    border-radius: 1.6rem;
    background:
        radial-gradient(ellipse 80% 80% at 50% 0%, rgba(99, 102, 241, 0.28), transparent 55%),
        #070b16;
    color: #fff;
}
.md-cta h2 {
    margin: 0 auto;
    max-width: 20ch;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
    font-weight: 750;
}
.md-cta p {
    margin: 1rem auto 0;
    max-width: 40rem;
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.65;
}
.md-cta-actions {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.md-btn-on-dark { box-shadow: 0 16px 32px rgba(0,0,0,0.25); }
.md-btn-ghost-on-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.35rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255,255,255,0.18);
    color: #e2e8f0;
    font-size: 0.925rem;
    font-weight: 600;
    text-decoration: none;
}
.md-btn-ghost-on-dark:hover { background: rgba(255,255,255,0.06); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .md-card:hover { transform: none; }
}

/* ─── Public header (mobile-first) ─────────────────────────── */
body {
    overflow-x: hidden;
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding-top: env(safe-area-inset-top);
    transition: background 0.2s ease, border-color 0.2s ease;
}
html.dark .site-header {
    background: rgba(2, 6, 23, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.site-header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) {
    .site-header-inner { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
    .site-header-inner { padding: 0 2rem; }
}
.site-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.5rem;
    height: 3.5rem;
}
@media (min-width: 768px) {
    .site-header-bar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        height: 4rem;
        min-height: 4rem;
        gap: 1rem;
    }
}
.site-header-brand {
    min-width: 0;
    justify-self: start;
    flex: 1 1 auto;
}
.site-header-nav {
    display: none;
    justify-self: center;
}
@media (min-width: 768px) {
    .site-header-nav { display: block; }
}
.site-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
    flex: 0 0 auto;
    justify-self: end;
}
.site-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    max-width: 100%;
    text-decoration: none;
}
.site-logo-wrap {
    display: flex;
    align-items: center;
    height: 2rem;
    max-width: 9.5rem;
    overflow: hidden;
}
.site-logo-wrap img.site-logo,
img.site-logo-img,
.site-header img.site-logo {
    height: 2rem;
    width: auto;
    max-width: 9.5rem;
    object-fit: contain;
    object-position: left center;
}
.site-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}
.site-brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e293b;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 8.5rem;
}
html.dark .site-brand-name { color: #f1f5f9; }
.site-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.site-icon-btn:hover,
.site-icon-btn:focus-visible {
    background: #f1f5f9;
    color: #4f46e5;
    outline: none;
}
html.dark .site-icon-btn { color: #94a3b8; }
html.dark .site-icon-btn:hover,
html.dark .site-icon-btn:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.site-badge {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.site-badge:empty,
.site-badge[data-empty="1"] { display: none; }

/* Off-canvas mobile menu */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}
.mobile-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    width: min(22rem, 88vw);
    height: 100%;
    height: 100dvh;
    background: #fff;
    border-left: 1px solid var(--border-subtle);
    box-shadow: -20px 0 50px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
html.dark .mobile-nav {
    background: #0b1220;
    border-left-color: rgba(255, 255, 255, 0.08);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.45);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav[hidden],
.mobile-nav-overlay[hidden] { display: none !important; }
.mobile-nav.is-open[hidden],
.mobile-nav-overlay.is-open[hidden] { display: flex !important; }
.mobile-nav-overlay.is-open[hidden] { display: block !important; }
.mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}
.mobile-nav-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.75rem 0.75rem 1.25rem;
    -webkit-overflow-scrolling: touch;
}
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.85rem;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.mobile-nav-link svg { color: #64748b; flex-shrink: 0; }
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    background: #f1f5f9;
    color: #4f46e5;
    outline: none;
}
.mobile-nav-link.is-active {
    background: #eef2ff;
    color: #4338ca;
}
.mobile-nav-link.is-active svg { color: #4f46e5; }
html.dark .mobile-nav-link { color: #e2e8f0; }
html.dark .mobile-nav-link svg { color: #94a3b8; }
html.dark .mobile-nav-link:hover,
html.dark .mobile-nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
html.dark .mobile-nav-link.is-active {
    background: rgba(99, 102, 241, 0.16);
    color: #c7d2fe;
}
.mobile-nav-label {
    margin: 1.1rem 0.9rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}
.mobile-nav-list-compact .mobile-nav-link {
    min-height: 2.4rem;
    font-weight: 500;
    font-size: 0.9rem;
}
.mobile-nav-foot {
    flex-shrink: 0;
    display: grid;
    gap: 0.5rem;
    padding: 0.9rem 1rem 1.15rem;
    border-top: 1px solid var(--border-subtle);
    background: #f8fafc;
}
html.dark .mobile-nav-foot { background: #020617; }
.mobile-nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 0.925rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}
html.dark .mobile-nav-cta {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
.mobile-nav-cta-primary {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
}
html.dark .mobile-nav-cta-primary {
    background: #4f46e5;
    color: #fff;
}
.mobile-nav-cta-danger {
    color: #e11d48;
    border-color: transparent;
    background: transparent;
}
.mobile-nav-meta {
    margin: 0.15rem 0 0;
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 0.04em;
}
body.mobile-nav-open { overflow: hidden; }

/* ─── Dedicated mobile hero ──────────────────────────────── */
.agency-hero-visual-mobile { display: block; }
.agency-hero-visual-desktop { display: none; }
@media (min-width: 768px) {
    .agency-hero-visual-mobile { display: none; }
    .agency-hero-visual-desktop { display: block; }
}
.agency-hero-mobile-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    padding: 1.35rem 1.2rem 1.2rem;
    background:
        radial-gradient(ellipse 80% 80% at 90% 0%, rgba(99, 102, 241, 0.28), transparent 55%),
        linear-gradient(160deg, #111827 0%, #1e1b4b 55%, #0f172a 100%);
    color: #e2e8f0;
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.18);
    min-height: 11.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.agency-hero-mobile-card-glow {
    position: absolute;
    width: 9rem;
    height: 9rem;
    right: -1.5rem;
    top: -2rem;
    border-radius: 50%;
    background: rgba(165, 180, 252, 0.28);
    filter: blur(8px);
    pointer-events: none;
}
.agency-hero-mobile-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}
.agency-hero-mobile-brand .site-logo-wrap {
    height: 2.15rem;
    max-width: 10.5rem;
}
.agency-hero-mobile-brand img.site-logo {
    height: 2.15rem;
    max-width: 10.5rem;
    filter: brightness(0) invert(1);
}
html.dark .agency-hero-mobile-brand img.site-logo {
    filter: none;
}
.agency-hero-mobile-tag {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}
.agency-hero-mobile-pills {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}
.agency-hero-mobile-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.68rem;
    font-weight: 650;
    color: #e2e8f0;
}
.agency-hero-banner {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}
html.dark .agency-hero-banner { border-color: rgba(51, 65, 85, 0.8); }
@media (max-width: 767px) {
    .site-logo-wrap,
    .site-logo-wrap img.site-logo,
    img.site-logo-img,
    .site-header img.site-logo {
        height: 2.15rem;
        max-width: 11rem;
    }
    .site-icon-btn {
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }
    .agency-hero #hero-heading {
        font-size: 1.75rem;
        line-height: 1.15;
        letter-spacing: -0.03em;
    }
    .agency-hero .hero-subtitle {
        font-size: 0.95rem;
        margin-top: 0.85rem;
    }
    .agency-hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        margin-top: 1.35rem;
    }
    .agency-hero-stats .agency-stat {
        border: 1px solid var(--border-subtle);
        border-radius: 0.9rem;
        background: rgba(255, 255, 255, 0.72);
        padding: 0.75rem 0.8rem;
    }
    html.dark .agency-hero-stats .agency-stat {
        background: rgba(15, 23, 42, 0.55);
    }
    .agency-hero-stats .agency-stat dd:first-of-type {
        font-size: 1.2rem;
    }
    .agency-cta {
        padding: 2.25rem 1.15rem;
        border-radius: 1.35rem;
    }
    .agency-cta h2 { font-size: 1.55rem; }
    .product-card img { height: 7.25rem; }
    .theme-toggle-wrap {
        bottom: 1rem;
        right: 1rem;
        opacity: 0.55;
    }
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 4.5rem;
    }
}

@media (min-width: 768px) {
    .mobile-nav,
    .mobile-nav-overlay,
    #mobile-nav-toggle { display: none !important; }
}