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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #0b1020;
    background: #f4f7fd;
}

/* ===== Header (floating pill nav) ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1.25rem 1.5rem 0;
    display: flex;
    justify-content: center;
    transition: padding 0.25s ease;
}

.header-pill {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.6rem 0.6rem 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    transition: max-width 0.25s ease, box-shadow 0.25s ease;
}

/* Full width at the top of the page; shrinks to the contained pill once
   the user scrolls, so the nav reads as "docked" rather than edge-to-edge. */
.site-header.is-scrolled {
    padding: 0.75rem 1.5rem 0;
}

.site-header.is-scrolled .header-pill {
    max-width: 1100px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;   /* plain links and dropdown buttons share one baseline */
    gap: 1.75rem;
}

.nav a {
    text-decoration: none;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    transition: color 0.15s ease;
}

.nav a:hover {
    color: #0b1020;
}

.header-cta {
    text-decoration: none;
    color: #fff;
    background: #0b1020;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.15s ease;
}

.header-cta:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* ===== Nav dropdowns: full-width mega menus anchored to the header bar ===== */
.header-pill { position: relative; }

.nav a,
.nav-drop-btn {
    font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
}

/* Static so each panel positions against .header-pill, not its own button */
.nav-dropdown { position: static; }

.nav-drop-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

.nav-drop-btn:hover,
.nav-dropdown:hover .nav-drop-btn { color: #0b1020; }

.nav-drop-arrow {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-drop-arrow,
.nav-dropdown.open .nav-drop-arrow { transform: rotate(180deg); }

.nav-drop-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(1080px, calc(100vw - 48px));
    margin-top: 10px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 0;
    box-shadow: 0 24px 60px -12px rgba(15,23,42,0.18), 0 2px 6px rgba(15,23,42,0.04);
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

/* Invisible bridge over the gap between the button and the panel, so the
   pointer can travel down without the hover dropping. */
.nav-drop-panel::before {
    content: '';
    position: absolute;
    top: -32px;
    left: 0;
    right: 0;
    height: 32px;
}

.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown.open .nav-drop-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.ndp-label {
    display: block;
    padding: 2px 12px 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ndp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 6px;
}

.ndp-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ndp-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 40px 14px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ndp-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.ndp-item:hover .ndp-icon {
    background: #00A896;
}

.ndp-item:hover .ndp-icon svg { stroke: #ffffff; }

.ndp-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    opacity: 0;
    color: #00A896;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.ndp-item:hover .ndp-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.ndp-arrow svg { width: 14px; height: 14px; }

.ndp-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0,168,150,0.08);
    transition: background 0.15s ease;
}

.ndp-icon svg {
    width: 20px;
    height: 20px;
    transition: stroke 0.15s ease;
}

.ndp-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 1px;
}

.ndp-text strong {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: #0f172a;
    line-height: 1.2;
}

.ndp-text small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.4;
}

.ndp-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 8px 4px;
}

/* ── Mega layout: promo card on the left, links on the right ── */
.nav-drop-panel--mega {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.ndp-promo {
    position: relative;
    width: 280px;
    min-height: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    background: #0b1020;
}

.ndp-promo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.35s ease;
}

.ndp-promo:hover img { transform: scale(1.04); }

.ndp-promo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,16,32,0.05) 25%, rgba(11,16,32,0.92) 85%);
}

.ndp-promo-content { position: relative; z-index: 1; }

.ndp-promo-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2dd4bf;
}

.ndp-promo-title {
    display: block;
    margin-bottom: 6px;
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #ffffff;
}

.ndp-promo-sub {
    display: block;
    margin-bottom: 14px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.78);
}

.ndp-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #0b1020;
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.15s ease;
}

.ndp-promo:hover .ndp-promo-btn { background: #2dd4bf; }

.ndp-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

/* Mega menus hold 2–4 items: a 2×2 grid fills the space beside the promo
   instead of stranding the 4th item alone on a second row. */
.nav-drop-panel--mega .ndp-grid { grid-template-columns: repeat(2, 1fr); }
.nav-drop-panel--mega .ndp-item { padding-top: 16px; padding-bottom: 16px; }
.nav-drop-panel--mega .ndp-promo { min-height: 240px; }

/* "Need something else?" custom-development CTA at the foot of the Solutions mega menu */
.ndp-custom {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ndp-custom:hover { border-color: #00A896; background: #f0fdfa; }
.ndp-custom-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #00A896;
}
.ndp-custom-icon svg { width: 20px; height: 20px; }
.ndp-custom-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ndp-custom-text strong { font-size: 0.9rem; font-weight: 600; color: #0f172a; }
.ndp-custom-text small { font-size: 0.78rem; color: #64748b; line-height: 1.4; }
.ndp-custom-btn {
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: #00A896;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.ndp-custom:hover .ndp-custom-btn { background: #2dd4bf; }
.mob-acc-item--custom { margin-top: 6px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; }

/* Mobile section labels */
.mobile-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 10px 1rem 4px;
}

.mobile-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 1rem;
}

/* ===== Mobile Accordion ===== */
.mob-accordion {
    border-bottom: 1px solid #f1f5f9;
}

.mob-acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.mob-acc-arrow {
    width: 11px;
    height: 11px;
    color: #94a3b8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.mob-accordion.open .mob-acc-arrow {
    transform: rotate(180deg);
}

.mob-acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0.5rem;
}

.mob-accordion.open .mob-acc-panel {
    max-height: 400px;
}

.mob-acc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 2px;
    transition: background 0.15s ease;
}

.mob-acc-item:hover {
    background: #f0fdf9;
}

.mob-acc-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(0,168,150,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mob-acc-icon svg {
    width: 18px;
    height: 18px;
}

.mob-acc-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mob-acc-text strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.mob-acc-text small {
    font-size: 0.72rem;
    color: #64748b;
}

/* ===== Layout — use .container inside sections for constrained content ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Footer ===== */
.site-footer {
    padding: 2rem 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    margin-top: 0;
}

.footer-logo {
    display: inline-flex;
    margin-bottom: 0.5rem;
}

.footer-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

/* ===== Hamburger ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.hamburger:hover { background: rgba(15, 23, 42, 0.06); }

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #0b1020;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

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

/* ===== Mobile nav dropdown ===== */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    margin-top: 0.5rem;
    padding: 0.5rem;
    width: 100%;
    max-width: 1100px;
    align-self: center;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}

.mobile-nav.open {
    max-height: 700px;
    opacity: 1;
}

.mobile-nav a {
    text-decoration: none;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav a:hover { background: #f1f5f9; color: #0b1020; }

.mobile-nav .mobile-cta {
    margin-top: 0.25rem;
    background: #0b1020;
    color: #fff;
    text-align: center;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.mobile-nav .mobile-cta:hover { background: #1e293b; }

@media (max-width: 768px) {
    .nav { display: none; }
    .header-cta { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: flex; }
    .site-header { flex-direction: column; align-items: stretch; padding: 1rem 1rem 0; }
    .header-pill { padding: 0.5rem 0.5rem 0.5rem 1rem; }
}

/* Echo's animated orb in the nav menus */
.ndp-icon--orb, .mob-acc-icon--orb { position: relative; overflow: visible; }
.ndp-icon--orb.has-orb, .mob-acc-icon--orb.has-orb,
.ndp-item:hover .ndp-icon--orb.has-orb { background: transparent; }
.ndp-icon--orb.has-orb svg, .mob-acc-icon--orb.has-orb svg { display: none; }
.nav-orb {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    border-radius: 50%; pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(73, 22, 168, .28));
}
