


body.tpl-modern[data-page="index"] {
    --m-home-ink: var(--color-background);
    --m-home-ink-soft: color-mix(in srgb, var(--color-background) 68%, transparent);
    --m-home-ink-faint: color-mix(in srgb, var(--color-background) 18%, transparent);
    --m-home-stage: color-mix(in srgb, var(--color-text) 30%, #060606);
    --m-home-stage-deep: color-mix(in srgb, var(--color-text) 48%, #020202);
    --m-home-panel-bg: color-mix(in srgb, var(--color-text) 52%, #0a0a0a);
    --m-home-panel-fg: var(--color-background);
    --m-home-panel-muted: color-mix(in srgb, var(--color-background) 55%, transparent);
    --m-home-panel-line: color-mix(in srgb, var(--color-background) 20%, transparent);
    --m-home-field: color-mix(in srgb, var(--color-background) 9%, transparent);
    --m-home-line: color-mix(in srgb, var(--color-text) 12%, var(--color-background));
}

@keyframes mHomeRise {
    from { opacity: 0; transform: translate3d(0, 18px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes mHomeSlide {
    from { opacity: 0; transform: translate3d(22px, 0, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes mHomeDrift {
    from { opacity: 0; transform: translate3d(8%, 4%, 0) scale(.96); }
    to   { opacity: .92; transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    body.tpl-modern .rgf-home-copy,
    body.tpl-modern .rgf-home-panel,
    body.tpl-modern .rgf-home-visual {
        animation: none !important;
    }
}


body.tpl-modern .rgf-home-hero:not(.is-hero-image) {
    position: relative;
    overflow: hidden;
    color: var(--m-home-ink);
    min-height: clamp(34rem, calc(100svh - var(--m-header-h, 64px)), 52rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(ellipse 58% 48% at 82% 38%,
            rgba(var(--color-primary-rgb), .28) 0%,
            transparent 58%),
        radial-gradient(ellipse 45% 40% at 12% 88%,
            rgba(var(--color-primary-rgb), .1) 0%,
            transparent 55%),
        linear-gradient(155deg,
            var(--m-home-stage) 0%,
            var(--m-home-stage-deep) 48%,
            color-mix(in srgb, var(--color-text) 70%, #000) 100%) !important;
}

/* Panel hero image: layout only — background from saasRenderHeroCss. */
body.tpl-modern .rgf-home-hero.is-hero-image {
    position: relative;
    overflow: hidden;
    color: var(--m-home-ink);
    min-height: clamp(34rem, calc(100svh - var(--m-header-h, 64px)), 52rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #0a1628;
    background-size: cover;
    background-position: center;
}

body.tpl-modern .rgf-home-hero.is-hero-image .rgf-home-visual {
    display: none !important;
}

/* Softer veil/beam over panel photos — hero_helper supplies the main wash. */
body.tpl-modern .rgf-home-hero.is-hero-image .rgf-home-veil {
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--m-home-stage-deep) 48%, transparent) 0%,
        color-mix(in srgb, var(--m-home-stage-deep) 22%, transparent) 40%,
        transparent 66%);
}
body.tpl-modern .rgf-home-hero.is-hero-image .rgf-home-beam {
    opacity: .28;
}
body.tpl-modern .rgf-home-hero.is-hero-image .rgf-home-grain {
    opacity: .04;
}


body.tpl-modern .rgf-home-hero .rgf-a,
body.tpl-modern .rgf-home-hero .rgf-b,
body.tpl-modern .rgf-home-hero .rgf-c,
body.tpl-modern .rgf-home-hero .rgf-svg,
body.tpl-modern .rgf-home-hero .rgf-layer {
    display: none !important;
}

body.tpl-modern .rgf-home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
body.tpl-modern .rgf-home-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            var(--m-home-stage-deep) 0%,
            color-mix(in srgb, var(--m-home-stage-deep) 72%, transparent) 42%,
            transparent 68%);
}
body.tpl-modern .rgf-home-grain {
    position: absolute;
    inset: 0;
    opacity: .07;
    background-image:
        linear-gradient(var(--m-home-ink-faint) 1px, transparent 1px),
        linear-gradient(90deg, var(--m-home-ink-faint) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(105deg, #000 0%, #000 38%, transparent 72%);
}
body.tpl-modern .rgf-home-beam {
    position: absolute;
    top: -30%;
    right: 8%;
    width: 42%;
    height: 160%;
    background: linear-gradient(180deg,
        rgba(var(--color-primary-rgb), .2) 0%,
        transparent 68%);
    transform: skewX(-14deg);
    opacity: .55;
}
body.tpl-modern .rgf-home-visual {
    position: absolute;
    right: 1%;
    bottom: 10%;
    width: min(46%, 560px);
    z-index: 1;
    opacity: .5;
    pointer-events: none;
    animation: mHomeDrift 1.1s cubic-bezier(.22, 1, .36, 1) .12s both;
    mask-image: linear-gradient(100deg, transparent 0%, #000 24%, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 24%, #000 85%, transparent 100%);
}
body.tpl-modern .rgf-home-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 24px 48px color-mix(in srgb, #000 55%, transparent));
}
@media (max-width: 899px) {
    body.tpl-modern .rgf-home-visual { display: none; }
}


body.tpl-modern .rgf-home-panel-label,
body.tpl-modern .rgf-home-panel-hint { display: none; }


body.tpl-modern .rgf-home-stage {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
    padding: clamp(2rem, 6vh, 4rem) 0 clamp(2rem, 5vh, 3.5rem);
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
@media (min-width: 900px) {
    body.tpl-modern .rgf-home-stage {
        grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .92fr);
        gap: clamp(2rem, 5vw, 4rem);
    }
}

body.tpl-modern .rgf-home-copy {
    max-width: 36rem;
    animation: mHomeRise .75s cubic-bezier(.22, 1, .36, 1) both;
}
body.tpl-modern .rgf-home-brand {
    margin: 0 0 .85rem;
    font-family: var(--font-family);
    font-size: clamp(2.75rem, 8.5vw, 5.25rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .92;
    color: var(--m-home-ink);
}
body.tpl-modern .rgf-home-title {
    margin: 0 0 .9rem;
    font-family: var(--font-family);
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.3;
    color: var(--m-home-ink);
    max-width: 26rem;
}
body.tpl-modern .rgf-home-lead {
    margin: 0;
    font-family: var(--font-family);
    font-size: clamp(.95rem, 1.3vw, 1.08rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--m-home-ink-soft);
    max-width: 30rem;
}


body.tpl-modern .rgf-home-panel {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 26.5rem;
    margin-left: auto;
    margin-right: 0;
    padding: 1.35rem 1.25rem 1.2rem;
    background: var(--m-home-panel-bg);
    color: var(--m-home-panel-fg);
    border: 0;
    border-radius: 2px;
    border-top: 2px solid var(--color-primary);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: mHomeSlide .8s cubic-bezier(.22, 1, .36, 1) .1s both;
}
@media (max-width: 899px) {
    body.tpl-modern .rgf-home-panel {
        max-width: none;
        margin-inline: 0;
    }
    body.tpl-modern .rgf-home-hero {
        min-height: 0;
        justify-content: flex-start;
        padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
    }
    body.tpl-modern .rgf-home-stage {
        padding-top: 1.75rem;
        padding-bottom: 1.5rem;
    }
    body.tpl-modern .rgf-home-copy {
        max-width: 100%;
    }
    body.tpl-modern .rgf-home-lead {
        max-width: 100%;
    }
}

body.tpl-modern .rgf-home-panel-label {
    margin: 0 0 .9rem;
    font-family: var(--font-family);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--m-muted, #6b7280);
}
body.tpl-modern .rgf-home-panel-hint {
    margin: .85rem 0 0;
    font-family: var(--font-family);
    font-size: .78rem;
    color: var(--m-home-panel-muted);
    line-height: 1.4;
}

body.tpl-modern .rgf-home-book {
    display: grid;
    gap: .75rem;
}
body.tpl-modern .rgf-home-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}
body.tpl-modern .rgf-home-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .28rem;
}
body.tpl-modern .rgf-home-field label {
    font-family: var(--font-family);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--m-home-panel-muted);
}
body.tpl-modern .rgf-home-field select,
body.tpl-modern .rgf-home-field input {
    width: 100%;
    min-height: 46px;
    padding: .6rem .7rem;
    border-radius: 2px;
    border: 1px solid var(--m-home-panel-line);
    background: var(--m-home-field);
    color: var(--m-home-panel-fg);
    font-family: var(--font-family);
    font-size: .9rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    color-scheme: dark;
}
body.tpl-modern .rgf-home-field select:focus,
body.tpl-modern .rgf-home-field input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), .28);
    background: color-mix(in srgb, var(--color-background) 14%, transparent);
}
body.tpl-modern .rgf-home-field select option {
    color: var(--color-text);
    background: var(--color-background);
}
body.tpl-modern .rgf-home-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .15rem;
}
@media (min-width: 520px) {
    body.tpl-modern .rgf-home-actions {
        flex-direction: row;
    }
}
@media (max-width: 767px) {
    body.tpl-modern .rgf-home-actions {
        flex-direction: column;
    }
    body.tpl-modern .rgf-home-dates {
        grid-template-columns: 1fr;
    }
}
body.tpl-modern .rgf-home-submit,
body.tpl-modern .rgf-home-wa {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .65rem .85rem;
    border-radius: 2px;
    font-family: var(--font-family);
    font-size: .88rem;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: filter .15s, background .15s, color .15s, border-color .15s;
}
body.tpl-modern .rgf-home-submit {
    background: var(--color-primary);
    color: var(--color-background);
}
body.tpl-modern .rgf-home-submit:hover {
    filter: brightness(.92);
    color: var(--color-background);
}
body.tpl-modern .rgf-home-wa {
    background: transparent;
    color: var(--m-home-ink);
    border: 1px solid var(--m-home-panel-line);
}
body.tpl-modern .rgf-home-wa:hover {
    border-color: var(--m-home-ink, #0a0a0a);
    color: var(--m-home-ink, #0a0a0a);
}


body.tpl-modern .rgf-home-fleet {
    padding-top: clamp(2.75rem, 5.5vh, 4rem);
    padding-bottom: clamp(2rem, 4vh, 3rem);
    background: var(--color-background);
}
body.tpl-modern .rgf-home-sec-head {
    text-align: left;
    max-width: 38rem;
    margin: 0 0 1.75rem;
}
body.tpl-modern .rgf-home-sec-head-wide { max-width: 44rem; }
body.tpl-modern .rgf-home-eyebrow {
    margin: 0 0 .4rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--m-muted, #6b7280);
    font-family: var(--font-family);
}
body.tpl-modern .rgf-home-sec-title {
    margin: 0 0 .45rem;
    font-family: var(--font-family);
    font-size: clamp(1.6rem, 3.2vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--color-text);
}
body.tpl-modern .rgf-home-sec-lead {
    margin: 0;
    color: var(--m-muted);
    font-family: var(--font-family);
    line-height: 1.6;
}
body.tpl-modern .rgf-home-fleet-more {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 2rem;
}


body.tpl-modern .rgf-home-trust {
    padding: 0;
    background: color-mix(in srgb, var(--color-text) 3.5%, var(--color-background));
    border: 0;
}
body.tpl-modern .rgf-home-trust-row {
    list-style: none;
    margin: 0;
    padding: 1.75rem 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1.5rem;
}
@media (min-width: 768px) {
    body.tpl-modern .rgf-home-trust-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem 2rem;
        padding: 2rem 0;
    }
}
body.tpl-modern .rgf-home-trust-row li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .4rem;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
}
body.tpl-modern .rgf-home-trust-row strong {
    font-family: var(--font-family);
    font-size: clamp(1.45rem, 2.8vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--color-text);
}
body.tpl-modern .rgf-home-trust-row span {
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--m-muted);
    font-family: var(--font-family);
}


body.tpl-modern .rgf-home-why {
    background: var(--color-background);
}
body.tpl-modern .rgf-home-why-cols {
    display: grid;
    gap: 1px;
    background: var(--m-home-line);
    border: 1px solid var(--m-home-line);
}
@media (min-width: 640px) {
    body.tpl-modern .rgf-home-why-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    body.tpl-modern .rgf-home-why-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
body.tpl-modern .rgf-home-why-col {
    padding: 1.35rem 1.25rem 1.45rem;
    background: var(--color-background);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
@media (min-width: 640px) {
    body.tpl-modern .rgf-home-why-col {
        padding: 1.55rem 1.45rem 1.65rem;
    }
}
@media (min-width: 1024px) {
    body.tpl-modern .rgf-home-why-col {
        padding: 1.7rem 1.55rem 1.8rem;
    }
}
body.tpl-modern .rgf-home-why-idx {
    display: block;
    margin: 0 0 .6rem;
    font-family: var(--font-family);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--m-muted, #6b7280);
}
body.tpl-modern .rgf-home-why-col h3 {
    margin: 0 0 .4rem;
    font-family: var(--font-family);
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -.02em;
    color: var(--m-fg, #0a0a0a);
}
body.tpl-modern .rgf-home-why-col p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--m-muted);
    font-family: var(--font-family);
}


body.tpl-modern .rgf-home-band {
    margin: 0;
    padding: clamp(2.25rem, 5vh, 3.25rem) 0;
    background: var(--color-primary);
    color: var(--color-background);
    border-bottom: 3px solid color-mix(in srgb, var(--color-text) 88%, #000);
}
body.tpl-modern .rgf-home-band-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}
@media (min-width: 768px) {
    body.tpl-modern .rgf-home-band-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
}
body.tpl-modern .rgf-home-band-copy { max-width: 36rem; }
body.tpl-modern .rgf-home-band-copy h2 {
    margin: 0 0 .45rem;
    font-family: var(--font-family);
    font-size: clamp(1.45rem, 3vw, 2rem);
    color: var(--color-background);
}
body.tpl-modern .rgf-home-band-copy p {
    margin: 0;
    color: color-mix(in srgb, var(--color-background) 78%, transparent);
    font-family: var(--font-family);
    line-height: 1.55;
}
body.tpl-modern .rgf-home-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
body.tpl-modern .rgf-home-band .rgf-btn-accent {
    background: var(--color-background);
    color: var(--color-primary);
    border-radius: 2px;
    box-shadow: none;
}
body.tpl-modern .rgf-home-band .rgf-btn-accent:hover {
    filter: none;
    background: color-mix(in srgb, var(--color-background) 92%, var(--color-text));
    color: var(--color-primary);
}
body.tpl-modern .rgf-home-band .rgf-btn-ghost {
    background: transparent;
    border-radius: 2px;
    border: 1px solid color-mix(in srgb, var(--color-background) 45%, transparent);
    color: var(--color-background);
}
body.tpl-modern .rgf-home-band .rgf-btn-ghost:hover {
    background: color-mix(in srgb, var(--color-background) 12%, transparent);
    color: var(--color-background);
}
