/* ==========================================================================
   MVN-X — Design Tokens
   ========================================================================== */
:root {
    --navy: #1A1A2E;
    --navy-soft: #22223A;
    --cyan: #00C0FB;
    --violet: #C20FFE;
    --deep-purple: #61087F;
    --slate: #666666;
    --offwhite: #F5F6FA;
    --white: #FFFFFF;
    --gradient: linear-gradient(90deg, #00C0FB 0%, #C20FFE 100%);

    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Poppins", sans-serif;

    --wrap: 1160px;
    --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--slate); }

a { color: var(--cyan); text-decoration: none; }

sup { font-size: 0.55em; top: -0.8em; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.wrap--narrow { max-width: 760px; }

.eyebrow, .section-eyebrow {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--violet);
    margin: 0 0 1em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 999px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
    background: var(--gradient);
    background-clip: padding-box;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(26, 26, 46, 0.35);
}

.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(26, 26, 46, 0.45); }

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.logo-mark-img {
    height: 30px;
    width: auto;
    display: block;
}

.logo-word {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 15px;
}

.site-nav a:hover { color: var(--cyan); }

.site-nav a.nav-current { color: var(--white); font-weight: 600; }

.site-nav__cta {
    background: var(--gradient);
    background-clip: padding-box;
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 999px;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--white);
    display: block;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
    padding: 96px 0 88px;
}

.hero__wrap {
    position: relative;
}

.hero__pattern {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 280px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.hero__pattern img {
    width: 100%;
    height: auto;
    display: block;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    max-width: 560px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Credibility strip
   ========================================================================== */
.credibility {
    background: var(--offwhite);
    padding: 28px 0;
}

.credibility p {
    margin: 0;
    text-align: center;
    font-size: 15px;
    color: var(--slate);
}

/* ==========================================================================
   What we do / card grid
   ========================================================================== */
.what-we-do {
    padding: 88px 0;
}

.what-we-do h2 {
    font-size: 30px;
    margin-bottom: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    border: 1px solid #E7E7EF;
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
}

.card__label {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--violet);
    font-weight: 600;
    margin-bottom: 8px;
}

.card h3 { font-size: 20px; margin-bottom: 10px; }

.card__link {
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
}

.card__link:hover { color: var(--cyan); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
    background: var(--gradient);
    padding: 56px 0;
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-band h2 {
    color: var(--white);
    margin: 0;
    font-size: 26px;
}

.cta-band .btn--primary {
    background: var(--navy);
    box-shadow: none;
}

/* ==========================================================================
   Page hero (Solutions / Contact / generic pages)
   ========================================================================== */
.page-hero {
    background: var(--navy);
    color: var(--white);
    padding: 72px 0 56px;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(28px, 4vw, 40px);
}

.page-feature-image {
    width: 100%;
    max-width: 640px;
    border-radius: var(--radius);
    margin-top: 24px;
}

.page-hero__sub {
    color: rgba(255, 255, 255, 0.75);
    max-width: 640px;
    font-size: 16px;
}

.provided-by {
    display: inline-block;
    margin: 20px 0 0;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 13px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
}

.external-link {
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

.external-link:hover { color: var(--cyan); }

.provided-by .external-link { color: rgba(255, 255, 255, 0.9); }
.provided-by .external-link:hover { color: var(--cyan); }

/* ==========================================================================
   Solutions
   ========================================================================== */
.solutions { padding: 72px 0 96px; }

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    border: 1px solid #E7E7EF;
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.solution-card__label {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--violet);
    font-weight: 600;
    margin-bottom: 10px;
}

.solution-card h2 { font-size: 22px; }

.solution-card__disclosure {
    font-size: 13px;
    color: var(--slate);
    font-style: italic;
    margin-bottom: 20px;
}

.solution-card__disclosure .external-link { color: var(--violet); }
.solution-card__disclosure .external-link:hover { color: var(--cyan); }

.solution-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ==========================================================================
   Solution / Service detail pages
   ========================================================================== */
.detail { padding: 40px 0 64px; }

.detail h2 {
    font-size: 22px;
    margin-top: 28px;
}

.detail h2:first-child { margin-top: 0; }

.detail-list {
    margin: 0 0 1em;
    padding-left: 20px;
    color: var(--slate);
}

.detail-list li { margin-bottom: 8px; }

.detail--tint {
    background: var(--offwhite);
}

.detail-section-sub {
    max-width: 640px;
    margin-bottom: 20px;
}

.engagement-heading { margin-top: 36px !important; }

.service-type-list {
    display: flex;
    flex-direction: column;
    max-width: 900px;
}

.service-type-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid #E7E7EF;
}

.service-type-row:first-child { padding-top: 0; }
.service-type-row:last-child { border-bottom: none; padding-bottom: 0; }

.service-type-row__head h3 {
    font-size: 18px;
    margin: 0;
}

.service-type-row__body p {
    font-size: 15px;
    margin-bottom: 0;
}

.service-type-row__tech {
    margin-top: 10px !important;
    font-size: 13px !important;
    font-style: italic;
    color: var(--violet) !important;
}

@media (max-width: 720px) {
    .service-type-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.detail-disclosure {
    font-size: 14px;
    font-style: italic;
    color: var(--slate);
}

.detail-cta { margin-top: 40px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: 72px 0 96px; }

.contact__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.field input,
.field select,
.field textarea {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 14px;
    border: 1px solid #D8D8E4;
    border-radius: 8px;
    background: var(--white);
    color: var(--navy);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--cyan);
    outline-offset: 1px;
}

.contact-form .btn { align-self: flex-start; margin-top: 8px; }

.form-error {
    display: none;
    font-size: 14px;
    color: #E0245E;
    margin: -6px 0 0;
}

.form-error.is-visible { display: block; }

.form-success {
    display: none;
    text-align: center;
    padding: 56px 24px;
    border: 1px solid #E7E7EF;
    border-radius: var(--radius);
}

.form-success.is-visible { display: block; }

.form-success h2 { font-size: 22px; margin-bottom: 8px; }
.form-success p { margin: 0; }

.contact-direct {
    background: var(--offwhite);
    border-radius: var(--radius);
    padding: 28px;
}

.contact-direct p { margin-bottom: 6px; color: var(--slate); }

.contact-direct a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--navy);
}

.contact-direct a:hover { color: var(--cyan); }

/* ==========================================================================
   Generic page content (fallback)
   ========================================================================== */
.page-content { padding: 56px 0 96px; }

/* ==========================================================================
   Blog post (Insights, future use)
   ========================================================================== */
.post__header { padding-top: 64px; text-align: center; }
.post__meta { color: var(--slate); font-size: 14px; }
.post__content { padding: 40px 0 96px; }
.post__content img { max-width: 100%; border-radius: var(--radius); }

/* Koenig editor image width classes — required by Ghost so wide/full
   images in blog post content render correctly instead of unstyled. */
.kg-width-wide {
    width: 100%;
    max-width: calc(var(--wrap) + 160px);
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full img { border-radius: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 48px;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__brand .logo-word { color: var(--white); }
.site-footer__brand p { margin: 6px 0 0; font-size: 13px; }

.site-footer__nav { display: flex; gap: 20px; }
.site-footer__nav a { color: rgba(255, 255, 255, 0.75); font-size: 14px; }
.site-footer__nav a:hover { color: var(--cyan); }

.site-footer__contact a { color: var(--cyan); font-weight: 600; }

.site-footer__legal {
    padding: 20px 24px 28px;
}

.site-footer__legal p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
    .hero__pattern { width: 200px; opacity: 0.1; }
}

@media (max-width: 860px) {
    .hero__pattern { display: none; }

    .card-grid, .solution-grid { grid-template-columns: 1fr; }
    .contact__inner { grid-template-columns: 1fr; }

    .nav-toggle { display: flex; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 20px;
        display: none;
    }

    .site-nav.is-open { display: flex; }

    .site-nav a { padding: 12px 0; width: 100%; }
    .site-nav__cta { margin-top: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
