/* Home V4 Final
 * Loaded last to guarantee parity with internal V4 preview.
 */

body.page-home {
    /* Neutralize legacy palette from main/components for home-only mode */
    --wf-blue: #4f6076 !important;
    --wf-blue-light: #667b95 !important;
    --wf-blue-dark: #39495d !important;
    --wf-blue-pale: #f2f4f7 !important;
    --gradient-primary: linear-gradient(135deg, #4f6076 0%, #39495d 100%) !important;
    --gradient-premium: linear-gradient(135deg, #4f6076 0%, #667b95 50%, #39495d 100%) !important;
    --gradient-subtle: linear-gradient(180deg, rgba(79, 96, 118, 0.05) 0%, rgba(79, 96, 118, 0) 100%) !important;

    --home-v4-blue: #275e9c;
    --home-v4-blue-light: #2f77c8;
    --home-v4-blue-dark: #0d3c71;
    --home-v4-gold: #e3c439;
    --home-v4-gold-dark: #b08f1f;
    --home-v4-text: #111111;
    --home-v4-text-soft: #304b67;
    --home-v4-text-muted: #4e6682;
    --home-v4-line: rgba(13, 60, 113, 0.16);
    --home-v4-shadow-sm: 0 10px 24px rgba(8, 33, 65, 0.12);
    --home-v4-shadow-md: 0 20px 36px rgba(8, 33, 65, 0.16);
}

html[data-theme="dark"] body.page-home {
    /* Neutral dark fallback for legacy selectors not yet rebuilt */
    --wf-blue: #8e9db0 !important;
    --wf-blue-light: #a3afbf !important;
    --wf-blue-dark: #6f7d90 !important;
    --wf-blue-pale: #1f2731 !important;
    --gradient-primary: linear-gradient(135deg, #2a3340 0%, #3b4757 100%) !important;
    --gradient-premium: linear-gradient(135deg, #2a3340 0%, #4a596d 50%, #3b4757 100%) !important;
    --gradient-subtle: linear-gradient(180deg, rgba(156, 170, 188, 0.08) 0%, rgba(156, 170, 188, 0) 100%) !important;
}

body.page-home :is(
    .home-v4-stats,
    .home-v4-logos,
    .home-v4-services,
    .home-v4-security,
    .home-v4-cta,
    .home-v4-blog,
    .home-v4-faq,
    .home-v4-made
) {
    position: relative !important;
    border-top: 1px solid rgba(13, 60, 113, 0.14) !important;
}

/* Hero */
body.page-home .hero-mesh {
    position: relative !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(4.2rem, 7vw, 6.1rem) 0 0 !important;
    overflow: hidden !important;
    border-bottom: 1px solid rgba(13, 60, 113, 0.14) !important;
    background:
        radial-gradient(circle at 18% 20%, rgba(39, 94, 156, 0.18) 0%, rgba(39, 94, 156, 0) 44%),
        radial-gradient(circle at 84% 78%, rgba(227, 196, 57, 0.18) 0%, rgba(227, 196, 57, 0) 42%),
        linear-gradient(128deg, #f7f8fa 0%, #f1f3f6 52%, #ebeff5 100%) !important;
}

body.page-home .hero-mesh .container {
    position: relative !important;
    z-index: 2 !important;
}

body.page-home .spotlights {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

body.page-home .spotlight {
    position: absolute !important;
    border-radius: 999px !important;
    filter: blur(74px) !important;
    opacity: 0.4 !important;
}

body.page-home .spotlight-1 {
    width: 360px !important;
    height: 360px !important;
    top: -84px !important;
    left: -56px !important;
    background: rgba(47, 119, 200, 0.24) !important;
}

body.page-home .spotlight-2 {
    width: 280px !important;
    height: 280px !important;
    top: 16% !important;
    right: -44px !important;
    background: rgba(227, 196, 57, 0.28) !important;
}

body.page-home .spotlight-3 {
    width: 300px !important;
    height: 300px !important;
    bottom: -92px !important;
    left: 36% !important;
    background: rgba(39, 94, 156, 0.2) !important;
}

body.page-home .hero-grid {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr) !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 540px !important;
    gap: 1.2rem !important;
}

body.page-home .hero-content-ultra {
    max-width: 710px !important;
    padding: 0.4rem 0 4.8rem !important;
    text-align: left !important;
}

body.page-home .hero-title-ultra {
    margin-top: 0.7rem !important;
    font-size: clamp(2.8rem, 7vw, 5.6rem) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.03em !important;
    color: #121417 !important;
    text-shadow: 0 8px 20px rgba(13, 60, 113, 0.08) !important;
}

body.page-home .highlight-gold,
body.page-home .text-gradient-gold {
    background: none !important;
    -webkit-text-fill-color: var(--home-v4-gold-dark) !important;
    color: var(--home-v4-gold-dark) !important;
    text-shadow: none !important;
    filter: none !important;
}

body.page-home .hero-subtitle-ultra {
    margin-top: 1.14rem !important;
    max-width: 620px !important;
    font-size: clamp(1.04rem, 2vw, 1.32rem) !important;
    line-height: 1.62 !important;
    color: #3f4e60 !important;
}

body.page-home .hero-cta-group {
    margin-top: 1.55rem !important;
    display: flex !important;
    gap: 0.7rem !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}

body.page-home .btn-ultra {
    min-height: 46px !important;
    padding: 0.64rem 1.18rem !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 180ms cubic-bezier(0.2, 0.65, 0.3, 1),
                box-shadow 180ms cubic-bezier(0.2, 0.65, 0.3, 1),
                background 180ms cubic-bezier(0.2, 0.65, 0.3, 1),
                border-color 180ms cubic-bezier(0.2, 0.65, 0.3, 1),
                color 180ms cubic-bezier(0.2, 0.65, 0.3, 1) !important;
}

body.page-home .btn-ultra span {
    position: relative !important;
    z-index: 1 !important;
}

body.page-home .hero-cta-group .btn-ultra-primary {
    background: var(--home-v4-blue) !important;
    border-color: var(--home-v4-blue-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 18px rgba(10, 43, 80, 0.22) !important;
}

body.page-home .hero-cta-group .btn-ultra-primary:hover {
    background: var(--home-v4-blue-dark) !important;
    border-color: var(--home-v4-blue-dark) !important;
    transform: translateY(-1px) !important;
}

body.page-home .hero-cta-group .btn-ultra-outline {
    background: transparent !important;
    border-color: var(--home-v4-blue) !important;
    color: var(--home-v4-blue-dark) !important;
}

body.page-home .hero-cta-group .btn-ultra-outline:hover {
    background: var(--home-v4-blue) !important;
    border-color: var(--home-v4-blue) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

body.page-home .hero-image {
    position: absolute !important;
    right: 0.6rem !important;
    bottom: 0 !important;
    width: min(40%, 510px) !important;
}

body.page-home .hero-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: drop-shadow(0 18px 36px rgba(9, 41, 76, 0.24)) !important;
}

/* Header */
body.page-home .main-header {
    border-bottom: 1px solid rgba(13, 60, 113, 0.15) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 6px 20px rgba(10, 41, 73, 0.08) !important;
}

body.page-home .nav-link {
    color: #173f6a !important;
    font-weight: 700 !important;
}

body.page-home .nav-link:hover,
body.page-home .nav-link.active {
    color: #0d3c71 !important;
}

/* Stats */
body.page-home .home-v4-stats {
    padding: 1.36rem 0 !important;
    background: linear-gradient(180deg, #f6f8fb 0%, #f1f4f8 100%) !important;
}

body.page-home .home-v4-stats .stats-header {
    margin-bottom: 1rem !important;
}

body.page-home .home-v4-stats .stats-header h2 {
    color: #1a1f26 !important;
    font-size: clamp(1.75rem, 2.8vw, 2.4rem) !important;
}

body.page-home .home-v4-stats .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
}

body.page-home .home-v4-stats .stat-box {
    padding: 0.98rem 0.68rem !important;
    border-radius: 14px !important;
    border: 1px solid rgba(13, 60, 113, 0.14) !important;
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: 0 8px 18px rgba(8, 33, 65, 0.08) !important;
}

body.page-home .home-v4-stats .stat-number {
    color: #275e9c !important;
    font-size: clamp(1.65rem, 3vw, 2.2rem) !important;
    min-height: 0 !important;
}

body.page-home .home-v4-stats .stat-label {
    color: #334354 !important;
    letter-spacing: 0.07em !important;
    font-size: 0.72rem !important;
}

body.page-home .home-v4-stats .stat-description {
    color: #56677b !important;
    font-size: 0.82rem !important;
}

/* Logos */
body.page-home .home-v4-logos {
    padding: 1.05rem 0 !important;
    background: linear-gradient(180deg, #fbfbfc 0%, #f5f6f8 100%) !important;
    border-bottom: 1px solid var(--home-v4-line) !important;
}

body.page-home .home-v4-logos .home-v4-logos-track {
    gap: 0.65rem !important;
    animation-duration: 24s !important;
}

body.page-home .home-v4-logos .logo-item {
    min-width: 176px !important;
    height: 72px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(39, 94, 156, 0.24) !important;
    background: #bbc8d338 !important;
}

body.page-home .home-v4-logos .logo-item img {
    opacity: 0.76 !important;
    filter: grayscale(100%) saturate(90%) !important;
}

body.page-home .home-v4-logos .logo-item:hover img {
    opacity: 1 !important;
    filter: grayscale(0%) saturate(104%) !important;
}

/* Services */
body.page-home .home-v4-services {
    padding: clamp(3.2rem, 6vw, 5rem) 0 !important;
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%) !important;
}

body.page-home .home-v4-section-header {
    text-align: center !important;
    max-width: 840px !important;
    margin: 0 auto clamp(1.7rem, 3vw, 2.5rem) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

body.page-home .home-v4-section-header .section-label {
    margin-bottom: 0.75rem !important;
}

body.page-home .home-v4-services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

body.page-home .home-v4-services .service-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 18px !important;
    border: 1px solid var(--home-v4-line) !important;
    background: #ffffff !important;
    box-shadow: var(--home-v4-shadow-sm) !important;
    overflow: hidden !important;
}

body.page-home .home-v4-services .service-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: var(--home-v4-blue-light) !important;
}

body.page-home .home-v4-services .service-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--home-v4-shadow-md) !important;
    border-color: rgba(47, 119, 200, 0.38) !important;
}

body.page-home .home-v4-services .service-card .card-icon {
    width: 58px !important;
    height: 58px !important;
    border-radius: 12px !important;
    background: var(--home-v4-blue) !important;
    color: #ffffff !important;
    margin-bottom: 0.95rem !important;
}

body.page-home .home-v4-services .service-card:nth-child(3n + 2) .card-icon {
    background: var(--home-v4-gold) !important;
    color: var(--home-v4-blue-dark) !important;
}

body.page-home .home-v4-services .service-card:nth-child(3n + 3) .card-icon {
    background: var(--home-v4-blue-light) !important;
}

body.page-home .home-v4-services .card-title {
    color: var(--home-v4-text) !important;
}

body.page-home .home-v4-services .card-description {
    color: var(--home-v4-text-soft) !important;
}

body.page-home .home-v4-services .card-features li {
    color: var(--home-v4-text-muted) !important;
}

body.page-home .home-v4-services .card-features li::before {
    color: var(--home-v4-blue-light) !important;
}

body.page-home .home-v4-services .card-link {
    margin-top: auto !important;
    color: #1c4c80 !important;
    font-weight: 800 !important;
}

/* Security */
body.page-home .home-v4-security {
    padding: clamp(3rem, 6vw, 4.8rem) 0 !important;
    background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%) !important;
}

body.page-home .home-v4-security-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) !important;
    align-items: center !important;
    gap: 1.2rem !important;
}

body.page-home .home-v4-security .section-title,
body.page-home .home-v4-security .security-focus-title,
body.page-home .home-v4-security .security-lead,
body.page-home .home-v4-security .highlight-content h3,
body.page-home .home-v4-security .highlight-content p {
    color: #161b22 !important;
}

body.page-home .home-v4-security .highlight-box {
    border: 1px solid rgba(13, 60, 113, 0.16) !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 0.78rem !important;
    box-shadow: 0 8px 20px rgba(8, 33, 65, 0.08) !important;
}

body.page-home .home-v4-security .highlight-icon {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    border-radius: 12px !important;
    background: var(--home-v4-gold) !important;
    color: var(--home-v4-blue-dark) !important;
}

body.page-home .home-v4-security .btn-primary {
    background: var(--home-v4-blue) !important;
    border-color: var(--home-v4-blue-dark) !important;
    color: #ffffff !important;
}

body.page-home .home-v4-security .btn-primary:hover {
    background: var(--home-v4-blue-dark) !important;
    border-color: var(--home-v4-blue-dark) !important;
}

/* CTA */
body.page-home .home-v4-cta {
    padding: clamp(3.5rem, 7vw, 5.8rem) 0 !important;
    background:
        radial-gradient(circle at 16% 40%, rgba(39, 94, 156, 0.1) 0%, transparent 44%),
        radial-gradient(circle at 82% 20%, rgba(227, 196, 57, 0.18) 0%, transparent 48%),
        linear-gradient(132deg, #f7f8fa 0%, #f1f4f8 52%, #ebeff4 100%) !important;
}

body.page-home .home-v4-cta::before {
    background:
        radial-gradient(circle at 16% 40%, rgba(39, 94, 156, 0.1) 0%, transparent 44%),
        radial-gradient(circle at 82% 20%, rgba(227, 196, 57, 0.14) 0%, transparent 48%) !important;
    opacity: 1 !important;
}

body.page-home .home-v4-cta::after {
    background: linear-gradient(90deg, transparent 0%, rgba(39, 94, 156, 0.38) 50%, transparent 100%) !important;
}

body.page-home .home-v4-cta .cta-badge {
    background: rgba(39, 94, 156, 0.1) !important;
    border: 1px solid rgba(39, 94, 156, 0.3) !important;
    color: #275e9c !important;
}

body.page-home .home-v4-cta .cta-title-premium {
    color: var(--home-v4-text) !important;
}

body.page-home .home-v4-cta .cta-subtitle-premium {
    color: var(--home-v4-text-soft) !important;
}

body.page-home .home-v4-cta .btn-cta-primary {
    background: var(--home-v4-gold) !important;
    border-color: var(--home-v4-gold-dark) !important;
    color: #143a63 !important;
    box-shadow: 0 12px 22px rgba(227, 196, 57, 0.28) !important;
}

body.page-home .home-v4-cta .btn-cta-primary:hover {
    background: #d6b734 !important;
    border-color: #c6a82f !important;
}

/* Blog */
body.page-home .home-v4-blog {
    padding: clamp(3rem, 6vw, 4.8rem) 0 !important;
    background: linear-gradient(180deg, #f9f9fa 0%, #ffffff 100%) !important;
}

body.page-home .home-v4-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

body.page-home .home-v4-blog-card {
    border-radius: 18px !important;
    border: 1px solid var(--home-v4-line) !important;
    background: #ffffff !important;
    box-shadow: var(--home-v4-shadow-sm) !important;
    display: flex !important;
    flex-direction: column !important;
}

body.page-home .home-v4-blog-card .blog-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

body.page-home .home-v4-blog-card .blog-card-title a {
    color: var(--home-v4-text) !important;
}

body.page-home .home-v4-blog-card .blog-card-excerpt {
    color: var(--home-v4-text-soft) !important;
}

body.page-home .home-v4-blog-card .card-link {
    margin-top: auto !important;
    color: #1c4c80 !important;
    font-weight: 800 !important;
}

/* FAQ */
body.page-home .home-v4-faq {
    padding: clamp(3rem, 6vw, 4.6rem) 0 !important;
    background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%) !important;
}

body.page-home .home-v4-faq .section-label {
    border: 1px solid rgba(227, 196, 57, 0.45) !important;
    background: rgba(227, 196, 57, 0.15) !important;
    color: #a9891d !important;
}

body.page-home .home-v4-faq-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

body.page-home .home-v4-faq-card {
    border-radius: 18px !important;
    border: 1px solid var(--home-v4-line) !important;
    background: #ffffff !important;
    box-shadow: var(--home-v4-shadow-sm) !important;
    padding: 1.05rem !important;
}

body.page-home .home-v4-faq-card:nth-child(3n + 1) {
    border-left: 3px solid var(--home-v4-blue) !important;
}

body.page-home .home-v4-faq-card:nth-child(3n + 2) {
    border-left: 3px solid var(--home-v4-gold) !important;
}

body.page-home .home-v4-faq-card:nth-child(3n + 3) {
    border-left: 3px solid var(--home-v4-blue-light) !important;
}

body.page-home .home-v4-faq .faq-icon {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    background: rgba(39, 94, 156, 0.16) !important;
    color: var(--home-v4-blue) !important;
}

body.page-home .home-v4-faq .faq-question {
    color: var(--home-v4-text) !important;
}

body.page-home .home-v4-faq .faq-answer p {
    color: var(--home-v4-text-soft) !important;
}

/* Made in Sweden */
body.page-home .home-v4-made {
    padding: clamp(2.8rem, 5vw, 4.2rem) 0 !important;
    background: linear-gradient(180deg, #f4f6f9 0%, #eceff4 100%) !important;
    background-image: none !important;
}

body.page-home .home-v4-made-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) !important;
    align-items: center !important;
    gap: 1.2rem !important;
}

body.page-home .home-v4-made .section-title-modern {
    text-align: left !important;
}

body.page-home .home-v4-made .made-in-sweden-text {
    color: var(--home-v4-text-soft) !important;
}

body.page-home .home-v4-made .made-in-sweden-logo img {
    width: min(100%, 265px) !important;
    filter: drop-shadow(0 10px 20px rgba(8, 36, 68, 0.16)) !important;
}

/* Dark mode */
html[data-theme="dark"] body.page-home .main-header {
    background: rgba(18, 22, 28, 0.92) !important;
    border-bottom-color: rgba(188, 201, 216, 0.24) !important;
    box-shadow: 0 8px 22px rgba(2, 8, 16, 0.36) !important;
}

html[data-theme="dark"] body.page-home .nav-link {
    color: #e8edf4 !important;
}

html[data-theme="dark"] body.page-home .nav-link:hover,
html[data-theme="dark"] body.page-home .nav-link.active {
    color: #ffffff !important;
}

html[data-theme="dark"] body.page-home .hero-mesh {
    background:
        radial-gradient(circle at 18% 20%, rgba(88, 122, 167, 0.26) 0%, rgba(88, 122, 167, 0) 44%),
        radial-gradient(circle at 84% 78%, rgba(227, 196, 57, 0.16) 0%, rgba(227, 196, 57, 0) 42%),
        linear-gradient(135deg, #131821 0%, #1a2532 50%, #1b222d 100%) !important;
    border-bottom-color: rgba(188, 201, 216, 0.2) !important;
}

html[data-theme="dark"] body.page-home .hero-title-ultra {
    color: #ecf4ff !important;
}

html[data-theme="dark"] body.page-home .hero-subtitle-ultra {
    color: #c7d0db !important;
}

html[data-theme="dark"] body.page-home .hero-cta-group .btn-ultra-outline {
    background: rgba(13, 18, 24, 0.58) !important;
    border-color: rgba(198, 208, 221, 0.46) !important;
    color: #e8edf4 !important;
}

html[data-theme="dark"] body.page-home .hero-cta-group .btn-ultra-outline:hover {
    background: #f0f3f7 !important;
    border-color: #f0f3f7 !important;
    color: #1d2733 !important;
}

html[data-theme="dark"] body.page-home .home-v4-stats {
    background: linear-gradient(180deg, #141a22 0%, #1a2330 100%) !important;
    border-top-color: rgba(219, 227, 236, 0.16) !important;
}

html[data-theme="dark"] body.page-home .home-v4-stats .stats-header h2 {
    color: #edf2f8 !important;
}

html[data-theme="dark"] body.page-home .home-v4-stats .stat-box {
    border: 1px solid rgba(201, 213, 227, 0.22) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 22px rgba(3, 8, 14, 0.34) !important;
}

html[data-theme="dark"] body.page-home .home-v4-stats .stat-number {
    color: #dbe5f0 !important;
}

html[data-theme="dark"] body.page-home .home-v4-stats .stat-label {
    color: #d2dbe6 !important;
}

html[data-theme="dark"] body.page-home .home-v4-stats .stat-description {
    color: #b7c2cf !important;
}

html[data-theme="dark"] body.page-home :is(
    .home-v4-logos,
    .home-v4-services,
    .home-v4-blog,
    .home-v4-faq,
    .home-v4-made
) {
    background: linear-gradient(180deg, #11161d 0%, #181f29 100%) !important;
    border-top-color: rgba(219, 227, 236, 0.16) !important;
}

html[data-theme="dark"] body.page-home .home-v4-logos .logo-item {
    background: rgba(25, 33, 43, 0.86) !important;
    border-color: rgba(194, 205, 218, 0.28) !important;
}

html[data-theme="dark"] body.page-home .home-v4-logos .logo-item img {
    filter: grayscale(100%) brightness(1.08) saturate(90%) !important;
}

html[data-theme="dark"] body.page-home .home-v4-security {
    background: linear-gradient(135deg, #171e28 0%, #202a38 52%, #273649 100%) !important;
}

html[data-theme="dark"] body.page-home .home-v4-security .section-title,
html[data-theme="dark"] body.page-home .home-v4-security .security-focus-title,
html[data-theme="dark"] body.page-home .home-v4-security .security-lead,
html[data-theme="dark"] body.page-home .home-v4-security .highlight-content h3,
html[data-theme="dark"] body.page-home .home-v4-security .highlight-content p {
    color: #ffffff !important;
}

html[data-theme="dark"] body.page-home .home-v4-security .highlight-box {
    border-color: rgba(230, 236, 244, 0.24) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.page-home .home-v4-security .btn-primary {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #173f6a !important;
}

html[data-theme="dark"] body.page-home .home-v4-security .btn-primary:hover {
    background: #ecf4ff !important;
    border-color: #ecf4ff !important;
}

html[data-theme="dark"] body.page-home .home-v4-cta {
    background: linear-gradient(136deg, #0f1319 0%, #19212d 48%, #121922 100%) !important;
}

html[data-theme="dark"] body.page-home .home-v4-cta::before {
    background:
        radial-gradient(circle at 16% 40%, rgba(93, 110, 133, 0.2) 0%, transparent 44%),
        radial-gradient(circle at 82% 20%, rgba(227, 196, 57, 0.14) 0%, transparent 48%) !important;
}

html[data-theme="dark"] body.page-home .home-v4-cta::after {
    background: linear-gradient(90deg, transparent 0%, rgba(201, 213, 228, 0.2) 50%, transparent 100%) !important;
}

html[data-theme="dark"] body.page-home .home-v4-cta .cta-badge {
    background: rgba(227, 196, 57, 0.16) !important;
    border-color: rgba(227, 196, 57, 0.42) !important;
    color: #f2da72 !important;
}

html[data-theme="dark"] body.page-home .home-v4-cta .cta-title-premium {
    color: #f2f7ff !important;
}

html[data-theme="dark"] body.page-home .home-v4-cta .cta-subtitle-premium {
    color: rgba(229, 236, 245, 0.88) !important;
}

html[data-theme="dark"] body.page-home .home-v4-cta .btn-cta-primary {
    background: var(--home-v4-gold) !important;
    border-color: var(--home-v4-gold-dark) !important;
    color: #143a63 !important;
}

html[data-theme="dark"] body.page-home :is(
    .home-v4-services .service-card,
    .home-v4-blog-card,
    .home-v4-faq-card
) {
    background: linear-gradient(170deg, #1a2230 0%, #243243 100%) !important;
    border-color: rgba(188, 201, 218, 0.26) !important;
    box-shadow: 0 12px 26px rgba(4, 11, 23, 0.34) !important;
}

html[data-theme="dark"] body.page-home :is(
    .home-v4-services .card-title,
    .home-v4-blog-card .blog-card-title a,
    .home-v4-faq .faq-question,
    .home-v4-made .section-title-modern
) {
    color: #eef2f7 !important;
}

html[data-theme="dark"] body.page-home :is(
    .home-v4-services .card-description,
    .home-v4-services .card-features li,
    .home-v4-blog-card .blog-card-excerpt,
    .home-v4-faq .faq-answer p,
    .home-v4-made .made-in-sweden-text
) {
    color: rgba(214, 223, 234, 0.84) !important;
}

html[data-theme="dark"] body.page-home :is(
    .home-v4-services .card-link,
    .home-v4-blog-card .card-link
) {
    color: #d7e5f5 !important;
}

html[data-theme="dark"] body.page-home .home-v4-faq .faq-icon {
    background: rgba(121, 140, 168, 0.26) !important;
    color: #e1e8f1 !important;
}

/* Responsive */
@media (max-width: 1100px) {
    body.page-home .hero-mesh {
        padding: clamp(3.2rem, 8vw, 4.6rem) 0 0 !important;
    }

    body.page-home .hero-grid {
        min-height: auto !important;
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 1.2rem !important;
        padding-bottom: 2rem !important;
    }

    body.page-home .hero-content-ultra {
        margin: 0 auto !important;
        text-align: center !important;
        padding: 1.8rem 0 0.8rem !important;
    }

    body.page-home .hero-subtitle-ultra {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.page-home .hero-cta-group {
        justify-content: center !important;
    }

    body.page-home .hero-image {
        position: relative !important;
        width: min(100%, 420px) !important;
        right: auto !important;
        margin: 0 auto !important;
    }

    body.page-home .home-v4-stats .stats-grid,
    body.page-home .home-v4-services-grid,
    body.page-home .home-v4-blog-grid,
    body.page-home .home-v4-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.page-home .home-v4-security-grid,
    body.page-home .home-v4-made-grid {
        grid-template-columns: 1fr !important;
    }

    body.page-home .home-v4-security .section-title,
    body.page-home .home-v4-made .section-title-modern {
        text-align: center !important;
    }
}

@media (max-width: 700px) {
    body.page-home .hero-mesh {
        padding: 2.8rem 0 0 !important;
    }

    body.page-home .hero-title-ultra {
        font-size: clamp(2.2rem, 10vw, 3.4rem) !important;
        line-height: 0.95 !important;
    }

    body.page-home .hero-subtitle-ultra {
        font-size: 1rem !important;
        line-height: 1.55 !important;
    }

    body.page-home .hero-cta-group {
        flex-direction: column !important;
        align-items: center !important;
    }

    body.page-home .btn-ultra {
        width: min(100%, 320px) !important;
    }

    body.page-home :is(
        .home-v4-services,
        .home-v4-security,
        .home-v4-cta,
        .home-v4-blog,
        .home-v4-faq,
        .home-v4-made
    ) {
        padding: 2.6rem 0 !important;
    }

    body.page-home .home-v4-stats .stats-grid,
    body.page-home .home-v4-services-grid,
    body.page-home .home-v4-blog-grid,
    body.page-home .home-v4-faq-grid {
        grid-template-columns: 1fr !important;
    }

    body.page-home .home-v4-logos .logo-item {
        min-width: 152px !important;
        height: 62px !important;
    }
}

/* Hide shield animation temporarily */
.shield-animation {
    display: none !important;
}

/* ===========================================
   Featured Customer Cases Section
   =========================================== */
body.page-home .home-v4-featured-cases {
    padding: clamp(3rem, 6vw, 4.5rem) 0 !important;
    background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%) !important;
}

body.page-home .featured-cases-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
    margin-bottom: 2rem !important;
}

body.page-home .featured-case-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 18px !important;
    border: 1px solid var(--home-v4-line) !important;
    background: #ffffff !important;
    box-shadow: var(--home-v4-shadow-sm) !important;
    overflow: hidden !important;
    text-decoration: none !important;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease !important;
}

body.page-home .featured-case-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, var(--home-v4-blue) 0%, var(--home-v4-gold) 100%) !important;
}

body.page-home .featured-case-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--home-v4-shadow-md) !important;
    border-color: rgba(47, 119, 200, 0.38) !important;
}

body.page-home .featured-case-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
    background: linear-gradient(135deg, rgba(39, 94, 156, 0.06) 0%, rgba(227, 196, 57, 0.06) 100%) !important;
    min-height: 120px !important;
}

body.page-home .featured-case-image img {
    max-width: 180px !important;
    max-height: 80px !important;
    object-fit: contain !important;
}

body.page-home .featured-case-content {
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

body.page-home .featured-case-industry {
    display: inline-block !important;
    padding: 0.3rem 0.75rem !important;
    border-radius: 20px !important;
    background: rgba(39, 94, 156, 0.1) !important;
    color: var(--home-v4-blue) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.75rem !important;
    width: fit-content !important;
}

body.page-home .featured-case-title {
    color: var(--home-v4-text) !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin: 0 0 0.5rem !important;
}

body.page-home .featured-case-desc {
    color: var(--home-v4-text-soft) !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin: 0 0 1rem !important;
    flex: 1 !important;
}

body.page-home .featured-case-link {
    color: var(--home-v4-blue) !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    transition: color 150ms ease !important;
}

body.page-home .featured-case-card:hover .featured-case-link {
    color: var(--home-v4-blue-dark) !important;
}

body.page-home .featured-cases-cta {
    text-align: center !important;
    padding-top: 0.5rem !important;
}

/* ===========================================
   Customer Industries Section
   =========================================== */
body.page-home .home-v4-industries {
    padding: clamp(3rem, 6vw, 4.5rem) 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%) !important;
    border-top: 1px solid rgba(13, 60, 113, 0.14) !important;
}

body.page-home .industries-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

body.page-home .industry-card {
    position: relative !important;
    padding: 1.5rem !important;
    border-radius: 16px !important;
    border: 1px solid var(--home-v4-line) !important;
    background: #ffffff !important;
    box-shadow: var(--home-v4-shadow-sm) !important;
    text-align: center !important;
    transition: transform 180ms ease, box-shadow 180ms ease !important;
}

body.page-home .industry-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--home-v4-shadow-md) !important;
}

body.page-home .industry-icon {
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 1rem !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--home-v4-blue) 0%, var(--home-v4-blue-light) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.page-home .industry-icon svg {
    width: 28px !important;
    height: 28px !important;
    stroke: #ffffff !important;
}

body.page-home .industry-card:nth-child(even) .industry-icon {
    background: linear-gradient(135deg, var(--home-v4-gold) 0%, var(--home-v4-gold-dark) 100%) !important;
}

body.page-home .industry-card:nth-child(even) .industry-icon svg {
    stroke: var(--home-v4-blue-dark) !important;
}

body.page-home .industry-card h3 {
    color: var(--home-v4-text) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.5rem !important;
}

body.page-home .industry-card p {
    color: var(--home-v4-text-muted) !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* ===========================================
   WF Booking Section
   =========================================== */
body.page-home .home-v4-booking {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 !important;
    background: linear-gradient(135deg, #0d3c71 0%, #275e9c 50%, #1a4a7d 100%) !important;
    border-top: none !important;
    position: relative !important;
    overflow: hidden !important;
}

body.page-home .home-v4-booking::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background:
        radial-gradient(circle at 10% 20%, rgba(227, 196, 57, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%) !important;
    pointer-events: none !important;
}

body.page-home .wf-booking-grid {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) !important;
    gap: 2rem !important;
    align-items: center !important;
}

body.page-home .wf-booking-content {
    color: #ffffff !important;
}

body.page-home .wf-booking-label {
    display: inline-block !important;
    padding: 0.4rem 1rem !important;
    border-radius: 25px !important;
    background: var(--home-v4-gold) !important;
    color: var(--home-v4-blue-dark) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 1rem !important;
}

body.page-home .wf-booking-title {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 1rem !important;
    line-height: 1.1 !important;
}

body.page-home .wf-booking-subtitle {
    display: block !important;
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-top: 0.5rem !important;
}

body.page-home .wf-booking-desc {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0 1.5rem !important;
}

body.page-home .wf-booking-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem !important;
}

body.page-home .wf-booking-features li {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.5rem 0 !important;
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

body.page-home .wf-booking-features li svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    stroke: var(--home-v4-gold) !important;
}

body.page-home .wf-booking-cta {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

body.page-home .wf-booking-cta .btn-primary {
    background: var(--home-v4-gold) !important;
    border-color: var(--home-v4-gold-dark) !important;
    color: var(--home-v4-blue-dark) !important;
    font-weight: 700 !important;
}

body.page-home .wf-booking-cta .btn-primary:hover {
    background: #d6b734 !important;
    transform: translateY(-2px) !important;
}

body.page-home .wf-booking-cta .btn-outline {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
}

body.page-home .wf-booking-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
}

body.page-home .wf-booking-showcase {
    position: relative !important;
}

body.page-home .wf-booking-case {
    position: relative !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    overflow: hidden !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

body.page-home .wf-booking-case-label {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--home-v4-blue) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    z-index: 2 !important;
}

body.page-home .wf-booking-case-image {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    display: block !important;
}

body.page-home .wf-booking-case-content {
    padding: 1.25rem !important;
}

body.page-home .wf-booking-case-content h3 {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.5rem !important;
}

body.page-home .wf-booking-case-content p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin: 0 0 1rem !important;
}

body.page-home .wf-booking-case-services {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
}

body.page-home .wf-booking-case-services span {
    padding: 0.3rem 0.7rem !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

body.page-home .wf-booking-case-link {
    color: var(--home-v4-gold) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: color 150ms ease !important;
}

body.page-home .wf-booking-case-link:hover {
    color: #f5e066 !important;
}

/* ===========================================
   Dark Mode for New Sections
   =========================================== */
html[data-theme="dark"] body.page-home .home-v4-featured-cases {
    background: linear-gradient(180deg, #11161d 0%, #181f29 100%) !important;
}

html[data-theme="dark"] body.page-home .featured-case-card {
    background: linear-gradient(170deg, #1a2230 0%, #243243 100%) !important;
    border-color: rgba(188, 201, 218, 0.26) !important;
    box-shadow: 0 12px 26px rgba(4, 11, 23, 0.34) !important;
}

html[data-theme="dark"] body.page-home .featured-case-image {
    background: linear-gradient(135deg, rgba(39, 94, 156, 0.15) 0%, rgba(227, 196, 57, 0.1) 100%) !important;
}

html[data-theme="dark"] body.page-home .featured-case-image img {
    filter: brightness(1.1) !important;
}

html[data-theme="dark"] body.page-home .featured-case-industry {
    background: rgba(88, 122, 167, 0.2) !important;
    color: #9cc5f5 !important;
}

html[data-theme="dark"] body.page-home .featured-case-title {
    color: #eef2f7 !important;
}

html[data-theme="dark"] body.page-home .featured-case-desc {
    color: rgba(214, 223, 234, 0.84) !important;
}

html[data-theme="dark"] body.page-home .featured-case-link {
    color: #9cc5f5 !important;
}

html[data-theme="dark"] body.page-home .home-v4-industries {
    background: linear-gradient(180deg, #181f29 0%, #11161d 100%) !important;
}

html[data-theme="dark"] body.page-home .industry-card {
    background: linear-gradient(170deg, #1a2230 0%, #243243 100%) !important;
    border-color: rgba(188, 201, 218, 0.26) !important;
    box-shadow: 0 12px 26px rgba(4, 11, 23, 0.34) !important;
}

html[data-theme="dark"] body.page-home .industry-card h3 {
    color: #eef2f7 !important;
}

html[data-theme="dark"] body.page-home .industry-card p {
    color: rgba(214, 223, 234, 0.8) !important;
}

html[data-theme="dark"] body.page-home .home-v4-booking {
    background: linear-gradient(135deg, #0a2a4d 0%, #1a4a7d 50%, #0d3c71 100%) !important;
}

/* ===========================================
   Responsive for New Sections
   =========================================== */
@media (max-width: 1100px) {
    body.page-home .featured-cases-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.page-home .industries-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.page-home .wf-booking-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    body.page-home .wf-booking-content {
        text-align: center !important;
    }

    body.page-home .wf-booking-cta {
        justify-content: center !important;
    }

    body.page-home .wf-booking-features li {
        justify-content: center !important;
    }
}

@media (max-width: 700px) {
    body.page-home .featured-cases-grid,
    body.page-home .industries-grid {
        grid-template-columns: 1fr !important;
    }

    body.page-home .wf-booking-cta {
        flex-direction: column !important;
        align-items: center !important;
    }

    body.page-home .wf-booking-cta .btn {
        width: min(100%, 280px) !important;
    }
}

/* Explicit light theme rules for homepage */
html[data-theme="light"] body.page-home .logo-image {
    filter: brightness(0) saturate(100%) !important;
}

html[data-theme="light"] body.page-home .hero-title-ultra,
html[data-theme="light"] body.page-home .hero-subtitle-ultra {
    color: var(--premium-black, #0A0A0A) !important;
}

html[data-theme="light"] body.page-home .highlight-gold {
    background: linear-gradient(135deg, #0066CC, #0080FF) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
