:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f5;
    --text-primary: #000000;
    --text-secondary: #52525b;
    --text-tertiary: #a1a1aa;
    --border-color: #e4e4e7;
    --accent: #171717;
    --accent-hover: #3f3f46;
    
    /* Missing Gradient for Headers */
    --gradient-primary: linear-gradient(135deg, var(--text-primary) 0%, var(--text-tertiary) 100%);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, "Times New Roman", serif;
    
    --container-max: 1280px;
    --container-padding: 2rem;
}

.serif-prose {
    font-family: var(--font-serif);
    font-weight: 400;
}

.subpage {
    padding-top: 6rem;
}

.page-header {
    background: var(--bg-secondary);
    padding: 8rem 0 4rem;
    text-align: center;
}
.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}
.page-header .serif-prose {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mt-4 { margin-top: 1rem; }


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Canvas Background */
#network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh; /* Extended into intro section */
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    background: linear-gradient(to bottom, var(--bg-primary) 80%, var(--bg-primary) 100%); /* Helps blend if needed */
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px; /* Pill shape */
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(228, 228, 231, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 4.5rem;
}

.logo-img {
    height: 38px;
    width: auto;
    max-width: 150px; /* Safeguard for Safari */
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-current{
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}
.nav-cta-btn{
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
    font-weight: 500;
}
.nav-cta-btn:hover{
    color: var(--text-primary);
}
@media (min-width: 769px) {
    .nav-cta-btn{
        margin-left: 0.25rem;
        padding: 0.45rem 1rem;
        border: 1.5px solid var(--border-color);
        border-radius: 6px;
        color: var(--text-primary);
        font-weight: 500;
        transition: border-color 0.2s, color 0.2s;
    }
    .nav-cta-btn:hover {
        border-color: var(--text-primary);
    }
}
.mega-overview-bar{display:block;}
.mega-overview-bar .mega-overview-link{display:flex;width:100%;}

/* Contact Us nav link — styled as outlined button on desktop only */
@media (min-width: 769px) {
    .nav-cta-btn {
        margin-left: 0.25rem;
        padding: 0.45rem 1rem;
        border: 1.5px solid var(--border-color);
        border-radius: 6px;
        color: var(--text-primary);
        font-weight: 500;
        transition: border-color 0.2s, color 0.2s;
    }
    .nav-cta-btn:hover {
        border-color: var(--text-primary);
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropbtn {
    cursor: pointer;
    /* Increase hover footprint to make reaching submenus easier */
    padding-bottom: 1.5rem; 
    margin-bottom: -1.5rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-primary);
    min-width: 240px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    z-index: 200;
    border: 1px solid var(--border-color);
}

/* Reset .nav-links a styles for the dropdown links */
.nav-links .dropdown-content a {
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    transition: background 0.2s, color 0.2s;
}

.nav-links .dropdown-content a:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDrop 0.2s ease forwards;
}

.dropdown:hover .chevron {
    transform: rotate(180deg);
}

@keyframes fadeInDrop {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropbtn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding-bottom: 1.5rem; 
    margin-bottom: -1.5rem;
}

.chevron {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    display: inline-block;
}

.resources-snippet {
    padding: 8rem 0;
}

.hero {
    position: relative;
    padding-top: 12rem;
    padding-bottom: 8rem;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        max-width: 1000px;
        margin: 0 auto;
        gap: 3rem;
    }
    .hero-left {
        display: flex;
        justify-content: flex-end; /* Push the text block towards the center partition */
    }
    .hero-title {
        text-align: left; /* Keep internal text left-aligned */
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
}

.hero-title .thin {
    font-weight: 300;
    color: var(--text-secondary);
}

.hero-title .bold {
    font-weight: 600;
    color: var(--text-primary);
}

.hero-prose {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 32rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.overview-statement {
    padding: 4rem 0 0;
    background-color: transparent; /* Allow canvas background to show through */
    position: relative;
    z-index: 1;
}

.overview-text {
    font-size: clamp(1.2rem, 2.2vw, 1.85rem);
    font-weight: 400;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.3;
}

.platform-visual {
    padding: 4rem 0 8rem;
}

.overview-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

.dark-mode-visual {
    background: #111111; /* Dark mode for orchestrator dashboard */
    border-color: #27272a;
}

.overview-image-placeholder canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Subtle motion on scroll for the platform visual */
.scale-on-scroll {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-on-scroll.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Principles Section */
.principles {
    padding: 8rem 0;
    background-color: var(--bg-primary);
}

.section-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    text-align: center;
}

.principle-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 8rem;
    align-items: center;
}

@media (min-width: 768px) {
    .principle-card {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
    .principle-card.reverse .principle-content {
        order: 2;
    }
    .principle-card.reverse .principle-visual {
        order: 1;
    }
}

.principle-card:last-child {
    margin-bottom: 0;
}

.principle-content h4 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.principle-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.principle-visual {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--bg-secondary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.principle-visual canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Resources */
.resources {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
}

.resources-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.resources-header h3 {
    font-size: 2.5rem;
    font-weight: 500;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.header-logo {
    height: 48px;
    width: auto;
    mix-blend-mode: normal;
    display: block;
}
.view-all {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.view-all:hover { color: var(--text-primary); }

.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.resource-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0,0,0,0.1);
}

.resource-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.resource-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.resource-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.resource-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 6rem 0 2rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 2fr;
    }
}

.footer-brand .logo-img {
    margin-bottom: 1rem;
    height: 48px;
    max-width: 180px; /* Safeguard for Safari */
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}



.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-row .form-group {
    margin-bottom: 0;
    flex: 1;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--bg-primary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
}

/* Animations */
.fade-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); /* Slower entrance */
}

.fade-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Shift movement for Principles (Bottom to Top) */
.shift-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shift-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Interactive Solutions Builder UI
   ========================================================================== */

.solutions-hero {
    padding-top: 10rem;
    padding-bottom: 2rem;
    text-align: center;
    background-color: var(--bg-primary); 
}

.solutions-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.solutions-builder {
    padding: 3rem 0 10rem;
}

.builder-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

/* Builder Tabs (Top Area) */
.builder-tabs {
    display: flex;
    flex-wrap: wrap;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.b-tab {
    /* Default: 4 per row */
    flex: 0 0 25%;
    width: 25%;
    box-sizing: border-box;
    padding: 1.5rem 1rem;
    background: transparent;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

/* 2 per row when narrow */
@media (max-width: 640px) {
    .b-tab {
        flex: 0 0 50%;
        width: 50%;
        font-size: 0.95rem;
        padding: 1.1rem 0.75rem;
    }
}

/* 1 per row when very narrow */
@media (max-width: 380px) {
    .b-tab {
        flex: 0 0 100%;
        width: 100%;
    }
}

.b-tab:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.5);
}

.b-tab.active {
    color: var(--text-primary);
    background: var(--bg-primary);
    border-bottom: 3px solid var(--accent); /* Black marker limit */
}

/* Builder Rows Theme Mappings - Lighter Vibrant Pastels */
.b-row[data-color="purple"] { --row-color: 190, 170, 240; } /* Lighter Purple */
.b-row[data-color="blue"] { --row-color: 160, 200, 250; }     /* Lighter Blue */
.b-row[data-color="emerald"] { --row-color: 150, 220, 200; }  /* Lighter Emerald */
.b-row[data-color="amber"] { --row-color: 250, 200, 150; }    /* Lighter Orange */
.b-row[data-color="rose"] { --row-color: 250, 170, 190; }     /* Lighter Rose */

.builder-rows-container {
    padding: 2rem;
}

.b-row {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.b-row:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    .b-row {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
}

.row-label {
    min-width: 160px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-tertiary);
    text-align: right;
}
@media (max-width: 768px) {
    .row-label { text-align: left; }
}

.row-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
}

/* Base Chip styling */
.chip {
    padding: 0.75rem 1.5rem;
    border-radius: 99px; /* Pill */
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid var(--border-color); /* Restores perimeter on uncheck */
    background: transparent;
    position: relative;
    user-select: none;
}

/* Optional State (Border, Hollow) */
.chip.optional {
    border-color: rgba(var(--row-color), 0.3);
    color: rgb(var(--row-color));
}
.chip.optional:hover {
    border-color: rgba(var(--row-color), 0.8);
    background: rgba(var(--row-color), 0.05);
}

/* Active State (Solid Filled) */
.chip.active {
    background: rgb(var(--row-color));
    color: #ffffff;
    border-color: rgb(var(--row-color));
    box-shadow: 0 6px 16px rgba(var(--row-color), 0.3);
}
.chip.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--row-color), 0.4);
}

/* Unavailable State (Blocked) */
.chip.unavailable {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    border-color: transparent;
    cursor: not-allowed;
    box-shadow: none;
    text-decoration: line-through;
    opacity: 0.6;
}

/* Required State (Mandatory) */
.chip.required {
    background: rgb(var(--row-color));
    color: #ffffff;
    border-color: rgb(var(--row-color));
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.9;
}
.chip.required::after {
    content: " (Required)";
    font-size: 0.75rem;
    opacity: 0.7;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}
.shake {
    animation: shake 0.4s ease;
}

.site-footer {
    background: var(--bg-primary);
    /* Remove border and margin to avoid gap above footer */
    border-top: none;
    padding: 5rem 0 2rem;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr max-content max-content;
    gap: 5rem;
    margin-bottom: 3rem;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--container-padding);
}
.footer-col.brand-col {
    padding-right: 2rem;
}
@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-col.brand-col {
        grid-column: 1 / -1; /* Spans across entire row so it drops alone */
        margin-bottom: 2rem;
    }
}
@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Complete vertical stacking */
        gap: 2.5rem;
    }
}
.footer-col {
    min-width: 140px;
}
.footer-col h4 {
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--accent);
}
.brand-col .header-logo {
    height: 48px;
    margin-bottom: 0.8rem;
    display: block;
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding-top: 2rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.builder-action-footer {
    background: var(--bg-secondary);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}
@media (min-width: 768px) {
    .builder-action-footer {
        flex-direction: row;
    }
}

.legend-hints {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
}
.demo-included { background: var(--accent); }
.demo-optional { border: 2px solid var(--accent); }
.demo-unavailable { background: var(--bg-secondary); }

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Selected configs in modal */
.selected-configs {
    margin-bottom: 2rem;
}

/* -----------------------------
   About Page Components
------------------------------ */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem 0;
}
.timeline-track {
    position: absolute;
    top: 9px; /* Realignment for precision optical centering vs 22px dot */
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
}
.timeline-progress {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 1s ease;
}
.timeline-points {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Force top alignment so all dots lock to track */
    position: relative;
    z-index: 10;
}
.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 110px;
}
.point-dot {
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    margin-top: 0;
    margin-bottom: 1.5rem; /* Pushes text down uniformly */
    transition: border-color 0.3s;
}
.timeline-point.completed .point-dot {
    border-color: var(--accent);
    background: var(--accent);
}
.timeline-point.upcoming .point-dot {
    border-color: var(--border-color);
}
.pulse-dot {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 0 0 0 rgba(0, 195, 204, 0.7);
    animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0,210,255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0,210,255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0,210,255, 0); }
}
.point-label {
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.4;
}
.timeline-point.completed .point-label {
    color: var(--text-primary);
}

.current-indicator {
    background: var(--accent);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 195, 204, 0.3);
    border: 2px solid var(--bg-primary);
    animation: float 2.5s ease-in-out infinite;
    z-index: 20;
    margin-top: -6px; /* Balance the height to sit perfectly on the 11px track */
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 850px) {
    .timeline {
        padding-left: 2rem;
        max-width: 400px;
    }
    .timeline > div {
        min-width: unset !important;
    }
    .timeline-track {
        width: 4px;
        height: 100%;
        left: 0;
        top: 0;
        transform: none;
    }
    .timeline-progress {
        width: 100% !important;
        height: 55%;
    }
    .timeline-points {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }
    .timeline-point {
        flex-direction: row;
        width: auto;
    }
    .point-dot {
        margin-bottom: 0;
        margin-right: 1.5rem;
        position: relative;
        left: -27px; /* Pull dot left onto track */
    }
    .current-indicator {
        position: relative;
        left: -19px;
        margin-top: 0;
    }
    .point-label {
        text-align: left;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
.team-card-container {
    perspective: 1000px;
    height: 380px;
    background: transparent;
}
.team-card-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}
.team-card-container:hover .team-card-flipper {
    transform: rotateY(180deg);
}
.team-card-front, .team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.team-card-back {
    transform: rotateY(180deg);
    background: var(--bg-secondary);
}
.team-card-back p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.team-photo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 2px dashed rgba(0, 195, 204, 0.4);
    overflow: hidden;
}
.team-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-photo-placeholder .tiffany-icon {
    margin-bottom: 0;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    padding: 0;
}
.team-card-front h4, .team-card-back h4 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.team-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.tiffany-icon {
    width: 54px;
    height: 54px;
    color: var(--accent);
    background: rgba(0, 195, 204, 0.08);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 195, 204, 0.2);
}
.team-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.team-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* -----------------------------
   Country Flags inside Chips
------------------------------ */
.country-flags {
    display: inline-flex;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.country-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: -6px;
    border: 1.5px solid var(--bg-primary);
    background: var(--bg-primary);
    position: relative;
}
.country-flag:nth-child(1) { z-index: 4; }
.country-flag:nth-child(2) { z-index: 3; }
.country-flag:nth-child(3) { z-index: 2; }
.country-flag:nth-child(4) { z-index: 1; }

.flag-grayscale {
    filter: grayscale(100%);
    opacity: 0.6;
}
.country-flags .country-flag:first-child {
    margin-left: 0;
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */

/* ── Hamburger Button ─────────────────────────────────────────────────── */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 110;
    flex-shrink: 0;
}

.burger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .burger-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: fixed;
        top: 4.5rem;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 0.5rem 0 1.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        z-index: 99;
        overflow-y: auto;
        max-height: calc(100vh - 4.5rem);
    }

    .nav-links.open {
        display: flex;
    }

    /* Top-level nav links */
    .nav-links > a,
    .nav-links > .dropdown {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links > a {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        color: var(--text-primary);
        font-weight: 500;
    }

    /* Solutions dropdown — click-based on mobile */
    .dropdown {
        width: 100%;
    }

    .nav-dropbtn {
        width: 100%;
        padding: 1rem 1.5rem;
        justify-content: space-between;
        margin-bottom: 0;
        padding-bottom: 1rem;
    }

    .dropdown-content {
        position: static;
        display: none;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        padding: 0;
        min-width: auto;
        width: 100%;
        background: var(--bg-secondary);
        animation: none !important;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    /* Disable hover-based open on mobile */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.open:hover .dropdown-content {
        display: block;
    }

    .nav-links .dropdown-content a {
        padding: 0.85rem 2rem;
        font-size: 0.875rem;
    }

    /* Contact Us: reset desktop button style so it looks like other links */
    .nav-cta-btn {
        margin-left: 0;
        padding: 1rem 1.5rem;
        border: none;
        border-radius: 0;
        color: var(--text-primary);
    }

    /* Language select */
    .lang-select {
        margin: 0.75rem 1.5rem 0;
        width: calc(100% - 3rem);
        padding: 0.6rem 2rem 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a1a1aa' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.3rem 1.6rem 0.3rem 0.65rem;
    font-family: inherit;
    margin-left: 0.5rem;
    transition: border-color 0.2s, color 0.2s;
    line-height: 1.4;
}

.lang-select:hover {
    border-color: var(--text-secondary);
}

.lang-select:focus {
    outline: none;
    border-color: var(--text-primary);
}

/* max-width-container (referenced throughout HTML but was missing from CSS) */
.max-width-container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ── Global footer overrides ── */
/* Remove any top border and extra margin from footers across all pages to avoid gaps and lines */
.site-footer,
.footer-bottom {
  border-top: none !important;
  margin-top: 0 !important;
}



/* unified-mega-menu-patch */
.header-logo{height:48px!important;width:auto;display:block;max-width:220px!important;mix-blend-mode:normal!important}
.mega-menu{top:4rem!important;margin-top:0!important;padding-top:0!important}
.mega-overview-bar{display:block;max-width:var(--container-max);margin:0 auto 1rem!important;padding:0!important;border-bottom:1px solid var(--border-color)!important}
.mega-overview-link{display:flex!important;width:100%!important;box-sizing:border-box!important;padding:.78rem 5% .86rem!important;align-items:center!important;gap:.5rem!important;line-height:1.2!important}
.mega-overview-link:hover{gap:.68rem!important}
.mega-grid{margin-top:0!important}
@media (max-width: 768px){
  .header-logo{height:38px!important;max-width:180px!important}
}
.site-logo{height:48px!important;max-width:220px!important;width:auto;display:block;mix-blend-mode:normal!important}
.footer-brand-logo{height:48px!important;max-width:220px!important;width:auto;display:block;mix-blend-mode:normal!important}
@media (max-width:768px){.site-logo{height:38px!important;max-width:180px!important;}.footer-brand-logo{height:38px!important;max-width:180px!important;}}

/* targeted-fix: logo sizing + mega overview spacing */
.header-logo,.site-logo,.footer-brand-logo{height:56px!important;max-width:none!important;width:auto!important;display:block!important;mix-blend-mode:normal!important;object-fit:contain!important;}
.footer-logo img,.footer-brand-logo{height:56px!important;max-width:none!important;width:auto!important;display:block!important;mix-blend-mode:normal!important;}
.mega-overview-bar{margin:0 auto 1rem!important;padding:0!important;border-bottom:1px solid var(--border-color)!important;}
.mega-overview-link{padding:.78rem 5% .78rem!important;line-height:1.2!important;align-items:center!important;gap:.5rem!important;}
@media (max-width:768px){.header-logo,.site-logo,.footer-brand-logo{height:42px!important;}}

/* final targeted tweak: logo size slight reduction */
.header-logo,.site-logo,.footer-brand-logo{height:52px!important;max-width:none!important;width:auto!important;display:block!important;mix-blend-mode:normal!important;object-fit:contain!important;background:transparent!important;}
.footer-logo img,.footer-brand-logo{height:52px!important;max-width:none!important;width:auto!important;display:block!important;mix-blend-mode:normal!important;background:transparent!important;}
@media (max-width:768px){.header-logo,.site-logo,.footer-brand-logo{height:40px!important;}}

/* targeted global logo sizing */
.header-logo,.site-logo,.footer-brand-logo{height:46px!important;width:auto!important;display:block!important;mix-blend-mode:normal!important;object-fit:contain!important;background:transparent!important;}
.footer-logo img,.footer-brand-logo{height:46px!important;width:auto!important;display:block!important;mix-blend-mode:normal!important;background:transparent!important;}
@media (max-width:768px){.header-logo,.site-logo,.footer-brand-logo,.footer-logo img{height:38px!important;}}

/* v9.4: nav-dropbtn inherits body font so it matches nav links */
.nav-dropbtn{font-size:.875rem!important;font-weight:500!important;font-family:inherit!important;color:var(--text-secondary)!important}

/* v9.5: nav-dropbtn — reset browser button defaults so it matches nav links */
.nav-dropbtn{background:none!important;border:none!important;outline:none!important;padding:0!important;margin:0!important;font-size:.875rem!important;font-weight:500!important;font-family:inherit!important;color:var(--text-secondary)!important;cursor:pointer!important;-webkit-appearance:none!important;appearance:none!important;display:flex!important;align-items:center!important;gap:.3rem!important}
.nav-dropbtn:hover{color:var(--text-primary)!important}

/* v9.5: footer social icons — constrain size */
.footer-social-icon{display:inline-flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;color:var(--text-secondary);transition:color .2s}
.footer-social-icon svg{width:1.1rem!important;height:1.1rem!important}
.footer-social-icon:hover{color:var(--accent,#0d9488)}
.footer-socials{display:flex;gap:.75rem;margin-top:.5rem;align-items:center}

/* v9.6: mega-menu column styling — unified for all pages */
.mega-menu{display:none;position:fixed;top:4.5rem;left:0;width:100%;background:#fff;border-bottom:1px solid var(--border-color);box-shadow:0 8px 32px rgba(0,0,0,.08);z-index:999;padding:2rem 0 2.4rem}
.mega-dropdown:hover .mega-menu,.mega-dropdown.hov .mega-menu,.mega-menu:hover{display:block}
.mega-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;max-width:var(--container-max);margin:0 auto;padding:0 5%}
.mega-overview-bar{max-width:var(--container-max);margin:0 auto;padding:0 5% .8rem;border-bottom:1px solid var(--border-color);margin-bottom:1rem}
.mega-overview-link{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;color:var(--text-primary);text-decoration:none;transition:gap .2s}
.mega-overview-link:hover{gap:.85rem}
.mega-ov-arrow{font-size:1rem;color:var(--text-secondary)}
.mega-col{padding:0 1.25rem;border-right:1px solid var(--border-color);cursor:pointer;transition:background .15s}
.mega-col:first-child{padding-left:0}
.mega-col:last-child{border-right:none}
.mega-col a{display:block;text-decoration:none;color:inherit}
.mega-col:hover{background:var(--bg-secondary);border-radius:8px}
.mega-col-icon{width:36px;height:36px;margin-bottom:.75rem;display:flex;align-items:center;justify-content:center;background:var(--bg-secondary);border-radius:8px;border:1px solid var(--border-color)}
.mega-col-icon svg{width:18px;height:18px}
.mega-col h4{font-size:.8125rem;font-weight:600;color:var(--text-primary);margin-bottom:.3rem;letter-spacing:-.01em}
.mega-col p{font-size:.75rem;color:var(--text-secondary);line-height:1.5;margin-bottom:.6rem}
.mega-col ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.3rem}
.mega-col ul li{font-size:.72rem;color:var(--text-secondary);padding:.18rem 0}
@media(max-width:768px){.mega-menu{position:static;box-shadow:none;border:none;padding:.5rem 0;display:none!important}.mega-menu.m-open{display:block!important}}

/* v9.7: nav-container — constrain to container-max and center, matching payroll pages */
.nav-container{max-width:var(--container-max,1280px)!important;margin-left:auto!important;margin-right:auto!important}
