/* =============================================
   White Neuron — Refinement layer
   Loaded after WhiteNeuron.css. Unifies tokens, typography, buttons,
   navigation, focus states and motion so every page shares one
   calm, consistent visual language.
   ============================================= */

:root {
    --wn-bg: #0a0a0a;
    --wn-bg-elev: #0d121c;
    --wn-surface: rgba(17, 24, 39, 0.72);
    --wn-surface-solid: #111827;
    --wn-surface-hover: rgba(23, 33, 54, 0.85);
    --wn-border: rgba(148, 163, 184, 0.14);
    --wn-border-strong: rgba(96, 165, 250, 0.38);
    --wn-text: #e8eef8;
    --wn-text-soft: rgba(226, 232, 240, 0.82);
    --wn-muted: #94a3b8;
    --wn-accent: #60a5fa;
    --wn-accent-strong: #3b82f6;
    --wn-accent-soft: rgba(96, 165, 250, 0.12);
    --wn-radius-sm: 10px;
    --wn-radius: 14px;
    --wn-radius-lg: 20px;
    --wn-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --wn-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 22px 48px -18px rgba(37, 99, 235, 0.35);
    --wn-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --wn-nav-h: 72px;
    --wn-gutter: clamp(16px, 4vw, 48px);
}

/* ===== Base typography ===== */
html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--wn-nav-h) + 12px);
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: var(--wn-text);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

p, li, blockquote {
    text-wrap: pretty;
}

img, video, iframe {
    max-width: 100%;
}

::selection {
    background: rgba(59, 130, 246, 0.35);
    color: #fff;
}

/* Visible, consistent keyboard focus */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--wn-accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Thin, theme-matched scrollbar */
html {
    scrollbar-color: rgba(96, 165, 250, 0.35) #0b0f17;
    scrollbar-width: thin;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0f17; }
::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.28);
    border-radius: 10px;
    border: 2px solid #0b0f17;
}
::-webkit-scrollbar-thumb:hover { background: rgba(96, 165, 250, 0.5); }

/* ===== Navigation ===== */
.navbar {
    height: var(--wn-nav-h);
    padding: 0 var(--wn-gutter);
    transition: background-color 0.35s var(--wn-ease), border-color 0.35s var(--wn-ease), box-shadow 0.35s var(--wn-ease);
}

.navbar.scrolled {
    background: rgba(9, 12, 20, 0.72);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--wn-border);
    box-shadow: 0 8px 32px -16px rgba(0, 0, 0, 0.8);
}

.logo2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo2 a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: inherit;
    text-decoration: none;
}

.logo-img {
    width: 30px;
    height: 30px;
}

.navbar:not(.scrolled) .logo2,
.navbar:not(.scrolled) .nav-links a {
    text-shadow: none;
}

.nav-links {
    gap: clamp(1.25rem, 2.4vw, 2.25rem);
}

.nav-links a {
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    transition: color 0.25s var(--wn-ease);
}

.nav-links a::before {
    bottom: -2px;
    height: 1.5px;
    background: var(--wn-accent);
    transition: width 0.3s var(--wn-ease);
}

.nav-links a:hover {
    color: #fff;
    transform: none;
}

.nav-links a.active {
    color: #fff;
    font-weight: 600;
}

.nav-links a.active::before {
    background: var(--wn-accent);
}

.lang-toggle {
    min-width: 40px;
    height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--wn-border-strong);
    background: var(--wn-accent-soft);
    color: var(--wn-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 0.25s var(--wn-ease), color 0.25s var(--wn-ease);
}

.lang-toggle:hover {
    background: rgba(96, 165, 250, 0.22);
    color: #fff;
}

.connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 40px;
    padding: 0 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--wn-border-strong);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.08));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    white-space: nowrap;
}

.connect-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 10px 28px -10px rgba(59, 130, 246, 0.55);
}

.hamburger {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.hamburger span {
    width: 22px;
    height: 2px !important;
    margin: 2.5px 0;
    background: #e2e8f0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
    background: rgba(8, 11, 18, 0.97);
}

.mobile-menu .nav-links {
    gap: 1.75rem;
}

.mobile-menu .nav-links a {
    font-size: 1.25rem;
    letter-spacing: 0.06em;
}

.mobile-menu .nav-links a.active {
    color: var(--wn-accent);
    text-shadow: none;
}

.mobile-menu .connect-btn {
    height: 48px;
    padding: 0 2rem;
    font-size: 0.85rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.9rem;
    border-width: 1px;
    border-radius: 12px;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    transition: transform 0.3s var(--wn-ease), box-shadow 0.3s var(--wn-ease), background-color 0.3s var(--wn-ease), border-color 0.3s var(--wn-ease);
}

.btn.primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: 1px solid rgba(147, 197, 253, 0.35);
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.6);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -12px rgba(37, 99, 235, 0.75);
    border-color: rgba(191, 219, 254, 0.5);
}

.btn.secondary {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--wn-border-strong);
    color: #dbeafe;
}

.btn.secondary:hover {
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 14px 36px -14px rgba(59, 130, 246, 0.5);
}

/* ===== Hero ===== */
.hero {
    min-height: 100svh;
    height: auto;
    padding: calc(var(--wn-nav-h) + 2rem) var(--wn-gutter) 4rem;
}

.hero-logo-img {
    width: 96px;
    height: 96px;
}

.hero-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    padding: 0.65rem 1.4rem;
    margin-bottom: 1.75rem;
    max-width: 100%;
}

.hero-title1 {
    font-size: clamp(2.4rem, 6.4vw, 4.75rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== Footer ===== */
.footer a {
    transition: color 0.2s var(--wn-ease);
}

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

/* ===== Long-form content ===== */
.blog-content,
.product-content,
.service-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.blog-content h2, .product-content h2, .service-content h2 {
    margin: 2.2em 0 0.7em;
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    line-height: 1.3;
    color: #fff;
}

.blog-content h3, .product-content h3, .service-content h3 {
    margin: 1.8em 0 0.6em;
    font-size: clamp(1.15rem, 1.8vw, 1.3rem);
    color: #f1f5f9;
}

.blog-content p, .product-content p, .service-content p {
    margin: 0 0 1.1em;
}

.blog-content ul, .blog-content ol,
.product-content ul, .product-content ol,
.service-content ul, .service-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.blog-content li, .product-content li, .service-content li {
    margin: 0.35em 0;
}

.blog-content a, .product-content a, .service-content a {
    color: var(--wn-accent);
    text-underline-offset: 3px;
}

.blog-content blockquote, .product-content blockquote, .service-content blockquote {
    margin: 1.5em 0;
    padding: 0.9em 1.2em;
    border-left: 3px solid var(--wn-accent);
    background: var(--wn-accent-soft);
    border-radius: 0 var(--wn-radius-sm) var(--wn-radius-sm) 0;
}

/* Justified text creates wide "rivers" on narrow screens */
@media (max-width: 768px) {
    [style*="text-align: justify"],
    .blog-content, .product-content, .service-content {
        text-align: left !important;
    }
}

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Small screens ===== */
@media (max-width: 1024px) {
    :root { --wn-nav-h: 64px; }

    #lang-toggle-mobile {
        align-items: center;
        justify-content: center;
        height: 34px !important;
        min-width: 40px;
        padding: 0 10px !important;
        font-size: 0.72rem !important;
    }

    .navbar-actions {
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .hero-subtitle {
        letter-spacing: 0.18em;
        font-size: 0.66rem;
        line-height: 1.6;
    }

    .hero-buttons {
        width: 100%;
        align-items: center;
    }

    .hero-buttons .btn {
        flex: 0 0 auto;
        width: min(100%, 280px);
    }
}

/* =============================================
   Homepage sections
   ============================================= */

/* Shared section label */
.category-label,
.ecosystem-badge,
.section-label,
.w3-features-label {
    font-size: 0.72rem !important;
    font-weight: 600;
    letter-spacing: 0.28em !important;
    color: var(--wn-accent);
}

/* Vision & mission */
#about .hero-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-number {
    opacity: 0.55;
}

/* Featured products */
#products .subtitle1 {
    text-transform: none;
    color: var(--wn-muted);
    max-width: 640px;
}

#products .feature-content {
    text-align: left;
    padding-right: 0;
}

#products .feature-title {
    text-align: left;
}

/* The white "services" + CTA bands become an elevated dark surface,
   so the page flows as one continuous dark canvas */
.w3-platform-section,
.hero-section {
    background:
        radial-gradient(70% 55% at 50% 0%, rgba(59, 130, 246, 0.10), transparent 70%),
        linear-gradient(180deg, #0b1019 0%, var(--wn-bg-elev) 100%);
    border-top: 1px solid var(--wn-border);
}

.w3-platform-section {
    min-height: 0;
    padding: clamp(72px, 9vw, 120px) var(--wn-gutter);
}

.hero-section {
    min-height: 0;
    padding: clamp(64px, 8vw, 104px) 0;
}

.diagonal-transition,
.diagonal-45 {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.35), transparent);
}

.w3-header {
    margin-bottom: clamp(40px, 6vw, 72px);
}

.w3-main-title,
.hero-title2 {
    background: linear-gradient(135deg, #f8fafc 0%, #bfdbfe 55%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.w3-main-title {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    margin-bottom: 1.25rem;
}

.w3-subtitle {
    color: var(--wn-text-soft);
    font-weight: 400;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
}

#services .w3-services-grid {
    gap: 24px;
}

#services .w3-service-card {
    background: var(--wn-surface);
    border: 1px solid var(--wn-border);
    border-radius: var(--wn-radius-lg);
    box-shadow: var(--wn-shadow);
}

#services .w3-service-card:hover {
    transform: translateY(-4px);
    border-color: var(--wn-border-strong);
    box-shadow: var(--wn-shadow-hover);
}

#services .w3-service-media {
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

#services .w3-service-media img {
    transition: transform 0.6s var(--wn-ease);
}

#services .w3-service-card:hover .w3-service-media img {
    transform: scale(1.04);
}

#services .w3-service-title {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #f1f5f9;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    transition: color 0.25s var(--wn-ease);
}

#services .w3-service-card:hover .w3-service-title {
    color: var(--wn-accent);
}

#services .w3-service-description {
    color: var(--wn-text-soft);
}

#services .w3-service-cta .btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--wn-border-strong);
    background: var(--wn-accent-soft);
    box-shadow: none;
}

/* "View all" links share one ghost-pill style */
.w3-view-all-btn {
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--wn-border-strong);
    box-shadow: none;
}

.w3-view-all-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 14px 36px -14px rgba(59, 130, 246, 0.5);
}

/* CTA band + marquees */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.9rem;
    border-radius: 12px;
    border: 1px solid rgba(147, 197, 253, 0.35);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.6);
}

.cta-button:hover {
    box-shadow: 0 18px 40px -12px rgba(37, 99, 235, 0.75);
}

/* Marquees flow with the content: partner logos on top, product shots below */
#contact.hero-section {
    padding: 28px 0 56px;
}

#contact .hero-content {
    margin: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
    padding: 0 var(--wn-gutter);
}

#contact .carousel-container {
    position: relative;
    inset: auto;
    width: 100%;
}

#contact .partners-carousel {
    order: -1;
}

#contact .carousel-container {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

#contact .carousel-container:not(.partners-carousel) .carousel-item img {
    border: 1px solid var(--wn-border);
    box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.9);
}

.partners-carousel {
    background: transparent;
    border-color: var(--wn-border);
    padding: 18px 0;
    margin-top: 12px;
}

#contact .partners-carousel .logo-box {
    width: 88px;
    height: 88px;
    padding: 10px;
    background: rgba(248, 250, 252, 0.94);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px -12px rgba(0, 0, 0, 0.8);
    opacity: 0.85;
    transition: opacity 0.3s var(--wn-ease), transform 0.3s var(--wn-ease);
}

#contact .partners-carousel .logo-box:hover {
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    #contact .partners-carousel .logo-box {
        width: 72px;
        height: 72px;
    }
}

/* Closing call-to-action */
.quantum-heading {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(2.2rem, 6vw, 4.25rem);
    animation: none;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.echo-paragraph {
    color: var(--wn-muted);
}

.catalyst-trigger {
    border-radius: 12px;
    border: 1px solid var(--wn-border-strong);
    background: rgba(15, 23, 42, 0.5);
    color: #dbeafe;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.catalyst-trigger:hover {
    border-color: rgba(96, 165, 250, 0.8);
    color: #fff;
    box-shadow: 0 14px 36px -14px rgba(59, 130, 246, 0.55);
}

/* Footer */
.footer {
    padding: clamp(48px, 6vw, 72px) var(--wn-gutter) 32px;
}

.footer::before {
    background: linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, 0.6) 50%, transparent 100%);
}

.social-links:not(:has(a)) {
    display: none;
}

.footer-bottom {
    color: var(--wn-muted);
    padding-top: 28px;
}

.footer-bottom::before {
    background: linear-gradient(90deg, transparent, var(--wn-accent), transparent);
}

/* =============================================
   Listing pages (products / services / news)
   ============================================= */

/* Page headers share one scale on every listing page */
.section-header .main-title,
.ecosystem-section .section-header .main-title {
    font-size: clamp(2rem, 5.2vw, 3.6rem) !important;
    font-weight: 800;
    letter-spacing: -0.025em !important;
    line-height: 1.1;
}

.section-header .subtitle1 {
    color: var(--wn-muted);
    text-transform: none;
}

/* Filter bar */
.filters-wrap {
    gap: 10px;
}

.filter-control,
.apply-btn,
.clear-btn {
    height: 44px;
    border-radius: 10px !important;
    font-size: 0.9rem;
}

.filter-control {
    border: 1px solid var(--wn-border) !important;
    background: rgba(15, 23, 42, 0.6) !important;
}

.filter-control:hover {
    border-color: rgba(96, 165, 250, 0.35) !important;
}

.filter-control:focus {
    border-color: rgba(96, 165, 250, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    padding: 0 1.25rem !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border: 1px solid rgba(147, 197, 253, 0.35) !important;
    font-weight: 600;
    transition: box-shadow 0.25s var(--wn-ease), transform 0.25s var(--wn-ease);
}

.apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.7);
}

.clear-btn {
    display: inline-flex;
    align-items: center;
    padding: 0 1.1rem !important;
}

/* Cards */
.products-container {
    gap: 20px !important;
}

.products-container > .product-card,
.products-container > .blog-card {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    background: var(--wn-surface) !important;
    border: 1px solid var(--wn-border) !important;
    border-radius: var(--wn-radius-lg) !important;
    box-shadow: var(--wn-shadow) !important;
    cursor: pointer;
    transition: transform 0.35s var(--wn-ease), border-color 0.35s var(--wn-ease), box-shadow 0.35s var(--wn-ease) !important;
}

.products-container > .product-card:hover,
.products-container > .blog-card:hover,
.products-container > .blog-card:focus-visible {
    transform: translateY(-3px) !important;
    border-color: var(--wn-border-strong) !important;
    box-shadow: var(--wn-shadow-hover) !important;
}

.products-container .product-image,
.products-container .blog-image {
    width: 340px !important;
    aspect-ratio: 16 / 10;
    height: auto !important;
    border-radius: 0 !important;
    align-self: stretch;
}

.products-container .product-image img,
.products-container .blog-image img {
    transition: transform 0.6s var(--wn-ease) !important;
}

.products-container > *:hover .product-image img,
.products-container > *:hover .blog-image img {
    transform: scale(1.04);
}

.products-container .product-content,
.products-container .blog-content {
    padding: clamp(20px, 2.4vw, 32px) !important;
    justify-content: center !important;
    text-align: left;
}

.products-container .feature-title {
    color: #f1f5f9 !important;
    text-align: left !important;
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    letter-spacing: -0.01em;
    transition: color 0.25s var(--wn-ease);
}

.products-container > *:hover .feature-title {
    color: var(--wn-accent) !important;
}

.products-container .feature-description {
    color: var(--wn-text-soft);
    text-align: left !important;
}

/* Tags read as metadata, never as buttons */
.wn-tag {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--wn-accent-soft);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s var(--wn-ease), color 0.2s var(--wn-ease);
}

a.wn-tag:hover {
    background: rgba(96, 165, 250, 0.22);
    color: #fff;
}

.wn-tag-muted {
    background: transparent;
    color: var(--wn-muted);
    border-color: var(--wn-border);
}

.wn-card-cta {
    height: 38px;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: 1px solid var(--wn-border-strong) !important;
    color: var(--wn-accent) !important;
    white-space: nowrap;
}

.products-container > *:hover .wn-card-cta {
    background: var(--wn-accent-soft) !important;
    color: #fff !important;
}

.products-container > *:hover .wn-card-cta svg {
    transform: translateX(3px);
}

.wn-card-cta svg {
    transition: transform 0.25s var(--wn-ease);
}

@media (max-width: 768px) {
    .products-container > .product-card,
    .products-container > .blog-card {
        flex-direction: column !important;
    }

    .products-container .product-image,
    .products-container .blog-image {
        width: 100% !important;
        aspect-ratio: 16 / 9;
    }

    .products-container .product-content > div:last-child,
    .products-container .blog-content > div:last-child {
        flex-wrap: wrap;
    }

    .filters-wrap {
        width: 100%;
    }

    .filters-wrap > div {
        flex-wrap: wrap;
    }

    .filters-wrap > *,
    .filters-wrap .filter-control,
    .filters-wrap .filter-select {
        flex: 1 1 100%;
        width: 100% !important;
        min-width: 0 !important;
    }

    .filters-wrap .apply-btn,
    .filters-wrap .clear-btn {
        justify-content: center;
        width: 100%;
    }
}

/* =============================================
   Detail pages (product / service / article)
   ============================================= */

/* Same top offset under the fixed navbar on every inner page */
.ecosystem-section {
    padding-top: calc(var(--wn-nav-h) + clamp(32px, 5vw, 56px));
    padding-left: var(--wn-gutter);
    padding-right: var(--wn-gutter);
}

#blog-detail,
#product-detail,
#service-detail {
    margin-top: 0 !important;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    font-size: 0.85rem;
    color: var(--wn-muted);
}

.breadcrumb a {
    color: var(--wn-muted) !important;
    transition: color 0.2s var(--wn-ease);
}

.breadcrumb a:hover {
    color: var(--wn-accent) !important;
}

.breadcrumb > span:last-child {
    color: var(--wn-text) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60ch;
}

.product-detail-card,
.blog-detail-card,
.product-content-section,
.service-content-section,
.blog-content-section,
.blog-tags-section,
.related-blogs-section,
.product-services-section {
    background: var(--wn-surface) !important;
    border: 1px solid var(--wn-border) !important;
    border-radius: var(--wn-radius-lg) !important;
    box-shadow: var(--wn-shadow) !important;
    opacity: 1 !important;
}

.product-detail-card h1.main-title,
.blog-detail-card h1.main-title {
    font-size: clamp(1.75rem, 4vw, 2.6rem) !important;
    font-weight: 800;
    letter-spacing: -0.025em !important;
    line-height: 1.15;
    color: #f8fafc !important;
}

/* Section headings inside detail pages: centred with their underline */
.product-content-section > .main-title,
.service-content-section > .main-title,
.blog-content-section > .main-title,
.related-blogs-section > .main-title,
.product-services-section > .main-title,
.blog-tags-section > .main-title {
    display: block;
    text-align: center !important;
    font-size: clamp(1.3rem, 2.4vw, 1.75rem) !important;
    letter-spacing: -0.01em !important;
    color: #f1f5f9 !important;
}

.main-title::after {
    animation: none;
}

/* Comfortable reading measure */
.blog-content,
.product-content-section .product-content,
.service-content-section .service-content {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}

.blog-content img,
.product-content img,
.service-content img {
    border-radius: var(--wn-radius);
    border: 1px solid var(--wn-border);
}

.product-image-section img,
.blog-image-section img {
    border-radius: var(--wn-radius);
}

/* Mobile: avoid card-inside-card double padding */
@media (max-width: 768px) {
    .product-detail-card,
    .blog-detail-card {
        padding: 16px !important;
    }

    .product-content-section,
    .service-content-section,
    .blog-content-section,
    .blog-tags-section,
    .related-blogs-section,
    .product-services-section {
        padding: 22px 18px !important;
    }

    .product-image-section,
    .blog-image-section {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
    }

    .blog-meta {
        justify-content: flex-start !important;
    }

    .blog-meta > span {
        width: auto !important;
        flex: 0 0 auto !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    .breadcrumb > span:last-child {
        max-width: 100%;
    }
}

/* =============================================
   About & Contact pages
   ============================================= */
.about-wrap {
    margin-top: 0 !important;
    padding: calc(var(--wn-nav-h) + clamp(32px, 5vw, 56px)) 0 clamp(56px, 7vw, 96px);
}

.about-wrap .section-head {
    margin-bottom: clamp(28px, 4vw, 44px);
}

.about-wrap .section-head h1,
.about-wrap .section-head h2 {
    font-size: clamp(2rem, 5.2vw, 3.6rem) !important;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1rem !important;
    background: linear-gradient(135deg, #f8fafc 0%, #bfdbfe 55%, #60a5fa 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.about-wrap .section-head p {
    color: var(--wn-text-soft) !important;
    font-size: clamp(1rem, 1.3vw, 1.075rem);
    line-height: 1.75;
    max-width: 760px;
}

.about-wrap .card {
    background: var(--wn-surface) !important;
    border: 1px solid var(--wn-border) !important;
    border-radius: var(--wn-radius-lg) !important;
    box-shadow: var(--wn-shadow) !important;
    padding: clamp(20px, 2.6vw, 30px) !important;
}

.about-wrap .card h3 {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: #f1f5f9 !important;
    letter-spacing: -0.01em;
}

.about-wrap .kv li {
    border-bottom: 1px solid var(--wn-border) !important;
    padding: 10px 0 !important;
}

.about-wrap .kv strong {
    color: var(--wn-muted) !important;
    font-weight: 500 !important;
    min-width: 170px;
}

.about-wrap .card,
.about-wrap .card p,
.about-wrap .card li,
.about-wrap .card span {
    color: var(--wn-text-soft) !important;
}

.about-wrap .card strong {
    color: #f1f5f9;
}

.about-wrap .bullets li {
    line-height: 1.7 !important;
}

.about-wrap .bullets li::marker {
    color: var(--wn-accent);
}

@media (max-width: 640px) {
    .about-wrap .kv li {
        flex-direction: column;
        gap: 2px !important;
    }

    .about-wrap .kv strong {
        min-width: 0;
    }
}

/* Contact */
.contact-section {
    min-height: 0 !important;
    margin-top: 0 !important;
    padding: calc(var(--wn-nav-h) + clamp(32px, 5vw, 56px)) 0 clamp(56px, 7vw, 96px) !important;
}

.contact-info h2,
.contact-form-container h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem) !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2 !important;
    margin-bottom: 28px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #bfdbfe 55%, #60a5fa 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    border-radius: 10px !important;
    border: 1px solid var(--wn-border) !important;
    background: rgba(15, 23, 42, 0.6) !important;
    font-size: 0.95rem;
    transition: border-color 0.2s var(--wn-ease), box-shadow 0.2s var(--wn-ease);
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: rgba(96, 165, 250, 0.35) !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(96, 165, 250, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
    outline: none;
}

.contact-form button[type="submit"] {
    border-radius: 12px !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border: 1px solid rgba(147, 197, 253, 0.35) !important;
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.6) !important;
    letter-spacing: 0.08em;
}

.contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -12px rgba(37, 99, 235, 0.75) !important;
}

@media (max-width: 768px) {
    .contact-info .info-item,
    .contact-info [class*="item"] {
        min-height: 0 !important;
    }
}

/* Section divider: quiet wordmark between two hairlines */
.features-text {
    font-size: 0.7rem !important;
    letter-spacing: 0.5em !important;
    color: rgba(226, 232, 240, 0.55) !important;
    animation: none !important;
    text-shadow: none !important;
}

.features-text::before,
.features-text::after {
    content: '';
    width: 18px;
    height: 1px;
    background: rgba(96, 165, 250, 0.5);
    opacity: 1;
}

.features-text::before { left: -34px; }
.features-text::after { right: -34px; }

/* 404 */
.error-section {
    padding-top: calc(var(--wn-nav-h) + 24px);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.error-section .main-title {
    font-size: clamp(4rem, 12vw, 7rem) !important;
    font-weight: 800;
    letter-spacing: -0.04em !important;
}

/* =============================================
   Round 2 polish
   ============================================= */

/* Gradient-clipped headings: room for stacked Vietnamese diacritics */
.hero-title1,
.hero-title,
.main-title,
.w3-main-title,
.hero-title2,
.quantum-heading,
.section-title,
.about-wrap .section-head h1,
.about-wrap .section-head h2,
.contact-info h2,
.contact-form-container h2 {
    line-height: 1.22 !important;
    padding-top: 0.12em;
    padding-bottom: 0.04em;
}

/* Vision & mission cards: number and text on one baseline */
#about .service-item h3 {
    margin-top: 0;
}

#about .service-number {
    line-height: 1.1;
}

@media (max-width: 768px) {
    #about .service-item {
        flex-direction: row !important;
        text-align: left !important;
        gap: 14px !important;
        padding: 1.1rem !important;
    }

    #about .service-number {
        font-size: 1.6rem !important;
        width: auto !important;
        margin: 0 !important;
    }

    #about .about-cta {
        justify-content: center !important;
    }
}

/* Long-form text reads left-aligned everywhere */
.blog-content,
.product-content,
.service-content,
.service-abstract p,
.blog-abstract p,
.product-detail-card .subtitle1,
.about-wrap .bullets,
.about-wrap .card {
    text-align: left !important;
}

/* Service detail: the info column is part of the card, not a card in a card */
#service-detail .service-info-section {
    padding: clamp(8px, 2vw, 24px) !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

#service-detail .service-actions a,
#product-detail .product-actions a,
.blog-actions a {
    white-space: nowrap;
    letter-spacing: 0.04em;
}

@media (max-width: 640px) {
    #service-detail .service-actions a,
    #product-detail .product-actions a,
    .blog-actions a {
        font-size: 0.8rem !important;
        padding: 10px 16px !important;
    }

    .product-detail-card h1.main-title,
    .blog-detail-card h1.main-title,
    #service-detail .service-info-section h1.main-title {
        text-align: center !important;
    }
}

/* Related items (products of a service, services of a product, related posts) */
.related-card,
.product-services-section .service-item {
    background: rgba(15, 23, 42, 0.55) !important;
    border: 1px solid var(--wn-border) !important;
    border-radius: var(--wn-radius) !important;
    transition: transform 0.3s var(--wn-ease), border-color 0.3s var(--wn-ease), box-shadow 0.3s var(--wn-ease) !important;
}

a:hover > .related-card,
a:hover > .product-services-section .service-item,
.product-services-section a:hover > .service-item {
    transform: translateY(-3px);
    border-color: var(--wn-border-strong) !important;
    box-shadow: var(--wn-shadow-hover);
}

.related-card h3,
.product-services-section .service-item h3 {
    color: #f1f5f9 !important;
    text-align: left !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    letter-spacing: -0.01em;
    transition: color 0.25s var(--wn-ease);
}

a:hover > .related-card h3,
.product-services-section a:hover > .service-item h3 {
    color: var(--wn-accent) !important;
}

.related-card > div:last-child,
.product-services-section .service-item > div:last-child {
    text-align: left !important;
}

.related-card > div:last-child > span,
.product-services-section .service-item > div:last-child > span {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: transparent !important;
    border: 1px solid var(--wn-border-strong);
    color: var(--wn-accent) !important;
    font-size: 0.78rem !important;
    font-weight: 600;
}

.related-card > div:last-child > span::after,
.product-services-section .service-item > div:last-child > span::after {
    content: '→';
    transition: transform 0.25s var(--wn-ease);
}

a:hover > .related-card > div:last-child > span::after,
.product-services-section a:hover > .service-item > div:last-child > span::after {
    transform: translateX(3px);
}

/* Closing CTA: blue glow instead of the off-palette purple drift */
.starlight-zone {
    min-height: 0;
    padding: clamp(96px, 12vw, 160px) var(--wn-gutter);
    background:
        radial-gradient(60% 60% at 50% 40%, rgba(59, 130, 246, 0.16), transparent 70%),
        linear-gradient(180deg, var(--wn-bg) 0%, #0b1120 100%);
}

.starlight-zone::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.10) 0%, transparent 50%);
    animation: none;
}

/* Small details */
.footer .copyright {
    text-wrap: balance;
}

.contact-form .form-row {
    gap: 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    text-overflow: ellipsis;
}

.products-container .blog-content .feature-title {
    line-height: 1.35 !important;
}

/* =============================================
   Homepage product showcase (featured + grid)
   ============================================= */
.wn-product-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: clamp(32px, 5vw, 56px);
    position: relative;
    z-index: 2;
}

.wn-pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--wn-surface);
    border: 1px solid var(--wn-border);
    border-radius: var(--wn-radius-lg);
    overflow: hidden;
    box-shadow: var(--wn-shadow);
    transition: transform 0.4s var(--wn-ease), border-color 0.4s var(--wn-ease), box-shadow 0.4s var(--wn-ease);
    isolation: isolate;
}

.wn-pcard:hover,
.wn-pcard:focus-within {
    transform: translateY(-4px);
    border-color: var(--wn-border-strong);
    box-shadow: var(--wn-shadow-hover);
}

.wn-pcard__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0b1220;
}

.wn-pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--wn-ease);
}

.wn-pcard__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(9, 13, 22, 0.55) 100%);
    pointer-events: none;
}

.wn-pcard:hover .wn-pcard__media img {
    transform: scale(1.05);
}

.wn-pcard__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    background: rgba(9, 13, 22, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wn-pcard__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 24px;
    flex: 1;
}

.wn-pcard__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

/* Stretched link: the whole card is clickable without nesting links */
.wn-pcard__link {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.25s var(--wn-ease);
}

.wn-pcard__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.wn-pcard:hover .wn-pcard__link {
    color: var(--wn-accent);
}

.wn-pcard__link:focus-visible {
    outline: none;
}

.wn-pcard__link:focus-visible::after {
    outline: 2px solid var(--wn-accent);
    outline-offset: -2px;
    border-radius: var(--wn-radius-lg);
}

.wn-pcard__desc {
    margin: 0;
    color: var(--wn-text-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wn-pcard__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
}

.wn-pcard__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wn-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.wn-pcard__more svg {
    transition: transform 0.3s var(--wn-ease);
}

.wn-pcard:hover .wn-pcard__more svg {
    transform: translateX(4px);
}

.wn-pcard__secondary {
    position: relative;
    z-index: 1; /* above the stretched link */
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--wn-border);
    color: var(--wn-text-soft);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.25s var(--wn-ease), color 0.25s var(--wn-ease), background-color 0.25s var(--wn-ease);
}

.wn-pcard__secondary:hover {
    border-color: var(--wn-border-strong);
    background: var(--wn-accent-soft);
    color: #fff;
}

/* Featured product: full row, image beside the copy */
.wn-pcard--featured {
    grid-column: 1 / -1;
    flex-direction: row;
}

.wn-pcard--featured .wn-pcard__media {
    flex: 0 0 58%;
    aspect-ratio: auto;
    min-height: 340px;
}

.wn-pcard--featured .wn-pcard__media::after {
    background: linear-gradient(90deg, transparent 60%, rgba(9, 13, 22, 0.6) 100%);
}

.wn-pcard--featured .wn-pcard__body {
    justify-content: center;
    padding: clamp(24px, 3.5vw, 48px);
    gap: 14px;
}

.wn-pcard--featured .wn-pcard__title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    letter-spacing: -0.025em;
}

.wn-pcard--featured .wn-pcard__desc {
    font-size: 1.02rem;
    -webkit-line-clamp: 5;
}

.wn-pcard--featured .wn-pcard__actions {
    justify-content: flex-start;
    gap: 20px;
}

@media (max-width: 1024px) {
    .wn-product-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .wn-product-showcase {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wn-pcard--featured {
        flex-direction: column;
    }

    .wn-pcard--featured .wn-pcard__media {
        flex: none;
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .wn-pcard--featured .wn-pcard__media::after {
        background: linear-gradient(180deg, transparent 55%, rgba(9, 13, 22, 0.55) 100%);
    }

    .wn-pcard__body,
    .wn-pcard--featured .wn-pcard__body {
        padding: 18px 18px 20px;
    }
}

.wn-pcard {
    text-align: left;
}

.wn-pcard--featured .wn-pcard__media {
    min-height: 360px;
}

.wn-pcard--featured .wn-pcard__media img {
    position: absolute;
    inset: 0;
}

.wn-pcard--featured .wn-pcard__actions {
    margin-top: 10px;
}

#products .w3-products-footer {
    margin-top: clamp(32px, 4vw, 48px);
    text-align: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .wn-pcard:nth-child(4):last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .wn-pcard--featured .wn-pcard__media {
        min-height: 0;
    }

    .wn-pcard--featured .wn-pcard__media img {
        position: static;
    }
}

/* Hero: capability chips + scroll cue */
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    list-style: none;
    margin: clamp(28px, 4vw, 44px) 0 0;
    padding: 0;
    max-width: 720px;
}

.hero-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--wn-border);
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--wn-text-soft);
    font-size: 0.8rem;
    font-weight: 500;
}

.hero-chips li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wn-accent);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    opacity: 0.6;
    transition: opacity 0.25s var(--wn-ease);
}

.hero-scroll:hover {
    opacity: 1;
}

.hero-scroll__mouse {
    display: block;
    width: 22px;
    height: 34px;
    border: 1.5px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    position: relative;
}

.hero-scroll__dot {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--wn-accent);
    animation: wnScrollDot 1.8s var(--wn-ease) infinite;
}

@keyframes wnScrollDot {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

@media (max-height: 760px), (max-width: 640px) {
    .hero-scroll { display: none; }
}

@media (max-width: 640px) {
    .hero-chips li {
        height: 28px;
        font-size: 0.74rem;
        padding: 0 11px;
    }
}

/* Vision & mission: CTA sits right under the cards */
#about .main-container {
    row-gap: 0;
    padding: clamp(28px, 4.5vw, 64px);
    border-color: var(--wn-border);
}

#about .text-content {
    margin-bottom: 0 !important;
}

#about .service-list {
    margin-bottom: 0 !important;
}

#about .about-cta {
    margin-top: 28px !important;
}

#about .service-item {
    background: rgba(15, 23, 42, 0.45);
    border-color: var(--wn-border);
}

#about .service-item:hover {
    border-color: var(--wn-border-strong);
}

/* =============================================
   Scroll progress, back-to-top, footer
   ============================================= */
.wn-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 1002;
    pointer-events: none;
}

.wn-scroll-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #60a5fa, #a5b4fc);
    transform: scaleX(0);
    transform-origin: 0 50%;
    will-change: transform;
}

.wn-to-top {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 990;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--wn-border-strong);
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #dbeafe;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s var(--wn-ease), transform 0.3s var(--wn-ease), visibility 0.3s, background-color 0.25s var(--wn-ease);
}

.wn-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.wn-to-top:hover {
    background: rgba(37, 99, 235, 0.35);
    color: #fff;
}

/* Keep clear of the chatbot launcher when it is enabled */
body:has(.chatbot-widget, #chatbot-widget, .chatbot-toggle) .wn-to-top {
    bottom: max(92px, env(safe-area-inset-bottom));
}

.brand-tagline {
    margin: 14px 0 16px;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 34ch;
}

.brand-contact {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.brand-contact li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--wn-muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

.brand-contact svg {
    margin-top: 3px;
    color: var(--wn-accent);
    opacity: 0.85;
}

.brand-contact a {
    color: #cbd5e1;
    text-decoration: none;
}

.brand-contact a:hover {
    color: var(--wn-accent);
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--wn-border-strong);
    background: var(--wn-accent-soft);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s var(--wn-ease), transform 0.25s var(--wn-ease);
}

.footer-cta:hover {
    background: rgba(59, 130, 246, 0.28);
    transform: translateY(-1px);
}

.footer .links-column h3 {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: #f1f5f9;
}

.footer .links-column a {
    color: var(--wn-muted);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .footer .links-section {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px !important;
    }

    .footer .links-column:last-child {
        grid-column: 1 / -1;
    }

    .footer .links-column li {
        margin-bottom: 10px !important;
    }

    .footer .links-column a {
        font-size: 0.875rem;
    }
}

/* Mobile menu */
.mobile-menu > div {
    border-top: 0 !important;
    padding-top: 8px !important;
}

.mobile-menu .connect-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 2rem !important;
    min-width: 180px;
}

/* Homepage services: edge-to-edge media, lighter CTA */
#services .w3-service-card {
    padding: 0;
    backdrop-filter: none;
}

#services .w3-service-card::before {
    display: none;
}

#services .w3-service-body {
    padding: 22px 26px 24px;
}

#services .w3-service-description {
    margin-bottom: 16px;
    -webkit-line-clamp: 3;
}

#services .w3-service-cta {
    text-align: left;
}

#services .w3-service-cta .btn {
    padding: 0;
    height: auto;
    border: 0;
    background: none;
    color: var(--wn-accent);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: none;
    backdrop-filter: none;
}

#services .w3-service-cta .btn::before {
    display: none;
}

#services .w3-service-cta .btn::after {
    content: '→';
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s var(--wn-ease);
}

#services .w3-service-card:hover .w3-service-cta .btn::after {
    transform: translateX(4px);
}

@media (min-width: 1200px) {
    #services .w3-services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 20px;
    }

    #services .w3-service-title {
        font-size: 1.1rem;
    }

    #services .w3-service-body {
        padding: 18px 20px 20px;
    }
}

/* Page titles share the homepage heading gradient */
.section-header .main-title {
    background: linear-gradient(135deg, #f8fafc 0%, #bfdbfe 55%, #60a5fa 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* =============================================
   Round 3: consistency pass
   ============================================= */

/* Page hero used on pages without one (Contact) */
.wn-page-hero {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(32px, 5vw, 56px);
    padding: 0 var(--wn-gutter);
}

.wn-page-hero__title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5.2vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.22;
    padding-top: 0.12em;
    background: linear-gradient(135deg, #f8fafc 0%, #bfdbfe 55%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wn-page-hero__lead {
    margin: 0;
    color: var(--wn-muted);
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.7;
}

/* One button shape: pills everywhere */
.action-btn,
.dashboard-btn,
.blog-actions a,
.service-actions a,
.product-actions a {
    border-radius: 999px !important;
}

.action-btn {
    justify-content: center;
    padding: 0.9rem 1.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-color: var(--wn-border-strong);
}

/* Listing pages: image-on-top card grid for products, services and news */
@media (min-width: 769px) {
    .products-container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px !important;
    }

    .products-container > .product-card,
    .products-container > .blog-card {
        flex-direction: column !important;
    }

    .products-container .product-image,
    .products-container .blog-image {
        width: 100% !important;
        aspect-ratio: 16 / 9;
    }

    .products-container .product-content,
    .products-container .blog-content {
        padding: 22px 24px 24px !important;
        justify-content: flex-start !important;
        flex: 1;
    }

    .products-container .feature-title {
        font-size: 1.15rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .products-container .product-content > div:last-child,
    .products-container .blog-content > div:last-child {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .products-container > :not(.product-card):not(.blog-card) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1200px) {
    .products-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Card internals: content starts right under the image */
.products-container .product-content,
.products-container .blog-content {
    justify-content: flex-start !important;
    gap: 0;
}

.products-container .feature-title {
    min-height: 0 !important;
    margin-bottom: 10px !important;
}

/* Filter bar breathing room + themed selects */
.filters-wrap {
    margin-bottom: clamp(24px, 3vw, 36px) !important;
}

.filters-wrap .filters-wrap {
    margin-bottom: 0 !important;
}

select.filter-control {
    -webkit-appearance: none;
    appearance: none !important;
    padding-right: 38px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    cursor: pointer;
}

/* Detail pages */
.product-detail-card,
.blog-detail-card {
    margin-bottom: clamp(24px, 3vw, 36px) !important;
}

.blog-detail-card h1.main-title {
    text-transform: none !important;
    letter-spacing: -0.02em !important;
}

.blog-meta > span {
    border-radius: 999px !important;
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
}

.related-card,
.related-card > * {
    text-align: left !important;
}

/* Mobile: only item cards keep a frame; section wrappers go flat */
@media (max-width: 640px) {
    .product-content-section,
    .service-content-section,
    .blog-content-section,
    .blog-tags-section,
    .related-blogs-section,
    .product-services-section {
        background: none !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 8px 0 !important;
        backdrop-filter: none !important;
    }

    .ecosystem-section .container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* About: consistent body size and left-aligned headings */
.about-wrap .card-wide h3 {
    text-align: left !important;
}

.about-wrap .card p,
.about-wrap .card li {
    font-size: 0.975rem !important;
}

.about-wrap .grid-2 {
    align-items: start;
}

/* Homepage: lighter divider bands */
.features-divider {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

#about .service-item h3 {
    line-height: 1.3;
}

.products-container .feature-title {
    margin-top: 0 !important;
}

/* Service detail: title aligns with its copy and actions */
#service-detail .service-info-section h1.main-title {
    text-align: left !important;
    font-size: clamp(1.75rem, 3.6vw, 2.6rem) !important;
    font-weight: 800;
    letter-spacing: -0.025em !important;
    margin-bottom: 18px !important;
}

#service-detail .service-info-section h1.main-title::after {
    left: 0;
    transform: none;
}

/* Contact details are actionable: call, mail, directions */
.info-content .info-value-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
    transition: color 0.2s var(--wn-ease), border-color 0.2s var(--wn-ease);
}

.info-content .info-value-link:hover {
    color: var(--wn-accent);
    border-color: var(--wn-accent);
}

.info-content .info-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--wn-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.info-content .info-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-wrap .kv span a {
    color: #cbd5e1 !important;
    text-decoration: none;
}

.about-wrap .kv span a:hover {
    color: var(--wn-accent) !important;
}

/* Keyboard users can jump straight past the navigation */
.wn-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.2s var(--wn-ease);
}

.wn-skip-link:focus {
    transform: none;
}

#main-content:focus {
    outline: none;
}

/* Detail pages: closing call-to-action band */
.wn-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    flex-wrap: wrap;
    margin: clamp(32px, 4vw, 48px) 0 0;
    padding: clamp(24px, 3.5vw, 40px) clamp(22px, 4vw, 48px);
    border-radius: var(--wn-radius-lg);
    border: 1px solid var(--wn-border-strong);
    background:
        radial-gradient(80% 140% at 100% 0%, rgba(59, 130, 246, 0.22), transparent 60%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.75));
    box-shadow: var(--wn-shadow);
    position: relative;
    z-index: 2;
}

.wn-cta-band__text {
    flex: 1 1 360px;
}

.wn-cta-band__title {
    margin: 0 0 8px;
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.wn-cta-band__lead {
    margin: 0;
    color: var(--wn-text-soft);
    line-height: 1.65;
    max-width: 60ch;
}

.wn-cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 640px) {
    .wn-cta-band__actions,
    .wn-cta-band__actions .btn {
        width: 100%;
    }
}

.wn-read-time {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--wn-border);
    color: var(--wn-muted);
    font-size: 0.8rem;
}

.wn-cta-band {
    text-align: left;
}

/* =============================================
   Unified type & color system
   One family (Inter), one blue accent ramp, three text tones.
   ============================================= */
:root {
    /* Accent ramp (blue) */
    --wn-blue-200: #bfdbfe;
    --wn-blue-300: #93c5fd;
    --wn-blue-400: #60a5fa;
    --wn-blue-500: #3b82f6;
    --wn-blue-600: #2563eb;

    /* Text tones */
    --wn-text-strong: #f8fafc;   /* headings */
    --wn-text-body: rgba(226, 232, 240, 0.82);   /* paragraphs */
    --wn-text-subtle: #94a3b8;   /* meta, captions, secondary */

    /* Gradients */
    --wn-grad-heading: linear-gradient(135deg, #f8fafc 0%, #bfdbfe 55%, #60a5fa 100%);
    --wn-grad-brand: linear-gradient(135deg, #bfdbfe 0%, #60a5fa 55%, #3b82f6 100%);
    --wn-grad-button: linear-gradient(135deg, #3b82f6, #2563eb);

    /* Type scale */
    --wn-fs-display: clamp(2.4rem, 6.4vw, 4.75rem);
    --wn-fs-h1: clamp(2rem, 5.2vw, 3.6rem);
    --wn-fs-h2: clamp(1.75rem, 4vw, 3rem);
    --wn-fs-h3: clamp(1.1rem, 1.6vw, 1.3rem);
    --wn-fs-body: 1rem;
    --wn-fs-small: 0.875rem;
    --wn-fs-eyebrow: 0.72rem;
}

/* Form controls don't inherit fonts by default (they fell back to Arial) */
button,
input,
select,
textarea,
optgroup,
option {
    font-family: inherit;
}

/* Headings: same family, weight and tracking everywhere */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    letter-spacing: -0.02em;
}

h3, h4 {
    font-weight: 700;
}

/* Large section/page headings share one gradient */
.hero-title1,
.main-title,
.w3-main-title,
.hero-title2,
.section-title,
.quantum-heading,
.wn-page-hero__title,
.about-wrap .section-head h1,
.contact-info h2,
.contact-form-container h2 {
    background: var(--wn-grad-heading) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent;
    font-weight: 800 !important;
}

.w3-main-title,
.section-title,
#products .main-title {
    font-size: var(--wn-fs-h2) !important;
}

/* Wordmark and hero tagline use the brand gradient */
.logo2,
.hero-subtitle {
    background: var(--wn-grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    background-color: transparent;
}

/* Eyebrow labels */
.category-label,
.ecosystem-badge,
.section-label,
.w3-features-label {
    color: var(--wn-blue-400) !important;
    font-size: var(--wn-fs-eyebrow) !important;
    font-weight: 600 !important;
}

/* Body copy: one tone */
p,
li,
.description-text,
.feature-description,
.w3-subtitle,
.w3-service-description,
.card-description,
.wn-pcard__desc,
.info-content p,
.about-wrap .card p,
.about-wrap .card li {
    color: var(--wn-text-body);
}

/* Secondary / meta text: one tone */
.subtitle1,
.section-description,
.echo-paragraph,
.card-date,
.breadcrumb,
.footer .links-column a,
.footer-bottom,
.brand-contact li,
.wn-page-hero__lead,
.wn-read-time {
    color: var(--wn-text-subtle);
}

/* Card and item titles */
.feature-title,
.card-title,
.w3-service-title,
.wn-pcard__link,
.related-card h3,
.service-item h3,
.info-content h3,
.links-column h3 {
    color: var(--wn-text-strong);
}

/* Links inside running text */
.blog-content a,
.product-content a,
.service-content a,
.brand-contact a:hover,
.breadcrumb a:hover {
    color: var(--wn-blue-400);
}

/* Footer: blue glow instead of the old purple haze */
.footer {
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(59, 130, 246, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, #0b0f17 0%, #070a10 100%);
    border-top: 1px solid var(--wn-border);
}

.footer .logo-text {
    background: var(--wn-grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

/* Big headings: one tracking value, no glow */
.hero-title1,
.main-title,
.w3-main-title,
.hero-title2,
.section-title,
.quantum-heading,
.wn-page-hero__title,
.about-wrap .section-head h1 {
    letter-spacing: -0.025em !important;
    text-shadow: none !important;
}

.footer .logo-text {
    text-shadow: none !important;
    font-weight: 800;
    animation: none !important;
}

/* Detail titles line up with the copy below them */
.product-detail-card h1.main-title,
.blog-detail-card h1.main-title,
#service-detail .service-info-section h1.main-title {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
