:root {
    --ink: #061525;
    --muted: #5d6f82;
    --line: #dce6ed;
    --panel: #ffffff;
    --soft: #f4f8fb;
    --navy: #08223c;
    --blue: #0f6abf;
    --cyan: #25b8d2;
    --orange: #ff7a30;
    --green: #21a67a;
    --shadow: 0 18px 50px rgba(6, 21, 37, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f9fbfd;
    font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #ffb35b;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: 12px;
    z-index: 100;
    padding: 10px 14px;
    color: white;
    background: var(--navy);
    border-radius: 8px;
    transform: translateY(-160%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 18px clamp(20px, 5vw, 72px);
    background: rgba(249, 251, 253, 0.9);
    border-bottom: 1px solid rgba(8, 34, 60, 0.08);
    backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-logo {
    width: clamp(132px, 14vw, 184px);
    height: auto;
}

.footer-logo {
    width: 170px;
    height: auto;
    padding: 7px 8px;
    background: white;
    border-radius: 8px;
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan) 55%, var(--orange));
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: 0;
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.main-nav a {
    padding: 10px 12px;
    color: #31465a;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--navy);
    background: #eaf4fb;
}

.header-action,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-action,
.button.primary {
    color: white;
    background: var(--navy);
    box-shadow: 0 10px 28px rgba(8, 34, 60, 0.2);
}

.button.secondary {
    color: var(--navy);
    background: white;
    border: 1px solid var(--line);
}

.header-action:hover,
.button:hover {
    transform: translateY(-2px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: calc(100svh - 132px);
    padding: clamp(30px, 4.4vw, 58px) clamp(20px, 5vw, 72px) 24px;
    background:
        linear-gradient(105deg, #eef7fb 0%, #ffffff 47%, #eef6f2 100%);
}

.hero h1,
.page-hero h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(40px, 5.6vw, 64px);
    line-height: 1;
    letter-spacing: 0;
}

.hero .lead,
.page-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: #405468;
    font-size: clamp(17px, 1.6vw, 19px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-media {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-media img {
    width: 100%;
    height: clamp(330px, 48vh, 540px);
    object-fit: cover;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section {
    padding: clamp(58px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 34px;
}

.section-heading h2,
.split-section h2,
.cta-section h2,
.contact-details h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(32px, 4.8vw, 58px);
    line-height: 1.05;
    letter-spacing: 0;
}

.intro-band {
    background: var(--navy);
}

.intro-band .eyebrow,
.intro-band h2 {
    color: white;
}

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

.service-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #eef5f8;
}

.feature-card {
    min-height: 220px;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.intro-band .feature-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: white;
}

.feature-icon {
    display: inline-flex;
    margin-bottom: 26px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
}

.feature-card h3,
.value-list h3,
.process span,
.prose h2,
.support-box h2 {
    margin: 0 0 10px;
    color: inherit;
    font-size: 22px;
    line-height: 1.2;
}

.feature-card p,
.split-section p,
.value-list p,
.process p,
.cta-section p,
.contact-details p,
.support-box p,
.prose p,
.prose li {
    color: var(--muted);
    font-size: 17px;
}

.intro-band .feature-card p {
    color: #d8e8f3;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    background: white;
}

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

.value-list article,
.support-box {
    padding: 28px;
    background: #f3f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.process-section {
    background: #f6fbf7;
}

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

.process div {
    min-height: 190px;
    padding: 28px;
    background: white;
    border-left: 5px solid var(--green);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(6, 21, 37, 0.06);
}

.cta-section {
    color: white;
    background: linear-gradient(135deg, #08223c 0%, #0f4d7a 62%, #1f8c9a 100%);
}

.cta-section .eyebrow,
.cta-section h2,
.cta-section p {
    color: white;
}

.cta-section p {
    max-width: 760px;
}

.page-hero {
    padding: clamp(58px, 8vw, 116px) clamp(20px, 5vw, 72px);
    background:
        linear-gradient(105deg, #eef7fb 0%, #ffffff 55%, #fff4ed 100%);
}

.page-hero.compact h1 {
    font-size: clamp(40px, 6vw, 76px);
}

.updated {
    display: inline-flex;
    margin-top: 22px;
    color: var(--muted);
    font-weight: 700;
}

.breadcrumbs {
    padding: 16px clamp(20px, 5vw, 72px) 0;
    background: #f9fbfd;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #9eb3c4;
}

.breadcrumbs a {
    color: var(--blue);
}

.image-panel {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-panel img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.contact-layout,
.legal-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: 24px;
    align-items: start;
    background: white;
}

.contact-methods {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.contact-methods a {
    display: grid;
    gap: 4px;
    padding: 20px;
    background: #f3f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
    font-weight: 800;
}

.contact-methods span {
    color: var(--muted);
    font-size: 13px;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 28px;
    background: #f7fbfd;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--ink);
    background: white;
    border: 1px solid #cad8e2;
    border-radius: 8px;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.form-status,
.form-errors {
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.form-status {
    color: #07543e;
    background: #e7f8ef;
    border: 1px solid #b9e7ce;
}

.form-errors {
    color: #7f1d1d;
    background: #fff0f0;
    border: 1px solid #f0b8b8;
}

.form-errors ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.support-box {
    position: sticky;
    top: 104px;
}

.shorts-feed {
    height: calc(100svh - 81px);
    overflow-y: auto;
    background: #061525;
    scroll-snap-type: y mandatory;
}

.short-reel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 640px;
    height: calc(100svh - 81px);
    padding: clamp(18px, 3vw, 34px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.short-reel video {
    width: min(100%, 430px);
    height: min(100%, 760px);
    object-fit: cover;
    background: black;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.short-caption {
    position: absolute;
    right: clamp(16px, 4vw, 72px);
    bottom: clamp(18px, 4vw, 48px);
    left: clamp(16px, 4vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    color: white;
    pointer-events: none;
}

.short-caption p {
    max-width: 560px;
    margin: 0;
    font-size: clamp(16px, 1.5vw, 19px);
    font-weight: 800;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.short-actions {
    display: grid;
    gap: 10px;
    pointer-events: auto;
}

.short-actions a,
.short-actions button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(16px);
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: start;
    background: white;
}

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

.admin-list h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
}

.admin-short {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px;
    background: #f7fbfd;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-short video {
    width: 130px;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: black;
    border-radius: 8px;
}

.admin-short p {
    margin: 0 0 8px;
    color: var(--ink);
    font-weight: 800;
}

.admin-short span,
.admin-short small,
.admin-short a {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.admin-short a {
    color: var(--blue);
    font-weight: 800;
}

.auth-layout {
    display: grid;
    place-items: start center;
    background: white;
}

.auth-form {
    width: min(100%, 520px);
}

.checkbox-label {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.checkbox-label input {
    width: auto;
}

.logout-form {
    margin-top: 24px;
}

.logout-form button {
    min-height: 40px;
    padding: 10px 14px;
    color: var(--navy);
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.prose {
    padding: 34px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.prose h2 {
    color: var(--navy);
    margin-top: 34px;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose ul {
    padding-left: 22px;
}

.prose li {
    margin: 8px 0;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 28px;
    padding: 42px clamp(20px, 5vw, 72px);
    color: #d6e5f1;
    background: #061525;
}

.site-footer p,
.footer-contact span {
    margin: 8px 0 0;
    color: #9eb3c4;
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    color: #f4fbff;
    font-weight: 700;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr auto;
        justify-items: stretch;
        gap: 10px 14px;
        padding: 14px clamp(16px, 4vw, 28px);
    }

    .main-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .header-action {
        justify-self: end;
    }

    .hero,
    .split-section,
    .contact-layout,
    .legal-layout,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-media img {
        height: auto;
    }

    .feature-grid,
    .service-matrix,
    .process,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .support-box {
        position: static;
    }
}

@media (max-width: 620px) {
    .brand-copy small {
        display: none;
    }

    .brand-logo {
        width: 126px;
    }

    .header-action {
        width: auto;
        min-height: 38px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .main-nav a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .hero {
        gap: 22px;
        padding-top: 28px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 39px;
    }

    .hero .lead {
        margin-top: 14px;
        font-size: 16px;
    }

    .hero-actions {
        margin-top: 18px;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .hero-media img {
        height: 180px;
    }

    .feature-card,
    .value-list article,
    .process div,
    .contact-form,
    .prose,
    .support-box {
        padding: 22px;
    }

    .shorts-feed,
    .short-reel {
        height: calc(100svh - 116px);
    }

    .short-reel {
        min-height: 560px;
        padding: 12px;
    }

    .short-reel video {
        width: min(100%, 360px);
        height: min(100%, 640px);
    }

    .short-caption {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 12px;
    }

    .short-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .admin-short {
        grid-template-columns: 92px 1fr;
    }

    .admin-short video {
        width: 92px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Homepage: retrofit automation */
.home-page {
    --home-blue: #0866ff;
    --home-blue-dark: #0758dc;
    --home-mint: #dff8e9;
    --home-sky: #dcecff;
    --home-lilac: #ebe4ff;
    --home-blush: #fae5f3;
    --home-peach: #fff0dd;
    --home-ink: #1c2b33;
    --home-muted: #52616b;
    --home-line: #d8e0e6;
    color: var(--home-ink);
    background: #ffffff;
}

.home-page .eyebrow {
    color: var(--home-blue);
    letter-spacing: 0.14em;
}

.home-announcement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    min-height: 54px;
    padding: 12px clamp(20px, 5vw, 72px);
    color: #344854;
    background: linear-gradient(90deg, #effbf4, #eef5ff 46%, #f8efff 74%, #fff5e9);
    border-bottom: 1px solid rgba(8, 102, 255, 0.1);
    font-size: 14px;
}

.home-announcement strong {
    color: var(--home-ink);
}

.home-announcement a {
    color: var(--home-blue-dark);
    font-weight: 700;
}

.home-announcement a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.announcement-dot {
    width: 8px;
    height: 8px;
    background: #16a776;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(22, 167, 118, 0.12);
}

.home-page .home-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(52px, 7vw, 84px);
    min-height: auto;
    padding: clamp(76px, 9vw, 126px) clamp(20px, 5vw, 72px) clamp(72px, 8vw, 112px);
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, #ffffff 100%),
        linear-gradient(128deg, var(--home-mint) 0%, #e6f8ee 15%, var(--home-sky) 38%, var(--home-lilac) 64%, var(--home-blush) 83%, var(--home-peach) 100%);
}

.home-hero .hero-copy {
    position: relative;
    z-index: 1;
    max-width: 940px;
    margin: 0 auto;
}

.home-page .home-hero h1 {
    max-width: 920px;
    margin: 0 auto;
    color: var(--home-ink);
    font-size: clamp(50px, 7.2vw, 88px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.home-page .home-hero .lead {
    max-width: 780px;
    margin: 26px auto 0;
    color: var(--home-muted);
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.55;
}

.home-page .hero-actions {
    justify-content: center;
    margin-top: 32px;
}

.home-page .button {
    gap: 10px;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 10px;
    box-shadow: none;
    font-size: 15px;
    font-weight: 700;
}

.home-page .button.primary {
    background: var(--home-blue);
}

.home-page .button.primary:hover {
    background: var(--home-blue-dark);
}

.home-page .text-button {
    color: var(--home-blue-dark);
    background: transparent;
    border: 1px solid transparent;
}

.home-page .text-button:hover {
    background: #f0f5ff;
    transform: translateY(-1px);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin: 28px 0 0;
    padding: 0;
    color: #44545f;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
}

.hero-proof li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-proof li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #16a776;
    border-radius: 50%;
}

.retrofit-demo {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 0.55fr) minmax(360px, 1.6fr) minmax(230px, 0.85fr);
    gap: 24px;
    align-items: center;
    width: min(100%, 1030px);
    min-height: 360px;
    margin: 0 auto;
    padding: clamp(26px, 4vw, 48px);
    text-align: left;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(78, 69, 135, 0.16);
    backdrop-filter: blur(18px);
}

.demo-label {
    display: grid;
    gap: 8px;
    align-self: start;
    padding-top: 14px;
}

.demo-label span {
    color: #788893;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.demo-label strong,
.demo-result > strong {
    color: var(--home-ink);
    font-size: 18px;
    line-height: 1.25;
}

.switch-scene {
    position: relative;
    height: 260px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.78), transparent 25%),
        linear-gradient(135deg, #c9f0dd, #d8e9ff 48%, #e8dbff 100%);
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px rgba(39, 58, 69, 0.06);
}

.wall-lines {
    position: absolute;
    inset: 0;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 28px 28px;
}

.switchboard {
    position: absolute;
    z-index: 3;
    top: 69px;
    left: 44px;
    display: flex;
    gap: 12px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #cfd9df;
    border-radius: 15px;
    box-shadow: 0 18px 40px rgba(28, 43, 51, 0.18);
}

.switch {
    position: relative;
    display: block;
    width: 34px;
    height: 58px;
    background: #eef2f5;
    border: 1px solid #cbd5dc;
    border-radius: 7px;
    box-shadow: inset 0 -5px 8px rgba(43, 59, 70, 0.08);
}

.switch::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 5px;
    height: 5px;
    background: #a3b1ba;
    border-radius: 50%;
    transform: translateX(-50%);
}

.switch.on::after {
    background: #16a776;
    box-shadow: 0 0 0 4px rgba(22, 167, 118, 0.12);
}

.retrofit-module {
    position: absolute;
    z-index: 2;
    top: 48px;
    right: 45px;
    width: 124px;
    height: 164px;
    background: linear-gradient(145deg, #152d42, #0a1b2b);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(8, 22, 34, 0.28);
}

.module-light {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 8px;
    height: 8px;
    background: #4ee6b2;
    border-radius: 50%;
    box-shadow: 0 0 14px #4ee6b2;
}

.module-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: white;
    background: var(--home-blue);
    border-radius: 13px;
    font-size: 20px;
    font-weight: 800;
    transform: translate(-50%, -50%);
}

.module-pin {
    position: absolute;
    bottom: -7px;
    width: 12px;
    height: 14px;
    background: #d8a530;
    border-radius: 2px;
}

.pin-one { left: 28px; }
.pin-two { left: 56px; }
.pin-three { left: 84px; }

.signal {
    position: absolute;
    z-index: 1;
    top: 123px;
    left: 49%;
    width: 98px;
    height: 52px;
    border-top: 2px dashed rgba(8, 102, 255, 0.42);
    border-radius: 50%;
    transform: translateX(-38%);
}

.signal-two {
    top: 116px;
    width: 122px;
    height: 72px;
    opacity: 0.65;
}

.signal-three {
    top: 109px;
    width: 146px;
    height: 92px;
    opacity: 0.35;
}

.demo-result {
    display: grid;
    gap: 18px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #dee5ea;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(28, 43, 51, 0.08);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 9px;
    color: #0b6b4c;
    background: #e9f8f2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-pill i {
    width: 7px;
    height: 7px;
    background: #16a776;
    border-radius: 50%;
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    color: #52616b;
    border-top: 1px solid #e7ecef;
    font-size: 13px;
    font-weight: 600;
}

.mini-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 39px;
    height: 23px;
    padding: 3px;
    background: var(--home-blue);
    border-radius: 20px;
}

.mini-toggle i {
    width: 17px;
    height: 17px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.home-quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: clamp(58px, 7vw, 90px) clamp(20px, 7vw, 104px);
    background: #ffffff;
    border-top: 1px solid #e6ebef;
    border-bottom: 1px solid #e6ebef;
}

.home-quick-links > p {
    grid-column: 1 / -1;
    margin: 0 0 38px;
    color: var(--home-ink);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
}

.home-quick-links a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 96px;
    padding: 20px clamp(18px, 2.2vw, 30px);
    color: var(--home-blue-dark);
    border: 1px solid rgba(28, 43, 51, 0.05);
    border-radius: 16px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-quick-links a:first-of-type {
    background: var(--home-mint);
}

.home-quick-links a:nth-of-type(2) { background: var(--home-sky); }
.home-quick-links a:nth-of-type(3) { background: var(--home-lilac); }
.home-quick-links a:nth-of-type(4) { background: var(--home-peach); }

.home-quick-links a:hover {
    box-shadow: 0 14px 28px rgba(52, 68, 78, 0.12);
    transform: translateY(-4px);
}

.home-quick-links a:hover strong {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.home-quick-links strong {
    font-size: 15px;
    line-height: 1.3;
}

.home-page .section {
    padding: clamp(76px, 9vw, 130px) clamp(20px, 7vw, 104px);
}

.home-page .section h2 {
    color: var(--home-ink);
    font-size: clamp(42px, 5.3vw, 70px);
    font-weight: 600;
    line-height: 1.03;
    letter-spacing: -0.035em;
}

.retrofit-section {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 70%, #f7f9ff 100%);
}

.retrofit-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    column-gap: clamp(40px, 7vw, 110px);
    max-width: none;
    margin-bottom: 64px;
}

.retrofit-heading .eyebrow {
    grid-column: 1 / -1;
}

.retrofit-heading h2 {
    max-width: 760px;
}

.retrofit-heading > p:last-child {
    align-self: end;
    margin: 0 0 4px;
    color: var(--home-muted);
    font-size: 18px;
}

.retrofit-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.comparison-card {
    min-height: 430px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 18px;
}

.existing-card {
    background:
        radial-gradient(circle at 90% 4%, rgba(255, 255, 255, 0.9), transparent 28%),
        linear-gradient(145deg, #fff1dc, #f9e5f0 100%);
}

.smart-card {
    color: #ffffff;
    background:
        radial-gradient(circle at 92% 0%, rgba(130, 224, 255, 0.62), transparent 34%),
        linear-gradient(145deg, #0878f9 0%, #6556e8 100%);
}

.comparison-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 44px;
    color: #53626c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comparison-kicker::before {
    content: "";
    width: 9px;
    height: 9px;
    background: #ec6d8d;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(236, 109, 141, 0.14);
}

.smart-card .comparison-kicker {
    color: #d8e8ff;
}

.smart-card .comparison-kicker::before {
    background: #72e5c2;
    box-shadow: 0 0 0 5px rgba(114, 229, 194, 0.18);
}

.comparison-card h3 {
    max-width: 520px;
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.comparison-card p {
    max-width: 570px;
    margin: 18px 0 24px;
    color: #53626c;
    font-size: 17px;
}

.smart-card p {
    color: #e1ecff;
}

.comparison-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
}

.comparison-card li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-card li::before {
    content: "\2713";
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #0b6b4c;
    background: #ddf6ec;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.smart-card li::before {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.retrofit-note {
    max-width: 850px;
    margin: 28px 0 0;
    color: #687781;
    font-size: 14px;
}

.home-benefits {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(50px, 8vw, 130px);
    color: #ffffff;
    background:
        radial-gradient(circle at 0% 0%, rgba(45, 159, 187, 0.28), transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(176, 77, 184, 0.3), transparent 38%),
        linear-gradient(135deg, #123247 0%, #202653 58%, #482749 100%);
}

.home-page .home-benefits .eyebrow {
    color: #7eb4ff;
}

.home-page .home-benefits h2,
.home-benefits h3 {
    color: #ffffff;
}

.benefit-intro {
    position: sticky;
    top: 130px;
    align-self: start;
}

.benefit-intro p:last-child {
    max-width: 560px;
    color: #b8cad7;
    font-size: 18px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: transparent;
    border: 0;
}

.benefit-grid article {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
    padding: 34px;
    background: rgba(16, 48, 66, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
}

.benefit-grid article:nth-child(2) { background: rgba(30, 61, 104, 0.88); }
.benefit-grid article:nth-child(3) { background: rgba(58, 48, 105, 0.88); }
.benefit-grid article:nth-child(4) { background: rgba(91, 49, 84, 0.88); }

.benefit-grid h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.benefit-grid p {
    margin: 0;
    color: #b8cad7;
    font-size: 16px;
}

.home-process {
    background:
        radial-gradient(circle at 100% 0%, rgba(197, 181, 255, 0.56), transparent 34%),
        linear-gradient(135deg, #e6faef 0%, #e3f0ff 54%, #f0e9ff 100%);
}

.process-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    column-gap: clamp(40px, 8vw, 120px);
    max-width: none;
    margin-bottom: 62px;
}

.process-heading .eyebrow {
    grid-column: 1 / -1;
}

.process-heading p:last-child {
    align-self: end;
    margin: 0 0 8px;
    color: var(--home-muted);
    font-size: 18px;
}

.retrofit-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    border-top: 0;
    list-style: none;
}

.retrofit-steps article {
    display: grid;
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
    gap: 36px;
    padding: 30px clamp(24px, 3vw, 40px);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(54, 72, 88, 0.06);
}

.retrofit-steps article:nth-child(2) { background: rgba(239, 244, 255, 0.82); }
.retrofit-steps article:nth-child(3) { background: rgba(248, 239, 255, 0.82); }

.retrofit-steps h3 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(25px, 2.8vw, 36px);
    line-height: 1.15;
}

.retrofit-steps p {
    max-width: 730px;
    margin: 0;
    color: var(--home-muted);
    font-size: 17px;
}

.home-faq {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(50px, 8vw, 130px);
    background:
        radial-gradient(circle at 0% 100%, rgba(248, 199, 217, 0.58), transparent 36%),
        linear-gradient(135deg, #fff5e9 0%, #f7edff 52%, #eaf6ff 100%);
}

.faq-intro > p:last-child {
    max-width: 420px;
    color: var(--home-muted);
    font-size: 17px;
}

.faq-list {
    display: grid;
    gap: 10px;
    border-top: 0;
}

.faq-list details {
    padding: 0 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
}

.faq-list summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 26px 0;
    color: var(--home-ink);
    cursor: pointer;
    list-style: none;
    font-size: 19px;
    font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--home-blue-dark);
    background: #ffffff;
    border-radius: 50%;
    transition: transform 160ms ease;
}

.faq-list details[open] summary span {
    transform: rotate(45deg);
}

.faq-list details p {
    max-width: 720px;
    margin: -4px 54px 28px 0;
    color: var(--home-muted);
    font-size: 16px;
}

.home-page .home-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(50px, 8vw, 130px);
    color: #ffffff;
    background:
        radial-gradient(circle at 100% 0%, rgba(102, 232, 211, 0.52), transparent 32%),
        radial-gradient(circle at 0% 100%, rgba(255, 140, 205, 0.36), transparent 38%),
        linear-gradient(135deg, #0878f9 0%, #315dde 48%, #6849ca 100%);
}

.home-page .home-cta .eyebrow,
.home-page .home-cta h2,
.home-cta p {
    color: #ffffff;
}

.home-cta p {
    max-width: 580px;
    margin: 7px 0 28px;
    font-size: 18px;
}

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

.home-page .light-button:hover {
    background: #eef5ff;
}

@media (max-width: 1050px) {
    .retrofit-demo {
        grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
    }

    .demo-label {
        grid-column: 1 / -1;
        grid-template-columns: auto 1fr;
        align-items: center;
        padding-top: 0;
    }

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

    .home-quick-links a:nth-of-type(3) {
        border-left: 0;
    }

    .home-benefits,
    .home-faq {
        grid-template-columns: 1fr;
    }

    .benefit-intro {
        position: static;
    }
}

@media (max-width: 760px) {
    .home-announcement span:not(.announcement-dot) {
        display: none;
    }

    .home-page .home-hero {
        gap: 42px;
        padding-top: 62px;
    }

    .home-page .home-hero h1 {
        font-size: clamp(44px, 13vw, 62px);
    }

    .home-page .home-hero .lead {
        font-size: 17px;
    }

    .retrofit-demo {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 20px;
        border-radius: 20px;
    }

    .switch-scene {
        height: 245px;
    }

    .home-quick-links {
        grid-template-columns: 1fr;
    }

    .home-quick-links > p {
        margin-bottom: 20px;
    }

    .home-quick-links a,
    .home-quick-links a:first-of-type,
    .home-quick-links a:nth-of-type(3) {
        padding: 20px;
        border: 1px solid rgba(28, 43, 51, 0.05);
    }

    .retrofit-heading,
    .process-heading,
    .home-page .home-cta {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .retrofit-heading > p:last-child,
    .process-heading p:last-child {
        margin: 0;
    }

    .retrofit-comparison,
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .comparison-card {
        min-height: 0;
    }

    .comparison-kicker {
        margin-bottom: 34px;
    }

    .retrofit-steps article {
        grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .home-announcement {
        justify-content: flex-start;
        font-size: 13px;
    }

    .home-page .hero-actions,
    .home-page .hero-actions .button {
        width: 100%;
    }

    .hero-proof {
        display: grid;
        justify-content: start;
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .switchboard {
        left: 22px;
        gap: 8px;
        padding: 18px;
    }

    .retrofit-module {
        right: 22px;
        width: 106px;
    }

    .home-page .section h2 {
        font-size: 40px;
    }

    .benefit-grid article {
        min-height: 225px;
        padding: 28px;
    }

    .retrofit-steps article {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
