* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Shared header finish */
.navbar::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 38%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft), transparent);
    box-shadow: 0 0 18px rgba(154, 77, 255, 0.65);
}

.logo {
    gap: 0.85rem;
    transition: transform 0.2s ease;
}

.logo:hover { transform: translateY(-1px); }

.logo-mark {
    flex: 0 0 50px;
    width: 50px !important;
    height: 50px !important;
    overflow: hidden;
    border-color: rgba(198, 154, 255, 0.72);
    background: linear-gradient(145deg, #2b1d4b, #100c1d);
    box-shadow: 0 0 0 4px rgba(154, 77, 255, 0.08), 0 8px 22px rgba(0, 0, 0, 0.28);
    transform: skewX(-5deg);
}

.logo-mark img { transform: skewX(5deg); }

.logo-text {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    letter-spacing: 1.8px;
    line-height: 1;
}

:root {
    --bg: #09080d;
    --surface: #15121e;
    --surface-light: #211a31;
    --line: #39304d;
    --text: #f7f4ff;
    --muted: #b8b0c9;
    --accent: #9a4dff;
    --accent-soft: #c69aff;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    background: var(--bg);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

.services-ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 84% 12%, rgba(154, 77, 255, 0.23), transparent 28%),
        linear-gradient(122deg, rgba(154, 77, 255, 0.12) 0 14%, transparent 14% 44%, rgba(255, 255, 255, 0.025) 44% 56%, transparent 56%);
}

.container {
    width: min(1160px, calc(100% - 2.2rem));
    margin-inline: auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(9, 8, 13, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.nav-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    text-decoration: none;
}

.logo-mark {
    width: 42px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #171124;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 1.4px;
}

nav {
    margin-left: auto;
}

.nav-menu {
    display: flex;
    gap: 1.15rem;
    list-style: none;
}

.nav-dropdown {
    position: relative;
}

.site-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: -0.8rem;
    z-index: 10;
    display: grid;
    min-width: 175px;
    padding: 0.45rem;
    border: 1px solid var(--line);
    background: rgba(15, 13, 21, 0.98);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown.is-open .site-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-dropdown-menu a {
    display: block;
    padding: 0.65rem 0.75rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.site-dropdown-menu a:hover,
.site-dropdown-menu a:focus-visible {
    color: var(--text);
    background: rgba(154, 77, 255, 0.18);
}

.nav-link {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
}

.profile-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: #1b1330;
    font-size: 1.5rem;
    text-decoration: none;
}

.hamburger {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

.services-hero {
    padding: clamp(5rem, 12vw, 10rem) 0 7rem;
    border-bottom: 1px solid var(--line);
}

.services-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: end;
    gap: 2rem;
}

.eyebrow {
    color: var(--accent-soft);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 9ch;
    margin: 1rem 0 1.4rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4.5rem, 12vw, 9.8rem);
    line-height: 0.83;
    letter-spacing: 1px;
}

.hero-copy h1 span,
.section-intro h2 span,
.cta-panel h2 span {
    color: var(--accent-soft);
}

.hero-description {
    max-width: 52ch;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 12px 28px rgba(154, 77, 255, 0.27);
}

.hero-index {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem;
    border-left: 1px solid var(--accent-soft);
    background: linear-gradient(145deg, rgba(154, 77, 255, 0.18), transparent 60%);
}

.hero-index span {
    color: var(--accent-soft);
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-index strong {
    color: var(--text);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 7rem;
    line-height: 0.8;
}

.hero-index small {
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.services-list {
    padding: 6rem 0;
}

.section-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-intro h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 0.9;
    letter-spacing: 1px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    min-height: 335px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(33, 26, 49, 0.94), rgba(15, 13, 21, 0.98));
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-soft);
    background: linear-gradient(145deg, rgba(55, 35, 83, 0.94), rgba(15, 13, 21, 0.98));
}

.service-card-wide {
    grid-column: 1 / -1;
    min-height: 230px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-topline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.2rem;
    color: var(--accent-soft);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    line-height: 1;
}

.service-mark {
    color: var(--muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
}

.service-card h3 {
    max-width: 12ch;
    margin-bottom: 0.7rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.8px;
    line-height: 0.95;
}

.service-card p {
    max-width: 42ch;
    color: var(--muted);
    font-size: 0.9rem;
}

.service-card ul {
    align-self: end;
    width: 100%;
    margin-top: auto;
    padding-top: 1.5rem;
    list-style: none;
}

.service-card li {
    padding: 0.55rem 0;
    border-top: 1px solid rgba(57, 48, 77, 0.8);
    color: #e6e0f1;
    font-size: 0.82rem;
}

.service-card li::before {
    content: '+ ';
    color: var(--accent-soft);
    font-weight: 700;
}

.services-cta {
    padding: 0 0 6rem;
}

.cta-panel {
    padding: clamp(2rem, 6vw, 5rem);
    border: 1px solid var(--accent-soft);
    background: linear-gradient(120deg, rgba(154, 77, 255, 0.32), rgba(21, 18, 30, 0.95) 64%);
}

.cta-panel h2 {
    margin: 1rem 0 2rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 9vw, 8rem);
    line-height: 0.82;
    letter-spacing: 1px;
}

.btn-light {
    color: #120d1b;
    background: var(--text);
}

.footer {
    padding: 1.3rem 0 1.8rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 820px) {
    .hamburger {
        display: block;
        margin-left: auto;
    }

    nav {
        order: 3;
        width: 100%;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        padding-bottom: 0.8rem;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-dropdown {
        width: 100%;
    }

    .site-dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        margin: 0.25rem 0 0.5rem 0.8rem;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        opacity: 0;
        pointer-events: none;
        transform: none;
    }

    .nav-dropdown.is-open .site-dropdown-menu {
        display: grid;
        opacity: 1;
        pointer-events: auto;
    }

    .services-hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-index {
        min-height: 150px;
        flex-direction: row;
        align-items: center;
    }

    .hero-index strong {
        font-size: 5rem;
    }
}

@media (max-width: 620px) {
    .logo-text {
        font-size: 1.45rem;
    }

    .profile-btn {
        width: 38px;
        height: 38px;
    }

    .services-hero {
        padding-top: 4rem;
    }

    .section-intro {
        display: block;
    }

    .section-intro h2 {
        margin-top: 0.7rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .service-card-wide {
        min-height: 0;
        display: flex;
    }
}
