:root {
    --purple-950: #150d32;
    --purple-900: #211047;
    --purple-800: #32166b;
    --purple-600: #8051d5;
    --purple-300: #d9c2ff;
    --lime: #c9ff4d;
    --ink: #20163a;
    --muted: #766d86;
    --soft: #f5f2fa;
    --white: #fff;
    --border: #e8e2f0;
    --radius: 24px;
    --container: 1160px;
    --font-body: "DM Sans", sans-serif;
    --font-heading: "Space Grotesk", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: relative;
    z-index: 10;
    color: var(--white);
    background: var(--purple-950);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.logo-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--purple-950);
    background: var(--lime);
    border-radius: 9px;
    font-weight: 700;
}

.desktop-nav ul,
.footer-nav ul {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-nav a,
.footer-nav a {
    color: inherit;
    font-size: .92rem;
    text-decoration: none;
}

.desktop-nav a:hover,
.footer-nav a:hover {
    color: var(--lime);
}

/* Buttons and links */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    color: var(--purple-950);
    background: var(--lime);
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201, 255, 77, .2);
}

.button-small {
    min-height: 42px;
    padding: 0 18px;
    font-size: .85rem;
}

.button-purple {
    color: var(--purple-950);
    background: var(--lime);
}

.button-dark {
    color: var(--purple-950);
    background: var(--lime);
}

.text-link {
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.text-link-light {
    color: var(--white);
}

.text-link-purple {
    color: var(--purple-600);
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 76% 0%, #6636a1 0, transparent 32rem),
        linear-gradient(135deg, var(--purple-800), var(--purple-950));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 106px 0 0;
    text-align: center;
}

.hero-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    background: var(--purple-600);
    border-radius: 50%;
    filter: blur(100px);
    opacity: .35;
}

.hero-glow-one {
    top: 30%;
    left: -100px;
}

.hero-glow-two {
    right: -70px;
    bottom: 10%;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--purple-300);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
}

.eyebrow-purple {
    color: var(--purple-600);
}

.hero h1,
.page-hero h1,
.article h1,
h2,
h3 {
    line-height: 1.04;
    letter-spacing: -.045em;
}

.hero h1 {
    max-width: 850px;
    margin: 0 auto 24px;
    font-size: clamp(3.4rem, 8vw, 7rem);
}

.hero h1 span {
    color: var(--purple-300);
}

.hero-lead {
    max-width: 650px;
    margin: 0 auto;
    color: #d5cae4;
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 34px 0 18px;
}

.hero-note {
    margin: 0;
    color: #aa9bbc;
    font-size: .82rem;
}

/* Dashboard */

.dashboard-window {
    width: min(100%, 1000px);
    margin: 68px auto 0;
    padding: 10px;
    overflow: hidden;
    color: var(--ink);
    text-align: left;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 35px 80px rgba(0, 0, 0, .35);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    background: #faf9fc;
    border-radius: 14px 14px 0 0;
}

.window-bar span {
    width: 7px;
    height: 7px;
    background: #d8d1e0;
    border-radius: 50%;
}

.window-bar span:first-child {
    background: #ff8b91;
}

.window-bar span:nth-child(2) {
    background: #ffd36a;
}

.window-bar span:nth-child(3) {
    background: #9cdd92;
}

.window-bar small {
    margin: auto;
    color: #9a91a3;
    font-size: .65rem;
}

.dashboard-body {
    display: flex;
    min-height: 350px;
    background: #f8f7fb;
}

.dashboard-sidebar {
    display: flex;
    width: 155px;
    flex-direction: column;
    gap: 22px;
    padding: 26px 18px;
    color: var(--purple-950);
    background: var(--white);
}

.dashboard-sidebar i {
    display: block;
    width: 85%;
    height: 9px;
    background: #eeeaf5;
    border-radius: 8px;
}

.dashboard-main {
    flex: 1;
    padding: 38px;
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-heading small,
.metric-card small {
    color: #948ba0;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.dashboard-heading h3 {
    margin: 7px 0 28px;
    font-size: 1.5rem;
}

.status-pill {
    align-self: start;
    padding: 8px 12px;
    color: #398647;
    background: #e1f7df;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
}

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

.metric-card {
    min-height: 105px;
    padding: 18px;
    background: var(--white);
    border-radius: 14px;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.metric-card em {
    color: #4aaf5c;
    font-size: .7rem;
    font-style: normal;
}

.fake-chart {
    display: flex;
    align-items: end;
    gap: 7px;
    height: 42px;
    margin-top: 10px;
}

.fake-chart b {
    display: block;
    width: 18%;
    background: var(--purple-600);
    border-radius: 4px 4px 0 0;
}

.fake-chart b:nth-child(1) {
    height: 35%;
}

.fake-chart b:nth-child(2) {
    height: 60%;
}

.fake-chart b:nth-child(3) {
    height: 48%;
}

.fake-chart b:nth-child(4) {
    height: 80%;
}

.fake-chart b:nth-child(5) {
    height: 70%;
}

.fake-chart b:nth-child(6) {
    height: 100%;
}

.dashboard-table {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-top: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 14px;
    font-size: .78rem;
}

.dashboard-table strong {
    color: var(--purple-600);
}

/* General sections */

.logo-strip {
    padding: 25px 0;
    color: #aaa1b5;
    background: var(--soft);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .11em;
}

.logo-strip .container,
.logo-strip div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-strip div {
    color: var(--purple-800);
}

.section {
    padding: 120px 0;
}

.narrow-grid,
.fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.section-heading {
    margin-bottom: 54px;
}

.section-heading h2 {
    max-width: 620px;
}

h2 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.problem-copy {
    max-width: 480px;
    color: var(--muted);
    font-size: 1.1rem;
}

.problem-copy p:first-child {
    margin-top: 0;
}

.section-heading > p {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

/* Services */

.services-section {
    background: var(--soft);
}

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

.service-card {
    position: relative;
    min-height: 350px;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}


.service-number {
    color: var(--purple-600);
    font-family: var(--font-heading);
    font-size: .9rem;
    font-weight: 700;
}

.service-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 48px 0 24px;
    place-items: center;
    color: var(--purple-950);
    background: var(--lime);
    border-radius: 15px;
    font-size: 1.6rem;
}

.service-card h3 {
    margin: 0 0 13px;
    font-size: 1.5rem;
}

.service-card p {
    min-height: 74px;
    color: var(--muted);
}

/* Process */

.process-section {
    color: var(--white);
    background: var(--purple-950);
}

.light-heading > p {
    color: #b1a4c5;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.process-item {
    padding: 26px 0;
    border-top: 1px solid #4c3b69;
}

.process-item span {
    color: var(--lime);
    font-size: .8rem;
    font-weight: 700;
}

.process-item h3 {
    margin: 55px 0 12px;
    font-size: 1.3rem;
}

.process-item p {
    margin: 0;
    color: #aaa0b9;
    font-size: .9rem;
}

/* Fit section */

.fit-grid {
    align-items: center;
}

.fit-grid h2 {
    margin-bottom: 32px;
}

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

.check-list p {
    color: var(--muted);
}

.check-list li {
    position: relative;
    padding: 13px 0 13px 30px;
    border-bottom: 1px solid var(--border);
}

.check-list li::before {
    position: absolute;
    left: 0;
    color: var(--purple-600);
    content: "✓";
    font-weight: 700;
}

/* Blog */

.blog-section {
    background: var(--soft);
}

.blog-section .pagination {
    margin-top: 3rem;
}

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

.post-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius);
}

.post-card-image,
.post-card-image img {
    display: block;
    width: 100%;
}

.post-card-image img {
    aspect-ratio: 1.5;
    object-fit: cover;
}

.post-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.post-tag {
    color: var(--purple-600);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
}

.post-card h3 {
    margin: 12px 0;
    font-size: 1.45rem;
}

.post-card h3 a {
    text-decoration: none;
}

.post-card-content p {
    color: var(--muted);
}

.post-card-content .text-link {
    margin-top: auto;
}

.blog-more-link {
    display: block;
    width: fit-content;
    margin-top: 24px;
    margin-left: auto;
}

/* Post header */
.post-page {
    background: #fff;
}

.post-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem;
}

.post-feature-image {
    display: block;
    width: 100%;
    max-height: 560px;
    margin: 0 auto 2rem;
    border-radius: 1rem;
    object-fit: cover;
}

.post-header {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.post-header h1 {
    margin: 0.5rem 0 1rem;
    color: #201a35;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.post-excerpt {
    margin: 0 0 1rem;
    color: #625d70;
    font-size: 1.1rem;
    line-height: 1.6;
}

.post-meta {
    margin: 0;
    color: #777181;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .post-content {
        padding: 2rem 1rem 4rem;
    }

    .post-feature-image {
        margin-bottom: 1.5rem;
        border-radius: 0.65rem;
    }

    .post-header {
        margin-bottom: 2.5rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }
}


/* CTA */

.cta-section {
    padding: 100px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 90% 0, #6f3caf 0, transparent 28rem),
        var(--purple-800);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.cta-inner h2 {
    max-width: 680px;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.cta-inner p:not(.eyebrow) {
    max-width: 600px;
    color: var(--purple-300);
}

/* Footer */

.site-footer {
    padding: 70px 0 25px;
    color: #bcb2cb;
    background: var(--purple-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 70px;
    padding-bottom: 70px;
}

.footer-logo {
    color: var(--white);
}

.footer-description {
    max-width: 280px;
    margin-top: 22px;
}

.site-footer h3 {
    margin-top: 0;
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 0;
}

.footer-nav ul {
    display: block;
}

.footer-nav li {
    margin: 10px 0;
}

.site-footer a {
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid #3a2c53;
    font-size: .78rem;
}

/* Pages and articles */

.page-hero {
    padding: 130px 0 100px;
    background: var(--soft);
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 25px;
    font-size: clamp(3rem, 7vw, 6rem);
}

.page-hero p:not(.eyebrow) {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.2rem;
}

.page-content,
.article-content {
    padding-top: 80px;
    padding-bottom: 100px;
}

.page-feature-image,
.article-image img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: var(--radius);
}

.prose {
    max-width: 760px;
}

.prose h2,
.prose h3 {
    margin-top: 2em;
    font-size: 2rem;
}

.prose p,
.prose li {
    color: #514960;
    font-size: 1.08rem;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.article-header {
    padding-top: 120px;
    padding-bottom: 60px;
}

.article-header h1 {
    max-width: 900px;
    margin: 20px 0;
    font-size: clamp(3rem, 7vw, 6rem);
}

.article-excerpt {
    max-width: 700px;
    color: var(--muted);
    font-size: 1.2rem;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--muted);
    font-size: .85rem;
}

.article-image {
    padding-bottom: 70px;
}

/* Service detail pages */

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

.service-detail-grid article {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.service-detail-grid h2 {
    margin: 40px 0 18px;
    font-size: 2rem;
}

/* Error page */

.error-page {
    padding: 180px 0;
    text-align: center;
}

.error-page h1 {
    font-size: clamp(3rem, 7vw, 6rem);
}

/* Mobile navigation */

.mobile-menu,
.menu-toggle,
.mobile-cta {
    display: none;
}

/* Ghost editor cards */

.kg-width-wide {
    width: min(1200px, calc(100% + 160px));
    max-width: none;
    margin-right: auto;
    margin-left: auto;
}

.kg-width-full {
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
}

.kg-width-wide img,
.kg-width-full img {
    display: block;
    width: 100%;
    height: auto;
}

.kg-card {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.kg-card figcaption {
    margin-top: .75rem;
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
}

.kg-bookmark-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kg-gallery-row {
    display: flex;
    gap: 8px;
}

.kg-gallery-image {
    flex: 1;
    min-width: 0;
    object-fit: cover;
}

.kg-button-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    color: var(--purple-950);
    background: var(--lime);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

/* Tablet and mobile */

@media (max-width: 1050px) and (min-width: 801px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .container {
        width: min(calc(100% - 34px), var(--container));
    }

    .desktop-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        padding: 10px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, .3);
        border-radius: 50%;
    }

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

    .mobile-menu {
        padding: 25px 17px 35px;
        background: var(--purple-950);
    }

    .mobile-menu.is-open {
        display: block;
    }

    .mobile-menu ul {
        margin: 0 0 22px;
        padding: 0;
        list-style: none;
    }

    .mobile-menu li {
        padding: 13px 0;
        border-bottom: 1px solid #3d2c59;
    }

    .mobile-menu a {
        color: var(--white);
        text-decoration: none;
    }

    .mobile-menu .button {
        color: var(--purple-950);
    }

    .hero-content {
        padding-top: 75px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 16vw, 5rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

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

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-main {
        padding: 22px 15px;
    }

    .dashboard-heading h3 {
        font-size: 1.1rem;
    }

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

    .metric-chart {
        display: none;
    }

    .logo-strip .container,
    .logo-strip div {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .logo-strip div {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .section {
        padding: 80px 0;
    }

    .narrow-grid,
    .fit-grid {
        display: block;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 25px;
    }

    .service-grid,
    .post-grid,
    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

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

    .process-item h3 {
        margin-top: 30px;
    }

    .cta-inner {
        display: block;
    }

    .cta-inner .button {
        margin-top: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin-top: 8px;
    }

    .kg-width-wide {
        width: 100%;
    }

    .kg-width-full {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .mobile-cta {
        position: fixed;
        right: 16px;
        bottom: 16px;
        left: 16px;
        z-index: 20;
        display: block;
        padding: 15px;
        color: var(--purple-950);
        background: var(--lime);
        border-radius: 999px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
        font-weight: 700;
        text-align: center;
        text-decoration: none;
    }
}

@media (max-width: 480px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .dashboard-table {
        font-size: .68rem;
    }
}
