.nav-menu > a[aria-current="page"] {
    position: relative;
    color: var(--foreground);
}

.nav-menu > a[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--primary);
    box-shadow: 0 0 16px rgba(245, 168, 36, 0.7);
}

.clients-page {
    overflow: hidden;
}

.clients-hero {
    min-height: 720px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.clients-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--background) 0%, rgba(6, 10, 14, 0.88) 44%, rgba(6, 10, 14, 0.35) 100%),
        radial-gradient(circle at 80% 48%, rgba(245, 168, 36, 0.12), transparent 35%);
}

.clients-hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, transparent 5%, #000 55%, #000 100%);
}

.clients-hero-glow {
    position: absolute;
    top: 17%;
    right: 8%;
    width: min(42vw, 580px);
    aspect-ratio: 1;
    border: 1px solid rgba(245, 168, 36, 0.22);
    border-radius: 50%;
    box-shadow:
        0 0 0 80px rgba(245, 168, 36, 0.025),
        0 0 0 160px rgba(245, 168, 36, 0.015),
        0 0 120px rgba(245, 168, 36, 0.12);
}

.clients-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.clients-hero h1 {
    max-width: 950px;
    margin-top: 24px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(68px, 9vw, 124px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.82;
}

.clients-hero h1 span {
    display: block;
    color: var(--primary);
    font-style: italic;
    font-weight: 500;
}

.clients-hero p {
    max-width: 620px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 17px;
}

.clients-hero .button {
    margin-top: 34px;
}

.clients-showcase {
    background: rgba(16, 22, 30, 0.46);
}

.clients-section-intro {
    max-width: 760px;
    margin-bottom: 52px;
}

.clients-section-intro.centered {
    margin-inline: auto;
    text-align: center;
}

.clients-section-intro h2,
.clients-cta h2 {
    margin-top: 18px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(52px, 7vw, 88px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.92;
}

.clients-section-intro p,
.clients-cta p {
    max-width: 650px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 16px;
}

.clients-section-intro.centered p {
    margin-inline: auto;
}

.client-preview-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(10, 15, 21, 0.94);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.client-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 4px 4px 22px;
}

.client-preview-heading h3 {
    margin-top: 8px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(245, 168, 36, 0.1), 0 0 18px rgba(245, 168, 36, 0.55);
}

.preview-browser {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    background: #06090d;
}

.preview-toolbar {
    min-height: 58px;
    display: grid;
    grid-template-columns: 110px minmax(200px, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #10161e;
}

.browser-dots {
    display: flex;
    gap: 7px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff605c;
}

.browser-dots span:nth-child(2) { background: #ffbd44; }
.browser-dots span:nth-child(3) { background: #00ca4e; }

.preview-address {
    min-width: 0;
    padding: 8px 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: #75808d;
    font-size: 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-switcher {
    display: flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.device-switcher button {
    padding: 7px 11px;
    border: 0;
    border-radius: 7px;
    outline: 0;
    background: transparent;
    color: #75808d;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.device-switcher button:hover,
.device-switcher button:focus-visible {
    color: var(--foreground);
}

.device-switcher button:focus-visible {
    box-shadow: 0 0 0 2px var(--primary);
}

.device-switcher button.is-active {
    background: var(--primary-soft);
    color: var(--primary);
}

.preview-stage {
    min-height: 700px;
    display: flex;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0, rgba(245, 168, 36, 0.07), transparent 45%),
        #06090d;
}

.preview-viewport {
    width: 100%;
    height: 680px;
    overflow: hidden;
    border-radius: 10px;
    background: #f4efe5;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.preview-stage[data-preview-stage="mobile"] .preview-viewport {
    width: min(390px, 100%);
}

.preview-viewport iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #f4efe5;
}

.client-preview-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 18px;
}

.client-preview-details div {
    padding: 17px 18px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
}

.client-preview-details small,
.client-preview-details strong {
    display: block;
}

.client-preview-details small {
    color: #75808d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.client-preview-details strong {
    margin-top: 5px;
    color: #dce2e8;
    font-size: 13px;
}

.client-workflow {
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.info-panel {
    min-height: 290px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(16, 22, 30, 0.96), rgba(9, 13, 18, 0.96));
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.info-panel:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 168, 36, 0.38);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.info-number {
    color: var(--primary);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 22px;
}

.info-panel h3 {
    margin-top: 68px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
}

.info-panel p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

.clients-cta {
    text-align: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(245, 168, 36, 0.09), transparent 42%);
}

.clients-cta-inner {
    max-width: 860px;
}

.clients-cta p {
    margin-inline: auto;
}

.clients-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

@media (max-width: 900px) {
    .preview-toolbar {
        grid-template-columns: auto 1fr;
    }

    .preview-address {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .device-switcher {
        justify-self: end;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-panel {
        min-height: 230px;
    }

    .info-panel h3 {
        margin-top: 40px;
    }
}

@media (max-width: 800px) {
    .nav-menu > a[aria-current="page"]::after {
        display: none;
    }

    .clients-hero {
        min-height: 700px;
    }

    .clients-hero-glow {
        top: 24%;
        right: -26%;
        width: 78vw;
    }

    .clients-hero h1 {
        font-size: clamp(56px, 17vw, 88px);
    }

    .client-preview-card {
        padding: 14px;
        border-radius: 20px;
    }

    .client-preview-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-preview-heading .button {
        width: 100%;
    }

    .preview-stage {
        min-height: 620px;
        padding: 10px;
    }

    .preview-viewport {
        height: 600px;
    }

    .client-preview-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .clients-hero p {
        font-size: 15px;
    }

    .preview-toolbar {
        grid-template-columns: 1fr;
    }

    .browser-dots {
        display: none;
    }

    .device-switcher {
        width: 100%;
        justify-self: stretch;
    }

    .device-switcher button {
        flex: 1;
    }

    .preview-address {
        grid-column: auto;
        grid-row: auto;
        text-align: left;
    }

    .clients-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .preview-viewport,
    .info-panel {
        transition: none;
    }
}
