/* ── Brand tokens ─────────────────────────── */
:root {
    --graphite: #181820;
    --graphite-deep: #2D2D42;
    --graphite-mid: #3D3D58;
    --violet: #7C5CFA;
    --violet-light: #9B80FB;
    --violet-dark: #5A3ED4;
    --violet-tint: #EDE9FF;
    --near-white: #F8F8FC;
    --white: #FFFFFF;
    --text-body: #6B6B8A;
    --text-muted: #9696AA;
    --border: #EAEAF2;
    --font: 'Inter', sans-serif;
    --nav-h: 112px;
}

/* ── Reset ────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--near-white);
    color: var(--graphite);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ── Nav ──────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
}

.nav-logo img {
    height: 96px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2px;
    margin-left: auto;
    align-items: center;
}

.nav-links a,
.nav-links button {
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-body);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: none;
    transition: color .18s, background .18s;
    letter-spacing: .01em;
    position: relative;
}

.nav-links a:hover,
.nav-links button:hover {
    color: var(--graphite);
    background: var(--near-white);
}

.nav-links .nav-active {
    color: var(--violet);
    font-weight: 600;
}

.nav-cta {
    background: var(--graphite) !important;
    color: var(--white) !important;
    padding: 9px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    margin-left: 6px;
    transition: background .18s !important;
}

.nav-cta:hover {
    background: var(--graphite-deep) !important;
}

/* Services dropdown */
.nav-services-wrap {
    position: relative;
    margin-right: 24px;
}

.nav-services-wrap:hover .nav-dropdown {
    display: block;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    /* This will now apply evenly to all 4 sides */
    border-radius: 10px;
    padding: 8px;
    /* Uniform padding all around (removes the extra top padding) */
    min-width: 260px;
    box-shadow: 0 8px 32px rgba(24, 24, 32, .08);
    z-index: 100;
}

.nav-dropdown.open {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
    border-radius: 6px;
    transition: background .14s, color .14s;
}

.nav-dropdown a:hover {
    background: var(--near-white);
    color: var(--violet);
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--graphite);
    border-radius: 2px;
    transition: all .22s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 5% 20px;
    z-index: 999;
    flex-direction: column;
    gap: 2px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a,
.mobile-menu button {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-body);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
    background: var(--near-white);
    color: var(--graphite);
}

.mobile-submenu {
    padding-left: 16px;
}

.mobile-submenu a {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* ── Page system ──────────────────────────── */
.page {
    display: none;
    min-height: calc(100vh - var(--nav-h));
}

.page.active {
    display: block;
}

/* ── Page wrapper ─────────────────────────── */
.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 56px 0;
}

/* ── Typography ───────────────────────────── */
.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 12px;
    display: block;
}

h1.display {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: var(--graphite);
    margin-bottom: 20px;
}

h1.hero-title {
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
}

h2.section-title {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--graphite);
    margin-bottom: 14px;
}

h3.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--graphite);
    margin-bottom: 8px;
    letter-spacing: -.01em;
}

p.lead {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-body);
    margin-bottom: 16px;
}

p.body {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 14px;
}

p.body:last-child {
    margin-bottom: 0;
}

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 7px;
    cursor: pointer;
    border: none;
    transition: all .18s;
    letter-spacing: .01em;
}

.btn-primary {
    background: var(--violet);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--violet-dark);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, .35);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .08);
}

.btn-dark {
    background: var(--graphite);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--graphite-deep);
}

.btn-ghost {
    background: transparent;
    color: var(--violet);
    border: 1.5px solid var(--border);
}

.btn-ghost:hover {
    background: var(--violet-tint);
    border-color: var(--violet-light);
}

/* ── Hero ─────────────────────────────────── */
.hero {
    background: var(--graphite);
    padding: calc(var(--nav-h) + 80px) 5% 96px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--violet);
}

.hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 16px;
    display: block;
}

.hero-sub {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-services {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 28px;
}

.hero-services-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--violet-light);
    margin-bottom: 16px;
}

.hero-service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .75);
    cursor: pointer;
    transition: color .15s;
}

.hero-service-item:last-child {
    border-bottom: none;
}

.hero-service-item:hover {
    color: var(--white);
}

.hero-service-item::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--violet);
    flex-shrink: 0;
}

/* ── Service cards ────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.svc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    cursor: pointer;
    transition: box-shadow .2s, border-color .2s, transform .2s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--violet);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s;
}

.svc-card:hover::before {
    transform: scaleX(1);
}

.svc-card:hover {
    border-color: var(--violet-light);
    box-shadow: 0 8px 32px rgba(124, 92, 250, .1);
    transform: translateY(-2px);
}

.svc-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--violet-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.svc-card-icon svg {
    width: 20px;
    height: 20px;
}

.svc-card-desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-body);
    flex: 1;
    margin-bottom: 20px;
}

.svc-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--violet);
    display: flex;
    align-items: center;
    gap: 5px;
}

.svc-card-link svg {
    transition: transform .15s;
}

.svc-card:hover .svc-card-link svg {
    transform: translateX(3px);
}

/* ── Service detail page ──────────────────── */
.svc-hero {
    background: var(--graphite);
    padding: calc(var(--nav-h) + 56px) 5% 56px;
    position: relative;
}

.svc-hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--violet);
}

.svc-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.svc-hero h1 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 12px;
}

.svc-hero-sub {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .6);
    max-width: 600px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--violet-light);
    margin-bottom: 28px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font);
    transition: color .15s;
}

.back-btn:hover {
    color: var(--white);
}

.back-btn svg {
    transition: transform .15s;
}

.back-btn:hover svg {
    transform: translateX(-3px);
}

/* ── Content blocks ───────────────────────── */
.content-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 40px;
    margin-bottom: 20px;
}

.content-block h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--graphite);
    margin-bottom: 14px;
}

.bullet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bullet-list li {
    display: flex;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-body);
    align-items: flex-start;
}

.bullet-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--violet);
    flex-shrink: 0;
    margin-top: 8px;
}

/* ── About page ───────────────────────────── */
.about-hero {
    background: var(--graphite);
    padding: calc(var(--nav-h) + 56px) 5% 64px;
    position: relative;
}

.about-hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--violet);
}

.about-hero h1 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.15;
}

.about-hero p {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .6);
    max-width: 600px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── Contact page ─────────────────────────── */
.contact-hero {
    background: var(--graphite);
    padding: calc(var(--nav-h) + 56px) 5% 64px;
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--violet);
}

.contact-hero h1 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.15;
}

.contact-hero p {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .6);
    max-width: 560px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.contact-card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 10px;
}

.contact-card-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--graphite);
    margin-bottom: 4px;
}

.contact-card-sub {
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.6;
}

.contact-email-link {
    color: var(--violet);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.01em;
    display: inline-block;
    margin-top: 8px;
    transition: color .15s;
}

.contact-email-link:hover {
    color: var(--violet-dark);
}

/* ── CTA banner ───────────────────────────── */
.cta-banner {
    background: var(--graphite);
    border-radius: 16px;
    padding: 48px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--violet);
}

.cta-banner h2 {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.02em;
    margin-bottom: 6px;
}

.cta-banner p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, .55);
}

/* ── Footer ───────────────────────────────── */
footer {
    background: var(--graphite-deep);
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 48px 5% 32px;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.footer-brand img {
    height: 44px;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .35);
    max-width: 260px;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--violet-light);
    margin-bottom: 14px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a,
.footer-col ul li button {
    font-family: var(--font);
    font-size: 13.5px;
    color: rgba(255, 255, 255, .45);
    background: none;
    border: none;
    cursor: pointer;
    transition: color .15s;
    text-align: left;
}

.footer-col ul li a:hover,
.footer-col ul li button:hover {
    color: rgba(255, 255, 255, .85);
}

.footer-bottom {
    max-width: 1140px;
    margin: 24px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, .2);
}

/* ── Divider ──────────────────────────────── */
.violet-rule {
    width: 40px;
    height: 3px;
    background: var(--violet);
    border-radius: 2px;
    margin-bottom: 24px;
}

/* ── Badge ────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    background: var(--violet-tint);
    color: var(--violet-dark);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: .04em;
    margin-bottom: 20px;
}

/* ── Two-col layout ───────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── Page transition ──────────────────────── */
.page {
    animation: fadeIn .24s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {

    .hero-inner,
    .about-grid,
    .two-col,
    .footer-inner,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: calc(var(--nav-h) + 48px) 5% 64px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-inner {
        gap: 32px;
    }

    .cta-banner {
        padding: 32px 28px;
    }

    .content-block {
        padding: 24px;
    }

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

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}