:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-alt: #eef0ff;
    --border: #dfe3f1;
    --text: #223047;
    --muted: #5f6b84;
    --brand: #5a5af3;
    --brand-dark: #434175;
    --brand-soft: #eef0ff;
    --success: #0f8a4f;
    --warning: #a15c00;
    --error: #b42318;
    --shadow: 0 16px 42px rgba(25, 39, 67, 0.08);
    --shadow-lg: 0 22px 60px rgba(25, 39, 67, 0.12);
    --shadow-sm: 0 8px 24px rgba(25, 39, 67, 0.06);
    --radius: 10px;
    --radius-sm: 8px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, #f9faff 0%, #f4f7fc 100%);
    line-height: 1.6;
}

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

a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(90, 90, 243, 0.24);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
    line-height: 1.12;
    color: var(--brand-dark);
    margin: 0 0 0.75rem;
    font-family: "Poppins", "Manrope", system-ui, sans-serif;
    font-weight: 700;
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(223, 227, 241, 0.82);
    box-shadow: 0 10px 28px rgba(25, 39, 67, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
}

.brand img {
    width: auto;
    max-height: 56px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--brand-dark);
    font-weight: 600;
    padding: 0.35rem 0;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link.is-active,
.nav-link:hover {
    color: var(--brand);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--brand-dark);
    position: relative;
    content: "";
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
    position: absolute;
    left: 0;
}

.nav-toggle-lines::before {
    top: -6px;
}

.nav-toggle-lines::after {
    top: 6px;
}

.site-main {
    padding-bottom: 2rem;
}

.hero-section,
.page-hero,
.section {
    padding: 4.4rem 0;
}

.page-home .hero-section {
    background:
        linear-gradient(120deg, rgba(90, 90, 243, 0.08), rgba(67, 65, 117, 0.03)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.96));
    overflow: hidden;
}

.page-about .page-hero {
    background: linear-gradient(120deg, rgba(67, 65, 117, 0.06), rgba(90, 90, 243, 0.08));
}

.page-services .page-hero {
    background: linear-gradient(120deg, rgba(90, 90, 243, 0.08), rgba(238, 240, 255, 0.8));
}

.page-contact .page-hero {
    background: linear-gradient(120deg, rgba(67, 65, 117, 0.08), rgba(90, 90, 243, 0.12));
}

.page-home .hero-section,
.page-about .page-hero,
.page-services .page-hero,
.page-contact .page-hero {
    position: relative;
    overflow: hidden;
}

.page-home .hero-section::after,
.page-about .page-hero::after,
.page-services .page-hero::after,
.page-contact .page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(90, 90, 243, 0.25), transparent);
}

.hero-grid,
.page-hero-grid,
.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: center;
}

.hero-copy h1,
.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.35rem);
    max-width: 12ch;
}

.lead {
    font-size: 1.08rem;
    color: var(--text);
    max-width: 58ch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.9rem;
}

.hero-media,
.hero-note,
.panel,
.info-card,
.service-card,
.contact-form,
.table-wrap,
.data-table {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

body.js-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

body.js-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-media {
    padding: 0.75rem;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.hero-media-stack {
    display: grid;
    gap: 0.9rem;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
    transition: transform 0.35s ease;
}

.hero-media:hover img {
    transform: scale(1.03);
}

.hero-media-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.hero-mini-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.hero-mini-card span {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 0.35rem;
}

.hero-mini-card strong {
    display: block;
    color: var(--brand-dark);
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.hero-mini-card p {
    margin: 0;
    font-size: 0.93rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 12px 24px rgba(90, 90, 243, 0.2);
}

.btn-primary:hover {
    background: #4546e8;
    color: #fff;
    box-shadow: 0 16px 30px rgba(90, 90, 243, 0.26);
}

.btn-secondary {
    background: transparent;
    border-color: var(--brand);
    color: var(--brand);
}

.btn-secondary:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-color: rgba(90, 90, 243, 0.28);
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.hero-points li,
.service-card li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--text);
}

.hero-points li::before,
.service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--brand);
}

.section-alt {
    background:
        linear-gradient(180deg, rgba(238, 240, 255, 0.7), rgba(247, 248, 252, 0.96));
}

.section-heading {
    text-align: center;
    margin-bottom: 2.25rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading.left {
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.section-heading h2,
.page-hero h1 {
    margin-bottom: 0.8rem;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.section-heading p {
    max-width: 66ch;
    margin-left: auto;
    margin-right: auto;
}

.section-heading.left p {
    margin-left: 0;
    margin-right: 0;
}

.card-grid {
    display: grid;
    gap: 1rem;
}

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

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

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

.info-card,
.service-card,
.panel,
.hero-note {
    padding: 1.35rem;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    display: grid;
    gap: 0.7rem;
}

.info-card:hover,
.service-card:hover,
.panel:hover,
.hero-note:hover {
    transform: translateY(-3px);
    border-color: rgba(90, 90, 243, 0.28);
    box-shadow: var(--shadow-lg);
}

.card-media {
    margin: -1.35rem -1.35rem 1rem;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.info-card:hover .card-media img,
.service-card:hover .card-media img {
    transform: scale(1.03);
}

.brand-image,
.logo-image,
.service-logo {
    object-fit: contain !important;
    background: #fff;
    padding: 0.9rem;
}

.service-card .brand-image,
.service-card .logo-image,
.service-card .service-logo {
    height: 190px;
    width: 100%;
    border-radius: calc(var(--radius) - 4px);
}

.stack {
    display: grid;
    gap: 1rem;
}

.feature-row {
    padding: 1rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    border-radius: var(--radius);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.cta-band h2,
.cta-band p {
    color: #fff;
}

.cta-band .btn-secondary {
    background: #fff;
    color: var(--brand-dark);
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(15, 25, 55, 0.16);
}

.cta-band .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-dark);
    border-color: rgba(255, 255, 255, 0.98);
}

.contact-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.table-wrap {
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 0.95rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--brand-soft);
}

.service-card ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.service-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
    margin-bottom: 1rem;
}

.service-card .service-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

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

.service-card .service-icon-card {
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    text-align: center;
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.service-card .service-icon-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    margin: 0;
    padding: 0.65rem;
    background: linear-gradient(180deg, #fff, #fbfbff);
    border: 0;
}

.service-card .service-icon-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.service-card .service-icon-card {
    min-height: 190px;
}

.service-card-wide {
    grid-column: 1 / -1;
}

.contact-grid {
    align-items: start;
}

.contact-summary-grid {
    margin-top: 1rem;
}

.contact-panel {
    min-height: 100%;
}

.contact-panel h3 {
    font-size: 1.15rem;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.timeline-card {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.timeline-card span {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand);
    text-transform: uppercase;
}

.contact-map {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        linear-gradient(135deg, rgba(67, 65, 117, 0.9), rgba(90, 90, 243, 0.88)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 35%);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.contact-map h2,
.contact-map p {
    color: #fff;
}

.contact-map a {
    color: #fff;
}

.contact-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(90, 90, 243, 0.08);
    color: var(--brand-dark);
    font-weight: 600;
    border: 1px solid rgba(90, 90, 243, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.contact-chip:hover {
    transform: translateY(-1px);
    background: rgba(90, 90, 243, 0.12);
    border-color: rgba(90, 90, 243, 0.2);
}

.page-services .contact-chip {
    background: rgba(90, 90, 243, 0.1);
}

.contact-map .contact-chip {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.professional-service-panel {
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.professional-service-panel > p {
    max-width: 80ch;
    margin-bottom: 1rem;
}

.service-story {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.25rem;
}

.service-story.reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.service-story .story-copy {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #fbfbff);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.service-story .story-copy h3 {
    font-size: 1.4rem;
}

.service-story .story-copy ul {
    padding-left: 1.2rem;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.5rem;
}

.service-story .story-visual {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(67, 65, 117, 0.06), rgba(90, 90, 243, 0.1));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.professional-service-story .story-visual {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.professional-service-story .story-copy {
    border-top: 3px solid rgba(90, 90, 243, 0.18);
}

.professional-service-story .story-visual .service-icon-grid {
    margin-top: 0;
}

.professional-service-story .micro-note {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(90, 90, 243, 0.08), rgba(67, 65, 117, 0.06));
    border: 1px solid rgba(90, 90, 243, 0.14);
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.service-story .story-visual img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
}

.feature-belt {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.feature-belt .belt-item {
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.feature-belt .belt-item strong {
    display: block;
    color: var(--brand-dark);
    margin-bottom: 0.25rem;
}

.contact-form {
    padding: 1.35rem;
    display: grid;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--brand-dark);
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    font: inherit;
    color: var(--text);
    background: linear-gradient(180deg, #fff, #fbfbff);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(90, 90, 243, 0.18);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(90, 90, 243, 0.08);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8a92a8;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.status-success {
    background: rgba(15, 138, 79, 0.12);
    color: var(--success);
}

.status-warning {
    background: rgba(161, 92, 0, 0.12);
    color: var(--warning);
}

.status-error {
    background: rgba(180, 35, 24, 0.12);
    color: var(--error);
}

.site-footer {
    background: linear-gradient(180deg, #ffffff, #f8f9ff);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 1.5rem;
}

.site-footer h2,
.site-footer h3 {
    margin-bottom: 0.8rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.js-enabled [data-reveal],
    body.js-enabled [data-reveal].is-visible,
    .hero-media img,
    .card-media img,
    .info-card,
    .service-card,
    .panel,
    .hero-note {
        transition: none !important;
        transform: none !important;
    }
}

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

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

    .professional-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .service-story,
    .service-story.reverse {
        grid-template-columns: 1fr;
    }

    .feature-belt {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hero-copy h1,
    .page-hero h1 {
        font-size: 2.2rem;
    }

    .hero-grid,
    .page-hero-grid,
    .split-grid,
    .footer-grid,
    .card-grid-2,
    .card-grid-3,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: relative;
    }

    .nav-list {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% + 0.6rem);
        flex-direction: column;
        align-items: stretch;
        width: min(240px, 80vw);
        padding: 0.75rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

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

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-cta-actions {
        width: 100%;
    }

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

@media (max-width: 560px) {
    .hero-copy h1,
    .page-hero h1 {
        font-size: 1.9rem;
    }

    .hero-section,
    .page-hero,
    .section {
        padding: 3.4rem 0;
    }

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

    .header-inner {
        gap: 0.5rem;
    }

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

    .professional-services-grid {
        grid-template-columns: 1fr;
    }

    .hero-media-mini {
        grid-template-columns: 1fr;
    }
}
