:root {
    --bg-page: #FFFFFF;
    --bg-soft: #F7F8FA;
    --bg-card: #FFFFFF;
    --text-main: #111827;
    --text-muted: #4B5563;
    --heading-dark: #0B1220;
    --accent: #E50914;
    --border: #E5E7EB;
    --shadow-soft: 0 14px 32px rgba(15, 23, 42, .08);
    --radius-lg: 20px;
    --radius-md: 14px;
}

html[data-theme="dark"] {
    --bg-page: #0B1220;
    --bg-soft: #0f172a;
    --bg-card: #111827;
    --text-main: #F9FAFB;
    --text-muted: #CBD5E1;
    --heading-dark: #F9FAFB;
    --accent: #E50914;
    --border: #1F2937;
    --shadow-soft: 0 16px 36px rgba(2, 6, 23, .45);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: var(--body-font-size, 17px);
    line-height: var(--paragraph-line-height, 1.75);
    color: var(--text-main);
    background: var(--bg-page);
    transition: background-color .3s ease, color .3s ease;
}

.container {
    max-width: 1200px;
}

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

.content-left {
    text-align: left;
}

.card-content {
    text-align: left;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 48px;
}

.footer {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Manrope", sans-serif;
    color: var(--page-heading-color, var(--heading-dark));
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(30px, 5vw, var(--page-title-size, var(--h1-size-desktop, 52px)));
}

h2 {
    font-size: clamp(28px, 3.4vw, var(--h2-size-desktop, 36px));
}

h3 {
    font-size: clamp(20px, 2.2vw, var(--page-card-title-size, var(--card-title-size, 24px)));
}

p {
    color: var(--page-text-color, var(--text-muted));
    max-width: 72ch;
    font-weight: 400;
    font-size: var(--page-text-size, var(--card-text-size, 17px));
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 2000;
    padding: .55rem .85rem;
    border-radius: 10px;
    background: var(--heading-dark);
    color: #fff;
}

.skip-link:focus {
    left: 10px;
}

main {
    margin-top: 82px;
}

.section-padding {
    padding: var(--page-section-gap, var(--section-padding-desktop, 90px)) 0;
}

.section-soft {
    background: var(--page-section-bg, var(--bg-soft));
}

.section-dark {
    background: linear-gradient(145deg, #0B1220 0%, #111f37 100%);
    color: #F9FAFB;
}

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: #F9FAFB;
}

.section-dark .btn-outline-light-red {
    background: transparent;
    color: #F9FAFB;
    border-color: rgba(249, 250, 251, .45);
}

.section-dark .btn-outline-light-red:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.site-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(8px);
    transform: translateY(-14px);
    opacity: 0;
    transition: transform .5s cubic-bezier(.16,.84,.44,1), opacity .5s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}

html[data-theme="dark"] .site-header {
    background: rgba(11, 18, 32, .92);
}

.site-header.nav-ready {
    transform: translateY(0);
    opacity: 1;
}

.site-header.scrolled,
.site-header.navbar-scrolled {
    box-shadow: 0 10px 30px rgba(2, 6, 23, .08);
    border-bottom-color: var(--border);
}

.navbar {
    min-height: 76px;
    padding: .65rem 0;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--heading-dark);
    font-size: 1.2rem;
    letter-spacing: .2px;
}

.navbar-brand .brand-text {
    font-family: "Manrope", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--heading-dark);
}

.navbar-toggler {
    border: 1px solid var(--border);
    color: var(--heading-dark);
    padding: .45rem .62rem;
}

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 650;
    color: var(--text-muted);
    padding: .7rem .9rem !important;
    border-radius: 10px;
    transition: color .2s ease, background-color .2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: .45rem;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .24s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--heading-dark);
    background: var(--bg-soft);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .55rem;
    min-width: 250px;
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
}

.legal-menu {
    min-width: 280px;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    border-radius: 10px;
    padding: .62rem .8rem;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
}

.dropdown-item i {
    color: var(--accent);
    width: 16px;
    text-align: center;
    flex: 0 0 16px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--heading-dark);
    background: var(--bg-soft);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--heading-dark);
    display: inline-grid;
    place-items: center;
    transition: transform .2s ease, box-shadow .2s ease, background-color .25s ease, color .25s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn-brand,
.btn-outline-light-red {
    border-radius: 12px;
    padding: .72rem 1.2rem;
    font-size: 15px;
    font-weight: 700;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease, color .22s ease;
}

.btn-brand {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 22px rgba(229, 9, 20, .24);
    background: #ca0b14;
    color: #fff;
}

.btn-outline-light-red {
    border: 1px solid var(--border);
    color: var(--heading-dark);
    background: var(--bg-card);
}

.btn-outline-light-red:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-animated {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.btn-animated i {
    transition: transform .22s ease;
}

.btn-animated:hover i {
    transform: translateX(4px);
}

.btn-brand:active,
.btn-outline-light-red:active,
.theme-toggle:active,
.back-to-top:active {
    transform: scale(.98);
}

.hero {
    position: relative;
    background: linear-gradient(170deg, #fff 0%, #fbfcfe 55%, #f7f8fa 100%);
    overflow: hidden;
}

html[data-theme="dark"] .hero {
    background: linear-gradient(170deg, #0B1220 0%, #111a2d 60%, #0f172a 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero::before {
    width: 360px;
    height: 360px;
    background: rgba(229, 9, 20, .08);
    top: -80px;
    right: -120px;
    filter: blur(10px);
}

.hero::after {
    width: 280px;
    height: 280px;
    background: rgba(14, 165, 233, .08);
    bottom: -120px;
    left: -80px;
}

.hero .display-5 {
    line-height: 1.12;
}

.hero p {
    max-width: 62ch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--accent);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: .9rem;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.2rem;
}

.badge-trust {
    padding: .4rem .8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
}

.visual-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    background: linear-gradient(145deg, #f9fbff, #edf2f9);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

html[data-theme="dark"] .visual-card {
    background: linear-gradient(145deg, #152036, #1b2942);
}

.hero-visual {
    min-height: 420px;
}

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

.hero-tech-grid span {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem .78rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .72);
    color: var(--heading-dark);
    font-size: 14px;
    font-weight: 700;
}

html[data-theme="dark"] .hero-tech-grid span {
    background: rgba(17, 24, 39, .85);
    color: #F9FAFB;
}

.hero-tech-grid i {
    color: var(--accent);
}

.image-shell {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.image-shell img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.image-placeholder {
    min-height: 220px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f3f6fb, #e6edf7);
    color: #334155;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1rem;
    font-weight: 700;
}

html[data-theme="dark"] .image-placeholder {
    background: linear-gradient(135deg, #162136, #1c2b45);
    color: #e2e8f0;
}

.image-placeholder i {
    font-size: 1.3rem;
    color: var(--accent);
    display: block;
    margin-bottom: .45rem;
}

.image-placeholder span,
.visual-placeholder span,
.page-block-placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-size: 0;
}

.image-placeholder span i,
.visual-placeholder span i,
.page-block-placeholder span i {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.image-shell .image-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.image-shell .visual-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.image-shell .page-block-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.image-shell img.is-ready + .image-placeholder,
.image-shell img.is-ready + .visual-placeholder,
.image-shell img.is-ready + .page-block-placeholder {
    display: none;
}

.image-hover img,
.image-hover .image-placeholder,
.image-hover .visual-placeholder,
.image-hover .page-block-placeholder {
    transition: transform .35s ease;
}

.image-hover:hover img,
.image-hover:hover .image-placeholder,
.image-hover:hover .visual-placeholder,
.image-hover:hover .page-block-placeholder {
    transform: scale(1.04);
}

.hover-lift {
    transition: transform .22s ease, box-shadow .22s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.card-premium {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    background: var(--page-card-bg, var(--bg-card));
    height: auto;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(229, 9, 20, .32);
}

.card-premium p {
    font-size: var(--page-text-size, var(--card-text-size, 17px));
    margin-bottom: .9rem;
}

.service-image {
    height: 190px;
    margin-bottom: 1rem;
}

.service-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(11, 18, 32, .84);
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 2;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    color: var(--heading-dark);
}

.service-link i {
    transition: transform .22s ease;
}

.service-link:hover {
    color: var(--accent);
}

.service-link:hover i {
    transform: translateX(4px);
}

.icon-chip {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    background: #fff0f2;
    color: var(--accent);
    margin-bottom: .95rem;
}

.clean-list,
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clean-list li,
.service-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: .45rem;
    color: var(--text-muted);
    font-size: var(--page-text-size, var(--card-text-size, 17px));
}

.clean-list li::before,
.service-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    left: 0;
    top: .64rem;
}

.process-timeline {
    position: relative;
}

.process-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(229, 9, 20, 0), rgba(229, 9, 20, .65), rgba(229, 9, 20, 0));
    transform: translateX(-50%) scaleY(.1);
    transform-origin: top center;
    transition: transform .8s ease;
}

.process-timeline.active::before {
    transform: translateX(-50%) scaleY(1);
}

.process-step {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.2rem;
    background: var(--page-card-bg, var(--bg-card));
    text-align: center;
    height: 100%;
}

.process-number {
    width: 50px;
    height: 50px;
    margin: 0 auto .9rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--accent);
    background: #fff0f2;
}

.process-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    margin-bottom: .55rem;
    color: var(--accent);
    background: rgba(229, 9, 20, .1);
}

.industry-card,
.contact-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.2rem;
    background: var(--page-card-bg, var(--bg-card));
    height: 100%;
}

.industry-card p {
    margin-bottom: 0;
}

.stat-box {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.1rem;
    text-align: center;
    background: var(--page-card-bg, var(--bg-card));
}

.stat-value {
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    color: var(--accent);
}

.counter {
    font-variant-numeric: tabular-nums;
}

.gallery-card,
.gallery-item,
.client-logo,
.blog-thumb {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--page-card-bg, var(--bg-card));
}

.gallery-card {
    position: relative;
    min-height: 210px;
}

.overlay-label {
    position: absolute;
    inset: auto 0 0 0;
    padding: .7rem .85rem;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0), rgba(11, 18, 32, .76));
}

.page-visual {
    min-height: 300px;
}

.gallery-item {
    cursor: pointer;
    min-height: 220px;
}

.gallery-item:hover,
.client-logo:hover {
    box-shadow: var(--shadow-soft);
}

.client-logo {
    min-height: 120px;
    padding: 1rem;
    display: grid;
    place-items: center;
    filter: grayscale(100%);
    transition: filter .24s ease, transform .24s ease, box-shadow .24s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    transform: translateY(-3px);
}

.blog-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(229, 9, 20, .32);
}

.blog-card .card-body {
    padding: 1.2rem;
}

.blog-thumb {
    min-height: 220px;
}

.meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    font-size: 14px;
    color: var(--text-muted);
}

.faq .accordion-item {
    border: 1px solid var(--border);
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: .9rem;
    background: var(--bg-card);
}

.faq .accordion-button {
    font-weight: 700;
    color: var(--heading-dark);
    background: var(--bg-card);
    box-shadow: none;
    padding: 1rem 1.2rem;
}

.faq .accordion-button::after {
    transition: transform .25s ease;
}

.faq .accordion-button:not(.collapsed) {
    background: var(--bg-soft);
}

.faq .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.faq .accordion-body {
    color: var(--text-muted);
}

.filter-btn {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 700;
    padding: .45rem 1rem;
    transition: all .2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.form-label {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: .42rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .76rem .95rem;
    background: var(--bg-card);
    color: var(--text-main);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, .1);
    background: var(--bg-card);
    color: var(--text-main);
}

.map-placeholder {
    min-height: 320px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(150deg, #f4f7fb, #ecf2f9);
    display: grid;
    place-items: center;
}

html[data-theme="dark"] .map-placeholder {
    background: linear-gradient(150deg, #152136, #1b2942);
}

.alert-success,
.alert-danger {
    animation: fadeIn .45s ease;
}

.site-footer {
    background: #111827;
    color: rgba(255, 255, 255, .8);
    padding: 76px 0 0;
    text-align: left;
}

.site-footer h4,
.site-footer h5 {
    color: #fff;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: rgba(255, 255, 255, .75);
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: .7rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: .55rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(86, 129, 214, 0.08);
    color: var(--heading-dark);
    transition: transform .2s ease, background-color .2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    background: var(--accent);
    color: #fff;
}

.site-footer .social-links a {
    background: rgba(56, 50, 50, 0.12);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    padding: 15px 0;
    margin-top: 1.8rem;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    display: none;
    place-items: center;
    z-index: 1200;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity .24s ease, transform .24s ease;
}

.back-to-top.show {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
}

.page-hero {
    padding: 94px 0 72px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fbfcff 0%, #f7f8fa 100%);
}

html[data-theme="dark"] .page-hero {
    background: linear-gradient(180deg, #0f172a 0%, #101a2f 100%);
}

.page-hero p {
    max-width: 68ch;
}

.page-hero-wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    align-items: center;
}

.page-visual,
.hero-image,
.section-image,
.content-image,
.card-image {
    min-height: 240px;
}

.hero-image {
    min-height: 340px;
    height: clamp(280px, 36vw, 420px);
}

.section-image {
    min-height: 280px;
    height: clamp(240px, 28vw, 360px);
}

.content-image {
    min-height: 220px;
    height: clamp(200px, 24vw, 300px);
}

.card-image {
    min-height: 190px;
    height: clamp(190px, 20vw, 260px);
}

.rounded-visual {
    border-radius: 22px;
    overflow: hidden;
}

.visual-placeholder {
    min-height: inherit;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(140deg, #f4f7fc, #e9eef8);
    display: grid;
    place-items: center;
    text-align: center;
    color: #334155;
    padding: 1.1rem;
    font-weight: 700;
}

html[data-theme="dark"] .visual-placeholder {
    background: linear-gradient(140deg, #172339, #1d2b46);
    color: #dbe5f4;
}

.icon-visual {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: rgba(229, 9, 20, .12);
    color: var(--accent);
    margin-bottom: .35rem;
    font-size: .95rem;
}

h2 .icon-visual,
h3 .icon-visual,
.h6 .icon-visual {
    margin-bottom: 0;
    margin-right: .35rem;
    vertical-align: middle;
}

.content-visual-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.page-block-section {
    position: relative;
}

/* Keep legal/service block grids from visually touching the section above */
section.page-block-section.pt-0 {
    padding-top: 4rem !important;
}

section.page-block-section.pt-0 .page-block-grid {
    margin-top: .6rem;
}

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

.page-block-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--page-card-bg, var(--bg-card));
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.page-block-card:hover {
    border-color: rgba(229, 9, 20, .28);
}

.page-block-image {
    min-height: 190px;
    height: clamp(190px, 20vw, 250px);
    border-radius: 18px;
    margin-bottom: 1rem;
}

.page-block-content h3 {
    font-size: clamp(20px, 1.8vw, 26px);
    margin-bottom: .35rem;
}

.page-block-content p {
    font-size: clamp(15px, 1.15vw, 16.5px);
    line-height: 1.65;
    margin-bottom: .7rem;
}

.page-block-subtitle {
    font-weight: 650;
    color: var(--text-muted);
}

.page-block-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: rgba(229, 9, 20, .1);
    color: var(--accent);
    margin-bottom: .7rem;
}

.page-block-placeholder {
    min-height: inherit;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(145deg, #f3f6fb, #e8edf7);
    display: grid;
    place-items: center;
    text-align: center;
    color: #334155;
    padding: 1rem;
    font-weight: 700;
}

.page-block-placeholder i {
    color: var(--accent);
    margin-right: .35rem;
}

.page-block-text-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1.2rem;
}

.page-block-image-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1.2rem;
}

.page-block-full {
    grid-column: 1 / -1;
}

.page-block-cta {
    grid-column: 1 / -1;
    text-align: center;
}

html[data-theme="dark"] .page-block-placeholder {
    background: linear-gradient(145deg, #162237, #1f2c47);
    color: #dbe5f4;
}

.contact-card {
    padding: 1.25rem;
}

.contact-card .icon-visual {
    width: 32px;
    height: 32px;
    font-size: .85rem;
    border-radius: 9px;
}

.toc-card {
    position: sticky;
    top: 110px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    background: var(--bg-card);
}

.toc-card h3 {
    font-size: 18px;
    margin-bottom: .8rem;
}

.toc-card a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: .25rem 0;
}

.toc-card a:hover {
    color: var(--accent);
}

.legal-callout {
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: .9rem 1rem;
    background: var(--bg-soft);
}

.legal-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.legal-content section {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfe 100%);
    margin-bottom: .9rem;
}

.legal-content h2 {
    font-size: clamp(18px, 1.8vw, 24px);
    margin-top: 0;
    margin-bottom: .65rem;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.legal-content h2 i {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    background: rgba(229, 9, 20, .1);
    color: var(--accent);
    font-size: .9rem;
}

.legal-content h2 i.me-2 {
    margin-right: 0 !important;
}

.legal-content p,
.legal-content li {
    font-size: clamp(15px, 1.25vw, 16.5px);
    line-height: 1.65;
    margin-bottom: .45rem;
}

.legal-content p:last-child,
.legal-content li:last-child {
    margin-bottom: 0;
}

html[data-theme="dark"] .legal-content section {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-color: #1f2937;
}

.reveal {
    opacity: 0;
    transition: opacity .62s ease, transform .62s cubic-bezier(.16,.84,.44,1);
}

.reveal.active {
    opacity: 1;
    transform: none;
}

.reveal-up {
    transform: translateY(22px);
}

.reveal-left {
    transform: translateX(-24px);
}

.reveal-right {
    transform: translateX(24px);
}

.reveal-scale {
    transform: scale(.96);
}

.stagger-parent .stagger-item {
    transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

.fade-in {
    animation: fadeIn .65s ease-out both;
}

.slide-up {
    animation: slideUp .68s cubic-bezier(.16,.84,.44,1) both;
}

.soft-float {
    animation: softFloat 4s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
