/* 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;
}

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;
}

/* 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;
}
