:root {
    --bg: #0f172a;
    --bg-2: #1e3a8a;
    --panel: rgba(15, 23, 42, 0.74);
    --panel-strong: rgba(30, 41, 59, 0.82);
    --line: rgba(59, 130, 246, 0.24);
    --line-strong: rgba(6, 182, 212, 0.42);
    --text: #ffffff;
    --muted: #d1d5db;
    --soft: #9ca3af;
    --blue: #3b82f6;
    --blue-dark: #2563eb;
    --cyan: #22d3ee;
    --cyan-dark: #0891b2;
    --rose: #fb7185;
    --yellow: #facc15;
    --radius: 12px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 138, 0.96) 48%, rgba(15, 23, 42, 0.98)),
        var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

p,
ul,
ol,
dl,
figure {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    font-size: clamp(3.1rem, 7vw, 6.3rem);
}

h2 {
    font-size: clamp(2.3rem, 5vw, 4.1rem);
}

h3 {
    font-size: 1.45rem;
}

h4 {
    font-size: 1.12rem;
}

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

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 1000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    overflow: visible;
    clip: auto;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
}

.container {
    width: min(100% - 32px, 1180px);
    margin-inline: auto;
}

.container.narrow {
    width: min(100% - 32px, 900px);
}

.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.94);
    color: var(--text);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 76px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 900;
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    background: linear-gradient(90deg, #60a5fa, var(--cyan));
    background-clip: text;
    color: transparent;
    font-size: 1.35rem;
    line-height: 1;
}

.brand-text span {
    color: var(--soft);
    font-size: 0.74rem;
}

.primary-nav {
    justify-self: end;
}

.menu,
.footer-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: none;
    transition: color 160ms ease;
}

.menu a:hover,
.menu a:focus-visible {
    color: var(--cyan);
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover,
.btn:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
    transform: translateY(-1px);
}

.btn-primary,
.header-cta {
    background: linear-gradient(90deg, var(--blue), var(--cyan-dark));
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
    background: linear-gradient(90deg, var(--blue-dark), var(--cyan-dark));
}

.btn-ghost {
    border-color: rgba(96, 165, 250, 0.52);
    background: rgba(15, 23, 42, 0.24);
    color: #bfdbfe;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--cyan);
    background: rgba(59, 130, 246, 0.12);
}

.btn-light {
    background: #ffffff;
    color: var(--blue-dark);
}

.btn-light:hover,
.btn-light:focus-visible {
    background: #f3f4f6;
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
}

.nav-toggle span:not(.screen-reader-text) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 136px 0 88px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(30, 58, 138, 0.38) 100%),
        linear-gradient(180deg, rgba(6, 182, 212, 0.08), rgba(15, 23, 42, 0));
    pointer-events: none;
}

.hero-glow {
    display: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
    gap: 54px;
    align-items: center;
}

.hero-copy {
    display: grid;
    gap: 26px;
}

.pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    font-size: 0.92rem;
}

.pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--cyan);
}

.hero h1,
.section-heading h2 {
    background: linear-gradient(90deg, #ffffff, #dbeafe 54%, #a5f3fc);
    background-clip: text;
    color: transparent;
}

.hero-lede {
    max-width: 680px;
    color: var(--muted);
    font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

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

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin-top: 22px;
}

.stats-grid div {
    min-width: 110px;
}

.stats-grid dt {
    color: #60a5fa;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.stats-grid div:nth-child(2) dt {
    color: var(--cyan);
}

.stats-grid div:nth-child(3) dt {
    color: #93c5fd;
}

.stats-grid dd {
    margin: 7px 0 0;
    color: var(--soft);
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    min-height: 440px;
}

.hero-visual img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.floating-card {
    position: absolute;
    display: grid;
    gap: 3px;
    width: min(240px, 62%);
    padding: 16px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.floating-card strong {
    color: #ffffff;
}

.floating-card span {
    color: var(--soft);
    font-size: 0.88rem;
}

.card-one {
    top: 26px;
    left: -24px;
}

.card-two {
    right: -18px;
    bottom: 30px;
}

.section {
    padding: clamp(72px, 9vw, 112px) 0;
}

.section-alt {
    background: rgba(15, 23, 42, 0.5);
}

.section-deep {
    background: rgba(15, 23, 42, 0.72);
}

.section-heading {
    display: grid;
    gap: 16px;
    margin-bottom: 54px;
}

.section-heading.text-center {
    justify-items: center;
    text-align: center;
}

.section-heading p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.15rem;
}

.glass-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(30, 58, 138, 0.24));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.glass-card:hover,
.glass-card:focus-within {
    border-color: rgba(59, 130, 246, 0.54);
    transform: translateY(-3px);
}

.service-grid,
.benefits-grid,
.client-grid,
.compare-grid,
.story-grid,
.testimonial-grid {
    display: grid;
    gap: 24px;
}

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

.service-card,
.story-card,
.testimonial-card {
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 28px;
}

.service-card p,
.benefit-card p,
.client-card p,
.problem-card p,
.solution-card p,
.story-card p,
.testimonial-card blockquote {
    color: var(--muted);
}

.service-icon,
.benefit-icon,
.client-icon,
.compare-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--cyan-dark));
}

.service-icon::before,
.benefit-icon::before,
.client-icon::before,
.compare-icon::before {
    content: "";
    width: 19px;
    height: 19px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 6px;
    transform: rotate(45deg);
}

.benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 980px;
}

.benefit-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 22px;
    align-items: start;
    padding: 28px;
}

.client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1060px;
}

.client-card {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 36px 30px;
    text-align: center;
}

.client-icon {
    width: 82px;
    height: 82px;
    border-radius: 999px;
}

.philosophy-stack {
    display: grid;
    gap: 22px;
}

.philosophy-stack p {
    padding: 24px 26px;
    color: #e5e7eb;
    font-size: 1.05rem;
}

.tilt-left {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.34), rgba(30, 41, 59, 0.52));
}

.tilt-right {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.52), rgba(30, 58, 138, 0.34));
}

.compare-block + .compare-block {
    margin-top: 74px;
}

.subheading {
    margin-bottom: 28px;
    text-align: center;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.subheading.problem {
    color: var(--rose);
}

.subheading.solution {
    color: var(--cyan);
}

.compare-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.problem-card,
.solution-card {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.problem-card {
    border-color: rgba(244, 63, 94, 0.24);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(136, 19, 55, 0.22));
}

.problem-card .compare-icon {
    background: linear-gradient(135deg, #f43f5e, #dc2626);
}

.story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1060px;
}

.story-card span {
    width: max-content;
    max-width: 100%;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    color: var(--cyan);
    font-size: 0.88rem;
    font-weight: 800;
}

.story-card h3 {
    transition: color 180ms ease;
}

.story-card:hover h3 {
    color: #93c5fd;
}

.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card {
    margin: 0;
}

.stars {
    color: var(--yellow);
    font-size: 1.1rem;
    letter-spacing: 0;
}

.testimonial-card blockquote {
    font-style: italic;
}

.testimonial-card figcaption {
    display: grid;
    gap: 2px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.testimonial-card figcaption strong {
    color: #ffffff;
}

.testimonial-card figcaption span {
    color: var(--soft);
    font-size: 0.9rem;
}

.testimonial-card figcaption em {
    color: var(--cyan);
    font-style: normal;
    font-size: 0.9rem;
}

.cta-section {
    padding-top: 24px;
}

.cta-panel {
    display: grid;
    justify-items: center;
    gap: 24px;
    overflow: hidden;
    padding: clamp(44px, 7vw, 72px);
    border-radius: 26px;
    background: linear-gradient(135deg, var(--blue-dark), var(--cyan-dark));
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-panel h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.cta-panel p {
    max-width: 680px;
    color: #dbeafe;
    font-size: 1.18rem;
}

.cta-checks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    color: #ffffff;
}

.cta-checks li {
    position: relative;
    padding-left: 24px;
}

.cta-checks li::before {
    content: "";
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 13px;
    height: 8px;
    border-bottom: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    transform: rotate(-45deg);
}

.page-hero {
    padding: 148px 0 72px;
    background: rgba(15, 23, 42, 0.72);
}

.page-hero h1 {
    max-width: 900px;
}

.page-hero p:not(.eyebrow) {
    max-width: 720px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.16rem;
}

.eyebrow {
    color: var(--cyan);
    font-size: 0.84rem;
    font-weight: 850;
    text-transform: uppercase;
}

.content-body {
    max-width: 860px;
}

.content-body > * + * {
    margin-top: 1.15em;
}

.content-body h2 {
    margin-top: 1.5em;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.content-body h3 {
    margin-top: 1.4em;
}

.content-body p,
.content-body li {
    color: var(--muted);
}

.content-body a {
    color: var(--cyan);
    font-weight: 750;
}

.content-body ul,
.content-body ol {
    padding-left: 1.2em;
}

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

.site-footer {
    padding: 64px 0 28px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.82);
    color: var(--soft);
}

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

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--cyan);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, 0.8fr));
    gap: 38px;
}

.footer-brand {
    display: grid;
    gap: 16px;
}

.footer-brand p,
.footer-contact p {
    max-width: 370px;
}

.site-footer h2 {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 0.96rem;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact {
    display: grid;
    gap: 14px;
    align-content: start;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.86rem;
}

@media (max-width: 1020px) {
    .header-inner {
        grid-template-columns: auto auto;
    }

    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .primary-nav {
        position: fixed;
        inset: 76px 0 auto;
        display: none;
        padding: 20px;
        border-bottom: 1px solid var(--line);
        background: rgba(15, 23, 42, 0.98);
    }

    .primary-nav.is-open {
        display: block;
    }

    .menu {
        display: grid;
        gap: 8px;
    }

    .menu a {
        min-height: 48px;
        font-size: 1.04rem;
    }

    .hero-grid,
    .service-grid,
    .benefits-grid,
    .client-grid,
    .compare-grid,
    .solution-grid,
    .story-grid,
    .testimonial-grid,
    .archive-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-visual img {
        height: 380px;
    }

    .floating-card {
        position: static;
        width: auto;
        margin-top: 14px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container,
    .container.narrow {
        width: min(100% - 26px, 1180px);
    }

    .header-inner {
        min-height: 68px;
    }

    .brand-text span {
        display: none;
    }

    .brand-text strong {
        font-size: 1.1rem;
    }

    .primary-nav {
        inset: 68px 0 auto;
    }

    .hero {
        padding: 112px 0 64px;
    }

    .hero-actions {
        display: grid;
    }

    .btn,
    .header-cta {
        width: 100%;
    }

    .stats-grid {
        gap: 18px;
    }

    .stats-grid div {
        flex: 1 1 130px;
    }

    .service-card,
    .story-card,
    .testimonial-card,
    .benefit-card,
    .client-card,
    .problem-card,
    .solution-card {
        padding: 22px;
    }

    .benefit-card {
        grid-template-columns: 1fr;
    }

    .hero-visual img {
        height: 300px;
    }

    .cta-panel {
        border-radius: 18px;
    }
}

