:root {
    --surface: #f7f8fb;
    --surface-low: #eef2f7;
    --surface-mid: #e3e9f2;
    --surface-high: #d6dee9;
    --ink: #071527;
    --ink-soft: #081a2f;
    --text: #101827;
    --muted: #4b5563;
    --line: #c8d1df;
    --line-strong: #071527;
    --blue: #1f5eff;
    --blue-dark: #1647c9;
    --cyan: #16d5e8;
    --lime: #a3e635;
    --white: #ffffff;
    --max: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--surface);
    color: var(--text);
    font-family: "Segoe UI", Inter, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

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

img {
    max-width: 100%;
}

h1,
h2,
h3,
.brand strong,
.footer-brand {
    margin: 0;
    color: var(--ink);
    font-family: "Aptos Display", "Segoe UI", Arial, Helvetica, sans-serif;
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: 0;
}

h1 {
    max-width: 980px;
    font-size: clamp(42px, 6vw, 76px);
}

h2 {
    font-size: clamp(30px, 4vw, 52px);
}

h3 {
    font-size: 24px;
}

p {
    margin: 0;
}

.eyebrow,
.card-index,
.cta-button,
.site-nav a,
.menu-button,
.package-card > p,
.post-count,
.blog-meta,
.pagination a {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 78px;
    border-bottom: 1px solid rgba(7, 21, 39, 0.12);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 0 34px;
    border-right: 1px solid var(--line);
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(7, 21, 39, 0.12);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-size: 27px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
}

.site-nav a {
    padding: 12px 14px;
    border-radius: 999px;
    color: var(--muted);
}

.site-nav a.active,
.site-nav a:hover {
    background: var(--ink);
    color: var(--white);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 15px 23px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(31, 94, 255, 0.18);
}

.cta-button:hover {
    background: var(--ink);
}

.cta-outline {
    background: transparent;
    color: var(--ink);
    box-shadow: none;
}

.cta-outline:hover,
.cta-light {
    background: var(--white);
    color: var(--ink);
}

.site-header > .cta-button {
    margin-right: 24px;
}

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

.hero-grid,
.split-block,
.detail-hero,
.page-hero,
.contact-grid,
.content-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    border-bottom: 1px solid var(--line);
}

.hero-copy {
    grid-column: span 7;
    display: flex;
    min-height: 660px;
    flex-direction: column;
    justify-content: center;
    padding: 72px 48px;
    background: var(--white);
}

.hero-copy h1 {
    margin-top: 18px;
}

.hero-text {
    max-width: 680px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 20px;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
}

.hero-media {
    grid-column: span 5;
    min-height: 660px;
    border-left: 1px solid var(--line);
}

.image-block {
    position: relative;
    display: flex;
    min-height: 360px;
    align-items: flex-end;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(7, 21, 39, 0.18), rgba(22, 213, 232, 0.10)),
        radial-gradient(circle at 20% 20%, rgba(163, 230, 53, 0.18), transparent 28%),
        var(--image-url) center / cover no-repeat,
        linear-gradient(135deg, #e9eef7, #f8fbff);
}

.image-block::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(7, 21, 39, 0.10);
    content: "";
    pointer-events: none;
}

.image-block span {
    display: none;
}

.ticker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
    background: var(--ink);
}

.ticker span {
    padding: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--white);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 15px;
    font-weight: 850;
    text-align: center;
    text-transform: uppercase;
}

.split-block > * {
    grid-column: span 6;
}

.dark-panel {
    display: flex;
    min-height: 520px;
    flex-direction: column;
    justify-content: space-between;
    padding: 72px 48px;
    background: var(--ink);
    color: var(--white);
}

.dark-panel h2,
.dark-panel .eyebrow {
    color: var(--white);
}

.dark-panel p:last-child {
    max-width: 560px;
    color: #d8e2ff;
    font-size: 19px;
}

.split-block.light {
    background: var(--surface-low);
}

.split-block.light > div:not(.image-block) {
    grid-column: span 6;
    display: flex;
    min-height: 520px;
    flex-direction: column;
    justify-content: center;
    padding: 72px 48px;
}

.clean-list {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.clean-list li {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font-weight: 800;
}

.page-section {
    padding: 72px 40px;
    border-bottom: 1px solid var(--line);
}

.section-header {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 32px;
    max-width: var(--max);
    margin: 0 auto 40px;
}

.section-header.compact {
    display: block;
    margin-bottom: 24px;
}

.section-header > p:last-child {
    align-self: end;
    color: var(--muted);
    font-size: 18px;
}

.eyebrow {
    color: var(--blue);
}

.service-grid,
.package-grid,
.feature-grid {
    display: grid;
    max-width: var(--max);
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card,
.package-card,
.feature-grid article,
.steps-grid article,
.related-grid article {
    min-height: 280px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 38px rgba(7, 21, 39, 0.06);
}

.service-card:hover,
.feature-grid article:hover {
    border-color: var(--blue);
    background: #f9fbff;
}

.service-card h3,
.package-card h3,
.package-card h2,
.feature-grid h3 {
    margin-top: 28px;
}

.service-card p,
.package-card span,
.feature-grid p,
.steps-grid p,
.content-grid p,
.article-page p {
    margin-top: 18px;
    color: var(--muted);
}

.service-card a,
.blog-card a,
.package-card a,
.article-page header a,
.related-grid a {
    display: inline-block;
    margin-top: 28px;
    border-bottom: 2px solid currentColor;
    color: var(--blue);
    font-weight: 850;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 0 40px 72px;
    border-bottom: 1px solid var(--line);
}

.steps-grid .section-header {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 72px 0 24px;
}

.steps-grid strong {
    color: var(--blue);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 26px;
}

.benefit-band {
    display: grid;
    grid-template-columns: 5fr 7fr;
    border-bottom: 1px solid var(--line);
    background: var(--surface-low);
}

.benefit-band h2 {
    padding: 72px 48px;
    border-right: 1px solid var(--line);
}

.benefit-band ul {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.benefit-band li {
    padding: 24px 48px;
    border-bottom: 1px solid var(--line);
    font-size: 19px;
    font-weight: 800;
}

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

.package-card > p {
    color: var(--blue);
}

.final-cta,
.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 72px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, var(--ink), #0d2a4d);
    color: var(--white);
}

.final-cta h2,
.footer-cta h2 {
    max-width: 900px;
    color: var(--white);
}

.page-hero {
    min-height: 520px;
    align-items: stretch;
}

.page-hero.compact {
    display: block;
    min-height: 0;
    padding: 104px 48px 76px;
    background: var(--white);
}

.page-hero.compact h1,
.page-hero.compact p {
    max-width: 920px;
}

.page-hero.compact h1 {
    margin-top: 18px;
}

.page-hero.compact p:not(.eyebrow) {
    margin-top: 24px;
    color: var(--muted);
    font-size: 20px;
}

.post-count {
    display: inline-flex;
    margin-top: 28px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(31, 94, 255, 0.08);
    color: var(--blue);
}

.detail-hero > div,
.about-hero > div {
    grid-column: span 7;
    display: flex;
    min-height: 560px;
    flex-direction: column;
    justify-content: center;
    padding: 72px 48px;
    background: var(--white);
}

.detail-hero .image-block,
.about-hero .image-block {
    grid-column: span 5;
    min-height: 560px;
    border-left: 1px solid var(--line);
}

.detail-hero p:not(.eyebrow),
.about-hero p:not(.eyebrow) {
    max-width: 720px;
    margin: 24px 0 32px;
    color: var(--muted);
    font-size: 20px;
}

.feature-grid {
    grid-template-columns: repeat(4, 1fr);
}

.feature-grid span {
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--lime);
}

.content-grid article {
    grid-column: span 6;
    min-height: 420px;
    padding: 72px 48px;
    border-right: 1px solid var(--line);
    background: var(--white);
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 48px;
    border-bottom: 1px solid var(--line);
}

.blog-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 38px rgba(7, 21, 39, 0.06);
}

.blog-card .image-block {
    min-height: 220px;
}

.blog-card > div {
    display: flex;
    min-height: 330px;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.blog-card h2 {
    margin-top: 12px;
    font-size: clamp(22px, 2.2vw, 30px);
    text-wrap: balance;
}

.blog-card p:not(.eyebrow) {
    color: var(--muted);
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
    color: var(--muted);
}

.blog-meta span {
    padding: 7px 9px;
    border-radius: 999px;
    background: var(--surface-low);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 34px 24px 64px;
}

.pagination a {
    min-width: 42px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    text-align: center;
}

.pagination a.active {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
}

.pagination a.disabled {
    color: #9aa5b4;
    pointer-events: none;
}

.article-page header {
    padding: 104px 48px 56px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.article-page header h1,
.article-page header p {
    max-width: 1040px;
}

.article-page header h1 {
    margin-top: 18px;
    text-wrap: balance;
}

.article-media {
    min-height: 520px;
    border-bottom: 1px solid var(--line);
}

.article-page section.article-content {
    max-width: 920px;
    margin: 0 auto;
    padding: 72px 40px;
}

.article-content h1 {
    font-size: clamp(34px, 4vw, 54px);
}

.article-content h2 {
    margin-top: 48px;
    font-size: clamp(28px, 3vw, 38px);
}

.article-content h3 {
    margin-top: 34px;
}

.article-content p,
.article-content li {
    color: var(--muted);
    font-size: 18px;
}

.article-content li {
    margin: 10px 0;
}

.related-posts {
    padding: 64px 48px;
    border-top: 1px solid var(--line);
    background: var(--surface-low);
}

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

.contact-grid {
    min-height: 760px;
}

.contact-form {
    grid-column: span 7;
    padding: 72px 48px;
    background: var(--white);
}

.contact-form h1 {
    margin: 18px 0 42px;
}

.contact-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-summary .cta-button {
    align-self: flex-start;
    margin-top: 24px;
}

.form-alert {
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
}

.form-alert.success {
    border-color: rgba(22, 163, 74, .35);
    background: rgba(22, 163, 74, .08);
    color: #166534;
}

.form-alert.error {
    border-color: rgba(220, 38, 38, .35);
    background: rgba(220, 38, 38, .08);
    color: #991b1b;
}

.hidden {
    display: none !important;
}

.contact-form form {
    display: grid;
    gap: 18px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.contact-form button {
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-panel {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--line);
    background: var(--surface-low);
}

.contact-panel .image-block {
    min-height: 320px;
    border-bottom: 1px solid var(--line);
}

.contact-panel h2,
.contact-panel p,
.contact-panel a,
.contact-panel span {
    margin: 0 48px;
}

.contact-panel h2 {
    margin-top: 44px;
    font-size: 36px;
}

.contact-panel p {
    margin-top: 20px;
    color: var(--muted);
}

.contact-panel a,
.contact-panel span {
    margin-top: 18px;
    font-weight: 800;
}

.contact-lines {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.contact-lines a,
.contact-lines span {
    margin-top: 0;
}

.brand-owner {
    font-weight: 700;
}

.brand-owner a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-note,
.contact-noscript {
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    background: var(--ink);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.footer-grid > div {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    gap: 10px;
    padding: 40px;
    background: var(--ink);
}

.footer-logo img {
    width: 160px;
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
}

.footer-brand,
.footer-grid h3 {
    color: var(--white);
}

.footer-brand {
    font-size: 32px;
}

.footer-grid p,
.footer-grid a,
.footer-grid span {
    color: #d8e2ff;
}

@media (max-width: 1080px) {
    .blog-list,
    .service-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .brand {
        min-width: 0;
        padding: 0 20px;
        border-right: 0;
    }

    .brand strong {
        font-size: 22px;
    }

    .brand small {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-header > .cta-button {
        display: none;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 78px;
        padding: 0 20px;
        border-left: 1px solid var(--line);
        cursor: pointer;
    }

    .site-nav {
        position: absolute;
        top: 78px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border-bottom: 1px solid var(--line);
        background: var(--white);
        box-shadow: 0 24px 40px rgba(7, 21, 39, 0.12);
    }

    .mobile-nav-toggle:checked ~ .site-nav {
        display: flex;
    }

    .site-nav a {
        padding: 16px 18px;
        border-radius: 8px;
    }

    .hero-copy,
    .hero-media,
    .split-block > *,
    .detail-hero > div,
    .detail-hero .image-block,
    .about-hero > div,
    .about-hero .image-block,
    .contact-form,
    .contact-panel,
    .content-grid article {
        grid-column: 1 / -1;
    }

    .hero-copy,
    .detail-hero > div,
    .about-hero > div,
    .page-hero.compact,
    .article-page header {
        min-height: 0;
        padding: 56px 20px;
    }

    .hero-media,
    .detail-hero .image-block,
    .about-hero .image-block {
        min-height: 360px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .ticker,
    .package-grid,
    .steps-grid,
    .benefit-band,
    .section-header,
    .blog-list,
    .related-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-section,
    .steps-grid,
    .related-posts,
    .article-page section.article-content,
    .contact-form {
        padding-right: 20px;
        padding-left: 20px;
    }

    .final-cta,
    .footer-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 48px 20px;
    }

    .blog-list {
        padding: 24px 20px;
    }

    .blog-card > div {
        min-height: 0;
    }

    .benefit-band h2,
    .benefit-band li,
    .content-grid article {
        padding-right: 20px;
        padding-left: 20px;
    }

    .contact-panel {
        border-left: 0;
    }

    .contact-panel h2,
    .contact-panel p,
    .contact-panel a,
    .contact-panel span {
        margin-right: 20px;
        margin-left: 20px;
    }
}
