/* BeachHub premium homepage — page-specific styles */
.home-shell {
    width: min(1220px, calc(100% - 40px));
    margin-inline: auto;
}

.home-hero {
    position: relative;
    min-height: 790px;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
}

.home-hero__background,
.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.home-hero__background {
    background:
        url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1800&q=88')
        center 58% / cover no-repeat;
    transform: scale(1.015);
}

.home-hero__overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(4, 28, 45, .92) 0%, rgba(4, 38, 58, .78) 42%, rgba(3, 38, 55, .30) 70%, rgba(3, 28, 42, .44) 100%),
        linear-gradient(180deg, rgba(1, 23, 36, .18) 0%, rgba(1, 23, 36, .12) 55%, rgba(1, 23, 36, .68) 100%);
}

.home-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(350px, .62fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
    padding-top: 40px;
    padding-bottom: 126px;
}


.home-hero__copy {
    max-width: 760px;
}

.home-kicker,
.home-section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-kicker {
    color: rgba(255, 255, 255, .88);
}

.home-kicker__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #68e4d2;
    box-shadow: 0 0 0 7px rgba(104, 228, 210, .14);
}

.home-hero h1 {
    max-width: 760px;
    margin: 22px 0 20px;
    color: #fff;
    font-size: clamp(47px, 6.2vw, 84px);
    line-height: .98;
    letter-spacing: -.065em;
    text-wrap: balance;
}

.home-hero__copy > p {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.72;
}

.home-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    max-width: 760px;
    margin-top: 34px;
    padding: 9px 9px 9px 17px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 64px rgba(0, 20, 35, .32);
    color: #17364a;
}

.home-search__icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: #ecf8fa;
    color: #087d87;
}

.home-search__icon svg {
    width: 21px;
    height: 21px;
}

.home-search__field {
    min-width: 0;
}

.home-search__field label {
    display: block;
    margin-bottom: 2px;
    color: #315467;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.home-search__field input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17364a;
    font: inherit;
    font-size: 15px;
}

.home-search__field input::placeholder {
    color: #879ba7;
}

.home-search__button,
.home-button {
    display: inline-flex;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 0;
    border-radius: 13px;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-search__button {
    background: #087d87;
    color: #fff;
    box-shadow: 0 12px 24px rgba(8, 125, 135, .23);
}

.home-search__button:hover,
.home-button:hover {
    transform: translateY(-2px);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.home-button--primary {
    background: linear-gradient(135deg, #087d87, #0ea7ad);
    color: #fff;
    box-shadow: 0 14px 30px rgba(8, 125, 135, .25);
}

.home-button--light {
    background: #fff;
    color: #12384a;
    box-shadow: 0 12px 28px rgba(0, 24, 38, .13);
}

.home-button--ghost,
.home-button--outline-light {
    border: 1px solid rgba(255, 255, 255, .48);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    backdrop-filter: blur(10px);
}

.home-button--dark {
    background: #102f40;
    color: #fff;
}

.home-owner-card {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 28px;
    background: rgba(7, 34, 48, .52);
    box-shadow: 0 28px 70px rgba(0, 18, 31, .28);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.home-owner-card::before {
    position: absolute;
    width: 180px;
    height: 180px;
    top: -90px;
    right: -70px;
    border-radius: 999px;
    background: rgba(104, 228, 210, .18);
    content: '';
    filter: blur(1px);
}

.home-owner-card__top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.home-owner-card__label {
    color: #9ff5e8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .82);
    font-size: 11px;
    font-weight: 800;
}

.home-live-pill span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #6bf0bf;
    box-shadow: 0 0 0 5px rgba(107, 240, 191, .12);
}

.home-owner-card h2 {
    position: relative;
    margin: 22px 0 12px;
    color: #fff;
    font-size: clamp(27px, 2.4vw, 36px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.home-owner-card > p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.65;
}

.home-metric-icon {
    display: grid;
    width: 42px;
    height: 42px;
    grid-row: 1 / span 2;
    place-items: center;
    border-radius: 13px;
    background: rgba(104, 228, 210, .14);
    color: #9ff5e8;
}

.home-metric-icon svg {
    width: 20px;
    height: 20px;
}

.home-owner-card__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.home-owner-card__link span {
    font-size: 20px;
}

.home-trust-bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1.1fr repeat(3, 1fr);
    align-items: center;
    min-height: 92px;
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -18px 48px rgba(0, 23, 38, .16);
    color: #17364a;
    overflow: hidden;
}

.home-trust-bar > * {
    min-height: 92px;
    padding: 20px 25px;
}

.home-trust-bar > * + * {
    border-left: 1px solid #e1ecef;
}

.home-trust-bar__stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eff9f8;
}

.home-trust-bar__stat strong {
    color: #087d87;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.05em;
}

.home-trust-bar__stat span {
    color: #5f7885;
    font-size: 13px;
    font-weight: 800;
}

.home-trust-bar__item {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #415f6e;
    font-size: 13px;
    font-weight: 800;
}

.home-trust-bar__item svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: #087d87;
}

.home-section {
    padding-top: 96px;
    padding-bottom: 96px;
}

.home-section--soft {
    background: #f3f8f8;
}

.home-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 36px;
}

.home-heading-row--centered {
    justify-content: center;
    text-align: center;
}

.home-heading-row > div,
.home-centered-heading {
    max-width: 760px;
}

.home-section-label {
    color: #087d87;
}

.home-section-label--light {
    color: #9ff5e8;
}

.home-heading-row h2,
.home-centered-heading h2,
.home-ai-copy h2,
.home-final-cta h2 {
    margin: 12px 0 10px;
    color: #12384a;
    font-size: clamp(34px, 4.3vw, 56px);
    line-height: 1.04;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.home-heading-row p,
.home-centered-heading p {
    margin: 0;
    color: #6a818c;
    font-size: 16px;
    line-height: 1.7;
}

.home-centered-heading {
    margin: 0 auto 42px;
    text-align: center;
}

.home-text-link,
.home-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #087d87;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.home-text-link span,
.home-card-link span {
    font-size: 19px;
    transition: transform .2s ease;
}

.home-text-link:hover span,
.home-card-link:hover span {
    transform: translateX(3px);
}

/* ========================================================
   RE-DESIGNED BEACH CARDS & SWIPER LOGIC
   ======================================================== */
.home-beach-grid {
    width: 100%;
}

.home-beach-card {
    min-width: 0;
    border: 1px solid #f1f5f9;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

/* Hover effect ONLY applied on desktop to avoid lag during swiper drag */
@media (min-width: 821px) {
    .home-beach-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .home-beach-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    }
}

.home-beach-card__image {
    position: relative;
    display: block;
    height: 230px;
    width: 100%;
    overflow: hidden;
}

.home-beach-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-beach-card:hover .home-beach-card__image img {
    transform: scale(1.05);
}

.home-beach-card__badge-top {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    color: #047857;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.home-beach-card__badge-top span {
    display: block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.home-beach-card__badge-bottom {
    position: absolute;
    bottom: 18px;
    right: 18px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.home-beach-card__body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.home-beach-card__location {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.home-beach-card h3 {
    font-size: 28px;
    color: #0f172a;
    margin: 0 0 14px 0;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.home-beach-card__meta {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-beach-card__meta-distance { color: #0284c7; display: flex; align-items: center; gap: 7px; }
.home-beach-card__meta-rating { color: #854d0e; display: flex; align-items: center; gap: 7px; }
.home-beach-card__meta-rating .stars { color: #eab308; letter-spacing: 1px; }

.home-beach-card p {
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 22px 0;
    flex-grow: 1;
}

.home-card-link {
    color: #0d9488;
    font-weight: 800;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    transition: color 0.2s;
}

.home-card-link:hover { color: #0f766e; }

.home-route-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    border-radius: 14px;
    font-weight: 700;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-route-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* ========================================================
   DESKTOP SWIPER OVERRIDES (Locks to grid layout)
   ======================================================== */
@media (min-width: 821px) {
    .home-beach-grid .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 24px !important;
        transform: none !important;
        width: 100% !important;
    }
    .home-beach-grid .swiper-slide {
        width: auto !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        visibility: visible !important;
        position: relative !important;
        margin: 0 !important;
    }
    .home-beach-card--featured {
        grid-column: span 2;
    }
    .home-beach-card--featured .home-beach-card__image {
        height: 325px;
    }
}

/* Tablet override */
@media (max-width: 1080px) and (min-width: 821px) {
    .home-beach-grid .swiper-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ======================================================== */

.home-empty-state {
    display: grid;
    max-width: 680px;
    justify-items: center;
    margin: 10px auto 0;
    padding: 56px 28px;
    border: 1px dashed #c8dcdf;
    border-radius: 26px;
    background: #f8fbfb;
    text-align: center;
}

.home-empty-state__icon {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border-radius: 21px;
    background: #e6f5f3;
    color: #087d87;
}

.home-empty-state__icon svg {
    width: 38px;
    height: 38px;
}

.home-empty-state h3 {
    margin: 20px 0 8px;
    font-size: 25px;
    letter-spacing: -.03em;
}

.home-empty-state p {
    max-width: 480px;
    margin: 0 0 22px;
    color: #6a818c;
}

.home-audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-audience-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(180px, .7fr);
    min-height: 500px;
    border-radius: 30px;
    overflow: hidden;
}

.home-audience-card--guest {
    border: 1px solid #d9e8e9;
    background: #fff;
    color: #17364a;
}

.home-audience-card--owner {
    background: linear-gradient(145deg, #0e3849 0%, #095b65 100%);
    color: #fff;
}

.home-audience-card__content {
    position: relative;
    z-index: 1;
    padding: 38px 16px 38px 38px;
}

.home-audience-card__tag {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    background: #eaf6f5;
    color: #087d87;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-audience-card--owner .home-audience-card__tag {
    background: rgba(255, 255, 255, .10);
    color: #9ff5e8;
}

.home-audience-card h3 {
    margin: 18px 0 22px;
    font-size: clamp(28px, 3vw, 39px);
    line-height: 1.06;
    letter-spacing: -.045em;
}

.home-audience-card ul {
    display: grid;
    gap: 13px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.home-audience-card li {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    color: #5e7681;
    font-size: 13px;
    line-height: 1.45;
}

.home-audience-card--owner li {
    color: rgba(255, 255, 255, .74);
}

.home-audience-card li span {
    color: #087d87;
    font-size: 10px;
    font-weight: 900;
}

.home-audience-card--owner li span {
    color: #9ff5e8;
}

.home-audience-card__visual {
    position: relative;
    display: grid;
    align-items: end;
    justify-items: center;
    padding: 24px 20px 0 0;
    overflow: hidden;
}

.home-audience-card__visual::before {
    position: absolute;
    width: 290px;
    height: 290px;
    right: -90px;
    bottom: -80px;
    border-radius: 999px;
    background: #def1ef;
    content: '';
}

.home-audience-card--owner .home-audience-card__visual::before {
    background: rgba(125, 238, 224, .12);
}

.home-phone-card {
    position: relative;
    z-index: 1;
    width: 190px;
    height: 360px;
    padding: 24px 15px;
    border: 8px solid #143d4d;
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    background: #fff;
    box-shadow: 0 24px 45px rgba(10, 44, 57, .20);
}

.home-phone-card::before {
    position: absolute;
    width: 55px;
    height: 7px;
    top: 9px;
    left: 50%;
    border-radius: 999px;
    background: #143d4d;
    content: '';
    transform: translateX(-50%);
}

.home-phone-card__image,
.home-phone-card__line,
.home-phone-card__button {
    display: block;
    border-radius: 8px;
}

.home-phone-card__image {
    height: 125px;
    margin: 15px 0 18px;
    background: linear-gradient(rgba(5, 82, 97, .10), rgba(5, 82, 97, .10)),
        url('https://images.unsplash.com/photo-1520942702018-0862200e6873?auto=format&fit=crop&w=600&q=80') center/cover;
}

.home-phone-card__line {
    height: 9px;
    margin-top: 10px;
    background: #dce9eb;
}

.home-phone-card__line--short { width: 45%; }
.home-phone-card__line--medium { width: 70%; }

.home-phone-card__button {
    height: 34px;
    margin-top: 24px;
    background: #087d87;
}

.home-dashboard-card {
    position: relative;
    z-index: 1;
    width: 250px;
    min-height: 330px;
    padding: 20px;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 26px 55px rgba(0, 18, 31, .32);
}

.home-dashboard-card__head {
    display: flex;
    gap: 6px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e6eef0;
}

.home-dashboard-card__head span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #aec6cc;
}

.home-dashboard-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.home-dashboard-card__stats i {
    height: 54px;
    border-radius: 10px;
    background: #eaf5f4;
}

.home-dashboard-card__chart {
    display: flex;
    height: 145px;
    align-items: end;
    gap: 10px;
    margin-top: 25px;
    padding: 16px 14px 0;
    border-radius: 14px;
    background: #f5f9fa;
}

.home-dashboard-card__chart span {
    flex: 1;
    min-height: 20px;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(#22a3a6, #0b727b);
}

.home-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-process-step {
    position: relative;
    padding: 28px;
    border: 1px solid #dfeaec;
    border-radius: 23px;
    background: #fff;
    overflow: hidden;
}

.home-process-step__number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: #dce9eb;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.home-process-step__icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 17px;
    background: #eaf6f5;
    color: #087d87;
}

.home-process-step__icon svg {
    width: 27px;
    height: 27px;
}

.home-process-step h3 {
    margin: 22px 0 9px;
    color: #17364a;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.home-process-step p {
    margin: 0;
    color: #6d828d;
    font-size: 13px;
    line-height: 1.65;
}

.home-ai-section {
    background:
        radial-gradient(circle at 12% 18%, rgba(80, 220, 202, .17), transparent 28%),
        linear-gradient(135deg, #0b3042 0%, #07515c 100%);
    color: #fff;
}

.home-ai-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
    gap: clamp(50px, 8vw, 110px);
    align-items: center;
}

.home-ai-copy h2 {
    color: #fff;
}

.home-ai-copy > p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    line-height: 1.75;
}

.home-ai-points {
    display: grid;
    gap: 11px;
    margin: 27px 0 30px;
}

.home-ai-points div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .83);
    font-size: 14px;
    font-weight: 800;
}

.home-ai-points svg {
    width: 20px;
    height: 20px;
    color: #9ff5e8;
}

.home-chat-preview {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 28px;
    background: #f7fbfb;
    box-shadow: 0 28px 70px rgba(0, 17, 28, .34);
    color: #17364a;
    overflow: hidden;
}

.home-chat-preview__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 19px;
    border-bottom: 1px solid #e0ebed;
    background: #fff;
}

.home-chat-preview__avatar {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
    background: #e5f4f2;
    color: #087d87;
}

.home-chat-preview__avatar svg {
    width: 24px;
    height: 24px;
}

.home-chat-preview__head strong,
.home-chat-preview__head span {
    display: block;
}

.home-chat-preview__head strong {
    font-size: 14px;
}

.home-chat-preview__head span {
    margin-top: 3px;
    color: #6c838e;
    font-size: 11px;
    font-weight: 800;
}

.home-chat-preview__head i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 999px;
    background: #35bd80;
}

.home-chat-preview__body {
    display: grid;
    gap: 12px;
    min-height: 350px;
    align-content: center;
    padding: 24px;
    background:
        linear-gradient(rgba(245, 251, 251, .88), rgba(245, 251, 251, .88)),
        radial-gradient(circle at 20% 30%, #d8efec, transparent 24%),
        radial-gradient(circle at 80% 70%, #deeff5, transparent 28%);
}

.home-chat-preview__message {
    max-width: 82%;
    padding: 13px 15px 9px;
    border-radius: 17px;
    font-size: 13px;
    line-height: 1.55;
}

.home-chat-preview__message small {
    display: block;
    margin-top: 6px;
    color: #8a9ca5;
    font-size: 9px;
    text-align: right;
}

.home-chat-preview__message--ai {
    border: 1px solid #dce9eb;
    border-bottom-left-radius: 5px;
    background: #fff;
}

.home-chat-preview__message--customer {
    justify-self: end;
    border-bottom-right-radius: 5px;
    background: #dff2ef;
}

.home-chat-preview__input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px;
    border-top: 1px solid #e0ebed;
    background: #fff;
}

.home-chat-preview__input span {
    padding-left: 8px;
    color: #9aabb2;
    font-size: 12px;
}

.home-chat-preview__input button {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 0;
    border-radius: 13px;
    background: #087d87;
    color: #fff;
}

.home-chat-preview__input svg {
    width: 18px;
    height: 18px;
}

.home-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(35px, 5vw, 58px);
    border-radius: 30px;
    background:
        radial-gradient(circle at 85% 20%, rgba(111, 231, 216, .24), transparent 27%),
        linear-gradient(135deg, #0c3446 0%, #08717a 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(14, 56, 73, .18);
}

.home-final-cta > div:first-child {
    max-width: 720px;
}

.home-final-cta h2 {
    color: #fff;
}

.home-final-cta p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
}

.home-final-cta__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 11px;
}

/* ========================================================
   GLOBAL FLOAT SCROLL ANIMATIONS
   ======================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================
   RESPONSIVE DESIGN (Desktop Overrides)
   ======================================================== */
@media (max-width: 1080px) {
    .home-hero__content {
        grid-template-columns: 1fr .72fr;
        gap: 40px;
    }

    .home-trust-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-trust-bar > * + * {
        border-left: 0;
    }

    .home-trust-bar > *:nth-child(even) {
        border-left: 1px solid #e1ecef;
    }

    .home-trust-bar > *:nth-child(n+3) {
        border-top: 1px solid #e1ecef;
    }

    .home-hero {
        padding-bottom: 92px;
    }

    .home-trust-bar {
        position: relative;
        bottom: auto;
        margin-bottom: -92px;
        border-radius: 24px;
    }

    .home-audience-grid,
    .home-ai-layout {
        grid-template-columns: 1fr;
    }

    .home-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ========================================================
   MOBILE DEVICE VIEWS
   ======================================================== */
@media (max-width: 820px) {
    .home-shell {
        width: min(100% - 28px, 1220px);
    }
    #img-proximity {
        display: none !important;
    }

    .home-hero {
        min-height: auto;
    }

    .home-hero__content {
        grid-template-columns: 1fr;
        padding-top: 72px;
        padding-bottom: 40px;
    }

    .home-owner-card {
        max-width: 580px;
    }

    .home-trust-bar {
        margin-bottom: -58px;
    }

    .home-section {
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .home-heading-row,
    .home-final-cta {
        align-items: flex-start;
        flex-direction: column;
    }
    
    /* MOBILE SWIPE FOR BEACH CARDS - 3D SWIPER UI */
    .home-beach-grid {
        /* Sets an elegant app-like width */
        width: 320px; 
        max-width: 82vw; 
        padding-bottom: 30px;
        /* Critical for letting stacked cards poke out */
        overflow: visible !important;
        margin: 0 auto;
    }
    
    .home-beach-card--featured {
        grid-column: auto;
    }
    .home-beach-card--featured .home-beach-card__image {
        height: 230px; 
    }

    .home-audience-card {
        grid-template-columns: 1fr;
    }

    .home-audience-card__content {
        padding: 32px;
    }

    .home-audience-card__visual {
        min-height: 310px;
        padding-right: 0;
    }

    .home-phone-card,
    .home-dashboard-card {
        width: min(260px, 80%);
    }
}

@media (max-width: 620px) {
    .home-hero__background {
        background-position: 62% center;
    }

    .home-hero__overlay {
        background: linear-gradient(180deg, rgba(4, 29, 44, .83) 0%, rgba(4, 37, 54, .82) 60%, rgba(4, 29, 44, .92) 100%);
    }

    .home-hero h1 {
        font-size: clamp(42px, 14vw, 60px);
    }

    .home-search {
        grid-template-columns: auto 1fr;
        padding: 13px;
    }

    .home-search__button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .home-hero__actions,
    .home-final-cta__actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .home-trust-bar {
        grid-template-columns: 1fr;
        margin-bottom: -45px;
    }

    .home-trust-bar > *,
    .home-trust-bar__stat {
        min-height: auto;
        padding: 16px 19px;
    }

    .home-trust-bar > *:nth-child(even) {
        border-left: 0;
    }

    .home-trust-bar > * + * {
        border-top: 1px solid #e1ecef;
    }

    .home-process-grid {
        grid-template-columns: 1fr;
    }

    .home-audience-card__content {
        padding: 28px 24px;
    }

    .home-chat-preview__body {
        min-height: 320px;
        padding: 17px;
    }

    .home-chat-preview__message {
        max-width: 90%;
    }
}

/* Homepage rendering fallbacks */
.home-hero__background{background-color:#0c5266}
.home-shell,.home-hero__copy,.home-owner-card,.home-heading-row>div,.home-beach-card{min-width:0}
.home-beach-card__image img{display:block}

@supports not ((-webkit-backdrop-filter:blur(2px)) or (backdrop-filter:blur(2px))){
  .home-owner-card{background:rgba(7,34,48,.94)}
  .home-button--ghost,.home-button--outline-light{background:rgba(7,34,48,.82)}
  .home-beach-card__badge-bottom{background:rgba(15, 23, 42,.94)}
}

@media(max-width:620px){
  .home-shell{width:calc(100% - 28px)}
  .home-hero__content{padding-top:48px}
  .home-heading-row{gap:18px}
  .home-text-link{white-space:normal}
}

/* ========================================================
   MARQUEE ANIMATION SECTION
   ======================================================== */
.home-marquee-section {
    background: #041f2d;
    padding: 24px 0;
    overflow: hidden;
    display: flex;
    border-bottom: 1px solid #e1ecef;
}

.home-marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}

.home-marquee-track:hover {
    animation-play-state: paused;
}

.home-marquee-group {
    display: flex;
    gap: 16px;
    padding-right: 16px;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.home-marquee-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px 12px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(8px);
    min-width: max-content;
    transition: background 0.3s ease;
}

.home-marquee-card:hover {
    background: rgba(255, 255, 255, .12);
}

.home-marquee-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-marquee-card__text strong {
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.1;
}

.home-marquee-card__text small {
    color: rgba(255, 255, 255, .7);
    font-size: 12.5px;
    line-height: 1.2;
}

/* Calculate mobile layout padding to account for the Trust Bar's negative margin pull-up effect */
@media (max-width: 1080px) {
    .home-marquee-section { padding-top: calc(24px + 92px); }
}
@media (max-width: 820px) {
    .home-marquee-section { padding-top: calc(24px + 58px); }
    .scroll-feature-visuals {
        display: none !important;
    }
}
@media (max-width: 620px) {
    .home-marquee-section { padding-top: calc(0px + 25px); border-bottom: 0; }
}

/* ========================================================
   SCROLL TO TOP BUTTON
   ======================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #087d87, #0ea7ad);
    color: #fff;
    box-shadow: 0 10px 25px rgba(8, 125, 135, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, box-shadow 0.3s ease;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(8, 125, 135, 0.5);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 820px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    #img-proximity {
        display: none !important;
    }
}

/* ========================================================
   DARK ELEGANT STICKY SCROLL SECTION (UPDATED)
   ======================================================== */
.home-dark-scroll-feature {
    background: #041f2d;
    position: relative;
    padding-top: 40px;
    padding-bottom: 140px;
    color: #fff;
}

.home-dark-scroll-feature .home-section-label--light {
    color: #9ff5e8;
}

/* New Massive Header Styling - Side-by-side Layout */
.scroll-feature-main-header {
    display: flex;
    align-items: flex-end; /* Aligns paragraph to the bottom of the heading */
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    margin-bottom: 100px;
}

.scroll-feature-main-header .header-left {
    flex: 1 1 auto;
}

.scroll-feature-main-header .header-right {
    flex: 0 0 320px; /* Constrains paragraph width like the reference image */
    padding-bottom: 8px; /* Optically aligns the text baseline */
}

.scroll-feature-main-header h2 {
    font-size: clamp(48px, 6.5vw, 105px); /* Massive font scaling */
    line-height: 0.88; /* Extremely tight leading */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em; /* Tight letter spacing */
    margin: 20px 0 0 0;
    color: #ffffff;
}

/* Creates the colored lower line */
.scroll-feature-main-header h2 .text-accent {
    color: #ff6600; /* Vibrant orange matching the reference */
    display: block; /* Forces line break and maintains tight vertical spacing */
}

.scroll-feature-main-header p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Mobile handling for the header */
@media (max-width: 991px) {
    .scroll-feature-main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .scroll-feature-main-header .header-right {
        flex: auto;
        width: 100%;
    }
}

.scroll-feature-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 80px;
    align-items: start; /* CRITICAL: Enables the right column to stick */
}

.scroll-feature-content {
    /* Padding allows the final item to scroll to the middle of the screen */
    padding-bottom: 40vh; 
}

.scroll-feature-list {
    display: flex;
    flex-direction: column;
}

.scroll-feature-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 0; /* Removed side padding, removed box background */
    opacity: 0.2;
    transform: translateX(-15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    cursor: default;
    margin-bottom: 35vh; 
}

.scroll-feature-item.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-item-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.scroll-item-kicker .step-num {
    color: rgba(255, 255, 255, 0.35);
}

.scroll-item-kicker .step-title {
    color: #ff6600;
}

.scroll-item-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 16px;
    background: rgba(104, 228, 210, 0.15);
    color: #9ff5e8;
    flex-shrink: 0;
    transition: transform 0.5s ease;
}

.scroll-feature-item.active .scroll-item-icon {
    transform: scale(1.1);
    background: #087d87;
    color: #ffffff;
}

.scroll-item-icon svg {
    width: 28px;
    height: 28px;
}

.scroll-feature-item h3 {
    margin: 0 0 16px 0;
    color: #ffffff;
    font-size: clamp(40px, 4.5vw, 68px); /* Massive bold text */
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.scroll-feature-item p {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    max-width: 95%;
}

.scroll-item-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.scroll-item-tags span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
}

.scroll-item-tags span i {
    color: #ff6600;
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
}

.scroll-feature-visuals {
    position: -webkit-sticky; /* For Safari support */
    position: sticky;
    top: 10vh; /* Locks exactly 10% from the top of the browser */
    height: 80vh; /* Fills 80% of the screen so it stays perfectly centered */
    min-height: 450px;
    max-height: 800px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-visual-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0c3446;
}

.visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.7s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.visual-img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* ========================================================
   RESPONSIVE ADJUSTMENTS FOR STICKY SCROLL
   ======================================================== */
@media (max-width: 1080px) {
    .scroll-feature-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .scroll-feature-item {
        padding: 20px 0; /* Ensures no padding on tablet */
        gap: 0;
        margin-bottom: 25vh;
    }
}

@media (max-width: 820px) {
    .scroll-feature-main-header h2 {
        font-size: clamp(38px, 9vw, 56px); /* Resize for mobile */
    }
    #img-proximity {
        display: none !important;
    }
    
    .scroll-feature-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .scroll-feature-visuals {
        position: relative;
        top: 0;
        height: 400px;
        order: -1; /* Puts image above text on mobile */
        margin-bottom: 20px;
    }
    
    .scroll-feature-content {
        padding-bottom: 0; 
    }
    
    .scroll-feature-item {
        opacity: 1; 
        transform: none !important;
        margin-bottom: 40px; /* Standard spacing for mobile */
    }
}

/* ========================================================
   FULLSCREEN VIDEO MODAL & BUTTON
   ======================================================== */
.video-wrapper {
    position: absolute; /* Changed from relative to fix stacking context */
    display: flex;
    inset: 0; /* Ensures it stretches to fit the container perfectly */
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fullscreen-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.fullscreen-btn:hover {
    background: #087d87;
    transform: scale(1.1);
}

.fullscreen-btn svg {
    width: 22px;
    height: 22px;
}

.video-modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.video-modal-surface {
    width: 95%;
    max-width: 1100px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.video-modal-surface video {
    width: 100%;
    height: 100%;
    max-height: 85vh;
    outline: none;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 44px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
    font-weight: 300;
}

.video-modal-close:hover {
    color: #fff;
}


/* ========================================================
   SEPARATE "NEAR ME" BUTTON ANIMATION
   ======================================================== */
.btn-near-me {
    animation: attentionWiggle 5s infinite ease-in-out;
    transform-origin: center;
    will-change: transform;
}

@keyframes attentionWiggle {
    0%, 80%, 100% {
        transform: scale(1) rotate(0deg);
    }
    84% {
        transform: scale(1.06) rotate(-3deg);
    }
    88% {
        transform: scale(1.06) rotate(3deg);
    }
    92% {
        transform: scale(1.06) rotate(-3deg);
    }
    96% {
        transform: scale(1.06) rotate(3deg);
    }
}

/* FIX: Allows position: sticky to work while still hiding horizontal scrollbars */
html, body {
    overflow-x: clip !important; 
}