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

:root {
    --font-body: "Manrope", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-heading: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 2.5rem;
    --space-7: 3rem;
    --radius-pill: 999px;
    --radius-card: 20px;
    --focus-color: #f59e0b;
}

body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

main section,
footer,
[id] {
    scroll-margin-top: 5.5rem;
}

body {
    font-family: var(--font-body);
    line-height: 1.55;
    color: #202124;
    background: #f5f7fb;
}

a {
    color: inherit;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
    border-radius: 8px;
}

.skip-link {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 100;
    padding: var(--space-2) var(--space-3);
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

header {
    background: #111827;
    color: #fff;
    padding: var(--space-3) var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    position: sticky;
    top: 0;
    z-index: 10;
}

header .logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

nav ul li a:hover {
    color: #93c5fd;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4);
}

section {
    padding: var(--space-6);
    background: #fff;
    margin: var(--space-4) 0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

#hero {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #fff;
}

.eyebrow {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bfdbfe;
    margin-bottom: var(--space-3);
}

#hero h1,
section h2 {
    line-height: 1.15;
}

#hero h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    margin-bottom: var(--space-3);
}

.hero-subtitle,
.section-lead {
    font-size: 1.1rem;
    max-width: 900px;
}

.hero-subtitle {
    margin-bottom: var(--space-4);
    color: #dbeafe;
}

.hero-points,
.card ul,
.badge-list {
    padding-left: 1.2rem;
}

.hero-points li,
.card ul li,
.badge-list li {
    margin-top: var(--space-2);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.96rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.button.primary {
    background: #2563eb;
    color: #fff;
}

.button.secondary {
    background: #e2e8f0;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

#hero .button.secondary,
.landing-hero .button.secondary,
.landing-final-cta .button.secondary,
footer .button.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.section-muted {
    background: #e8eefc;
}

.proof-grid,
.card-grid,
.archive-grid,
.expertise-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--space-4);
}

.proof-grid > *,
.card-grid > *,
.archive-grid > *,
.expertise-container > * {
    min-width: 0;
}

.proof-grid > * {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
}

.card-grid-2 > * {
    flex: 1 1 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
}

.card-grid-3 > * {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
}

.card-grid-4 > * {
    flex: 1 1 calc(25% - 1.125rem);
    max-width: calc(25% - 1.125rem);
}

.card-grid-5 > * {
    flex: 1 1 calc(20% - 1.2rem);
    max-width: calc(20% - 1.2rem);
}

.archive-grid > *,
.expertise-container > * {
    flex: 1 1 calc(25% - 1.125rem);
    max-width: calc(25% - 1.125rem);
}

.proof-item {
    background: #fff;
    border-radius: 14px;
    padding: var(--space-4);
    text-align: center;
    height: auto;
    margin: 0;
    border: 1px solid #dbe4f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.proof-item strong {
    display: block;
    font-size: 1.8rem;
    color: #1d4ed8;
}

.proof-item span {
    color: #475569;
}

.card-grid {
    margin-top: var(--space-5);
}

.card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d7e3f4;
    border-radius: var(--radius-card);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-3);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    min-width: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    height: auto;
    margin: 0;
}

.card::before {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.card h3 {
    margin-bottom: 0;
    line-height: 1.3;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: #334155;
}

.card ul {
    margin-top: 0.25rem;
}

.card p + ul {
    margin-top: 0.25rem;
}

.card > * {
    min-width: 0;
}

.card > * + * {
    margin-top: 0;
}

.compact .card {
    justify-content: center;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
    min-width: 0;
}

.tag {
    display: inline-block;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 0.92rem;
    font-weight: 600;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.stack {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1d4ed8;
}

.badge-list {
    margin-top: var(--space-3);
}

.archive-grid {
    margin-top: var(--space-5);
}

.archive-item {
    width: auto;
}

.archive-grid .expertise-item,
.card-grid .card,
.proof-grid .proof-item {
    width: 100%;
    min-width: 0;
}

.contact-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.hero-contact-actions {
    justify-content: flex-start;
    margin-top: var(--space-4);
}

.policy-hero,
.policy-summary,
.policy-sections,
.policy-contact {
    max-width: 1200px;
}

footer {
    background: #111827;
    color: #fff;
    text-align: center;
    padding: var(--space-5) var(--space-3);
    margin-top: var(--space-3);
}

footer p {
    margin-top: 0.5rem;
}

footer a {
    color: #bfdbfe;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

.expertise-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    row-gap: var(--space-3);
    column-gap: var(--space-5);
    margin-top: var(--space-4);
}

.expertise-item {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d7e3f4;
    border-radius: var(--radius-card);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    min-width: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    height: auto;
    margin: 0;
}

.expertise-item::before {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.expertise-item h3 {
    margin-bottom: 0.7rem;
    line-height: 1.3;
}

.expertise-item p,
.proof-item span,
.proof-item strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 768px) {
    header {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }

    section {
        padding: var(--space-4);
    }

    #hero h1 {
        font-size: 2.3rem;
    }

    .proof-grid > *,
    .card-grid-5 > *,
    .card-grid-4 > *,
    .card-grid-3 > *,
    .card-grid-2 > *,
    .archive-grid > *,
    .expertise-container > * {
        flex-basis: calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 520px) {
    .proof-grid > *,
    .card-grid-5 > *,
    .card-grid-4 > *,
    .card-grid-3 > *,
    .card-grid-2 > *,
    .archive-grid > *,
    .expertise-container > * {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* Advertising landing page */
.landing-page {
    background:
        radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.18), transparent 32rem),
        radial-gradient(circle at 95% 8%, rgba(14, 165, 233, 0.14), transparent 30rem),
        #f5f7fb;
}

.landing-header {
    background: rgba(17, 24, 39, 0.94);
    backdrop-filter: blur(12px);
}

.landing-main {
    max-width: 1180px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    align-items: stretch;
    gap: var(--space-4);
    padding: clamp(2rem, 5vw, 4.5rem);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(29, 78, 216, 0.9)),
        linear-gradient(45deg, #0f172a, #2563eb);
    color: #fff;
}

.landing-hero h1 {
    max-width: 850px;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    margin-bottom: var(--space-4);
}

.landing-hero-copy {
    min-width: 0;
}

.landing-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
    padding: 0;
    margin: var(--space-4) 0 0;
    list-style: none;
}

.landing-points li {
    margin: 0;
    padding: 0.9rem var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #dbeafe;
}

.landing-hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-3);
    min-width: 0;
    padding: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.landing-hero-panel h2 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.landing-hero-panel p {
    color: #dbeafe;
}

.panel-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #bfdbfe;
    color: #1e3a8a;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.mini-list span {
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.landing-proof {
    margin-top: -0.25rem;
}

.landing-card {
    min-height: 230px;
}

.landing-split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-4);
    align-items: start;
}

.step-list {
    counter-reset: landing-step;
    list-style: none;
    padding: 0;
    margin-top: var(--space-4);
}

.step-list li {
    counter-increment: landing-step;
    position: relative;
    padding: 1rem 1rem 1rem 4rem;
    margin-top: var(--space-2);
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #d7e3f4;
    font-weight: 700;
}

.step-list li::before {
    content: counter(landing-step);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
}

.deliverables-card {
    min-height: 100%;
}

.landing-final-cta {
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #172554, #2563eb 62%, #0ea5e9);
}

.landing-final-cta .eyebrow,
.landing-final-cta .section-lead {
    margin-left: auto;
    margin-right: auto;
    color: #dbeafe;
}

.offer-details {
    max-width: 900px;
}

.offer-details h4 {
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
    font-size: 1rem;
    color: #1e3a8a;
}

.offer-details p + p {
    margin-top: var(--space-3);
}

.offer-details ul {
    margin-top: var(--space-2);
    padding-left: 1.2rem;
}

.offer-details ul li + li {
    margin-top: var(--space-1);
}

@media (max-width: 900px) {
    .landing-hero,
    .landing-split {
        grid-template-columns: 1fr;
    }

    .landing-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .landing-header .button {
        width: 100%;
    }

    .landing-hero {
        padding: 1.5rem;
    }
}
