:root {
    --apex-ink: #15191f;
    --apex-muted: #5d6675;
    --apex-soft: #f5f1eb;
    --apex-panel: #fffaf3;
    --apex-line: rgba(21, 25, 31, 0.12);
    --apex-orange: #f47a1f;
    --apex-orange-deep: #b94e14;
    --apex-amber: #ffc65a;
    --apex-teal: #236b62;
    --apex-blue: #24466f;
    --apex-charcoal: #20242b;
    --apex-shadow: 0 24px 80px rgba(27, 31, 36, 0.12);
}

.apex-site {
    background: #fffaf3;
    color: var(--apex-ink);
    font-family: var(--fontFamily);
}

.apex-site h1,
.apex-site h2,
.apex-site h3,
.apex-site h4 {
    color: var(--apex-ink);
    letter-spacing: 0;
}

.apex-site p {
    color: var(--apex-muted);
}

.apex-nav {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 999;
}

.apex-nav .navbar {
    background: rgba(255, 250, 243, 0.92);
    border: 1px solid rgba(21, 25, 31, 0.1);
    border-radius: 8px;
    padding: 14px 18px;
    box-shadow: 0 14px 48px rgba(27, 31, 36, 0.08);
    backdrop-filter: blur(18px);
}

.apex-brand {
    color: var(--apex-ink) !important;
    display: inline-flex;
    align-items: center;
    font-family: var(--headingFont);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0;
}

.apex-brand::before {
    content: "";
    width: 14px;
    height: 14px;
    margin-right: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--apex-orange), var(--apex-amber));
    box-shadow: 8px 8px 0 rgba(35, 107, 98, 0.16);
}

.apex-nav .nav-link {
    color: rgba(21, 25, 31, 0.72);
    font-weight: 700;
    padding: 8px 14px !important;
}

.apex-nav .nav-link:hover,
.apex-nav .nav-link.active {
    color: var(--apex-orange-deep);
}

.navbar-toggler {
    border-color: rgba(21, 25, 31, 0.18);
    border-radius: 6px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2821, 25, 31, 0.82%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.apex-btn {
    align-items: center;
    background: var(--apex-orange);
    border: 1px solid var(--apex-orange);
    border-radius: 8px;
    color: #fff !important;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    box-shadow: 0 14px 34px rgba(244, 122, 31, 0.28);
}

.apex-btn:hover {
    background: var(--apex-orange-deep);
    border-color: var(--apex-orange-deep);
    color: #fff !important;
}

.apex-btn-small {
    min-height: 40px;
    padding: 9px 16px;
}

.apex-btn-ghost {
    background: rgba(255, 250, 243, 0.86);
    border-color: rgba(21, 25, 31, 0.2);
    color: var(--apex-ink) !important;
    box-shadow: none;
}

.apex-btn-ghost:hover {
    background: #fff;
    border-color: var(--apex-orange);
    color: var(--apex-orange-deep) !important;
}

.apex-btn-dark {
    background: var(--apex-charcoal);
    border-color: var(--apex-charcoal);
    box-shadow: 0 14px 34px rgba(32, 36, 43, 0.22);
}

.apex-btn-dark:hover {
    background: #05070a;
    border-color: #05070a;
}

.apex-hero {
    background:
        linear-gradient(140deg, rgba(255, 250, 243, 0.98) 0%, rgba(255, 246, 234, 0.98) 48%, rgba(238, 246, 244, 0.96) 100%);
    min-height: auto;
    overflow: hidden;
    padding: 146px 0 78px;
    position: relative;
}

.apex-page-hero {
    background:
        linear-gradient(140deg, rgba(255, 250, 243, 0.98) 0%, rgba(255, 246, 234, 0.98) 48%, rgba(238, 246, 244, 0.96) 100%);
    padding: 166px 0 82px;
}

.apex-page-hero h1,
.apex-error-panel h1 {
    font-size: clamp(46px, 6.2vw, 88px);
    line-height: 0.98;
    margin-bottom: 26px;
}

.apex-contact-note {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(21, 25, 31, 0.12);
    border-radius: 8px;
    box-shadow: var(--apex-shadow);
    padding: 30px;
}

.apex-contact-note span {
    color: var(--apex-orange-deep);
    display: block;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.apex-contact-note strong {
    color: var(--apex-ink);
    display: block;
    font-family: var(--headingFont);
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.apex-contact-section {
    background: #fff;
}

.apex-contact-stack {
    display: grid;
    gap: 16px;
}

.apex-contact-card,
.apex-contact-form {
    background: rgba(255, 250, 243, 0.72);
    border: 1px solid rgba(21, 25, 31, 0.12);
    border-radius: 8px;
    box-shadow: 0 18px 52px rgba(27, 31, 36, 0.07);
}

.apex-contact-card {
    padding: 28px;
}

.apex-contact-card i {
    background: rgba(244, 122, 31, 0.12);
    border-radius: 8px;
    color: var(--apex-orange-deep);
    display: inline-flex;
    font-size: 28px;
    margin-bottom: 18px;
    padding: 11px;
}

.apex-contact-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.apex-contact-form {
    padding: 34px;
}

.apex-contact-form label {
    color: var(--apex-ink);
    display: block;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 9px;
}

.apex-contact-form input,
.apex-contact-form select,
.apex-contact-form textarea {
    background: #fff;
    border: 1px solid rgba(21, 25, 31, 0.14);
    border-radius: 8px;
    color: var(--apex-ink);
    display: block;
    min-height: 50px;
    padding: 12px 14px;
    width: 100%;
}

.apex-contact-form textarea {
    resize: vertical;
}

.apex-contact-form input:focus,
.apex-contact-form select:focus,
.apex-contact-form textarea:focus {
    border-color: var(--apex-orange);
    box-shadow: 0 0 0 4px rgba(244, 122, 31, 0.12);
    outline: none;
}

.apex-form-status {
    display: none;
    font-weight: 800;
    margin-bottom: 18px;
    padding: 13px 14px;
}

.apex-form-status.is-pending,
.apex-form-status.is-success,
.apex-form-status.is-error {
    border-radius: 8px;
    display: block;
}

.apex-form-status.is-pending {
    background: rgba(36, 70, 111, 0.08);
    color: var(--apex-blue);
}

.apex-form-status.is-success {
    background: rgba(35, 107, 98, 0.1);
    color: var(--apex-teal);
}

.apex-form-status.is-error {
    background: rgba(185, 78, 20, 0.1);
    color: var(--apex-orange-deep);
}

.apex-form-hint {
    color: var(--apex-muted);
    font-size: 14px;
    margin-top: 14px;
}

.apex-honeypot {
    display: none;
}

.apex-error-page {
    align-items: center;
    background:
        linear-gradient(140deg, rgba(255, 250, 243, 0.98) 0%, rgba(255, 246, 234, 0.98) 48%, rgba(238, 246, 244, 0.96) 100%);
    display: flex;
    min-height: 76vh;
    padding: 160px 0 80px;
}

.apex-error-panel {
    max-width: 760px;
}

.apex-hero::before {
    background:
        linear-gradient(90deg, rgba(244, 122, 31, 0.06), transparent 34%),
        linear-gradient(0deg, rgba(35, 107, 98, 0.06), transparent 42%);
    content: "";
    inset: 0 0 auto 0;
    height: 100%;
    position: absolute;
    z-index: 0;
}

.apex-hero-grid {
    align-items: center;
    display: grid;
    gap: 54px;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
    min-height: 650px;
    position: relative;
    z-index: 1;
}

.apex-hero-grid > * {
    min-width: 0;
}

.apex-hero-visual {
    background: #fff;
    border: 1px solid rgba(21, 25, 31, 0.12);
    border-radius: 8px;
    box-shadow: 0 34px 96px rgba(27, 31, 36, 0.16);
    margin: 0;
    overflow: hidden;
    position: relative;
}

.apex-hero-visual::after {
    background: rgba(21, 25, 31, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    color: #fff;
    content: "Click to enlarge";
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    padding: 8px 10px;
    pointer-events: none;
    position: absolute;
    right: 12px;
    top: 12px;
    transition: opacity 0.2s ease;
    z-index: 3;
}

.apex-hero-visual:hover::after {
    opacity: 1;
}

.apex-hero-visual::before {
    display: none;
}

.apex-hero-visual img {
    aspect-ratio: auto;
    background: #fff;
    cursor: zoom-in;
    display: block;
    height: auto;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

.apex-hero-home .apex-hero-visual img {
    object-position: 58% center;
}

.apex-hero-visual figcaption {
    align-items: center;
    background: rgba(255, 250, 243, 0.92);
    border-top: 1px solid rgba(21, 25, 31, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    position: static;
}

.apex-hero-visual figcaption span {
    background: #fff;
    border: 1px solid rgba(21, 25, 31, 0.12);
    border-radius: 8px;
    color: var(--apex-ink);
    font-size: 13px;
    font-weight: 900;
    padding: 8px 11px;
}

.apex-hero-content {
    max-width: 680px;
    position: relative;
}

.apex-site [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

.apex-kicker {
    color: var(--apex-orange-deep) !important;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.apex-hero h1 {
    font-size: clamp(54px, 7vw, 98px);
    line-height: 0.95;
    margin-bottom: 28px;
    overflow-wrap: break-word;
}

.apex-hero-arclight h1,
.apex-hero-service h1 {
    font-size: clamp(42px, 4.9vw, 72px);
    max-width: 720px;
}

.apex-lead {
    color: rgba(21, 25, 31, 0.76) !important;
    font-size: 20px;
    line-height: 1.75;
    max-width: 690px;
}

.apex-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.apex-proof-strip {
    align-items: center;
    border-top: 1px solid rgba(21, 25, 31, 0.14);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 42px;
    max-width: 760px;
    padding-top: 20px;
}

.apex-proof-strip span,
.apex-split-points span {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(21, 25, 31, 0.12);
    border-radius: 8px;
    color: var(--apex-ink);
    display: inline-flex;
    font-weight: 800;
    padding: 10px 13px;
}

.apex-section {
    padding: 96px 0;
}

.apex-intro {
    background: #fff;
}

.apex-product-band,
.apex-services-strip,
.apex-runtime {
    background: linear-gradient(135deg, #fff4e3 0%, #f3f7f4 54%, #eef4fb 100%);
}

.apex-section h2,
.apex-cta h2 {
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.08;
    margin-bottom: 18px;
}

.apex-section-copy {
    font-size: 18px;
    line-height: 1.8;
}

.apex-section-head {
    margin: 0 auto 42px;
    max-width: 780px;
    text-align: center;
}

.apex-card,
.apex-channel,
.apex-capability-grid article,
.apex-service-row {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--apex-line);
    border-radius: 8px;
    box-shadow: 0 18px 52px rgba(27, 31, 36, 0.07);
}

.apex-card {
    height: 100%;
    padding: 34px;
}

.apex-card i {
    background: rgba(244, 122, 31, 0.12);
    border-radius: 8px;
    color: var(--apex-orange-deep);
    display: inline-flex;
    font-size: 30px;
    margin-bottom: 26px;
    padding: 12px;
}

.apex-card h3,
.apex-channel h3,
.apex-capability-grid h3,
.apex-service-row h3 {
    font-size: 23px;
    margin-bottom: 12px;
}

.apex-card p,
.apex-channel p,
.apex-capability-grid p,
.apex-service-row p {
    font-size: 16px;
    line-height: 1.75;
}

.apex-visual,
.apex-wide-visual {
    background: #fff;
    border: 1px solid rgba(21, 25, 31, 0.12);
    border-radius: 8px;
    box-shadow: var(--apex-shadow);
    margin: 0;
    overflow: hidden;
    position: relative;
}

.apex-visual::after,
.apex-wide-visual::after {
    background: rgba(21, 25, 31, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    color: #fff;
    content: "Click to enlarge";
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    padding: 8px 10px;
    pointer-events: none;
    position: absolute;
    right: 12px;
    top: 12px;
    transition: opacity 0.2s ease;
    z-index: 3;
}

.apex-visual:hover::after,
.apex-wide-visual:hover::after {
    opacity: 1;
}

.apex-visual img,
.apex-wide-visual img {
    cursor: zoom-in;
    display: block;
    width: 100%;
}

.apex-lightbox {
    align-items: center;
    background: rgba(10, 12, 15, 0.88);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 26px;
    position: fixed;
    z-index: 9999;
}

.apex-lightbox.is-open {
    display: flex;
}

.apex-lightbox__image {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 32px 120px rgba(0, 0, 0, 0.5);
    max-height: 88vh;
    max-width: min(96vw, 1680px);
    object-fit: contain;
}

.apex-lightbox__close {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 8px;
    color: var(--apex-ink);
    display: inline-flex;
    font-size: 30px;
    font-weight: 800;
    height: 46px;
    justify-content: center;
    line-height: 1;
    position: fixed;
    right: 24px;
    top: 22px;
    width: 46px;
}

.apex-lightbox__close:hover {
    background: var(--apex-orange);
    color: #fff;
}

.apex-link {
    align-items: center;
    color: var(--apex-orange-deep);
    display: inline-flex;
    font-weight: 900;
    gap: 6px;
    margin-top: 8px;
}

.apex-link:hover {
    color: var(--apex-teal);
}

.apex-channel {
    height: 100%;
    padding: 34px;
}

.apex-channel span,
.apex-service-row span {
    color: var(--apex-teal);
    display: block;
    font-family: var(--headingFont);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    margin-bottom: 22px;
}

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

.apex-service-grid div {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(21, 25, 31, 0.12);
    border-radius: 8px;
    color: var(--apex-ink);
    font-size: 18px;
    font-weight: 850;
    min-height: 88px;
    padding: 26px;
}

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

.apex-capability-grid article {
    padding: 30px;
}

.apex-two-visuals {
    background: #fff;
}

.apex-split-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.apex-service-list {
    display: grid;
    gap: 16px;
}

.apex-service-row {
    display: grid;
    gap: 28px;
    grid-template-columns: 72px 1fr;
    padding: 30px;
}

.apex-pricing strong {
    color: var(--apex-teal);
    display: block;
    font-weight: 900;
    margin-top: 22px;
}

.apex-pricing-hot {
    border-color: rgba(244, 122, 31, 0.36);
    box-shadow: 0 24px 68px rgba(244, 122, 31, 0.15);
}

.apex-cta {
    background:
        linear-gradient(135deg, rgba(255, 244, 227, 0.98) 0%, rgba(255, 232, 203, 0.96) 54%, rgba(238, 246, 244, 0.96) 100%);
    border-top: 1px solid rgba(21, 25, 31, 0.08);
    overflow: hidden;
    padding: 78px 0;
}

.apex-cta .apex-kicker,
.apex-cta h2 {
    color: var(--apex-ink) !important;
}

.apex-cta .apex-kicker {
    color: var(--apex-orange-deep) !important;
}

.apex-footer {
    background: var(--apex-charcoal);
    color: #fff;
    padding: 70px 0 30px;
}

.apex-footer .apex-brand {
    color: #fff !important;
    margin-bottom: 18px;
}

.apex-footer p,
.apex-footer span {
    color: rgba(255, 255, 255, 0.66);
    display: block;
    line-height: 1.7;
}

.apex-footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.apex-footer a:not(.apex-brand) {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 9px;
}

.apex-footer a:hover {
    color: var(--apex-amber);
}

.apex-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.52);
    font-size: 14px;
    margin-top: 46px;
    padding-top: 24px;
}

@media (max-width: 991px) {
    .apex-nav {
        top: 10px;
    }

    .apex-nav .navbar {
        padding: 12px 14px;
    }

    .apex-nav .navbar-collapse {
        padding-top: 16px;
    }

    .apex-hero {
        padding: 132px 0 70px;
    }

    .apex-page-hero,
    .apex-error-page {
        padding: 132px 0 70px;
    }

    .apex-hero-grid {
        gap: 36px;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .apex-hero-content {
        max-width: 760px;
    }

    .apex-section {
        padding: 72px 0;
    }

    .apex-service-grid,
    .apex-capability-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .apex-brand {
        font-size: 22px;
    }

    .apex-hero {
        padding: 122px 0 58px;
    }

    .apex-hero h1 {
        font-size: 44px;
    }

    .apex-page-hero h1,
    .apex-error-panel h1 {
        font-size: 44px;
    }

    .apex-hero-arclight h1,
    .apex-hero-service h1 {
        font-size: 35px;
        line-height: 1.05;
    }

    .apex-lead {
        font-size: 17px;
    }

    .apex-hero-actions,
    .apex-proof-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .apex-btn {
        width: 100%;
    }

    .apex-section h2,
    .apex-cta h2 {
        font-size: 34px;
    }

    .apex-card,
    .apex-channel,
    .apex-capability-grid article,
    .apex-service-row,
    .apex-contact-card,
    .apex-contact-form {
        padding: 24px;
    }

    .apex-hero-visual::after,
    .apex-visual::after,
    .apex-wide-visual::after {
        opacity: 1;
        right: 10px;
        top: 10px;
    }

    .apex-lightbox {
        padding: 12px;
    }

    .apex-lightbox__close {
        height: 42px;
        right: 12px;
        top: 12px;
        width: 42px;
    }

    .apex-service-row {
        gap: 8px;
        grid-template-columns: 1fr;
    }
}
