/* NextVev — refined landing */

:root {
    --bg: #eef1f8;
    --bg-deep: #e2e8f4;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.78);
    --text: #0f172a;
    --text-muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);
    --accent: #4f46e5;
    --accent-2: #0891b2;
    --accent-soft: rgba(79, 70, 229, 0.1);
    --accent-glow: rgba(79, 70, 229, 0.28);
    --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #0891b2 100%);
    --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 16px 48px rgba(15, 23, 42, 0.09);
    --shadow-hover: 0 24px 56px rgba(79, 70, 229, 0.14);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --max: 720px;
    --max-wide: 1080px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 120% 70% at 50% -25%, rgba(79, 70, 229, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(124, 58, 237, 0.1), transparent 50%),
        radial-gradient(ellipse 45% 35% at 0% 30%, rgba(8, 145, 178, 0.09), transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, var(--bg) 35%, #e8edf5 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.28);
    outline-offset: 2px;
}

.wrap {
    width: min(var(--max-wide), calc(100% - 2rem));
    margin-inline: auto;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.header__nav-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.header__menu-btn {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.header__menu-btn:hover {
    border-color: rgba(79, 70, 229, 0.35);
    color: #4f46e5;
}

.header__menu-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
    height: 14px;
}

.header__menu-bars span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header__menu-btn[aria-expanded="true"] .header__menu-bars span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] .header__menu-bars span:nth-child(2) {
    opacity: 0;
}

.header__menu-btn[aria-expanded="true"] .header__menu-bars span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header__link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.header__link:hover {
    color: var(--accent);
    background: rgba(79, 70, 229, 0.06);
}

.header__btn {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--gradient-hero);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.4);
}

.header__logout {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.46rem 0.85rem;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.header__logout:hover {
    border-color: rgba(79, 70, 229, 0.35);
    color: #4f46e5;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -0.03em;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo__img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

@media (max-width: 840px) {
    .header__menu-btn {
        display: inline-flex;
    }

    .header__nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        left: auto;
        min-width: min(100vw - 2rem, 280px);
        z-index: 100;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.5rem;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    }

    .header__nav.header__nav--open {
        display: flex;
    }

    .header__link,
    .header__nav a,
    .header__btn,
    .header__logout {
        width: 100%;
        text-align: left;
        font-size: 0.9rem;
        padding: 0.7rem 0.85rem;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .header__btn {
        text-align: center;
    }

    body.nav-menu-open {
        overflow: hidden;
    }

    .header__menu-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .header__menu-btn {
        padding: 0.55rem 0.65rem;
    }
}

@media (min-width: 841px) {
    .header__menu-btn {
        display: none !important;
    }

    .header__nav {
        display: flex !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        min-width: 0 !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1.25rem !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.nav-menu-open {
        overflow: auto;
    }
}

/* Hero */
.hero {
    position: relative;
    padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 3.75rem);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.07) 0%, transparent 42%),
        radial-gradient(circle at 80% 70%, rgba(8, 145, 178, 0.06) 0%, transparent 38%);
    pointer-events: none;
}

.hero__shell {
    position: relative;
}

.hero__card {
    position: relative;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: linear-gradient(165deg, #ffffff 0%, #fafbff 50%, #f4f6fd 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: calc(var(--radius-lg) + 4px);
    box-shadow:
        var(--shadow-md),
        0 0 0 1px rgba(79, 70, 229, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.hero__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.2), transparent);
    border-radius: 1px;
    pointer-events: none;
}

.hero__top {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
    margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
    padding-bottom: clamp(1.75rem, 3vw, 2.25rem);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

@media (min-width: 900px) {
    .hero__top {
        grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
        gap: 2.5rem;
    }
}

.hero__main {
    min-width: 0;
}

.hero__eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5b21b6;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(8, 145, 178, 0.1));
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.18);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}

.hero__title {
    margin: 0 0 1.125rem;
    font-size: clamp(2rem, 4.8vw, 2.85rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.038em;
    max-width: 22ch;
}

@media (max-width: 599px) {
    .hero__title {
        max-width: none;
    }
}

.hero__gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__intro {
    margin: 0 0 1.5rem;
    font-size: 1.09375rem;
    font-weight: 450;
    color: var(--text-muted);
    line-height: 1.72;
    max-width: 36rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.35rem;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
    color: #fff;
    background: var(--gradient-hero);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.32);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(79, 70, 229, 0.38);
}

.btn--ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.btn--ghost:hover {
    border-color: rgba(79, 70, 229, 0.35);
    background: #fff;
    transform: translateY(-1px);
}

.hero__highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.hero__highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.hero__highlights strong {
    color: var(--text);
    font-weight: 700;
}

.hero__hi-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.05rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: #15803d;
    background: rgba(22, 163, 74, 0.12);
    border-radius: 6px;
}

/* Hero decorative panel */
.hero__visual {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 260px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(79, 70, 229, 0.06) 0%, rgba(8, 145, 178, 0.05) 100%);
    border: 1px solid rgba(79, 70, 229, 0.1);
    overflow: hidden;
    isolation: isolate;
}

@media (max-width: 899px) {
    /* Decorative panel only — hidden on phones to avoid collapsed grid column (thin vertical line) */
    .hero__visual {
        display: none;
    }

    .hero__top {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }
}

.hero__blob {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-45%, -50%);
    background: var(--gradient-hero);
    opacity: 0.35;
    filter: blur(48px);
    border-radius: 50%;
    z-index: 0;
}

.hero__float {
    position: absolute;
    z-index: 1;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.hero__float--1 {
    top: 12%;
    left: 8%;
    max-width: 11rem;
    animation: hero-float 6s ease-in-out infinite;
}

.hero__float--2 {
    bottom: 18%;
    right: 10%;
    max-width: 11.5rem;
    animation: hero-float 7s ease-in-out infinite 0.8s;
}

.hero__float--3 {
    top: 38%;
    right: 6%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    animation: hero-float 5.5s ease-in-out infinite 0.4s;
}

.hero__float-tag {
    display: block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.hero__float-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

.hero__float-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: conic-gradient(from 210deg, #4f46e5, #7c3aed, #0891b2, #4f46e5);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.hero__float-stat {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.hero__float-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__float--1,
    .hero__float--2,
    .hero__float--3 {
        animation: none;
    }
}

/* Pillars */
.pillars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

@media (min-width: 700px) {
    .pillars {
        grid-template-columns: 1fr 1fr;
        gap: 1.1rem 1.35rem;
    }
}

.pillars__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.3rem 1.4rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pillars__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.18);
}

.pillars__num {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #fff;
    background: var(--gradient-hero);
    border-radius: 12px;
    box-shadow: 0 6px 16px var(--accent-glow);
}

.pillars__item strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.96875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pillars__item p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.62;
}

/* Testimonials */
.testimonials {
    position: relative;
    padding: clamp(2.75rem, 7vw, 4rem) 0;
    scroll-margin-top: 5rem;
}

.testimonials::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: min(900px, 100%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.testimonials__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin: -0.5rem 0 1.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    width: fit-content;
    max-width: 100%;
}

.testimonials__score {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.testimonials__stars {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: #f59e0b;
}

.testimonials__count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Reviews slider (homepage + project pages) */
.reviews-slider {
    position: relative;
    margin-top: 0.25rem;
}

.reviews-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.reviews-slider__arrow {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.reviews-slider__arrow:hover {
    border-color: rgba(79, 70, 229, 0.35);
    color: #4f46e5;
    transform: translateY(-1px);
}

.reviews-slider__viewport {
    overflow: hidden;
    border-radius: 14px;
}

.reviews-slider__track {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0.15rem 0.1rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.reviews-slider__track > li {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .reviews-slider__track > li {
        flex: 0 0 calc((100% - 1rem) / 2);
    }
}

@media (min-width: 960px) {
    .reviews-slider__track > li {
        flex: 0 0 calc((100% - 2rem) / 3);
    }
}

.reviews-slider__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.reviews-slider__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.2);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.reviews-slider__dot.is-active {
    background: #4f46e5;
    transform: scale(1.2);
}

.reviews-slider .testimonial-card,
.reviews-slider .project-review-card {
    height: 100%;
}

.testimonials__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
}

.reviews-slider .testimonials__grid,
.reviews-slider .project-reviews-grid {
    display: flex;
    grid-template-columns: unset;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    border-color: rgba(79, 70, 229, 0.22);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}

.testimonial-card__stars {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: #f59e0b;
    line-height: 1;
}

.testimonial-card__quote {
    margin: 0;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.62;
    color: var(--text-muted);
}

.testimonial-card__meta {
    margin-top: auto;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.testimonial-card__name {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.testimonial-card__role {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

@media (min-width: 900px) {
    .testimonials__grid:not(.reviews-slider__track) {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reviews-slider__track {
        transition: none;
    }
}

/* Continuous marquee scroll */
.reviews-slider--continuous .reviews-slider__controls,
.reviews-slider--continuous .reviews-slider__dots {
    display: none !important;
}

.reviews-slider--continuous .reviews-slider__viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.reviews-slider--continuous .reviews-slider__track {
    width: max-content;
    transition: none !important;
    animation: reviews-marquee-scroll var(--marquee-duration, 70s) linear infinite;
}

.reviews-slider--continuous .reviews-slider__track > li {
    flex: 0 0 min(300px, calc(100vw - 2.75rem));
    width: min(300px, calc(100vw - 2.75rem));
    max-width: none;
}

.reviews-slider--continuous:hover .reviews-slider__track {
    animation-play-state: paused;
}

@keyframes reviews-marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reviews-slider--continuous .reviews-slider__track {
        animation: none;
        width: 100%;
        flex-wrap: wrap;
    }

    .reviews-slider--continuous .reviews-slider__track > li {
        flex: 1 1 min(280px, 100%);
        width: auto;
    }
}

/* Projects */
.projects {
    position: relative;
    padding: clamp(3rem, 8vw, 4.5rem) 0;
    scroll-margin-top: 5rem;
}

.projects::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: min(900px, 100%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section__kicker {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.section__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 3.2vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.section__lead {
    margin: 0 0 2rem;
    max-width: 40rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.section__lead strong {
    color: var(--text);
    font-weight: 700;
}

.catalog-filter {
    margin: 0 0 1.2rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.catalog-filter__controls {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
}

.catalog-filter__label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.catalog-filter__input {
    width: min(460px, 100%);
    flex: 1;
    min-width: 240px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.72rem 0.9rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
}

.catalog-filter__input:focus {
    outline: 2px solid rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.45);
}

.catalog-filter__meta {
    margin: 0.55rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.catalog-filter__button {
    border: 0;
    border-radius: 999px;
    padding: 0.72rem 1rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--gradient-hero);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-filter__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.26);
}

.checkout-email {
    margin: 0 0 1.25rem;
}

.checkout-email__label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.checkout-email__input {
    width: min(420px, 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
}

.checkout-email__input:focus {
    outline: 2px solid rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.45);
}

.auth-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(8, 145, 178, 0.05) 100%);
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
}

.auth-banner__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 42rem;
}

.auth-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-banner__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: var(--gradient-hero);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-banner__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.auth-banner__out {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.auth-banner__out:hover {
    border-color: rgba(79, 70, 229, 0.25);
}

.project-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

/* Tablet and desktop: max 2 cards per row; lone card spans full width */
@media (min-width: 720px) {
    .project-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-list > .project-card:only-child {
        grid-column: 1 / -1;
    }
}

.project-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem 1.25rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0.95;
}

.project-card:nth-child(1)::before {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.project-card:nth-child(2)::before {
    background: linear-gradient(90deg, #0891b2, #06b6d4);
}

.project-card:nth-child(3)::before {
    background: linear-gradient(90deg, #db2777, #f472b6);
}

.project-card:nth-child(4)::before {
    background: linear-gradient(90deg, #ea580c, #fbbf24);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.15);
}

.project-card__title {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.project-card__text {
    margin: 0 0 1.125rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.project-card__attractive {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.15rem;
}

.project-card__attractive .project-card__text {
    flex: 1 1 200px;
    min-width: 0;
    margin: 0 0 0.35rem;
}

.project-card__attractive .project-card__know-more {
    flex: 0 0 auto;
    align-self: center;
    margin: 0 0 0.25rem;
}

.project-card__proof {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(251, 191, 36, 0.06) 100%);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.project-card__proof-line {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #92400e;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.project-card__proof-line + .project-card__proof-line {
    margin-top: 0.35rem;
}

.project-card__proof-line--secondary {
    font-weight: 600;
    color: #a16207;
    font-size: 0.78rem;
}

.project-card__deliverables {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem 0.85rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, rgba(8, 145, 178, 0.05) 100%);
    border: 1px solid rgba(79, 70, 229, 0.18);
}

.project-card__deliverables-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #4338ca;
}

.project-card__deliverables-title {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text);
}

.project-card__deliverables-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-card__deliverables-list li {
    position: relative;
    margin: 0.28rem 0 0 0.1rem;
    padding-left: 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-muted);
}

.project-card__deliverables-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 800;
    font-size: 0.85rem;
}

.project-card__cv {
    margin: 0 0 1.125rem;
    padding: 0.9rem 1rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(8, 145, 178, 0.09) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.project-card__cv-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.project-card__cv-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4338ca;
}

.project-card__cv-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #0891b2);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.project-card__cv-copy {
    border: 1px solid rgba(67, 56, 202, 0.35);
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    color: #3730a3;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.project-card__cv-copy:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.project-card__cv-list {
    margin: 0;
    padding: 0 0 0 1.1rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.project-card__cv-list li {
    position: relative;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
    padding-left: 0.1rem;
}

.project-card__cv-list li::before {
    content: "→";
    position: absolute;
    left: -1rem;
    top: 0.05em;
    font-size: 0.75rem;
    font-weight: 800;
    color: #0891b2;
    opacity: 0.9;
}

.project-card__domain {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.project-card__price {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.project-card__price-old {
    margin-left: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #b91c1c;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #dc2626;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.project-card__price-note {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f766e;
}

.project-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.project-card__actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.project-card__know-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    min-height: 2.5rem;
    padding: 0.62rem 1rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    color: #3730a3 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
    border: 1px solid rgba(79, 70, 229, 0.26);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.12);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card__know-more:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #ffffff 0%, #ede9fe 100%);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.18);
}

.project-card__know-more::after {
    content: "→";
    font-size: 0.86rem;
    line-height: 1;
    opacity: 0.9;
}

/* Keep Know More as a styled button in all link states */
.project-card a.project-card__know-more,
.project-card a.project-card__know-more:link,
.project-card a.project-card__know-more:visited,
.project-card a.project-card__know-more:hover,
.project-card a.project-card__know-more:active {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    min-height: 2.5rem !important;
    padding: 0.62rem 1rem !important;
    border-radius: 999px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    text-decoration: none !important;
    color: #3730a3 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%) !important;
    border: 1px solid rgba(79, 70, 229, 0.26) !important;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.12) !important;
}

.project-card__skills {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.project-card--seo-fallback .project-card__know-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.project-card--seo-fallback .project-card__know-more:hover {
    text-decoration: underline;
}

.catalog-skills {
    margin-top: 2rem;
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}

.catalog-skills__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.catalog-skills__lead {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.catalog-skills__list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text);
}

.catalog-skills__list li + li {
    margin-top: 0.45rem;
}

.project-card__coupon {
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.project-card__coupon-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.project-card__coupon-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.project-card__coupon-input {
    flex: 1 1 140px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    font: inherit;
    font-size: 0.85rem;
    background: #f8fafc;
    color: var(--text);
}

.project-card__coupon-apply {
    border: 1px solid rgba(79, 70, 229, 0.35);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4338ca;
    background: var(--surface);
    cursor: pointer;
    transition: background 0.2s;
}

.project-card__coupon-apply:hover {
    background: var(--accent-soft);
}

.project-card__promo {
    margin: 0 0 0.45rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #5b21b6;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(79, 70, 229, 0.22);
}

.project-card__promo .nv-promo-badge {
    display: inline-block;
    margin-right: 0.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: #e11d48;
    vertical-align: middle;
}

.project-card__coupon-hint {
    margin: 0;
    min-height: 1.1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f766e;
}

.project-card__button {
    border: 0;
    border-radius: 999px;
    min-height: 2.5rem;
    padding: 0.7rem 1.05rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--gradient-hero);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 560px) {
    .project-card__footer {
        flex-direction: column;
        align-items: stretch;
    }
    .project-card__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }
    .project-card__know-more,
    .project-card__button {
        flex: 1;
        text-align: center;
    }
}

.project-card__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.26);
}

.project-card__button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.project-card__button:not(:disabled):hover {
    transform: translateY(-1px);
}

.project-card__cta-note {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f766e;
}

.payment-status {
    min-height: 1.5rem;
    margin: 1.25rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
}

.payment-status--loading {
    color: var(--accent-2);
}

.payment-status--success {
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.2);
    background: rgba(22, 163, 74, 0.08);
}

.payment-status--error {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(220, 38, 38, 0.06);
}

/* Closing */
.closing {
    padding: 2.5rem 0 4rem;
}

.closing__inner {
    text-align: center;
    padding: 2.25rem 1.75rem;
    max-width: 560px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--surface), var(--surface)),
        var(--gradient-hero);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.closing__title {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.closing__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.closing__text strong {
    color: var(--text);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--text);
    color: #94a3b8;
}

.footer__inner {
    text-align: center;
}

.footer__copy {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
}

.floating-project-list {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    left: auto;
    /* Stacked above the WhatsApp FAB (3.5rem) + gap (0.75rem) */
    bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 4.25rem);
    z-index: 2147483645;
    border-radius: 999px;
    padding: 0.72rem 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    background: var(--gradient-hero);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-project-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(79, 70, 229, 0.35);
}

@media (min-width: 768px) {
    .floating-project-list {
        bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 4rem);
    }
}

@media (max-width: 640px) {
    .floating-project-list {
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        bottom: calc(max(0.75rem, env(safe-area-inset-bottom, 0px)) + 4.1rem);
        padding: 0.62rem 0.82rem;
        font-size: 0.8rem;
    }
}

/* Know more page: back link at top — hide duplicate floating Project List */
body.cd-page-details .floating-project-list {
    display: none !important;
}

/* Floating WhatsApp — primary styles also inlined in whatsapp-float.js */
#nextvev-whatsapp-fab.floating-whatsapp {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    left: auto;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 2147483646;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: auto;
    height: auto;
    padding: 0.72rem 1.15rem 0.72rem 0.88rem;
    border-radius: 999px;
    box-sizing: border-box;
}

#nextvev-whatsapp-fab .floating-whatsapp__icon {
    flex-shrink: 0;
}

#nextvev-whatsapp-fab .floating-whatsapp__label {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
}

@media (max-width: 767px) {
    #nextvev-whatsapp-fab.floating-whatsapp {
        width: 3.5rem;
        height: 3.5rem;
        min-width: 3.5rem;
        min-height: 3.5rem;
        padding: 0;
        border-radius: 50%;
        gap: 0;
        justify-content: center;
    }

    #nextvev-whatsapp-fab .floating-whatsapp__label {
        display: none;
    }
}

body.cd-page-details #nextvev-whatsapp-fab.floating-whatsapp {
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

@media (max-width: 979px) {
    body.cd-page-details.cd-has-mobile-cta #nextvev-whatsapp-fab.floating-whatsapp {
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }

    body.cd-page-details.cd-has-mobile-cta .floating-project-list {
        bottom: calc(4.75rem + 4.25rem + env(safe-area-inset-bottom, 0px));
    }
}
