/* --- TYPOGRAPHY --- */
@font-face {
    font-family: "narofont";
    src: url("./font/narofont.ttf") format("truetype");
    font-display: swap;
}
* {
    font-family: "narofont";
    transition-property:
        color, background-color, border-color, transform, opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.3s;
}

/* --- THEME VARIABLE SYSTEM --- */
:root {
    /* Brand Core */
    --brand-blue: #0067ff;
    --brand-hover: #0052cc;

    /* Light Theme (High Contrast Crisp Enterprise Light) */
    --bg-body: #ffffff;
    --bg-surface: #ffffff;
    --bg-subtle: #f8fafc; /* Crisp Slate 50 background */
    --text-primary: #0f172a; /* Slate 900 - Deep crisp heading text */
    --text-secondary: #1e293b; /* Slate 800 - Ultra crisp body text */
    --text-tertiary: #334155; /* Slate 700 - High contrast secondary text */
    --border-light: #cbd5e1; /* Slate 300 - Clear visible borders */
    --border-hover: #0067ff;
    --shadow-card:
        0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-hover:
        0 4px 12px -2px rgba(0, 103, 255, 0.15), 0 2px 6px -1px rgba(0, 0, 0, 0.06);

    /* Animation Timings */
    --enter-duration: 0.5s;
    --exit-duration: 0.3s;
    --stagger-delay: 0.05s;
}

/* Dark Theme (Jetblack) */
.dark {
    --bg-body: #000000; /* Jetblack */
    --bg-surface: #0a0a0a;
    --bg-subtle: #121212;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-light: #27272a;
    --border-hover: #0067ff;
    --shadow-card: none;
    --shadow-hover: 0 0 0 1px #0067ff; /* Glow effect border instead of shadow */
}

/* --- GLOBAL STYLES --- */
body {
    font-family: "narofont";
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition:
        background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 1;
    animation: bodyFadeIn 0.8s ease-out;
    font-size: 16px; /* Base font size increased */
}

@keyframes bodyFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.custom-font {
    font-family: "narofont";
}

/* --- COMPONENT: naro CARD (Enterprise Sharp) --- */
.naro-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: 2px; /* Extremely sharp enterprise look */
    transition: all 0.2s ease-in-out;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    animation: cardEnter var(--enter-duration) ease-out;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.naro-card.exit {
    animation: cardExit var(--exit-duration) ease-in forwards;
}

@keyframes cardExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.naro-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.naro-card h3 {
    color: var(--text-primary);
    animation: fadeInUp 0.6s ease-out 0.1s both;
    font-size: 1.4rem; /* Increased from ~1.25rem */
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.naro-card p {
    color: var(--text-secondary);
    animation: fadeInUp 0.6s ease-out 0.2s both;
    font-size: 0.95rem; /* Increased from ~0.875rem */
    line-height: 1.6;
}

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

/* --- COMPONENT: BUTTONS --- */
.btn-primary {
    background-color: var(--brand-blue);
    color: white;
    padding: 0.875rem 2rem; /* Increased padding */
    border-radius: 2px;
    font-weight: 600;
    font-size: 1rem; /* Increased font size */
    transition:
        background-color 0.2s,
        transform 0.2s,
        opacity 0.2s;
    border: 1px solid transparent;
    opacity: 1;
    transform: scale(1);
    animation: buttonEnter 0.4s ease-out;
    min-height: 48px; /* Minimum touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes buttonEnter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.btn-primary.exit {
    animation: buttonExit 0.3s ease-in forwards;
}

@keyframes buttonExit {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-blue);
    border: 1px solid var(--brand-blue);
    padding: 0.875rem 2rem; /* Increased padding */
    border-radius: 2px;
    font-weight: 600;
    font-size: 1rem; /* Increased font size */
    transition:
        background-color 0.2s,
        transform 0.2s,
        opacity 0.2s;
    animation: buttonEnter 0.4s ease-out 0.1s both;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background-color: rgba(0, 103, 255, 0.08);
    transform: translateY(-1px);
}

/* --- COMPONENT: NAVIGATION --- */
.desktop-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dark .desktop-header {
    background-color: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid var(--border-light);
}

.nav-link {
    color: var(--text-secondary);
    font-size: 1rem; /* Increased from 0.9rem */
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    animation: navLinkEnter 0.4s ease-out;
}

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

.nav-link:hover {
    color: var(--brand-blue);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    z-index: 1000;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- SECTION TRANSITIONS --- */
section {
    padding: 80px 24px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    opacity: 1;
    animation: sectionEnter 0.6s ease-out;
}

@keyframes sectionEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section.exit {
    animation: sectionExit 0.4s ease-in forwards;
}

@keyframes sectionExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* --- HERO SECTION --- */
#home {
    animation: heroEnter 0.8s ease-out;
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#home h1 {
    animation: titleEnter 0.8s ease-out 0.2s both;
    font-size: 3.5rem; /* Increased from 3rem */
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@keyframes titleEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#home p {
    animation: subtitleEnter 0.8s ease-out 0.4s both;
    font-size: 1.25rem; /* Increased from 1.125rem */
    line-height: 1.7;
    margin-bottom: 2rem;
}

@keyframes subtitleEnter {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- PRODUCTS SECTION --- */
#products h2 {
    font-size: 2.5rem; /* Increased from 2.25rem */
    margin-bottom: 1rem;
}

#products .text-lg {
    font-size: 1.125rem;
}

/* --- BRAND SECTION --- */
#brand h2 {
    font-size: 2.25rem; /* Increased from 2rem */
    margin-bottom: 2rem;
}

#brand p {
    font-size: 1.05rem; /* Increased base font size */
    line-height: 1.7;
}

/* --- DEVELOPMENT SECTION --- */
#development h2 {
    font-size: 2.25rem; /* Increased from 1.875rem */
    margin-bottom: 2.5rem;
}

#development h3 {
    font-size: 1.3rem; /* Increased from 1.125rem */
    margin-bottom: 1rem;
}

/* --- CONTACT SECTION --- */
#contact h2 {
    font-size: 2.5rem; /* Increased from 2.25rem */
    margin-bottom: 1rem;
}

#contact h3 {
    font-size: 1.2rem; /* Increased from 1.125rem */
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* --- FAQ SECTION FIXES --- */
#contact .naro-card {
    margin-bottom: 0.75rem;
}

.faq-btn {
    padding: 1.25rem 1.5rem; /* Increased padding */
    font-size: 1.05rem; /* Increased font size */
    font-weight: 600;
    transition: all 0.2s ease;
}

.faq-btn:hover {
    background-color: transparent !important; /* Remove hover background */
    color: var(--brand-blue) !important;
}

.faq-content {
    font-size: 1rem; /* Increased from 0.875rem */
    line-height: 1.6;
    padding: 1.25rem 1.5rem;
}

/* --- UTILITIES --- */
.text-subtle {
    color: var(--text-tertiary);
    animation: fadeIn 0.6s ease-out;
    font-size: 1.05rem; /* Increased */
}
.text-secondary {
    color: var(--text-secondary);
    animation: fadeIn 0.6s ease-out;
}
.text-main {
    color: var(--text-primary);
    animation: fadeIn 0.6s ease-out;
}
.bg-subtle-section {
    background-color: var(--bg-subtle);
    transition: background-color 0.3s ease;
}

/* --- THEME TOGGLE --- */
#themeToggle {
    animation: themeToggleEnter 0.6s ease-out 0.2s both;
    width: 44px; /* Slightly larger */
    height: 44px; /* Slightly larger */
}

@keyframes themeToggleEnter {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* --- FOOTER --- */
footer {
    animation: footerEnter 0.8s ease-out;
    font-size: 1rem; /* Increased base font size */
}

@keyframes footerEnter {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer p {
    font-size: 1rem; /* Increased from 0.875rem */
    line-height: 1.6;
}

footer .text-xs {
    font-size: 0.9rem; /* Increased from 0.75rem */
}

/* --- CARD LINKS --- */
.naro-card a {
    font-size: 0.95rem; /* Increased from 0.875rem */
    padding: 0.875rem; /* Increased padding */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
    animation: scrollbarEnter 0.5s ease-out;
}

@keyframes scrollbarEnter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 0;
    transition: background 0.3s ease;
}

.dark ::-webkit-scrollbar-thumb {
    background: #374151;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue);
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    /* Base mobile viewport & body adjustments */
    html, body {
        font-size: 16px !important;
        line-height: 1.5;
        overflow-x: hidden !important;
        width: 100%;
        touch-action: manipulation;
    }

    /* Section padding optimization */
    section {
        padding: 40px 16px !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* Hero section mobile optimization */
    #home {
        min-height: auto !important;
        padding-top: 1.5rem !important;
        padding-bottom: 2.5rem !important;
        margin-top: 0 !important;
    }

    #home h1 {
        font-size: 2.1rem !important;
        line-height: 1.25 !important;
        margin-bottom: 1rem !important;
        padding: 0 4px !important;
    }

    #home p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.75rem !important;
        padding: 0 4px !important;
        max-width: 100% !important;
    }

    /* Mobile button sizing & tap targets */
    #home .btn-primary,
    #home .btn-outline {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.25rem 0 !important;
        padding: 0.85rem 1.25rem !important;
        font-size: 0.95rem !important;
        min-height: 48px !important;
    }

    /* Product & Ecosystem cards mobile optimization */
    .naro-card {
        margin-bottom: 1rem !important;
        padding: 1.25rem !important;
        min-height: auto !important;
    }

    .naro-card h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }

    .naro-card p {
        font-size: 0.925rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.25rem !important;
    }

    .naro-card a {
        font-size: 0.9rem !important;
        padding: 0.75rem !important;
        width: 100% !important;
        min-height: 44px !important;
    }

    /* Search bar input iOS auto-zoom prevention */
    .search-input-field,
    input, select, textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS Safari focus */
    }

    /* Mobile bottom navigation bar */
    .mobile-nav {
        background-color: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        padding-top: 0.5rem !important;
        padding-bottom: max(0.6rem, env(safe-area-inset-bottom)) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
        z-index: 1100 !important;
    }

    .dark .mobile-nav {
        background-color: rgba(10, 10, 10, 0.95) !important;
        border-top: 1px solid var(--border-light) !important;
    }

    /* Spotlight carousel slide padding on mobile */
    .spotlight-card-body {
        padding: 1.25rem !important;
    }

    /* Terms & Conditions scrollbox height */
    .h-\\[300px\\] {
        height: 220px !important;
    }

    /* Footer padding on mobile to clear bottom nav */
    footer {
        padding: 2.5rem 1rem 5.5rem 1rem !important;
    }

    /* Ensure tap targets meet accessibility standard */
    button, a {
        min-height: 44px;
    }
}

/* --- EXTRA SMALL DEVICES (Phones < 400px) --- */
@media (max-width: 400px) {
    body {
        font-size: 15px !important;
    }

    #home h1 {
        font-size: 1.8rem !important;
    }

    #home p {
        font-size: 1rem !important;
    }

    .naro-card {
        padding: 1.25rem !important;
    }

    .mobile-nav a {
        min-width: 50px !important;
    }

    .mobile-nav i {
        font-size: 1.1rem !important;
    }

    .mobile-nav span {
        font-size: 0.65rem !important;
    }

    /* Even smaller text adjustments for very small screens */
    .text-5xl,
    .text-6xl {
        font-size: 1.8rem !important;
    }
    .text-4xl {
        font-size: 1.6rem !important;
    }
    .text-3xl {
        font-size: 1.4rem !important;
    }
    .text-2xl {
        font-size: 1.2rem !important;
    }
    .text-xl {
        font-size: 1.1rem !important;
    }
}

/* --- TABLET OPTIMIZATIONS (768px - 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 16px !important;
    }

    section {
        padding: 60px 24px !important;
    }

    #home h1 {
        font-size: 2.8rem !important;
    }

    #home p {
        font-size: 1.15rem !important;
    }

    .naro-card {
        padding: 1.75rem !important;
    }

    .grid-cols-2,
    .md\\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .lg\\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Fix overlapping on tablet */
    .flex.items-center.space-x-4 {
        flex-wrap: wrap !important;
    }
}

@keyframes logoSpin {
    from {
        opacity: 0;
        transform: rotate(-90deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* --- STAGGERED ANIMATIONS FOR GRID ITEMS --- */
.naro-card:nth-child(1) {
    animation-delay: 0.1s;
}
.naro-card:nth-child(2) {
    animation-delay: 0.2s;
}
.naro-card:nth-child(3) {
    animation-delay: 0.3s;
}
.naro-card:nth-child(4) {
    animation-delay: 0.4s;
}
.naro-card:nth-child(5) {
    animation-delay: 0.5s;
}
.naro-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* --- FAQ ANIMATIONS --- */
.faq-content {
    animation: faqExpand 0.3s ease-out;
}

@keyframes faqExpand {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.faq-content.hidden {
    animation: faqCollapse 0.3s ease-in;
    max-height: 0;
    overflow: hidden;
}

@keyframes faqCollapse {
    from {
        opacity: 1;
        max-height: 500px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

/* --- EXIT ANIMATION CLASSES --- */
.exit-animation {
    animation: fadeOutExit 0.3s ease-in forwards !important;
}

@keyframes fadeOutExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* --- VISUAL CLEANUP --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p,
li,
span {
    letter-spacing: -0.01em;
    line-height: 1.6;
}

/* --- SPACING IMPROVEMENTS --- */
.mb-2 {
    margin-bottom: 0.75rem !important;
}
.mb-4 {
    margin-bottom: 1.5rem !important;
}
.mb-6 {
    margin-bottom: 2rem !important;
}
.mb-8 {
    margin-bottom: 2.5rem !important;
}
.mb-10 {
    margin-bottom: 3rem !important;
}
.mb-12 {
    margin-bottom: 3.5rem !important;
}

.mt-2 {
    margin-top: 0.75rem !important;
}
.mt-4 {
    margin-top: 1.5rem !important;
}
.mt-6 {
    margin-top: 2rem !important;
}
.mt-8 {
    margin-top: 2.5rem !important;
}
.mt-10 {
    margin-top: 3rem !important;
}
.logo-top-hero {
    display: block;
    width: 220px;
    max-width: 70vw;
    height: auto;
    margin: 0 auto 1.5rem auto;
    position: relative;
}

/* --- ECOSYSTEM UTILITIES & LOGO BOXES --- */
.logo-for-app {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.ecosystem-tab-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    white-space: nowrap;
}

.ecosystem-tab-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.ecosystem-tab-btn.active {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 103, 255, 0.25);
}

.ecosystem-category-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
}

/* --- FEATURED SPOTLIGHT CAROUSEL --- */
.spotlight-carousel-section {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.spotlight-nav-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    background: var(--bg-surface);
    color: var(--text-secondary);
    transition: all 0.25s ease;
    cursor: pointer;
    display: inline-flex;
    items-center;
    gap: 0.5rem;
}

.spotlight-nav-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.spotlight-nav-btn.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 103, 255, 0.3);
}

.spotlight-card-body {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.spotlight-card-body:hover {
    border-color: rgba(0, 103, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 103, 255, 0.08);
}

/* --- SYSTEM ARCHITECTURE FLOW DIAGRAM --- */
.arch-diagram-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
}

.arch-tier-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 1.25rem;
    transition: all 0.25s ease;
}

.arch-tier-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.arch-node-badge {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.arch-node-badge:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.arch-connector-line {
    height: 2px;
    background: linear-gradient(90deg, #0067FF 0%, #3B82F6 50%, #10B981 100%);
    position: relative;
    margin: 1.5rem 0;
}

.arch-connector-pulse {
    position: absolute;
    top: -3px;
    left: 0;
    width: 8px;
    height: 8px;
    background: #0067FF;
    border-radius: 50%;
    animation: archPulse 3s infinite linear;
}

@keyframes archPulse {
    0% { left: 0%; opacity: 0.2; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0.2; }
}

/* --- ECOSYSTEM SEARCH BAR & LIVE COUNTER --- */
.search-wrapper-container {
    position: relative;
    max-width: 68rem;
    margin: 0 auto 2.5rem auto;
}

.search-input-field {
    width: 100%;
    padding: 0.85rem 3rem 0.85rem 3rem;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1.5px solid var(--border-light);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.search-input-field:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(0, 103, 255, 0.15);
}

.search-icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1rem;
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: none;
}

.search-clear-btn:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.search-stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.search-no-results-box {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-surface);
    border: 1px dashed var(--border-light);
    border-radius: 8px;
    margin: 2rem 0;
    display: none;
}


