:root {
    --bg: #f3f7fb;
    --surface: #ffffff;
    --surface-soft: #fbfdff;
    --surface-muted: #eaf2f8;
    --surface-strong: #dce8f1;
    --surface-tint: #eaf2f8;
    --surface-warm: #fbfdff;
    --text: #132033;
    --text-soft: #516072;
    --text-inverse: #f8fbff;
    --line: #cad7e3;
    --line-strong: #aebfd0;
    --brand: #295f94;
    --brand-strong: #1b446f;
    --navy: #0f1f33;
    --navy-soft: #162b46;
    --gold: #d4a549;
    --shadow-sm: 0 12px 26px rgba(15, 31, 51, 0.1), 0 2px 6px rgba(119, 93, 48, 0.04);
    --shadow-md: 0 22px 46px rgba(15, 31, 51, 0.14), 0 4px 10px rgba(119, 93, 48, 0.05);
    --shadow-lg: 0 28px 60px rgba(15, 31, 51, 0.16);
    --radius-sm: 14px;
    --radius: 20px;
    --radius-lg: 28px;
    --container: 1160px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI Variable", "Segoe UI", "Trebuchet MS", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 0%, rgba(81, 130, 177, 0.13), transparent 30rem),
        radial-gradient(circle at 92% 28%, rgba(212, 165, 73, 0.045), transparent 25rem),
        linear-gradient(180deg, #f8fbfe 0%, var(--bg) 52%, #eaf2f8 100%);
    line-height: 1.7;
}

body.nav-open {
    overflow: hidden;
}

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

a:hover {
    color: var(--brand-strong);
}

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

main {
    min-height: 68vh;
    background:
        radial-gradient(circle at 90% 8%, rgba(41, 95, 148, 0.075), transparent 28rem),
        linear-gradient(180deg, rgba(243, 247, 251, 0.94), rgba(234, 242, 248, 0.88));
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(15, 31, 51, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(8, 17, 30, 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.25rem 0;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand-with-logo {
    justify-content: flex-start;
}

.site-logo {
    width: auto;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: inline-block;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

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

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(248, 251, 255, 0.84);
    font-size: 0.96rem;
    font-weight: 600;
    min-height: 2.7rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
}

.site-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.7rem;
    padding: 0.75rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-align: center;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-cta:hover,
.button:hover {
    transform: translateY(-1px);
}

.nav-cta,
.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
    box-shadow: 0 10px 20px rgba(27, 68, 111, 0.18);
}

.nav-cta:hover,
.button-primary:hover {
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(27, 68, 111, 0.22);
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--line-strong);
    box-shadow: 0 8px 20px rgba(15, 31, 51, 0.06);
}

.button-secondary:hover {
    color: var(--brand-strong);
    border-color: var(--brand);
    background: #ffffff;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
}

.text-link::after {
    content: "->";
    font-size: 0.9em;
}

.page-hero,
.page-header,
.content-section,
.faq-page,
.legal-page {
    padding: clamp(3.5rem, 7vw, 5.75rem) 0;
}

.content-section {
    position: relative;
    background:
        radial-gradient(circle at 94% 0%, rgba(41, 95, 148, 0.065), transparent 21rem),
        linear-gradient(135deg, var(--surface-soft) 0%, var(--bg) 100%);
    border-top: 1px solid rgba(174, 191, 208, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.page-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 15% 18%, rgba(212, 165, 73, 0.16), transparent 26%),
        radial-gradient(circle at 82% 24%, rgba(80, 126, 172, 0.22), transparent 30%),
        linear-gradient(145deg, var(--navy) 0%, var(--navy-soft) 56%, #22456d 100%);
    color: var(--text-inverse);
}

.page-hero::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -5%;
    z-index: 0;
    width: min(38rem, 62vw);
    aspect-ratio: 1;
    background: url("../images/ywldata-logo.png") center / contain no-repeat;
    opacity: 0.06;
    pointer-events: none;
    transform: translateY(-50%);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -20% auto;
    width: min(30rem, 52vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(2px);
}

.page-hero .container,
.page-header .container {
    position: relative;
    z-index: 1;
}

.home-hero {
    position: relative;
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.home-hero::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -4%;
    z-index: 0;
    width: min(46rem, 70vw);
    aspect-ratio: 1;
    background: url("../images/ywldata-logo.png") center / contain no-repeat;
    opacity: 0.08;
    pointer-events: none;
    transform: translateY(-50%);
}

.home-hero .container {
    max-width: 54rem;
}

.page-hero h1,
.page-header h1 {
    color: #ffffff;
    max-width: 15ch;
}

.page-header {
    background:
        radial-gradient(circle at top left, rgba(41, 95, 148, 0.14), transparent 26%),
        linear-gradient(180deg, var(--surface-soft) 0%, var(--bg) 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 800;
}

.eyebrow::before {
    content: "";
    width: 2.4rem;
    height: 1px;
    background: currentColor;
    opacity: 0.75;
}

h1,
h2,
h3 {
    margin: 0 0 1rem;
    color: var(--text);
    line-height: 1.12;
}

h1 {
    font-size: clamp(2.45rem, 5vw, 4.9rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h3 {
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

p,
ul,
ol {
    margin: 0 0 1rem;
}

ul,
ol {
    padding-left: 1.25rem;
}

li + li {
    margin-top: 0.45rem;
}

.hero-text,
.lead,
.section-intro p,
.text-block,
.cta-panel p,
.comparison-row p,
.faq-item p,
.legal-container p,
.legal-container li,
.highlight-panel p {
    color: var(--text-soft);
}

.hero-text {
    max-width: 44rem;
    color: rgba(248, 251, 255, 0.86);
    font-size: 1.08rem;
}

.button-row,
.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.section-muted {
    background:
        radial-gradient(circle at 8% 22%, rgba(41, 95, 148, 0.12), transparent 25rem),
        radial-gradient(circle at 94% 82%, rgba(212, 165, 73, 0.055), transparent 22rem),
        linear-gradient(135deg, var(--surface-muted) 0%, #e2edf5 100%);
    border-top: 1px solid rgba(129, 153, 177, 0.48);
    border-bottom: 1px solid rgba(129, 153, 177, 0.48);
}

.section-intro {
    max-width: 45rem;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.section-intro h2::after {
    content: "";
    display: block;
    width: 4.25rem;
    height: 3px;
    margin-top: 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--brand));
}

.section-spaced {
    margin-top: 3rem;
}

.text-block,
.highlight-panel,
.cta-panel,
.comparison-row,
.faq-item,
.info-card,
.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.text-block {
    max-width: 52rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
    border-color: rgba(166, 186, 205, 0.82);
}

.highlight-panel {
    max-width: 52rem;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    border-left: 4px solid var(--gold);
    background:
        linear-gradient(135deg, rgba(41, 95, 148, 0.06), rgba(212, 165, 73, 0.08)),
        var(--surface);
}

.card-grid,
.split-section {
    display: grid;
    gap: 1.5rem;
}

.card-grid.three-column,
.card-grid.four-column,
.faq-list {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.card-grid.three-column > *,
.faq-list > * {
    grid-column: span 4;
}

.card-grid.four-column > * {
    grid-column: span 3;
}

.info-card,
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    background: linear-gradient(145deg, var(--surface) 0%, var(--surface-soft) 100%);
    border-color: rgba(166, 186, 205, 0.86);
    box-shadow: 0 14px 28px rgba(15, 31, 51, 0.11), 0 2px 5px rgba(119, 93, 48, 0.045);
}

.info-card h3,
.service-card h3,
.comparison-row h3 {
    margin-bottom: 0.75rem;
}

.info-card ul,
.service-card ul {
    margin-bottom: 0;
}

.value-card {
    position: relative;
    padding-right: 5.25rem;
}

.value-icon {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    pointer-events: none;
}

.value-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.service-card-grid {
    align-items: stretch;
}

.service-card {
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    background:
        radial-gradient(circle at 100% 0%, rgba(212, 165, 73, 0.14), transparent 13rem),
        linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.service-card .button {
    margin-top: auto;
}

.service-card-custom .service-visual-row,
.service-card-data .service-visual-row,
.service-card-contractors .service-visual-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 2vw, 1.15rem);
    margin-top: auto;
    margin-bottom: 1.25rem;
    padding: 0.8rem;
    border: 1px solid rgba(166, 186, 205, 0.58);
    border-radius: calc(var(--radius) - 0.2rem);
    background: rgba(255, 255, 255, 0.42);
}

.service-card-custom .button,
.service-card-data .button,
.service-card-contractors .button {
    margin-top: 0;
}

.service-visual {
    flex: 1 1 0;
    max-width: 7.25rem;
    min-width: 0;
}

.service-visual svg {
    display: block;
    width: 100%;
    height: auto;
}

.service-screenshot-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 6.7rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(166, 186, 205, 0.7);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(15, 31, 51, 0.06);
    cursor: zoom-in;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-screenshot-preview img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.service-card-contractors .service-screenshot-preview {
    max-width: 12.2rem;
    height: 8.7rem;
}

.service-card-contractors .service-screenshot-row {
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
    gap: 0.55rem;
    padding: 0.55rem;
}

.service-screenshot-preview:hover {
    border-color: rgba(41, 95, 148, 0.7);
    box-shadow: 0 5px 12px rgba(15, 31, 51, 0.12);
    transform: translateY(-1px);
}

.service-screenshot-preview:focus-visible {
    outline: 3px solid rgba(41, 95, 148, 0.48);
    outline-offset: 3px;
    border-color: #295f94;
}

.screenshot-modal {
    position: relative;
    width: fit-content;
    max-width: calc(90vw + 1.5rem);
    max-height: calc(85vh + 1.5rem);
    margin: auto;
    padding: 0.75rem;
    overflow: visible;
    border: 1px solid rgba(166, 186, 205, 0.78);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.screenshot-modal::backdrop {
    background: rgba(8, 17, 30, 0.72);
}

.screenshot-modal-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    border-radius: 0.5rem;
}

.screenshot-modal-content img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.screenshot-modal-close {
    position: absolute;
    top: -0.55rem;
    right: -0.55rem;
    z-index: 1;
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    padding: 0;
    color: var(--text-inverse);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: var(--navy);
    box-shadow: 0 2px 6px rgba(8, 17, 30, 0.24);
}

.screenshot-modal-close:focus-visible {
    outline: 3px solid rgba(212, 165, 73, 0.85);
    outline-offset: 2px;
}

.service-visual-ring-base {
    fill: none;
    stroke: rgba(166, 186, 205, 0.38);
    stroke-width: 13;
}

.service-visual-ring-green,
.service-visual-ring-yellow,
.service-visual-ring-red {
    fill: none;
    stroke-width: 13;
    stroke-linecap: butt;
    transform: rotate(-90deg);
    transform-origin: 60px 48px;
}

.service-visual-ring-green {
    stroke: #3b8f6a;
    stroke-dasharray: 80 20;
}

.service-visual-ring-yellow {
    stroke: #d4a549;
    stroke-dasharray: 15 85;
    stroke-dashoffset: -80;
}

.service-visual-ring-red {
    stroke: #c95b57;
    stroke-dasharray: 5 95;
    stroke-dashoffset: -95;
}

.service-visual-center,
.service-visual-window {
    fill: var(--surface);
}

.service-visual-window {
    stroke: #295f94;
    stroke-width: 2;
}

.service-visual-window-bar,
.service-visual-network-line,
.service-visual-lock-shackle {
    fill: none;
    stroke: #295f94;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-visual-window-dot {
    fill: #d4a549;
}

.service-visual-panel {
    fill: rgba(41, 95, 148, 0.18);
}

.service-visual-panel-soft {
    fill: rgba(59, 143, 106, 0.3);
}

.service-visual-panel-gold {
    fill: rgba(212, 165, 73, 0.42);
}

.service-visual-chart-line {
    fill: none;
    stroke: #3b8f6a;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-visual-network-node {
    stroke: #295f94;
    stroke-width: 2;
}

.service-visual-network-node-green {
    fill: rgba(59, 143, 106, 0.18);
    stroke: #3b8f6a;
}

.service-visual-network-node-blue {
    fill: rgba(90, 157, 202, 0.2);
}

.service-visual-network-node-yellow {
    fill: rgba(212, 165, 73, 0.2);
    stroke: #b98628;
}

.service-visual-network-node-purple {
    fill: rgba(169, 138, 184, 0.22);
    stroke: #8a6798;
}

.service-visual-network-node-cyan {
    fill: rgba(120, 188, 213, 0.25);
    stroke: #4e9fbd;
}

.service-visual-lock-body {
    fill: var(--surface);
    stroke: #295f94;
    stroke-width: 2.6;
}

.service-visual-lock-keyhole {
    fill: none;
    stroke: #295f94;
    stroke-width: 2.6;
    stroke-linecap: round;
}

.service-visual-lock-keyhole-dot {
    fill: #295f94;
}

.service-visual-data-connector,
.service-visual-data-database,
.service-visual-data-symbol,
.service-visual-data-topbar,
.service-visual-data-kpi-line,
.service-visual-data-search-icon,
.service-visual-data-filter {
    fill: none;
    stroke: #295f94;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-visual-data-tile {
    stroke-width: 1.8;
}

.service-visual-data-tile-green {
    fill: rgba(59, 143, 106, 0.18);
    stroke: #3b8f6a;
}

.service-visual-data-tile-purple {
    fill: rgba(169, 138, 184, 0.2);
    stroke: #8a6798;
}

.service-visual-data-tile-gold {
    fill: rgba(212, 165, 73, 0.2);
    stroke: #b98628;
}

.service-visual-data-tile-cyan {
    fill: rgba(120, 188, 213, 0.22);
    stroke: #4e9fbd;
}

.service-visual-data-database {
    fill: var(--surface);
}

.service-visual-data-topbar {
    stroke-width: 4;
}

.service-visual-data-topbar-dot {
    fill: #78bcd5;
}

.service-visual-data-kpi {
    fill: rgba(212, 165, 73, 0.28);
}

.service-visual-data-kpi-line {
    stroke: #b98628;
}

.service-visual-data-donut-base,
.service-visual-data-donut-accent {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
}

.service-visual-data-donut-base {
    stroke: rgba(41, 95, 148, 0.2);
}

.service-visual-data-donut-accent {
    stroke: #3b8f6a;
}

.service-visual-data-bar {
    fill: none;
    stroke: #8a6798;
    stroke-width: 5;
    stroke-linecap: round;
}

.service-visual-data-gridline,
.service-visual-data-record-line {
    fill: none;
    stroke: rgba(41, 95, 148, 0.2);
    stroke-width: 1.4;
}

.service-visual-data-search {
    fill: rgba(41, 95, 148, 0.08);
    stroke: rgba(41, 95, 148, 0.28);
    stroke-width: 1.2;
}

.service-visual-data-record-block {
    fill: rgba(41, 95, 148, 0.32);
}

.service-visual-data-status-green {
    fill: rgba(59, 143, 106, 0.6);
}

.service-visual-data-status-gold {
    fill: rgba(212, 165, 73, 0.68);
}

.service-visual-data-status-purple {
    fill: rgba(169, 138, 184, 0.65);
}

.service-card-header {
    margin-bottom: 0.4rem;
}

.service-card .eyebrow {
    margin-bottom: 0.7rem;
}

.card-carousel {
    --carousel-card-width: min(100%, 40rem);
    --carousel-peek-offset: clamp(2.75rem, 7vw, 5rem);
    --carousel-info-card-height: clamp(18rem, 30vw, 22rem);
    --carousel-service-card-height: clamp(34rem, 55vw, 40rem);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.card-carousel:focus-visible {
    outline: 2px solid rgba(41, 95, 148, 0.42);
    outline-offset: 0.4rem;
}

.card-carousel-viewport {
    position: relative;
    min-height: var(--carousel-min-height, 0px);
    overflow: hidden;
    padding: 0.75rem 3.5rem 1rem;
}

.card-carousel-track {
    position: relative;
    min-height: inherit;
}

.card-carousel-slide {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--carousel-card-width);
    max-width: 100%;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(0.86);
    transform-origin: center center;
    transition: transform 340ms ease, opacity 340ms ease, filter 340ms ease;
    z-index: 1;
}

.card-carousel-slide > * {
    width: 100%;
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.card-carousel-slide > .info-card {
    min-height: var(--carousel-info-card-height);
    justify-content: center;
}

.service-card-grid .card-carousel-slide > .service-card {
    min-height: var(--carousel-service-card-height);
}

.card-carousel-slide::after {
    content: "";
    position: absolute;
    inset: auto 18% -0.4rem;
    height: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(212, 165, 73, 0.18), rgba(41, 95, 148, 0.22));
    opacity: 0;
    transform: scaleX(0.78);
    transition: opacity 340ms ease, transform 340ms ease;
    pointer-events: none;
}

.card-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
    filter: none;
    z-index: 3;
}

.card-carousel-slide.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.card-carousel-slide.is-prev,
.card-carousel-slide.is-next {
    opacity: 0.46;
    pointer-events: none;
    z-index: 2;
}

.card-carousel-slide.is-prev {
    transform: translateX(calc(-50% - var(--carousel-peek-offset))) scale(0.9);
}

.card-carousel-slide.is-next {
    transform: translateX(calc(-50% + var(--carousel-peek-offset))) scale(0.9);
}

.card-carousel-slide.is-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.card-carousel-slide.is-active .info-card,
.card-carousel-slide.is-active .service-card {
    border-color: rgba(41, 95, 148, 0.44);
    box-shadow: 0 20px 40px rgba(12, 25, 41, 0.14), 0 0 0 1px rgba(212, 165, 73, 0.18), 0 0 24px rgba(41, 95, 148, 0.08);
    background:
        linear-gradient(180deg, rgba(41, 95, 148, 0.06), rgba(212, 165, 73, 0.07)),
        var(--surface);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .card-carousel-slide.is-active:hover > .info-card,
    .card-carousel-slide.is-active:hover > .service-card {
        transform: translateY(-0.3rem) scale(1.012);
        box-shadow: 0 26px 48px rgba(12, 25, 41, 0.18), 0 0 0 1px rgba(212, 165, 73, 0.22), 0 0 30px rgba(41, 95, 148, 0.12);
    }
}

.card-carousel-slide.is-prev .info-card,
.card-carousel-slide.is-prev .service-card,
.card-carousel-slide.is-next .info-card,
.card-carousel-slide.is-next .service-card,
.card-carousel-slide.is-hidden .info-card,
.card-carousel-slide.is-hidden .service-card {
    border-color: rgba(188, 200, 214, 0.8);
    box-shadow: var(--shadow-sm);
}

.card-carousel-slide.is-prev .info-card,
.card-carousel-slide.is-prev .service-card,
.card-carousel-slide.is-next .info-card,
.card-carousel-slide.is-next .service-card {
    filter: saturate(0.9);
}

.card-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid rgba(41, 95, 148, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-strong);
    box-shadow: var(--shadow-sm);
    transform: translateY(-50%);
    transition: transform 240ms ease, background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.card-carousel-arrow:hover,
.card-carousel-arrow:focus-visible {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(41, 95, 148, 0.34);
    box-shadow: var(--shadow-md);
    transform: translateY(-50%) scale(1.04);
}

.card-carousel-arrow:focus-visible {
    outline: 2px solid rgba(41, 95, 148, 0.3);
    outline-offset: 2px;
}

.card-carousel-arrow-prev {
    left: 0.85rem;
}

.card-carousel-arrow-next {
    right: 0.85rem;
}

.card-carousel-arrow span {
    font-size: 1rem;
    line-height: 1;
}

.card-carousel-arrow:disabled {
    opacity: 0.55;
    cursor: default;
    transform: translateY(-50%);
}

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

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(41, 95, 148, 0.12);
    color: var(--brand-strong);
    font-weight: 800;
}

.split-section {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: start;
}

.split-section + .split-section {
    margin-top: 1.5rem;
}

.comparison-list {
    display: grid;
    gap: 1rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1.4rem 1.5rem;
    background:
        linear-gradient(90deg, rgba(41, 95, 148, 0.11), transparent 38%),
        var(--surface-warm);
    border-color: rgba(166, 186, 205, 0.84);
    box-shadow: 0 10px 22px rgba(15, 31, 51, 0.075);
}

.comparison-row strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(41, 95, 148, 0.08);
    color: var(--brand-strong);
    font-size: 0.95rem;
}

.cta-panel {
    padding: clamp(1.8rem, 3vw, 2.6rem);
    background:
        radial-gradient(circle at top right, rgba(212, 165, 73, 0.27), transparent 30%),
        radial-gradient(circle at bottom left, rgba(41, 95, 148, 0.13), transparent 33%),
        linear-gradient(135deg, var(--surface) 0%, var(--surface-muted) 100%);
    border-color: rgba(41, 95, 148, 0.34);
    box-shadow: 0 22px 46px rgba(15, 31, 51, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.cta-panel h2,
.cta-panel p {
    max-width: 44rem;
}

.faq-list {
    gap: 1rem;
}

.faq-item {
    grid-column: span 6;
    overflow: hidden;
    background: linear-gradient(145deg, var(--surface) 0%, var(--surface-soft) 100%);
    border-color: rgba(150, 175, 198, 0.82);
    box-shadow: 0 12px 25px rgba(15, 31, 51, 0.1), 0 2px 5px rgba(119, 93, 48, 0.035);
}

.faq-item summary {
    list-style: none;
    position: relative;
    padding: 1.2rem 3.7rem 1.2rem 1.3rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
}

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

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(41, 95, 148, 0.08);
    color: var(--brand-strong);
    transform: translateY(-50%);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] summary {
    border-bottom: 1px solid rgba(150, 175, 198, 0.62);
    background: rgba(41, 95, 148, 0.09);
}

.faq-item[open] summary::after {
    content: "-";
    background: rgba(41, 95, 148, 0.14);
}

.faq-item p,
.faq-item ul {
    padding: 0 1.3rem 1.3rem;
}

.faq-item p:last-child,
.faq-item ul:last-child {
    margin-bottom: 0;
}

.faq-page .container {
    display: grid;
    gap: 0;
}

.faq-page {
    position: relative;
    background:
        radial-gradient(circle at 12% 14%, rgba(41, 95, 148, 0.17), transparent 24rem),
        radial-gradient(circle at 88% 78%, rgba(212, 165, 73, 0.11), transparent 22rem),
        linear-gradient(145deg, var(--surface-muted) 0%, #e2edf5 100%);
    border-top: 1px solid rgba(129, 153, 177, 0.46);
    border-bottom: 1px solid rgba(129, 153, 177, 0.46);
}

.legal-container {
    max-width: 50rem;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
    border: 1px solid rgba(166, 186, 205, 0.78);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.legal-page {
    background:
        radial-gradient(circle at 85% 10%, rgba(41, 95, 148, 0.075), transparent 25rem),
        linear-gradient(180deg, var(--bg), var(--surface-muted));
}

.legal-container h2:first-child {
    margin-bottom: 1.25rem;
}

.legal-container h2 {
    margin-top: 2.2rem;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.legal-container h3 {
    margin-top: 1.6rem;
    color: var(--brand-strong);
}

.legal-container p,
.legal-container li {
    font-size: 1rem;
    line-height: 1.8;
}

.legal-container ul + p,
.legal-container p + ul {
    margin-top: 1rem;
}

.legal-acknowledgment,
.legal-notice {
    margin-top: 1.8rem;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    background: rgba(212, 165, 73, 0.12);
}

.error-page {
    max-width: 42rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.nav-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 1.2rem;
    height: 2px;
    margin: 0.22rem auto;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-footer {
    width: 100%;
    margin-top: 0;
    background:
        linear-gradient(180deg, #102038 0%, #0b1727 100%);
    color: var(--text-inverse);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main {
    width: min(calc(100% - 2rem), 1260px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0 1.1rem;
}

.footer-brand-compact {
    max-width: 18rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
}

.footer-brand-compact p,
.footer-column a,
.footer-column span,
.footer-bottom,
.footer-bottom-links a {
    color: rgba(248, 251, 255, 0.74);
}

.footer-brand-compact p,
.footer-column a,
.footer-column span {
    font-size: 0.92rem;
    line-height: 1.5;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-column h2 {
    margin: 0 0 0.45rem;
    color: #ffffff;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-column a:hover,
.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    width: min(calc(100% - 2rem), 1260px);
    margin: 0 auto;
    padding: 0.9rem 0 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.84rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 1100px) {
    .footer-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand-compact {
        max-width: none;
        grid-column: 1 / -1;
    }
}

@media (max-width: 960px) {
    .card-grid.four-column > *,
    .card-grid.three-column > * {
        grid-column: span 6;
    }

    .faq-item {
        grid-column: span 12;
    }

    .split-section,
    .comparison-row {
        grid-template-columns: 1fr;
    }

    .comparison-row strong {
        min-width: 0;
        justify-self: start;
    }

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

    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 1rem;
        background: rgba(11, 23, 39, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
    }

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

    .site-nav a {
        border-radius: var(--radius-sm);
    }

    .site-nav .nav-cta {
        margin-top: 0.35rem;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .page-hero,
    .page-header,
    .content-section,
    .faq-page,
    .legal-page {
        padding: 3.25rem 0;
    }

    .home-hero::before {
        right: -24%;
        width: min(26.5rem, 91vw);
        opacity: 0.05;
    }

    .page-hero::before {
        right: -22%;
        width: min(25rem, 82vw);
        opacity: 0.045;
    }

    .button,
    .nav-cta {
        width: 100%;
    }

    .button-row,
    .hero-actions,
    .contact-actions {
        flex-direction: column;
    }

    .card-grid.four-column > *,
    .card-grid.three-column > * {
        grid-column: span 12;
    }

    .legal-container,
    .text-block,
    .highlight-panel,
    .cta-panel,
    .info-card,
    .service-card,
    .comparison-row {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .value-card {
        padding-right: 5rem;
    }

    .value-icon {
        top: 0.95rem;
        right: 0.95rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .card-carousel {
        --carousel-card-width: min(100%, 34rem);
        --carousel-peek-offset: 2.2rem;
        --carousel-info-card-height: 17rem;
        --carousel-service-card-height: 31rem;
    }

    .footer-main {
        width: min(calc(100% - 1.25rem), 1260px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
        padding-top: 1.25rem;
    }

    .footer-bottom {
        width: min(calc(100% - 1.25rem), 1260px);
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 1rem;
    }
}

@media (max-width: 520px) {
    .service-card-custom .service-visual-row,
    .service-card-data .service-visual-row,
    .service-card-contractors .service-visual-row {
        gap: 0.4rem;
        margin-bottom: 1rem;
        padding: 0.55rem;
    }

    .service-card-contractors .service-screenshot-row {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .service-card-contractors .service-screenshot-preview {
        flex: 1 1 calc(50% - 0.2rem);
        max-width: none;
        height: 8.7rem;
    }

    .screenshot-modal {
        padding: 0.5rem;
    }

    .card-carousel {
        --carousel-card-width: 100%;
        --carousel-peek-offset: 0px;
        --carousel-info-card-height: 16rem;
        --carousel-service-card-height: 28rem;
    }

    .card-carousel-viewport {
        padding-top: 0.35rem;
        padding-left: 2.6rem;
        padding-right: 2.6rem;
        padding-bottom: 0.75rem;
    }

    .card-carousel-slide.is-prev,
    .card-carousel-slide.is-next,
    .card-carousel-slide.is-hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) scale(0.92);
    }

    .card-carousel-arrow {
        width: 2.1rem;
        height: 2.1rem;
    }

    .card-carousel-arrow-prev {
        left: 0.35rem;
    }

    .card-carousel-arrow-next {
        right: 0.35rem;
    }

    .site-nav {
        left: 0.625rem;
        right: 0.625rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .brand {
        gap: 0.55rem;
    }

    .site-logo {
        height: 34px;
    }

    .brand-text {
        font-size: 1.05rem;
    }

    .eyebrow::before {
        width: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-carousel-arrow,
    .card-carousel-slide,
    .card-carousel-slide::after,
    .card-carousel-slide > * {
        transition: none;
    }
}
