/* NAV */
.nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 56px;
    max-width: 1440px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand) 0%, #8a5bfa 100%);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px -4px rgba(93, 46, 222, 0.45);
    position: relative;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 5px;
    background: conic-gradient(
        from 45deg,

        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.95)
    );
    -webkit-mask: radial-gradient(circle at 50% 50%, transparent 38%, #000 39%);
    mask: radial-gradient(circle at 50% 50%, transparent 38%, #000 39%);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 2px 12px -6px rgba(11, 11, 20, 0.06);
}

.nav-menu a {
    padding: 9px 18px;
    border-radius: 999px;
    color: var(--ink-2);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition:
        background 160ms ease,
        color 160ms ease;
}

.nav-menu a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.nav-menu a.active {
    background: var(--ink);
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 20px;
    border: 1.5px solid var(--line-2);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    transition:
        border-color 180ms ease,
        color 180ms ease,
        background 180ms ease;
}

.nav-login-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--ink);
    color: #fff;
    padding: 6px 6px 6px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 160ms ease;
}

.contact-btn:hover {
    background: var(--ink);
    color: #fff;
    transform: translateY(-1px);
}

.contact-btn .ico {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--brand);
    display: grid;
    place-items: center;
    transition: background 160ms ease;
}

.contact-btn:hover .ico {
    background: var(--brand-2);
}

.contact-btn:active,
.contact-btn:focus,
.contact-btn:visited {
    background: var(--ink);
    color: #fff;
}

/* Nav dropdown  */

.nav-menu {
    position: relative;
}

.nav-dropdown {
    position: relative;
}

.nav-drop-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.005em;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    transition:
        background 160ms ease,
        color 160ms ease;
}

.nav-drop-trigger:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.drop-chevron {
    transition: transform 220ms ease;
    flex-shrink: 0;
}

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

.drop-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow:
        0 20px 60px -10px rgba(11, 11, 20, 0.14),
        0 4px 16px -4px rgba(11, 11, 20, 0.08);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 200ms ease,
        transform 200ms ease,
        visibility 200ms;
    z-index: 100;
}

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

/* Wide panel: 4-column grid (Features) */

.drop-panel--wide {
    width: 780px;
    left: 0;
    transform: translateX(-30%) translateY(6px);
}

.nav-dropdown.open .drop-panel--wide {
    transform: translateX(-30%) translateY(0);
}

.drop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 20px;
}

.drop-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drop-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3, #8a8fa8);
    margin: 0 0 8px 6px;
}

.drop-col a {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink-2);
    text-decoration: none;
    transition:
        background 140ms ease,
        color 140ms ease;
    white-space: nowrap;
}

.drop-col a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

/* Small panel (Quote / Career) */

.drop-panel--sm {
    width: 255px;
    padding: 16px;
}

.drop-tagline {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-3, #8a8fa8);
    margin: 0 0 10px 4px;
    line-height: 1.4;
}

.drop-action-link {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    transition:
        background 140ms ease,
        color 140ms ease;
}

.drop-action-link:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

/* ── Hamburger ── */

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: background 160ms ease;
}

.nav-hamburger:hover {
    background: var(--brand-soft);
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition:
        transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 180ms ease,
        width 240ms ease;
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile drawer ── */

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100dvh;
    background: #fff;
    box-shadow: -8px 0 40px -8px rgba(11, 11, 20, 0.18);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    visibility: hidden;
}

.nav-drawer.open {
    transform: translateX(0);
    visibility: visible;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 11, 20, 0.45);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-inner {
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mob-link {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    transition:
        background 140ms ease,
        color 140ms ease;
}

.mob-link:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.mob-acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    transition:
        background 140ms ease,
        color 140ms ease;
}

.mob-acc-trigger:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.mob-accordion.open .mob-acc-trigger {
    background: var(--brand-soft);
    color: var(--brand);
}

.mob-accordion.open .drop-chevron {
    transform: rotate(180deg);
}

.mob-acc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 250ms ease;
    overflow: hidden;
    padding-left: 14px;
}

.mob-accordion.open .mob-acc-body {
    grid-template-rows: 1fr;
}

.mob-acc-body > div {
    min-height: 0;
}

.mob-acc-body a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink-2);
    text-decoration: none;
    transition:
        background 140ms ease,
        color 140ms ease;
}

.mob-acc-body a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.mob-acc-section {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3, #8a8fa8);
    margin: 10px 0 4px 10px;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
}

.drawer-close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    color: var(--ink-2);
    transition: background 140ms ease;
}

.drawer-close:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.mob-cta {
    margin-top: 16px;
    align-self: flex-start;
}

/* Responsive breakpoints */

@media (max-width: 1024px) {
    .nav {
        padding: 16px 20px;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        display: none !important;
    }

    .nav-actions .contact-btn {
        display: none;
    }
}
