/* ============================================================
   MetaoFly — Layouts Design System
   Header, Hero, Bento Grid, 4 Pillars, Footer, Single Views
   ============================================================ */

/* ── Global Document ───────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-dim);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-narrow {
    max-width: var(--container-narrow);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-fast);
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ── Header & Navigation ───────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header, 1000);
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--dur-normal), border-color var(--dur-normal), box-shadow var(--dur-normal);
    width: 100%;
}

.site-header.is-scrolled {
    background: rgba(6, 8, 13, 0.99);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-brand,
.custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    max-height: 52px !important;
    text-decoration: none !important;
    transition: transform var(--dur-normal) var(--ease-snappy) !important;
}

.brand-logo-picture {
    display: inline-flex;
    align-items: center;
}

.custom-logo,
.site-logo-img,
.site-logo img,
.site-brand img,
.custom-logo-link img {
    height: 48px !important;
    width: auto !important;
    max-width: 210px !important;
    max-height: 52px !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)) !important;
    transition: all var(--dur-normal) var(--ease-snappy) !important;
}

.site-brand:hover .site-logo-img,
.site-brand:hover img,
.custom-logo-link:hover img {
    filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.6)) brightness(1.08) !important;
    transform: scale(1.025) !important;
}

@media (max-width: 768px) {
    .header-inner {
        height: 68px;
    }
    .custom-logo,
    .site-logo-img,
    .site-logo img,
    .custom-logo-link img {
        height: 40px !important;
        max-width: 175px !important;
        max-height: 42px !important;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 64px;
    }
    .custom-logo,
    .site-logo-img,
    .site-logo img,
    .custom-logo-link img {
        height: 35px !important;
        max-width: 150px !important;
        max-height: 36px !important;
    }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--dur-fast);
}

.nav-item > a:hover,
.nav-item > a.active {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item > a.active {
    color: #c084fc;
    border-bottom: 2px solid #a855f7;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.menu-toggle {
    display: none;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex !important;
    }
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-drawer-backdrop, 1090);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mobile-nav-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #080b11;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: var(--z-drawer, 1100);
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.mobile-nav-drawer.is-active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--color-text-dim);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    transition: all 0.2s ease;
}

.mobile-nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: rgba(168, 85, 247, 0.12);
    color: #ffffff;
    border-left: 3px solid #a855f7;
}

.mobile-nav-links a:hover .mobile-nav-icon,
.mobile-nav-links a.active .mobile-nav-icon {
    color: var(--color-accent-purple-light, #c084fc);
    transform: scale(1.08);
}

/* ── Hero Section — Cinematic Animated ──────────────────────── */
.hero {
    position: relative;
    padding: clamp(5rem, 10vh, 8rem) 0 clamp(4rem, 8vh, 6rem);
    text-align: center;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Animated Gradient Mesh Background */
.hero-aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-aurora .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    will-change: transform;
}

.hero-aurora .orb-1 {
    top: -10%;
    left: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
    animation: heroOrb1 18s ease-in-out infinite;
}

.hero-aurora .orb-2 {
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    animation: heroOrb2 22s ease-in-out infinite;
}

.hero-aurora .orb-3 {
    bottom: -15%;
    left: 40%;
    width: 450px;
    height: 350px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    animation: heroOrb3 20s ease-in-out infinite;
}

@keyframes heroOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 40px) scale(1.15); }
    66% { transform: translate(-40px, -20px) scale(0.9); }
}
@keyframes heroOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, 50px) scale(0.85); }
    66% { transform: translate(50px, -30px) scale(1.1); }
}
@keyframes heroOrb3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.1); }
    66% { transform: translate(-50px, 30px) scale(0.95); }
}

/* Noise grain overlay for texture */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

/* Eyebrow Badge */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: #c084fc;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--space-6);
    animation: fadeInDown 0.8s ease-out;
}

.hero-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Hero Title with Typewriter Rotating Word */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 1.6rem + 2.2vw, 3.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin-bottom: var(--space-5);
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-title-line-1 {
    display: block;
    white-space: nowrap;
    font-size: clamp(1.15rem, 0.95rem + 1.8vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.hero-title-line-2 {
    display: block;
    font-size: clamp(1.2rem, 1rem + 2.1vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin-top: 0.12em;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 40%, #7c3aed 70%, #06b6d4 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Rotating word container */
.hero-rotate-wrapper {
    display: inline-block;
    position: relative;
    min-width: 200px;
    text-align: left;
}

.hero-rotate-word {
    display: inline-block;
    background: linear-gradient(135deg, #c084fc, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeRotateIn 0.5s ease-out;
}

.hero-rotate-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: #a855f7;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadeRotateIn {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Hero Description */
.hero-desc {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto var(--space-8);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Hero CTA Buttons */
.hero-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.3s var(--ease-snappy);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4), 0 0 0 0 rgba(168, 85, 247, 0);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5), 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text-dim);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.3s var(--ease-snappy);
    backdrop-filter: blur(8px);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Platform Stats Counter Strip */
.hero-stats {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-5) var(--space-8);
    position: relative;
}

.hero-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.3), transparent);
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-number .counter-suffix {
    color: #a855f7;
}

.hero-stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: calc(64px + var(--space-4)) 0 var(--space-6);
        display: flex;
        align-items: center;
    }
    .hero-eyebrow {
        margin-bottom: var(--space-3);
        padding: 0.3rem 0.85rem;
        font-size: 10.5px;
    }
    .hero-title {
        margin-bottom: var(--space-3);
    }
    .hero-title-line-1 {
        font-size: clamp(1.15rem, 5vw, 1.85rem);
        white-space: nowrap;
    }
    .hero-title-line-2 {
        font-size: clamp(1.25rem, 5.6vw, 2.1rem);
    }
    .hero-rotate-wrapper {
        min-width: 110px;
    }
    .hero-desc {
        font-size: clamp(13px, 3.4vw, 15px);
        line-height: 1.55;
        max-width: 92%;
        margin: 0 auto var(--space-4);
    }
    .hero-cta-row {
        display: flex;
        flex-direction: row;
        gap: var(--space-2);
        justify-content: center;
        margin-bottom: var(--space-5);
        width: 100%;
    }
    .hero-cta-primary, .hero-cta-secondary {
        flex: 1;
        max-width: 185px;
        padding: 10px 16px;
        font-size: 13px;
        height: 40px;
        justify-content: center;
        white-space: nowrap;
        box-sizing: border-box;
    }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: var(--space-3) var(--space-2);
        background: rgba(13, 18, 28, 0.65);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-xl);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }
    .hero-stat {
        padding: var(--space-2) 4px;
        min-width: 0;
        align-items: center;
        text-align: center;
    }
    .hero-stat:not(:last-child)::after {
        display: none;
    }
    .hero-stat-number {
        font-size: clamp(1.1rem, 4.2vw, 1.45rem);
        line-height: 1.1;
        margin-bottom: 2px;
    }
    .hero-stat-label {
        font-size: 9.5px;
        letter-spacing: 0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Entry animations */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-16px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Reveal System ──────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Section Gradient Dividers ──────────────────────────────── */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), rgba(6, 182, 212, 0.3), transparent);
    position: relative;
    margin: 0;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
}

/* Keep old search styles for compatibility on other pages */
.hero-search-wrapper {
    max-width: 580px;
    margin: 0 auto var(--space-6);
    position: relative;
}

.hero-search-bar {
    width: 100%;
    height: 56px;
    padding: 0 var(--space-4) 0 3.2rem;
    background: rgba(18, 25, 38, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: var(--text-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.15);
    outline: none;
    transition: all var(--dur-normal);
}

.hero-search-bar:focus {
    border-color: var(--color-accent-purple);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.35);
}

.hero-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.hero-chip {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--dur-fast);
}

.hero-chip:hover {
    color: #ffffff;
    border-color: var(--color-accent-purple);
    background: rgba(168, 85, 247, 0.15);
}

/* ── Section Dividers & Headers ────────────────────────────── */
.section {
    padding: var(--space-16) 0;
    position: relative;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.section-header.text-center {
    align-items: center;
    text-align: center;
}

.section-header.text-center .section-desc,
.section-header.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Split row for section headers that have an action button (e.g. homepage sections) */
.section-header-split,
.section-header:has(.section-title-wrap) {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.section-title-wrap {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent-cyan);
    margin-bottom: var(--space-1);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: var(--space-2);
}

.section-subtitle,
.section-desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 680px;
    margin-top: 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c084fc;
    margin-bottom: var(--space-2);
}

.section-label::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #a855f7;
    opacity: 0.85;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.7);
}

/* ============================================================
   SUB-PAGE HERO BANNER SYSTEM (AESTHETIC & UNIFIED)
   ============================================================ */
.subpage-hero-banner {
    position: relative;
    padding-top: calc(76px + var(--space-8));
    padding-bottom: var(--space-8);
    background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.16), rgba(6, 182, 212, 0.05) 50%, transparent 80%);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-8);
    overflow: hidden;
}

.subpage-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), rgba(6, 182, 212, 0.5), transparent);
    z-index: 1;
}

/* Split banner (left info, right action button) */
.subpage-banner-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.subpage-banner-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 760px;
}

.subpage-banner-action {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: 2px;
}

/* Centered subpage banner */
.subpage-banner-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.subpage-banner-center .breadcrumbs {
    justify-content: center;
}

.subpage-banner-center .subpage-banner-desc {
    margin-left: auto;
    margin-right: auto;
}

/* Left-aligned banner */
.subpage-banner-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 880px;
}

/* Eyebrow badge / label */
.subpage-banner-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c084fc;
    margin-bottom: var(--space-2);
}

.subpage-banner-label::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #a855f7;
    opacity: 0.85;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.7);
}

/* Subpage banner large heading */
.subpage-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: #ffffff;
    margin: 0 0 var(--space-2) 0;
}

/* Subpage banner description */
.subpage-banner-desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.65;
    max-width: 680px;
    margin: 0;
}

/* ── Tools Showcase Gallery ────────────────────────────────── */

/* Featured Tools Row — 2 spotlight cards */
.tools-featured-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

/* ── Tool Card Visual Previews ──────────────────────────── */

/* Featured card preview image */
.tools-feature-preview {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.tools-feature-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.tools-feature-card:hover .tools-feature-preview img {
    transform: scale(1.06);
}

/* Grid card visual (smaller) */
.tools-grid-visual {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.tools-grid-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-smooth);
}

.tools-grid-card:hover .tools-grid-visual img {
    transform: scale(1.06);
}

/* SVG illustrations for tools without images */
.tools-svg-visual {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.tools-grid-card:hover .tools-svg-visual {
    transform: scale(1.04);
}

/* Fade overlay at bottom of preview */
.tools-preview-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}


/* Shared card base (featured + grid) */
.tools-feature-card,
.tools-grid-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.4s var(--ease-snappy),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.tools-feature-card:hover,
.tools-grid-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-glow, rgba(168, 85, 247, 0.4));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 40px color-mix(in srgb, var(--card-glow) 20%, transparent);
}

.tools-feature-card-inner,
.tools-grid-card-inner {
    position: relative;
    z-index: 1;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Decorative background orb */
.tools-card-orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    top: -40px;
    right: -40px;
    z-index: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.tools-feature-card:hover .tools-card-orb,
.tools-grid-card:hover .tools-card-orb {
    opacity: 0.4;
    transform: scale(1.15);
}

.tools-card-orb--purple  { background: #a855f7; }
.tools-card-orb--violet  { background: #8b5cf6; }
.tools-card-orb--emerald { background: #10b981; }
.tools-card-orb--amber   { background: #f59e0b; }
.tools-card-orb--cyan    { background: #06b6d4; }

/* Featured card icon */
.tools-feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.tools-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tools-feature-card:hover .tools-feature-icon,
.tools-grid-card:hover .tools-grid-icon {
    transform: scale(1.1) rotate(-3deg);
}

.tools-feature-icon--purple {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.15);
}
.tools-feature-icon--violet {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.15);
}
.tools-feature-icon--emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.15);
}
.tools-feature-icon--amber {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.15);
}
.tools-feature-icon--cyan {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.15);
}
.tools-feature-icon--indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.15);
}
.tools-feature-icon--rose {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    box-shadow: 0 0 24px rgba(244, 63, 94, 0.15);
}

/* Privacy chip */
.tools-privacy-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #22c55e;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Featured card typography */
.tools-feature-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--space-2);
    line-height: 1.2;
}

.tools-feature-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-5);
    max-width: 380px;
}

/* Feature pills */
.tools-feature-pills,
.tools-grid-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-6);
}

.tools-pill {
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-secondary);
    transition: all 0.25s ease;
}

.tools-feature-card:hover .tools-pill,
.tools-grid-card:hover .tools-pill,
.tools-horizontal-card:hover .tools-pill {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.tools-pill--purple  { color: #c084fc; border-color: rgba(168, 85, 247, 0.25); }
.tools-pill--violet  { color: #a78bfa; border-color: rgba(139, 92, 246, 0.25); }
.tools-pill--emerald { color: #34d399; border-color: rgba(16, 185, 129, 0.25); }
.tools-pill--amber   { color: #fbbf24; border-color: rgba(245, 158, 11, 0.25); }
.tools-pill--cyan    { color: #22d3ee; border-color: rgba(6, 182, 212, 0.25); }
.tools-pill--indigo  { color: #818cf8; border-color: rgba(99, 102, 241, 0.25); }
.tools-pill--rose    { color: #fb7185; border-color: rgba(244, 63, 94, 0.25); }

/* CTA row */
.tools-feature-cta,
.tools-grid-cta,
.tools-horizontal-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tools-cta-label {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-heading);
    transition: color 0.25s ease;
}

.tools-cta-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all 0.3s var(--ease-snappy);
}

.tools-feature-card:hover .tools-cta-arrow,
.tools-grid-card:hover .tools-cta-arrow,
.tools-horizontal-card:hover .tools-cta-arrow {
    background: var(--card-glow, rgba(168, 85, 247, 0.3));
    border-color: var(--card-glow, rgba(168, 85, 247, 0.5));
    color: #ffffff;
    transform: translateX(4px);
}

/* ── Standard Tools Grid — 3 compact cards ────────────────── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

/* Grid card icon */
.tools-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.tools-grid-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Grid card typography */
.tools-grid-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 var(--space-2) 0;
    line-height: 1.25;
}

.tools-grid-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin-bottom: var(--space-4);
}

/* ── Showcase Tools Horizontal Rows (Row 1: 2 tools, Row 2: 3 tools, Row 3: 2 tools) ── */
.tools-horizontal-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.tools-horizontal-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.tools-horizontal-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
    background: var(--color-bg-raised, #0d121c);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.4s var(--ease-snappy),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.tools-horizontal-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-glow, rgba(99, 102, 241, 0.45));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45),
                0 0 40px color-mix(in srgb, var(--card-glow) 25%, transparent);
}

.tools-horizontal-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
    min-height: 250px;
}

.tools-horizontal-content {
    flex: 1 1 54%;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.tools-horizontal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.tools-horizontal-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tools-horizontal-title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 1.35vw, 1.35rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 var(--space-2) 0;
    line-height: 1.25;
}

.tools-horizontal-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tools-horizontal-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-4);
}

/* Proper Button on Left */
.tools-horizontal-action-wrap {
    margin-top: auto;
    padding-top: var(--space-3);
    display: flex;
    align-items: center;
}

.tools-horizontal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full, 9999px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.3s var(--ease-snappy);
    position: relative;
    z-index: 2;
}

.tools-horizontal-card:hover .tools-horizontal-btn {
    background: var(--card-glow, rgba(168, 85, 247, 0.45));
    border-color: var(--card-glow, rgba(168, 85, 247, 0.6));
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 24px color-mix(in srgb, var(--card-glow) 50%, transparent);
}

/* Little Arrow Placed at Right Side End */
.tools-card-corner-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(13, 18, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    z-index: 3;
    transition: all 0.3s var(--ease-snappy);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tools-horizontal-card:hover .tools-card-corner-arrow {
    background: var(--card-glow, rgba(168, 85, 247, 0.45));
    border-color: var(--card-glow, rgba(168, 85, 247, 0.6));
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 0 20px color-mix(in srgb, var(--card-glow) 60%, transparent);
}

.tools-horizontal-preview {
    flex: 0 0 46%;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: rgba(0, 0, 0, 0.3);
}

.tools-horizontal-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s var(--ease-smooth);
    display: block;
}

.tools-horizontal-card:hover .tools-horizontal-preview img {
    transform: scale(1.08);
}

.tools-horizontal-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--color-bg-raised, #0d121c) 0%, rgba(13, 18, 28, 0.7) 25%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.tools-horizontal-card:hover .tools-feature-icon {
    transform: scale(1.1) rotate(-3deg);
}

/* Adjustments for 3-Column Row (Row 2) */
.tools-horizontal-row-3 .tools-horizontal-content {
    flex: 1 1 56%;
    padding: var(--space-4);
}

.tools-horizontal-row-3 .tools-horizontal-preview {
    flex: 0 0 44%;
    min-height: 210px;
}

.tools-horizontal-row-3 .tools-horizontal-title {
    font-size: clamp(1.02rem, 1.15vw, 1.2rem);
    margin-bottom: 6px;
}

.tools-horizontal-row-3 .tools-horizontal-desc {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
}

.tools-horizontal-row-3 .tools-horizontal-btn {
    padding: 7px 15px;
    font-size: 12px;
}

.tools-horizontal-row-3 .tools-card-corner-arrow {
    right: 14px;
    bottom: 14px;
    width: 34px;
    height: 34px;
}

/* Responsive */
@media (max-width: 1180px) {
    .tools-horizontal-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .tools-horizontal-row-3 .tools-horizontal-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .tools-horizontal-row {
        grid-template-columns: 1fr;
    }
    .tools-horizontal-row-3 {
        grid-template-columns: 1fr;
    }
    .tools-horizontal-row-3 .tools-horizontal-card:last-child {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .tools-horizontal-card-inner {
        flex-direction: column-reverse;
    }
    .tools-horizontal-preview {
        flex: 0 0 auto;
        height: 190px;
        width: 100%;
    }
    .tools-horizontal-fade {
        background: linear-gradient(to top, var(--color-bg-raised, #0d121c) 0%, transparent 80%);
    }
    .tools-card-corner-arrow {
        right: 14px;
        bottom: 14px;
    }
    .tools-horizontal-content {
        padding: var(--space-4);
    }
}


/* ── Downloads & Templates Grid ────────────────────────────── */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.download-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.download-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0d121c;
}

.download-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-normal);
}

.download-card:hover .download-card-media img {
    transform: scale(1.05);
}

.download-card-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
}

.download-card-body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.download-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-2);
    line-height: 1.35;
}

.download-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: auto;
    padding-top: var(--space-4);
}

/* ── Software Showcase ─────────────────────────────────────── */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: var(--space-6);
}

@media (max-width: 480px) {
    .software-grid {
        grid-template-columns: 1fr;
    }
}

.software-card {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
}

.software-card-top {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.software-icon-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.software-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: #ffffff;
}

.software-version {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-accent-cyan);
}

.software-preview-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin: var(--space-3) 0 var(--space-4);
    border: 1px solid var(--color-border);
}

/* ── Trust & Privacy Strip ─────────────────────────────────── */
.trust-strip {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.03), rgba(139, 92, 246, 0.03));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin: var(--space-12) 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-6);
}

.trust-item {
    display: flex;
    gap: var(--space-3);
}

.trust-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent-cyan);
    flex-shrink: 0;
    margin-top: 2px;
}

.trust-item h4 {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-1);
}

.trust-item p {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: #05060a;
    border-top: 1px solid var(--color-border);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Footer Brand & Logo ───────────────────────────────────── */
.footer-brand-col .site-brand,
.footer-brand-col .custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    max-height: 62px !important;
}

.footer-brand-col .site-logo-img,
.footer-brand-col .site-logo img,
.footer-brand-col .site-brand img,
.footer-brand-col .custom-logo-link img {
    height: 54px !important;
    max-height: 58px !important;
    width: auto !important;
    max-width: 235px !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)) !important;
}

@media (max-width: 768px) {
    .footer-brand-col .site-logo-img,
    .footer-brand-col .site-logo img,
    .footer-brand-col .site-brand img,
    .footer-brand-col .custom-logo-link img {
        height: 46px !important;
        max-height: 48px !important;
        max-width: 190px !important;
    }
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color var(--dur-fast);
}

.footer-links a:hover {
    color: var(--color-accent-purple);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer-bottom a {
    color: var(--color-text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--dur-fast);
}

.footer-bottom a:hover {
    color: var(--color-accent-purple-light);
}

.footer-brand-home-link {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color var(--dur-fast);
}

.footer-brand-home-link:hover {
    color: var(--color-accent-purple-light) !important;
}

/* ── MetaoFly Official Social Media Links ───────────────────── */
.metaofly-social-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    padding: 5px;
    text-decoration: none;
    box-sizing: border-box;
    flex-shrink: 0;
}

.social-link-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.social-link-btn:hover {
    transform: translateY(-2px);
}

.social-link-btn:hover img {
    transform: scale(1.08);
}

.social-link-btn.social-facebook:hover {
    border-color: rgba(25, 118, 210, 0.6);
    box-shadow: 0 4px 14px rgba(25, 118, 210, 0.4);
    background: rgba(25, 118, 210, 0.15);
}

.social-link-btn.social-instagram:hover {
    border-color: rgba(225, 48, 108, 0.6);
    box-shadow: 0 4px 14px rgba(225, 48, 108, 0.4);
    background: rgba(225, 48, 108, 0.15);
}

.social-link-btn.social-twitter:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

/* Specific Context Tweaks */
.footer-socials {
    margin-top: var(--space-4);
}

.sidebar-author-social-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-social-label {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-socials .social-link-btn {
    width: 32px;
    height: 32px;
    padding: 4px;
}

/* ============================================================
   SOFTWARE SUITE & PREVIOUS LAYOUT STYLES
   ============================================================ */

.software-hero-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(99, 102, 241, 0.06) 50%, rgba(11, 11, 15, 0.95) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-12);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.software-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 70%);
    pointer-events: none;
}

.software-hero-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-8);
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.software-app-icon {
    width: 96px;
    height: 96px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

.software-hero-details {
    flex: 1;
    min-width: 280px;
}

.store-badge-ms,
.store-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    height: 44px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
    transition: all var(--dur-normal) var(--ease-snappy);
    position: relative;
    overflow: hidden;
}

.store-badge-ms {
    background: #0078d4;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 18px rgba(0, 120, 212, 0.35);
}

.store-badge-ms:hover {
    background: #106ebe;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.55);
    color: #ffffff;
}

.store-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-dim);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.store-btn-secondary:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: var(--color-accent-purple);
    color: #ffffff;
    transform: translateY(-2px);
}

.software-spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--color-text-secondary);
}

/* ── Software Archive Card ─────────────────────────────────── */
.software-archive-card {
    padding: var(--space-8);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-8);
    align-items: center;
    border-radius: var(--radius-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: all var(--dur-normal) var(--ease-snappy);
    position: relative;
}

.software-archive-card:hover {
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(168, 85, 247, 0.2);
    transform: translateY(-4px);
}

.software-archive-info {
    min-width: 0;
}

.software-archive-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.software-archive-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    flex-shrink: 0;
}

.software-archive-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: var(--space-6);
}

.software-archive-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.software-archive-spec-item svg {
    flex-shrink: 0;
}

.software-archive-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    flex-wrap: wrap;
}

.software-archive-thumb-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #08080c;
    aspect-ratio: 16 / 10;
}

.software-archive-thumb-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s var(--ease-snappy);
}

.software-archive-thumb-wrap:hover .software-archive-thumb-img {
    transform: scale(1.04);
}

/* ── Piludi Companion Grid ─────────────────────────────────── */
.piludi-archive-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.piludi-app-card {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: all var(--dur-normal) var(--ease-snappy);
    min-width: 0;
}

.piludi-app-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(168, 85, 247, 0.2);
    transform: translateY(-4px);
}

.piludi-app-card .piludi-app-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.piludi-app-card .software-archive-thumb-wrap {
    width: 100%;
    margin-top: var(--space-5);
    margin-bottom: var(--space-5);
}

.piludi-app-card .software-archive-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    margin-top: auto;
    width: 100%;
    flex-wrap: wrap;
}

.piludi-app-card .software-archive-actions .store-badge-ms,
.piludi-app-card .software-archive-actions .store-btn-secondary {
    flex: 1;
    min-width: 140px;
    text-align: center;
    justify-content: center;
}

@media (max-width: 860px) {
    .software-archive-card {
        grid-template-columns: 1fr;
    }
    .piludi-archive-grid-2 {
        grid-template-columns: 1fr;
    }
    .software-archive-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .software-archive-actions .store-badge-ms,
    .software-archive-actions .store-btn-secondary,
    .store-badge-ms,
    .store-btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

/* ── Glow Card Component with Conic Hover Effect ───────────── */
.glow-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--dur-normal) var(--ease-snappy);
    overflow: hidden;
}

.glow-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(168, 85, 247, 0.08) 60deg,
        transparent 120deg,
        rgba(139, 92, 246, 0.08) 180deg,
        transparent 240deg,
        rgba(192, 132, 252, 0.08) 300deg,
        transparent 360deg
    );
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease-smooth);
    animation: glow-spin 10s linear infinite;
    pointer-events: none;
}

.glow-card:hover {
    border-color: rgba(168, 85, 247, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.2);
}

.glow-card:hover::after {
    opacity: 1;
}

@keyframes glow-spin {
    to { transform: rotate(360deg); }
}

/* ── Screenshot & Formats ──────────────────────────────────── */
.software-screenshot-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    transition: all var(--dur-normal) var(--ease-snappy);
}

.software-screenshot-card:hover {
    border-color: rgba(168, 85, 247, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.2);
}

.software-screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.format-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--space-3);
}

.format-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-dim);
    font-family: var(--font-mono);
}

.format-tag.highlight {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.35);
    color: #d8b4fe;
}

/* ── Breadcrumbs ───────────────────────────────────────────── */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--dur-fast);
}

.breadcrumbs a:hover {
    color: var(--color-accent-purple);
}

.breadcrumbs .separator {
    color: var(--color-text-ghost);
}

.breadcrumbs span:last-child {
    color: var(--color-accent-purple);
}

/* ── Creative Shimmer & Card Lift Hover Effects ────────────── */
.btn-primary,
.store-badge-ms {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.store-badge-ms::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.32) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
    opacity: 0;
    transition: none;
}

.btn-primary:hover::after,
.store-badge-ms:hover::after {
    left: 150%;
    opacity: 1;
    transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-bento-item {
    transition: all var(--dur-normal) var(--ease-snappy);
}

.tool-bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.2);
}

.tool-bento-item:hover .tool-card-icon {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    transition: all var(--dur-normal) var(--ease-snappy);
}

.download-card {
    transition: all var(--dur-normal) var(--ease-snappy);
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.2);
}

.post-card {
    transition: all var(--dur-normal) var(--ease-snappy);
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.2);
}

/* ── Visual Download Catalog & Modern Glass Filter Bar ──────── */
.dl-catalog-section {
    padding-top: calc(80px + var(--space-8));
    padding-bottom: var(--space-16);
}

.dl-filter-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-10);
}

.dl-filter-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(15, 15, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.dl-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--dur-normal) var(--ease-snappy);
    border: 1px solid transparent;
}

.dl-filter-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.dl-filter-pill.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(124, 58, 237, 0.25) 100%);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.dl-filter-count {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-muted);
    font-weight: 700;
    transition: all var(--dur-fast);
}

.dl-filter-pill.is-active .dl-filter-count {
    background: rgba(168, 85, 247, 0.5);
    color: #ffffff;
}

/* ── Visual Product Download Grid & Card ──────────────── */
.dl-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

@media (max-width: 1024px) {
    .dl-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 640px) {
    .dl-product-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .dl-filter-bar {
        border-radius: var(--radius-lg);
        gap: 4px;
        padding: 4px 6px;
    }
    .dl-filter-pill {
        padding: 6px 12px;
        font-size: var(--text-xs);
    }
}

.dl-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--dur-normal) var(--ease-snappy);
    box-shadow: var(--shadow-card);
}

.dl-card:hover {
    border-color: rgba(168, 85, 247, 0.45);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.2);
}

.dl-card-thumb-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #08080c;
}

.dl-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-card:hover .dl-card-thumb-img {
    transform: scale(1.05);
}

.dl-card-badges-top {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    right: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.dl-card-body {
    padding: var(--space-5) var(--space-6) var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.dl-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: var(--space-4);
    letter-spacing: -0.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dl-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color var(--dur-fast);
}

.dl-card-title a:hover {
    color: #c084fc;
}

.dl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.dl-card-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    font-weight: 600;
}

.dl-card-count svg {
    color: #22c55e;
}

.dl-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-lg);
    background: rgba(168, 85, 247, 0.12);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
    text-decoration: none;
    transition: all var(--dur-fast);
}

.dl-card:hover .dl-card-btn {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

/* ── Universal Image Softbox / Lightbox & Screenshot Carousel ── */
.df-img-softbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(4, 4, 7, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: var(--space-4);
    user-select: none;
    touch-action: none;
}

.df-img-softbox-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.df-img-softbox-dialog {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.df-img-softbox-overlay.is-active .df-img-softbox-dialog {
    transform: scale(1);
}

.df-img-softbox-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #08080c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(168, 85, 247, 0.15);
}

.df-img-softbox-img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease-out;
}

.df-img-softbox-header {
    position: absolute;
    top: -48px;
    right: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: 20;
}

.df-img-softbox-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.df-img-softbox-close:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 1);
    transform: scale(1.08);
}

.df-img-softbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(14, 14, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.df-img-softbox-nav:hover {
    background: var(--color-accent-1);
    border-color: var(--color-accent-1);
    transform: translateY(-50%) scale(1.1);
}

.df-img-softbox-prev {
    left: -24px;
}

.df-img-softbox-next {
    right: -24px;
}

.df-img-softbox-footer {
    margin-top: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: var(--text-xs);
    color: var(--color-text-2);
}

.df-img-softbox-caption {
    font-weight: 500;
    color: #ffffff;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.df-img-softbox-counter {
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-2);
}

@media (max-width: 768px) {
    .df-img-softbox-header {
        top: -42px;
        right: 0;
    }
    .df-img-softbox-prev {
        left: 6px;
    }
    .df-img-softbox-next {
        right: 6px;
    }
    .df-img-softbox-media {
        max-width: 95vw;
        max-height: 75vh;
    }
    .df-img-softbox-img {
        max-width: 95vw;
        max-height: 75vh;
    }
}

/* ── Software Screenshot Auto Carousel (2 in a row) ── */
.df-screenshot-carousel-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: var(--space-4);
}

.df-screenshot-carousel-track {
    display: flex;
    gap: var(--space-6);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.df-screenshot-slide {
    flex: 0 0 calc((100% - var(--space-6)) / 2);
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .df-screenshot-slide {
        flex: 0 0 100%;
    }
}

.df-carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.df-carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--color-text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--dur-fast);
}

.df-carousel-btn:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
}

.df-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-6);
}

.df-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.df-carousel-dot.is-active {
    width: 26px;
    background: var(--color-accent-1);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* ============================================================
   PREVIOUS SITE RESTORED LAYOUTS (Blog Hub, Single Post, Sidebar, Software)
   ============================================================ */

/* ── Grid Utilities ─────────────────────────────────── */
.grid {
    display: grid;
    gap: var(--space-6);
}
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* ── Compatibility Badges ───────────────────────────── */
.badge-accent {
    border-color: rgba(168, 85, 247, 0.3) !important;
    color: #c084fc !important;
    background: rgba(168, 85, 247, 0.12) !important;
}
.badge-warm {
    border-color: rgba(249, 115, 22, 0.25) !important;
    color: #f59e0b !important;
    background: rgba(249, 115, 22, 0.1) !important;
}
.badge-green {
    border-color: rgba(34, 197, 94, 0.25) !important;
    color: #22c55e !important;
    background: rgba(34, 197, 94, 0.1) !important;
}

/* ── Section Headers ────────────────────────────────── */
.section-header {
    margin-bottom: var(--space-8);
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c084fc;
    margin-bottom: var(--space-2);
}
.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: var(--space-2);
}
.section-desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    max-width: 680px;
    line-height: 1.6;
}

/* ── Article Cards ──────────────────────────────────── */
.card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--dur-normal) var(--ease-snappy);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-smooth);
}

.card:hover .card-image img {
    transform: scale(1.04);
}

.card-body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: 1.35;
}

.card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color var(--dur-fast);
}

.card-title a:hover {
    color: #c084fc;
}

.card-excerpt {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 12px;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

/* ── Glow Card ──────────────────────────────────────── */
.glow-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--dur-normal) var(--ease-snappy);
    overflow: hidden;
}

.glow-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
}

/* ── Modern Blog Category Filter Hub ────────────────── */
.blog-filter-section {
    margin-bottom: var(--space-10);
}

.blog-filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    background: rgba(13, 18, 28, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-3) var(--space-4);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.blog-filter-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.blog-filter-pills::-webkit-scrollbar {
    display: none;
}

.blog-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    text-decoration: none;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    transition: all var(--dur-fast) var(--ease-snappy);
    white-space: nowrap;
}

.blog-filter-pill:hover {
    color: #ffffff;
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-1px);
}

.blog-filter-pill.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(99, 102, 241, 0.25) 100%);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.3);
    font-weight: 600;
}

.blog-filter-count {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-muted);
    font-weight: 700;
    transition: all var(--dur-fast);
}

.blog-filter-pill.is-active .blog-filter-count {
    background: rgba(168, 85, 247, 0.5);
    color: #ffffff;
}

.blog-subfilter-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: auto;
}

.blog-lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all var(--dur-fast);
}

.blog-lang-pill:hover {
    color: #ffffff;
    border-color: var(--color-border-hover);
    background: rgba(255, 255, 255, 0.08);
}

.blog-lang-pill.is-active {
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.12);
}

/* ── Single Post Layout with Sticky Sidebar ──────────── */
.post-header {
    position: relative;
    text-align: center;
    padding-top: calc(76px + var(--space-8));
    padding-bottom: var(--space-8);
    background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.16), rgba(6, 182, 212, 0.05) 50%, transparent 80%);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-10);
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), rgba(6, 182, 212, 0.5), transparent);
    z-index: 1;
}

.post-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    max-width: 860px;
    margin: 0 auto var(--space-4);
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #ffffff;
}

.post-meta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-family: var(--font-mono);
}

.post-featured-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-10);
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--color-border);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
    object-fit: cover;
}

.post-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--space-12);
    align-items: start;
    margin-top: var(--space-8);
}

@media (max-width: 992px) {
    .post-layout-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.post-main-column {
    min-width: 0;
}

.post-content {
    font-size: var(--text-base);
    line-height: 1.85;
    color: var(--color-text-dim);
}

.post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: #ffffff;
}

.post-content h3 {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: #f1f5f9;
}

.post-content p {
    margin-bottom: var(--space-5);
    color: var(--color-text-dim);
}

.post-content a {
    color: #c084fc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.sidebar-widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: border-color var(--dur-fast);
}

.sidebar-widget:hover {
    border-color: var(--color-border-hover);
}

.sidebar-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.sidebar-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--dur-fast);
}

.sidebar-search-input:focus {
    border-color: var(--color-accent-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.sidebar-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.sidebar-widget-title {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.sidebar-widget-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--color-accent-purple);
}

.sidebar-author {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.sidebar-author-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.sidebar-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
}

.sidebar-author-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: #ffffff;
}

.sidebar-author-role {
    font-size: 11px;
    color: #c084fc;
    font-family: var(--font-mono);
}

.sidebar-author-bio {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post-item {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    text-decoration: none;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-thumb {
    width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}

.sidebar-post-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--dur-fast);
}

.sidebar-post-item:hover .sidebar-post-title {
    color: #c084fc;
}

.sidebar-post-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 2px;
    font-family: var(--font-mono);
}

.sidebar-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-list a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--dur-fast);
}

.sidebar-category-list a:hover {
    border-color: var(--color-accent-purple);
    color: #ffffff;
    background: rgba(168, 85, 247, 0.12);
}

/* ── Share Buttons ──────────────────────────────────── */
.share-buttons {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--dur-fast);
}

.share-btn:hover {
    border-color: var(--color-accent-purple);
    color: #c084fc;
    background: rgba(168, 85, 247, 0.12);
    transform: translateY(-1px);
}

.share-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ── Software Single Page V2 Elements ───────────────── */
.software-hero-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(59, 130, 246, 0.06) 50%, rgba(11, 15, 25, 0.95) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-12);
    position: relative;
    overflow: hidden;
}

.software-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
    pointer-events: none;
}

.software-hero-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-8);
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.software-app-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.sidebar-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
}

.sidebar-author-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: #ffffff;
}

.sidebar-author-role {
    font-size: 11px;
    color: #c084fc;
    font-family: var(--font-mono);
}

.sidebar-author-bio {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post-item {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    text-decoration: none;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-thumb {
    width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}

.sidebar-post-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--dur-fast);
}

.sidebar-post-item:hover .sidebar-post-title {
    color: #c084fc;
}

.sidebar-post-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 2px;
    font-family: var(--font-mono);
}

.sidebar-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-list a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--dur-fast);
}

.sidebar-category-list a:hover {
    border-color: var(--color-accent-purple);
    color: #ffffff;
    background: rgba(168, 85, 247, 0.12);
}

/* ── Share Buttons ──────────────────────────────────── */
.share-buttons {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--dur-fast);
}

.share-btn:hover {
    border-color: var(--color-accent-purple);
    color: #c084fc;
    background: rgba(168, 85, 247, 0.12);
    transform: translateY(-1px);
}

.share-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ── Software Single Page V2 Elements ───────────────── */
.software-hero-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(59, 130, 246, 0.06) 50%, rgba(11, 15, 25, 0.95) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-12);
    position: relative;
    overflow: hidden;
}

.software-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
    pointer-events: none;
}

.software-hero-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-8);
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.software-app-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.software-hero-details {
    flex: 1;
    min-width: 280px;
}

.software-hero-badges {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.software-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.software-spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
}

.store-badge-ms {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    height: 42px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
    background: #0078d4;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 18px rgba(0, 120, 212, 0.35);
    transition: all var(--dur-normal) var(--ease-snappy);
}

.store-badge-ms:hover {
    background: #106ebe;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.55);
    color: #ffffff;
}

.format-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.format-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-dim);
    border: 1px solid var(--color-border);
}

.format-tag.highlight {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.generic-page-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
}

/* ============================================================
   SINGLE DOWNLOAD & GATE STYLES (BACKEND INTEGRATED)
   ============================================================ */
.download-page-hero {
    position: relative;
    padding-top: calc(76px + var(--space-8));
    padding-bottom: var(--space-8);
    background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.16), rgba(6, 182, 212, 0.05) 50%, transparent 80%);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-8);
    overflow: hidden;
}

.download-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), rgba(6, 182, 212, 0.5), transparent);
    z-index: 1;
}

.download-hero-header {
    max-width: 900px;
}

.download-hero-badges {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.download-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: var(--space-3);
}

.download-hero-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0;
}

.download-content-container {
    padding-bottom: var(--space-16);
}

.download-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-10);
    align-items: start;
    margin-top: 0;
    margin-bottom: var(--space-14);
}

@media (max-width: 900px) {
    .download-hero {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

.download-gallery {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: var(--space-4);
    position: static;
}

@media (min-width: 901px) {
    .download-gallery {
        position: sticky;
        top: 96px;
    }
}

@media (max-width: 900px) {
    .download-gallery {
        position: static !important;
        top: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .download-info {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

.df-main-preview-wrap {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #0c101a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    cursor: zoom-in;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.df-main-preview-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.df-main-preview-wrap:hover img {
    transform: scale(1.02);
}

.df-preview-thumbs-strip {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-3);
    overflow-x: auto;
    padding-bottom: 4px;
}

.df-preview-thumb-btn {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #0f172a;
    cursor: pointer;
    padding: 0;
    transition: all var(--dur-fast) var(--ease-snappy);
}

.df-preview-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.df-preview-thumb-btn:hover {
    border-color: var(--color-accent-purple-light);
    transform: translateY(-2px);
}

.df-preview-thumb-btn.is-active {
    border-color: var(--color-accent-purple);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.download-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin: var(--space-6) 0;
}

@media (max-width: 500px) {
    .download-details {
        grid-template-columns: 1fr;
    }
}

.download-detail-item {
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease;
}

.download-detail-item:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.download-detail-item .label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
    font-weight: 500;
}

.download-detail-item .value {
    font-size: var(--text-base);
    font-weight: 600;
    color: #ffffff;
}

.df-formats-pill-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 3px;
}

.df-spec-format-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    background: rgba(6, 182, 212, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    transition: all 0.15s ease;
}

/* In-Page Waiting Card */
.df-waiting-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-top: var(--space-4);
    animation: fadeUp 0.3s ease-out;
}

.df-waiting-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.df-waiting-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(168, 85, 247, 0.2);
    border-top-color: var(--color-accent-purple);
    border-radius: 50%;
    animation: dfSpin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes dfSpin {
    to { transform: rotate(360deg); }
}

.df-waiting-meta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.df-waiting-status-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.df-waiting-timer {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-accent-purple);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.df-waiting-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.df-waiting-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #06b6d4, #22c55e);
    border-radius: var(--radius-full);
    transition: width 0.1s linear;
}

.df-waiting-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    color: #94a3b8;
    margin-bottom: var(--space-2);
}

.df-step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-purple);
    box-shadow: 0 0 8px var(--color-accent-purple);
}

.df-waiting-note {
    font-size: 11px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Editorial Article Section */
.download-article-section {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: none;
}

.download-article-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: clamp(var(--space-6), 4vw, var(--space-12));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.download-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), rgba(6, 182, 212, 0.6), transparent);
}

.download-article-header {
    margin-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-6);
}

.download-article-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-top: var(--space-3);
    margin-bottom: var(--space-3);
    line-height: 1.25;
}

.download-article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.download-editorial-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #cbd5e1;
    margin-bottom: var(--space-10);
}

.download-editorial-body .lead-paragraph {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.6);
    border-left: 4px solid var(--color-accent-purple);
    padding: var(--space-5);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: var(--space-6);
}

.download-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin: var(--space-8) 0;
}

.download-guide-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: transform var(--dur-fast) var(--ease-snappy), border-color var(--dur-fast);
}

.download-guide-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.4);
}

.download-guide-card h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-guide-card p, .download-guide-card li {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: #94a3b8;
}

.download-guide-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.download-guide-card li {
    margin-bottom: var(--space-2);
}

.download-checklist-box {
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.06), rgba(168, 85, 247, 0.06));
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin: var(--space-8) 0;
}

.download-checklist-box h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-checklist-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-3);
}

.download-checklist-box li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--text-sm);
    color: #e2e8f0;
}

.download-checklist-box li::before {
    content: '✓';
    color: #22c55e;
    font-weight: 800;
}

.download-faq-section {
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.35), rgba(6, 182, 212, 0.25), transparent) 1;
}

.download-faq-section h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-5);
}

.download-faq-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-3);
}

.download-faq-item h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 var(--space-2) 0;
}

.download-faq-item p {
    font-size: var(--text-sm);
    line-height: 1.65;
    color: #94a3b8;
    margin: 0;
}

/* ── Related Templates Section ("You Might Also Like") ── */
.related-dl-section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-20);
}

.related-dl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1100px) {
    .related-dl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5);
    }
}

@media (max-width: 600px) {
    .related-dl-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

.related-dl-card {
    position: relative;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-normal) var(--ease-snappy),
                border-color var(--dur-normal) var(--ease-snappy),
                box-shadow var(--dur-normal) var(--ease-snappy);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.related-dl-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.related-dl-thumb-wrap {
    display: block;
    position: relative;
    padding: 12px 12px 0 12px;
    background: #090d16;
    text-decoration: none;
}

.related-dl-thumb-mat {
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.related-dl-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-dl-card:hover .related-dl-thumb-img {
    transform: scale(1.04);
}

.related-dl-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
}

.related-dl-cat-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: rgba(8, 11, 18, 0.88);
    backdrop-filter: blur(8px);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 2;
    letter-spacing: -0.01em;
}

.related-dl-body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: var(--space-3);
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.related-dl-formats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.related-dl-format-tag {
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.related-dl-format-more {
    font-size: 10px;
    color: #64748b;
    font-family: var(--font-mono);
}

.related-dl-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-dl-title a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color var(--dur-fast);
}

.related-dl-title a:hover {
    color: #c084fc;
}

.related-dl-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.related-dl-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-xs);
    color: #64748b;
    font-weight: 500;
    font-family: var(--font-mono);
}

.related-dl-count svg {
    color: #22c55e;
    opacity: 0.85;
}

.related-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all var(--dur-fast);
}

.related-dl-card:hover .related-dl-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}

/* Gate Page */
.gate-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(76px + var(--space-12)) var(--container-padding) var(--space-16);
}

.gate-container {
    max-width: 540px;
    width: 100%;
    text-align: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gate-step {
    padding: var(--space-6);
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
}

.gate-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
}

.gate-step h2 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
    color: #ffffff;
}

.gate-step p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.gate-timer {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin: var(--space-3) 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-4) 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-purple), var(--color-accent-cyan), #22c55e);
    border-radius: var(--radius-full);
}

/* ============================================================
   RESPONSIVE DIMENSION SPECIFICATIONS GRID
   ============================================================ */
.df-dimension-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0 32px;
}

@media (max-width: 860px) {
    .df-dimension-grid {
        grid-template-columns: 1fr;
    }
}

.df-dim-card {
    background: #0d131f;
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

.df-dim-card.bleed {
    border: 1px solid rgba(244, 63, 94, 0.4);
    background: linear-gradient(155deg, rgba(244, 63, 94, 0.08) 0%, #0d131f 65%);
}

.df-dim-card.trim {
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: linear-gradient(155deg, rgba(56, 189, 248, 0.08) 0%, #0d131f 65%);
}

.df-dim-card.safe {
    border: 1px solid rgba(74, 222, 128, 0.4);
    background: linear-gradient(155deg, rgba(74, 222, 128, 0.08) 0%, #0d131f 65%);
}

.df-dim-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.df-dim-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 7px;
}

.df-dim-card.bleed .df-dim-title { color: #fb7185; }
.df-dim-card.trim .df-dim-title { color: #38bdf8; }
.df-dim-card.safe .df-dim-title { color: #4ade80; }

.df-dim-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.df-dim-card.bleed .df-dim-dot { background: #f43f5e; box-shadow: 0 0 10px rgba(244, 63, 94, 0.7); }
.df-dim-card.trim .df-dim-dot { background: #0ea5e9; box-shadow: 0 0 10px rgba(14, 165, 233, 0.7); }
.df-dim-card.safe .df-dim-dot { background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, 0.7); }

.df-dim-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
}

.df-dim-card.bleed .df-dim-tag { background: rgba(244, 63, 94, 0.18); color: #fda4af; }
.df-dim-card.trim .df-dim-tag { background: rgba(14, 165, 233, 0.18); color: #7dd3fc; }
.df-dim-card.safe .df-dim-tag { background: rgba(34, 197, 94, 0.18); color: #86efac; }

.df-dim-val {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    line-height: 1.2;
}

.df-dim-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 14px;
    font-weight: 500;
}

.df-dim-desc {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.55;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 12px;
    margin: 0;
}

/* ============================================================
   MetaoFly — Interactive Homepage & Scoped Search Layouts
   ============================================================ */

/* ── 1. Blog Archive Subpage Search Form ───────────────────── */
.blog-search-banner-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 440px;
}

.blog-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-full);
    padding: 4px 6px 4px 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.blog-search-input-wrap:focus-within {
    border-color: #c084fc;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.95);
}

.blog-search-icon {
    color: #a855f7;
    margin-right: 10px;
    flex-shrink: 0;
}

.blog-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13.5px;
    font-family: var(--font-body);
    padding: 6px 0;
    min-width: 0;
}

.blog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.blog-search-submit-btn {
    border-radius: var(--radius-full);
    padding: 0.35rem 1rem;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── 2. Homepage Hero Enhancements ─────────────────────────── */
.hero-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    display: inline-block;
    animation: heroPulse 2s infinite ease-in-out;
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-search-scope-wrap {
    padding-left: var(--space-3);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: var(--space-2);
}

.hero-search-scope-select {
    background: transparent;
    border: none;
    color: #c084fc;
    font-size: 12.5px;
    font-weight: 600;
    font-family: var(--font-heading);
    outline: none;
    cursor: pointer;
    color-scheme: dark;
}

.hero-search-scope-select option {
    background-color: #0f172a !important;
    color: #ffffff !important;
    padding: 8px 12px;
}

.hero-search-btn {
    border-radius: var(--radius-full);
    padding: 0.45rem 1.1rem;
    font-size: 13px;
    gap: 6px;
    white-space: nowrap;
}

/* ── 3. Interactive 4-Pillar Showcase Switcher ─────────────── */
.hero-pillar-switcher {
    margin-top: var(--space-10);
    width: 100%;
    max-width: 860px;
    text-align: left;
}

.hero-pillar-nav {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
}

.hero-pillar-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hero-pillar-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.hero-pillar-btn.is-active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-pillar-panel {
    display: none;
    margin-top: var(--space-3);
    animation: fadeIn 0.3s ease;
}

.hero-pillar-panel.is-active {
    display: block;
}

.hero-pillar-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-pillar-info h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: #ffffff;
    margin: var(--space-2) 0 var(--space-1);
}

.hero-pillar-info p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.55;
    max-width: 540px;
    margin-bottom: var(--space-3);
}

.hero-pillar-features {
    display: flex;
    gap: var(--space-4);
    font-size: 11.5px;
    font-family: var(--font-mono);
    color: #22c55e;
    font-weight: 600;
    flex-wrap: wrap;
}

.hero-pillar-action {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: stretch;
    min-width: 180px;
}

/* ── 4. Live Mini-Sandbox inside QR Bento Card ─────────────── */
.home-qr-sandbox {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    gap: var(--space-4);
    align-items: center;
    flex-wrap: wrap;
}

.home-qr-inputs {
    flex: 1;
    min-width: 200px;
}

.home-qr-input-wrap input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: #ffffff;
    outline: none;
    margin-bottom: 8px;
    transition: border-color 0.2s ease;
}

.home-qr-input-wrap input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.home-qr-options {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    font-size: 11.5px;
    color: var(--color-text-secondary);
}

.home-qr-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.home-color-picker {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.home-qr-preview-box {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

#home-qr-canvas-holder {
    width: 110px;
    height: 110px;
    background: #07090e;
    border-radius: var(--radius-sm);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#home-qr-canvas-holder img,
#home-qr-canvas-holder canvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.home-qr-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── 5. Software Section — Dual Featured + App Grid ──────── */

/* Featured Apps Row (CleanoFly + Video Converter) */
.sw-featured-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
    .sw-featured-row {
        grid-template-columns: 1fr;
    }
}

.sw-featured-card {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-color: rgba(34, 197, 94, 0.25);
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.04) 0%, rgba(15, 23, 42, 0.95) 100%);
    transition: all 0.3s ease;
}

.sw-featured-card:hover {
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(34, 197, 94, 0.08);
}

/* Animated gradient border shimmer */
.sw-featured-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, rgba(34, 197, 94, 0.4), rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2), rgba(34, 197, 94, 0.4));
    z-index: -2;
    animation: borderRotate 10s linear infinite;
}

.sw-featured-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.04) 0%, #0c1019 100%);
    z-index: -1;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.sw-featured-badge-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.sw-featured-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.sw-featured-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: contain;
    background: #0d121f;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.sw-featured-icon-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.sw-featured-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.sw-featured-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.sw-featured-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-5);
    flex: 1;
}

.sw-featured-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: auto;
}

/* Companion Apps Grid */
.sw-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-4);
}

.sw-app-card {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.sw-app-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.sw-app-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.sw-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: #0d121f;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sw-app-icon-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.sw-app-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sw-app-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.sw-app-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sw-app-title a:hover {
    color: #c084fc;
}

.sw-app-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sw-app-desc {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-4);
    flex: 1;
}

.sw-app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.sw-app-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sw-app-link:hover {
    color: #22d3ee;
    text-decoration: underline;
}

.sw-app-store-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.sw-app-store-link:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.3);
    color: #ffffff;
}

/* Keep old sw- classes for backward compatibility on archive/single pages */
.sw-filter-bar {
    display: inline-flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sw-filter-pill {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-heading);
}

.sw-filter-pill:hover {
    color: #ffffff;
}

.sw-filter-pill.is-active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.sw-showcase-split {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: var(--space-6);
    align-items: start;
}

@media (max-width: 1024px) {
    .sw-showcase-split {
        grid-template-columns: 1fr;
    }
}

.sw-spotlight-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.sw-spotlight-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.sw-spotlight-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: #0d121f;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sw-spotlight-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.sw-spotlight-meta {
    font-size: 12px;
    color: #94a3b8;
    font-family: var(--font-mono);
}

.sw-spotlight-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.sw-spotlight-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: var(--space-6);
    padding: var(--space-3) 0;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.35), rgba(6, 182, 212, 0.25), transparent) 1;
}

.sw-point-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #cbd5e1;
}

.sw-point-check {
    color: #22c55e;
    font-weight: 700;
}

.sw-spotlight-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.sw-companion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .sw-companion-grid {
        grid-template-columns: 1fr;
    }
}

.sw-companion-card {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.sw-companion-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
    transform: translateY(-2px);
}

.sw-companion-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.sw-companion-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: #0d121f;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sw-companion-icon-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sw-companion-title {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.25;
}

.sw-companion-title a {
    color: #ffffff;
    text-decoration: none;
}

.sw-companion-title a:hover {
    color: #c084fc;
}

.sw-companion-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sw-companion-desc {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-4);
}

.sw-companion-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sw-companion-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent-cyan);
    text-decoration: none;
}

.sw-companion-link:hover {
    text-decoration: underline;
}

/* ── 6. Why MetaoFly — Compact 2×2 Grid ──────────────────── */
.why-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
}

@media (max-width: 640px) {
    .why-grid-compact {
        grid-template-columns: 1fr;
    }
}

.why-compact-card {
    padding: var(--space-6);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    transition: all 0.3s ease;
}

.why-compact-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.why-compact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

.why-compact-icon.purple {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
}
.why-compact-icon.cyan {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
}
.why-compact-icon.emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}
.why-compact-icon.amber {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.why-compact-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.why-compact-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.55;
}

/* ── 7. Templates Horizontal Scroll Carousel ────────────────── */
.templates-carousel-wrapper {
    position: relative;
}

.templates-carousel {
    display: flex;
    gap: var(--space-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: var(--space-4);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.templates-carousel::-webkit-scrollbar {
    display: none;
}

.templates-carousel .download-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    transition: transform 0.35s var(--ease-snappy);
}

.templates-carousel .download-card:hover {
    transform: translateY(-6px);
}

.templates-carousel .download-card-media img {
    transition: transform 0.5s var(--ease-smooth);
}

.templates-carousel .download-card:hover .download-card-media img {
    transform: scale(1.08);
}

/* Carousel navigation arrows */
.carousel-nav {
    display: flex;
    gap: var(--space-2);
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    color: #ffffff;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Scroll indicator */
.carousel-scroll-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-4);
    font-size: 11px;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.carousel-scroll-track {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.carousel-scroll-thumb {
    width: 30%;
    height: 100%;
    background: var(--color-accent-purple);
    border-radius: 3px;
    transition: transform 0.2s ease;
}

/* ── 8. Blog Editorial Grid Layout ────────────────────────── */
/* ── 8. Blog Editorial Layout ──────────────────────────────── */
.blog-editorial-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: var(--space-6);
    align-items: stretch;
}

/* Featured Hero Card */
.blog-hero-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.35s var(--ease-snappy), border-color 0.35s ease, box-shadow 0.35s ease;
}

.blog-hero-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.blog-hero-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.blog-hero-card:hover .blog-hero-media img {
    transform: scale(1.05);
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 9, 10, 0.7) 0%, transparent 50%);
    pointer-events: none;
}

.blog-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 220px;
    background: #0d121c;
    color: var(--color-text-muted);
}

.blog-hero-body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-hero-meta-top {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.blog-date-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-muted);
}

.blog-hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-3);
}

.blog-hero-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-hero-title a:hover {
    color: #c084fc;
}

.blog-hero-excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.blog-hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.blog-read-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent-purple);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-read-link:hover {
    color: #c084fc;
}

/* Companion Stories Column */
.blog-companion-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    justify-content: space-between;
}

.blog-story-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex: 1;
    transition: transform 0.3s var(--ease-snappy), border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-story-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.blog-story-media {
    position: relative;
    width: 130px;
    height: 90px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0d121f;
}

.blog-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-smooth);
}

.blog-story-card:hover .blog-story-media img {
    transform: scale(1.08);
}

.blog-story-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d121c;
    color: var(--color-text-muted);
}

.blog-story-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.blog-story-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.blog-story-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-muted);
}

.blog-story-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-story-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-story-title a:hover {
    color: #c084fc;
}

.blog-story-footer {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: 2px;
}

@media (max-width: 900px) {
    .blog-editorial-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .blog-story-card {
        flex-direction: column;
        align-items: stretch;
    }
    .blog-story-media {
        width: 100%;
        height: 160px;
    }
}

/* ── 9. Animated Trust Counter Strip ─────────────────────── */
.trust-counter-strip {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: var(--space-8) 0;
    border-top: none;
    border-bottom: none;
    background: rgba(255, 255, 255, 0.015);
}

.trust-counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-4) var(--space-10);
    position: relative;
    text-align: center;
}

.trust-counter-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.trust-counter-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    font-size: 18px;
}

.trust-counter-icon.purple { background: rgba(168, 85, 247, 0.12); color: #c084fc; }
.trust-counter-icon.cyan { background: rgba(6, 182, 212, 0.12); color: #22d3ee; }
.trust-counter-icon.emerald { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.trust-counter-icon.amber { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }

.trust-counter-number {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
}

.trust-counter-label {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .trust-counter-strip {
        flex-wrap: wrap;
    }
    .trust-counter-item {
        flex: 1 1 40%;
        padding: var(--space-4) var(--space-5);
    }
    .trust-counter-item:nth-child(2)::after {
        display: none;
    }
}

/* ── 10. CTA Footer Banner ──────────────────────────────── */
.cta-banner {
    position: relative;
    padding: var(--space-16) 0;
    text-align: center;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-banner-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-3);
}

.cta-banner-desc {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.cta-banner-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ── 11. Enhanced Software Spotlight — Animated Border ────── */
.sw-spotlight-card {
    position: relative;
    padding: var(--space-6);
    border-color: transparent;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.04) 0%, rgba(15, 23, 42, 0.95) 100%);
    overflow: hidden;
}

.sw-spotlight-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, rgba(34, 197, 94, 0.5), rgba(168, 85, 247, 0.3), rgba(6, 182, 212, 0.3), rgba(34, 197, 94, 0.5));
    z-index: -1;
    animation: borderRotate 8s linear infinite;
}

.sw-spotlight-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.04) 0%, #0d121c 100%);
    z-index: -1;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ── Keep old why-metaofly styles for backward compatibility ── */
.why-metaofly-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-6);
    align-items: stretch;
}

@media (max-width: 900px) {
    .why-metaofly-grid {
        grid-template-columns: 1fr;
    }
}

.why-card {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
}

.why-card.metaofly-card {
    border-color: rgba(0, 240, 255, 0.3);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(15, 23, 42, 0.95) 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.why-card.competitors-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(11, 15, 25, 0.6);
}

.why-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.why-logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 10px #06b6d4;
}

.why-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.why-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.why-feature-item {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
}

.why-feature-item strong {
    display: block;
    color: #ffffff;
    margin-bottom: 2px;
}

.why-feature-item span {
    color: var(--color-text-secondary);
}

.why-feature-item.positive .why-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.why-feature-item.negative .why-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.why-feature-item.negative strong {
    color: #94a3b8;
}


