/*
 * Blueground Homepage Styles
 * A clone of theblueground.com design
 */

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
    --bg-primary: #1B4C82;
    --bg-primary-dark: #143a66;
    --bg-primary-light: #2B62A1;
    --bg-accent: #3B82F6;
    --bg-white: #FFFFFF;
    --bg-gray-50: #F9FAFB;
    --bg-gray-100: #F3F4F6;
    --bg-gray-200: #E5E7EB;
    --bg-gray-600: #4B5563;
    --bg-gray-700: #374151;
    --bg-gray-800: #1F2937;
    --bg-gray-900: #111827;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Silky smooth easing curves - Antigravity-inspired */
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-smooth: cubic-bezier(0.45, 0, 0.15, 1);

    --transition-fast: 250ms var(--ease-smooth);
    --transition-base: 400ms var(--ease-smooth);
    --transition-slow: 600ms var(--ease-out-expo);
    --transition-spring: 500ms var(--ease-spring);
}

/* ===========================
   RESET & BASE
   =========================== */
.bg-home * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.bg-home {
    font-family: var(--font-family);
    color: var(--bg-gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    /* Create stacking context to contain all z-index layers */
    position: relative;
    z-index: 1;
}

.bg-home img {
    max-width: 100%;
    height: auto;
}

.bg-home a {
    text-decoration: none;
    color: inherit;
}

.bg-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   HEADER
   =========================== */
.bg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background-color var(--transition-slow), box-shadow var(--transition-slow);
}

.bg-header.transparent {
    background-color: transparent;
}

.bg-header.solid {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.bg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bg-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bg-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-logo-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.bg-logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--bg-primary);
}

.bg-header.transparent .bg-logo-text {
    color: var(--bg-white);
}

.bg-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.bg-nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--bg-gray-700);
    transition: color var(--transition-fast);
}

.bg-nav-link:hover {
    color: var(--bg-primary);
}

.bg-header.transparent .bg-nav-link {
    color: var(--bg-white);
}

.bg-header.transparent .bg-nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.bg-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bg-lang-picker {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--bg-gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bg-header.transparent .bg-lang-picker {
    color: var(--bg-white);
}

.bg-login-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.bg-login-btn:hover {
    background: var(--bg-gray-200);
}

.bg-login-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--bg-gray-700);
}

.bg-mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* ===========================
   HERO SECTION
   =========================== */
.bg-hero {
    position: relative;
    min-height: 85vh;
    display: block;
    overflow: hidden;
    /* Push hero content below the fixed header */
    padding-top: 72px;
}

.bg-hero-bg {
    position: absolute;
    top: 72px;
    /* Start below the header padding */
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center right;
    opacity: 1;
    /* Curved bottom-left corner only - like Blueground */
    border-radius: 0 0 0 150px;
}

/* Warm overlay for subtle blending */
.bg-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 250, 245, 0.95) 0%,
            rgba(255, 250, 245, 0.7) 25%,
            rgba(255, 248, 240, 0.3) 45%,
            transparent 60%);
    z-index: 2;
    pointer-events: none;
}

.bg-hero-content {
    position: relative;
    z-index: 10;
    /* Modern glassmorphism effect */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 4px 72px 40px 56px;
    max-width: 640px;
    text-align: left;
    margin: 0;
    margin-left: clamp(24px, 10vw, 160px);
    margin-top: 0;
    /* Softer curved corner */
    border-radius: 0 0 80px 0;
    /* Refined layered shadow for depth */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 20px 40px -8px rgba(27, 76, 130, 0.12);
    /* Smooth border for polish */
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* Animation on load */
    animation: slideInFromLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bg-hero-title {
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--bg-gray-900);
    line-height: 1.15;
    margin-bottom: 24px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.bg-hero-subtitle {
    font-size: var(--font-size-base);
    color: var(--bg-gray-600);
    margin-bottom: 28px;
    line-height: 1.6;
    max-width: 100%;
}

.bg-hero-subtitle .underline {
    text-decoration: underline;
    text-decoration-color: var(--bg-primary);
    text-underline-offset: 3px;
}

/* Search Bar */
.bg-search-bar {
    display: flex;
    align-items: stretch;
    background: var(--bg-white);
    border: 2px solid var(--bg-gray-200);
    border-radius: var(--radius-lg);
    padding: 8px;
    max-width: 100%;
    gap: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bg-search-field {
    flex: 1;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    min-width: 0;
}

.bg-search-field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--bg-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.bg-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bg-field-icon {
    width: 16px;
    height: 16px;
    stroke: var(--bg-gray-400);
    flex-shrink: 0;
}

.bg-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: var(--font-size-sm);
    color: var(--bg-gray-800);
    font-family: var(--font-family);
    padding: 0;
    min-width: 0;
    width: 100%;
}

.bg-search-input::placeholder {
    color: var(--bg-gray-400);
}

.bg-search-input:focus {
    outline: none;
}

/* Date input specific styles */
.bg-search-input[type="date"] {
    cursor: pointer;
}

.bg-search-input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.bg-search-location {
    flex: 1.5;
}

.bg-search-dates {
    flex: 1;
    position: relative;
}

.bg-search-field:hover {
    background: var(--bg-gray-50);
    border-radius: var(--radius-sm);
}

.bg-search-field-text {
    font-size: var(--font-size-base);
    color: var(--bg-gray-500);
    font-weight: 400;
}

.bg-search-divider {
    width: 1px;
    height: 40px;
    background: var(--bg-gray-200);
    flex-shrink: 0;
    align-self: center;
}

.bg-search-btn {
    background: var(--bg-primary);
    color: var(--bg-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 56px;
}

.bg-search-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.bg-search-btn:hover {
    background: var(--bg-primary-dark);
}

/* Mobile responsive search form */
@media (max-width: 640px) {
    .bg-search-bar {
        flex-direction: column;
        padding: 16px;
        border-radius: var(--radius-lg);
        gap: 12px;
    }

    .bg-search-field {
        padding: 12px;
        border: 1px solid var(--bg-gray-200);
        border-radius: var(--radius-sm);
    }

    .bg-search-divider {
        display: none;
    }

    .bg-search-btn {
        width: 100%;
        padding: 14px;
        border-radius: var(--radius-md);
    }
}

/* Routiz Search Form Override */
.bg-search-form-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Search Form Layout - Stacked button on desktop */
.bg-search-form-wrapper .rz-search-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    background: var(--bg-white);
    border: 2px solid var(--bg-gray-300);
    border-radius: var(--radius-lg);
    padding: 8px;
    gap: 0;
    width: 100% !important;
    max-width: 100% !important;
}

.bg-search-form-wrapper .rz-search-form form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    flex: 1 1 100%;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
}

.bg-search-form-wrapper .rz-search-form .rz--form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    flex: 1 1 100%;
    gap: 0;
    align-items: center;
}

.bg-search-form-wrapper .rz-search-form .rz-search-mods {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    gap: 0;
    align-items: center;
    width: auto;
    min-width: 0;
}

/* Hide field labels/headings from search form */
.bg-search-form-wrapper .rz-search-form .rz-search-mod-label,
.bg-search-form-wrapper .rz-search-form .rz-form-label,
.bg-search-form-wrapper .rz-search-form label,
.bg-search-form-wrapper .rz-search-form .rz-ellipsis {
    display: none !important;
}

/* Style individual form fields - simpler for inline */
.bg-search-form-wrapper .rz-search-form .rz-mod,
.bg-search-form-wrapper .rz-search-form .rz-search-field {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 16px;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
    /* Force width */
}

/* Vertical divider between fields */
.bg-search-form-wrapper .rz-search-form .rz-mod:not(:last-child) {
    border-right: 1px solid var(--bg-gray-300);
}

.bg-search-form-wrapper .rz-search-form .rz-form-control {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-size: var(--font-size-base);
    color: var(--bg-gray-700);
    width: 100%;
}

.bg-search-form-wrapper .rz-search-form .rz-form-control::placeholder {
    color: var(--bg-gray-500);
}

.bg-search-form-wrapper .rz-search-form .rz-form-control:hover,
.bg-search-form-wrapper .rz-search-form .rz-form-control:focus {
    background: transparent;
    outline: none;
}

/* Select/dropdown fields */
.bg-search-form-wrapper .rz-search-form select,
.bg-search-form-wrapper .rz-search-form .rz-select,
.bg-search-form-wrapper .rz-search-form .rz-dropdown {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 12px 0;
    font-size: var(--font-size-base);
    color: var(--bg-gray-700);
    cursor: pointer;
    width: 100%;
}

/* Submit button - inline style */
.bg-search-form-wrapper .rz-search-form .rz-search-submit {
    margin: 0;
    flex: 0 0 auto;
    width: auto;
}

.bg-search-form-wrapper .rz-search-form .rz-search-submit button,
.bg-search-form-wrapper .rz-search-form button[type="submit"] {
    background: var(--bg-primary);
    color: var(--bg-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.bg-search-form-wrapper .rz-search-form .rz-search-submit button:hover,
.bg-search-form-wrapper .rz-search-form button[type="submit"]:hover {
    background: var(--bg-primary-dark);
}

.bg-search-form-wrapper .rz-search-form .rz--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bg-search-form-wrapper .rz-search-form .rz--icon i {
    font-size: 16px;
}

/* Hide Routiz preloader if present */
.bg-search-form-wrapper .rz-search-form .rz-preloader {
    display: none;
}

/* All fields in same row - equal flex */
.bg-search-form-wrapper .rz-search-form .rz-mod:first-child,
.bg-search-form-wrapper .rz-search-form .rz-search-mods>*:first-child {
    flex: 1 1 auto !important;
    min-width: 120px;
}

/* Dates field */
.bg-search-form-wrapper .rz-search-form .rz-mod:nth-child(2),
.bg-search-form-wrapper .rz-search-form .rz-search-mods>*:nth-child(2) {
    flex: 1 1 auto !important;
    min-width: 100px;
}

/* Hide region/country field (4th field) */
.bg-search-form-wrapper .rz-search-form .rz-mod:nth-child(4),
.bg-search-form-wrapper .rz-search-form .rz-search-mods>*:nth-child(4) {
    display: none !important;
}

/* Make dropdowns open upward */
.bg-search-form-wrapper .rz-search-form .rz-dropdown-popup,
.bg-search-form-wrapper .rz-search-form .rz-popup,
.bg-search-form-wrapper .rz-search-form .rz-calendar-popup,
.bg-search-form-wrapper .rz-search-form .rz-guests-popup,
.bg-search-form-wrapper .rz-search-form .dropdown-menu,
.bg-search-form-wrapper .rz-search-form [class*="popup"],
.bg-search-form-wrapper .rz-search-form [class*="dropdown"]>div,
.bg-search-form-wrapper .rz-search-form .rz-mod .rz--dropdown {
    bottom: 100% !important;
    top: auto !important;
    transform-origin: bottom center;
    margin-bottom: 8px;
    margin-top: 0 !important;
}

/* Ensure dropdown containers have relative positioning for upward popups */
.bg-search-form-wrapper .rz-search-form .rz-mod {
    position: relative;
}

/* ===========================
   CALENDAR POPUP - Float to the right
   =========================== */
.bg-search-form-wrapper .rz-search-form .rz-calendar-popup,
.bg-search-form-wrapper .rz-search-form [class*="calendar"],
.bg-search-form-wrapper .rz-search-form .flatpickr-calendar,
.bg-search-form-wrapper .rz-search-form .datepicker {
    transform: none !important;
    width: 320px !important;
    max-width: 100% !important;
    left: 100% !important;
    right: auto !important;
    top: 0 !important;
    bottom: auto !important;
    margin-left: 16px !important;
    margin-bottom: 0 !important;
}

/* Remove dark background from calendar navigation arrows */
.bg-search-form-wrapper .rz-search-form .rz-calendar-popup .rz--prev,
.bg-search-form-wrapper .rz-search-form .rz-calendar-popup .rz--next,
.bg-search-form-wrapper .rz-search-form .flatpickr-prev-month,
.bg-search-form-wrapper .rz-search-form .flatpickr-next-month,
.bg-search-form-wrapper .rz-search-form [class*="calendar"] button,
.bg-search-form-wrapper .rz-search-form [class*="calendar"] .rz--btn {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.bg-search-form-wrapper .rz-search-form .rz-calendar-popup .rz--prev:hover,
.bg-search-form-wrapper .rz-search-form .rz-calendar-popup .rz--next:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 50%;
}

/* Compact calendar inner elements */
.bg-search-form-wrapper .rz-search-form .rz-calendar-popup *,
.bg-search-form-wrapper .rz-search-form .flatpickr-calendar * {
    font-size: 12px !important;
}

.bg-search-form-wrapper .rz-search-form .rz-calendar-popup td,
.bg-search-form-wrapper .rz-search-form .rz-calendar-popup th,
.bg-search-form-wrapper .rz-search-form .flatpickr-day {
    padding: 4px !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
}

.bg-search-form-wrapper .rz-search-form .rz-calendar-popup .rz-calendar-month,
.bg-search-form-wrapper .rz-search-form .flatpickr-month {
    padding: 6px 8px !important;
    font-size: 13px !important;
}

/* ===========================
   HIDE GUESTS / ADJUST LAYOUT
   =========================== */
/* Show guests elements - commented out hiding rule */
/*
.bg-search-form-wrapper .rz-search-form .rz-guests-popup,
.bg-search-form-wrapper .rz-search-form [class*="guests"],
.bg-search-form-wrapper .rz-search-form .rz-guests-root {
    display: none !important;
}
*/

/* Force layout to be side-by-side for address and dates */
/* Container */
.bg-search-form-wrapper .rz-search-form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px;
    box-sizing: border-box !important;
}

/* Ensure all children use border-box */
.bg-search-form-wrapper .rz-search-form * {
    box-sizing: border-box !important;
}

/* Desktop layout: Fields side-by-side, button below */
@media (min-width: 768px) {

    /* Force the form to allow wrapping */
    .bg-search-form-wrapper .rz-search-form,
    .bg-search-form-wrapper .rz-search-form form,
    .bg-search-form-wrapper .rz-search-form .rz--form {
        flex-wrap: wrap !important;
    }

    /* Search mods container - takes full width */
    .bg-search-form-wrapper .rz-search-form .rz-search-mods {
        flex: 1 1 100% !important;
        width: 100% !important;
        margin-bottom: 8px !important;
    }

    /* Address: auto expand */
    .bg-search-form-wrapper .rz-search-form>div:first-child,
    .bg-search-form-wrapper .rz-search-form .rz-mod:first-of-type,
    .bg-search-form-wrapper .rz-search-form .rz-search-mods .rz-mod:first-child {
        flex: 1 1 auto !important;
        width: auto !important;
        margin-right: 0 !important;
    }

    /* Target the Dates wrapper SPECIFICALLY */
    .bg-search-form-wrapper .rz-search-form .rz-calendar-wrapped,
    .bg-search-form-wrapper .rz-search-form .rz-search-mods .rz-mod:nth-child(2) {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    /* Button: Full width below fields - force new row */
    .bg-search-form-wrapper .rz-search-form .rz-button-wrapped,
    .bg-search-form-wrapper .rz-search-form .rz-search-submit {
        flex: 1 1 100% !important;
        width: 100% !important;
        margin-top: 4px !important;
        margin-left: 0 !important;
        order: 99 !important;
    }

    .bg-search-form-wrapper .rz-search-form .rz-search-submit button,
    .bg-search-form-wrapper .rz-search-form button[type="submit"] {
        width: 100% !important;
        justify-content: center !important;
        border-radius: var(--radius-full) !important;
    }
}

.bg-search-form-wrapper .rz-search-form .rz-guests-popup .rz-guest-row,
.bg-search-form-wrapper .rz-search-form .rz-counter-popup .rz-counter-row,
.bg-search-form-wrapper .rz-search-form [class*="guests"] .rz-guest-item {
    padding: 6px 0 !important;
    gap: 8px !important;
}

/* Compact counter buttons */
.bg-search-form-wrapper .rz-search-form .rz-counter-btn,
.bg-search-form-wrapper .rz-search-form [class*="guests"] button {
    width: 26px !important;
    height: 26px !important;
    font-size: 14px !important;
    line-height: 26px !important;
}

/* ===========================
   SECTIONS BASE
   =========================== */
.bg-section {
    padding: 80px 0;
}

.bg-section-alt {
    background: var(--bg-gray-50);
}

.bg-section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--bg-gray-900);
    text-align: center;
    margin-bottom: 16px;
}

.bg-section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--bg-gray-600);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ===========================
   FEATURES SECTION
   =========================== */
.bg-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.bg-feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    /* Refined layered shadow */
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06);
    /* Subtle border for polish */
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-feature-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 12px 24px rgba(0, 0, 0, 0.1),
        0 24px 48px rgba(27, 76, 130, 0.1);
    border-color: transparent;
}

.bg-feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--bg-primary-light) 0%, var(--bg-primary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    /* Subtle glow */
    box-shadow: 0 4px 16px rgba(27, 76, 130, 0.25);
    transition: all 0.3s ease;
}

.bg-feature-card:hover .bg-feature-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(27, 76, 130, 0.35);
}

.bg-feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--bg-white);
}

.bg-feature-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--bg-gray-900);
    margin-bottom: 12px;
}

.bg-feature-text {
    font-size: var(--font-size-base);
    color: var(--bg-gray-600);
    line-height: 1.7;
}

/* ===========================
   LIFESTYLE CARDS SECTION
   =========================== */
.bg-lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bg-lifestyle-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}

.bg-lifestyle-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.bg-lifestyle-card:hover img {
    transform: scale(1.05);
}

.bg-lifestyle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bg-lifestyle-tag {
    display: inline-block;
    background: var(--bg-primary);
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.bg-lifestyle-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 8px;
    white-space: nowrap;
}

.bg-lifestyle-text {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.bg-lifestyle-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bg-white);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.bg-lifestyle-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform var(--transition-fast);
}

.bg-lifestyle-card:hover .bg-lifestyle-link svg {
    transform: translateX(4px);
}

/* ===========================
   TECH EXPERIENCE SECTION
   =========================== */
.bg-tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.bg-tech-text h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--bg-gray-900);
    margin-bottom: 24px;
}

.bg-tech-text p {
    font-size: var(--font-size-lg);
    color: var(--bg-gray-600);
    margin-bottom: 32px;
}

.bg-tech-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bg-tech-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bg-tech-feature-icon {
    width: 24px;
    height: 24px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-tech-feature-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--bg-white);
}

.bg-tech-feature span {
    font-size: var(--font-size-base);
    color: var(--bg-gray-700);
}

.bg-tech-mockup {
    position: relative;
}

.bg-tech-mockup img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */
.bg-testimonials-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.bg-testimonials-slider::-webkit-scrollbar {
    height: 6px;
}

.bg-testimonials-slider::-webkit-scrollbar-track {
    background: var(--bg-gray-200);
    border-radius: var(--radius-full);
}

.bg-testimonials-slider::-webkit-scrollbar-thumb {
    background: var(--bg-primary);
    border-radius: var(--radius-full);
}

.bg-testimonial-card {
    flex: 0 0 360px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
    transition: transform var(--transition-base);
}

.bg-testimonial-card:hover {
    transform: translateY(-4px);
}

.bg-testimonial-video {
    position: relative;
    height: 200px;
    background: var(--bg-gray-200);
}

.bg-testimonial-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-testimonial-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: var(--bg-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.bg-testimonial-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.bg-testimonial-play svg {
    width: 24px;
    height: 24px;
    fill: var(--bg-primary);
    margin-left: 4px;
}

.bg-testimonial-content {
    padding: 24px;
}

.bg-testimonial-quote {
    font-size: var(--font-size-base);
    color: var(--bg-gray-700);
    margin-bottom: 16px;
    line-height: 1.6;
}

.bg-testimonial-author {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--bg-gray-900);
}

.bg-testimonial-role {
    font-size: var(--font-size-xs);
    color: var(--bg-gray-500);
}

/* ===========================
   COMPANIES SECTION
   =========================== */
.bg-companies {
    padding: 60px 0;
    background: var(--bg-gray-50);
}

.bg-companies-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--bg-gray-600);
    text-align: center;
    margin-bottom: 32px;
}

.bg-companies-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 48px;
}

.bg-company-logo {
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    height: 32px;
}

.bg-company-logo:hover {
    opacity: 1;
}

.bg-company-logo img {
    height: 100%;
    width: auto;
    filter: grayscale(100%);
    transition: filter var(--transition-fast);
}

.bg-company-logo:hover img {
    filter: grayscale(0%);
}

/* ===========================
   CITIES SECTION
   =========================== */
.bg-cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bg-city-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}

.bg-city-card.large {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
}

.bg-city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.bg-city-card:hover img {
    transform: scale(1.05);
}

.bg-city-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bg-city-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 4px;
}

.bg-city-count {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
}

.bg-city-card.large .bg-city-name {
    font-size: var(--font-size-2xl);
}

/* Note: Header/footer hiding rules removed - now using shared theme templates */

/* ===========================
   FOOTER
   =========================== */
.bg-footer {
    background: var(--bg-white);
    color: var(--bg-primary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--bg-gray-200);
}

.bg-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.bg-footer-brand p {
    color: var(--bg-gray-600);
    font-size: var(--font-size-sm);
    margin-top: 16px;
    line-height: 1.6;
}

.bg-footer-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.bg-footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-gray-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.bg-footer-social a:hover {
    background: var(--bg-primary);
}

.bg-footer-social a:hover svg {
    fill: var(--bg-white);
}

.bg-footer-social svg {
    width: 20px;
    height: 20px;
    fill: var(--bg-primary);
}

.bg-footer-column h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--bg-primary);
}

.bg-footer-column ul {
    list-style: none;
}

.bg-footer-column li {
    margin-bottom: 12px;
}

.bg-footer-column a {
    color: var(--bg-primary);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.bg-footer-column a:hover {
    color: var(--bg-primary-dark);
    text-decoration: underline;
}

.bg-footer-bottom {
    border-top: 1px solid var(--bg-gray-200);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bg-footer-copyright {
    font-size: var(--font-size-sm);
    color: var(--bg-gray-600);
}

.bg-footer-legal {
    display: flex;
    gap: 24px;
}

.bg-footer-legal a {
    font-size: var(--font-size-sm);
    color: var(--bg-primary);
    transition: color var(--transition-fast);
}

.bg-footer-legal a:hover {
    color: var(--bg-primary-dark);
    text-decoration: underline;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-animate {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.bg-animate-delay-1 {
    animation-delay: 0.1s;
}

.bg-animate-delay-2 {
    animation-delay: 0.2s;
}

.bg-animate-delay-3 {
    animation-delay: 0.3s;
}

.bg-animate-delay-4 {
    animation-delay: 0.4s;
}

/* ===========================
   RESPONSIVE STYLES
   =========================== */
/* Tablet Breakpoint - Smooth transitions */
@media (max-width: 1024px) {

    /* Hero adjustments for tablet */
    .bg-hero-content {
        margin-left: clamp(24px, 5vw, 80px);
        padding: 40px 40px;
        max-width: 480px;
        border-radius: 0 0 60px 0;
    }

    .bg-hero-title {
        font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    }

    /* Section adjustments */
    .bg-section {
        padding: 64px 0;
    }

    .bg-section-title {
        font-size: var(--font-size-2xl);
    }

    .bg-features-grid,
    .bg-lifestyle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .bg-feature-card {
        padding: 32px 24px;
    }

    .bg-cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .bg-city-card.large {
        grid-column: span 1;
        grid-row: span 1;
        height: 280px;
    }

    /* Tech section tablet layout */
    .bg-tech-content {
        gap: 48px;
    }

    .bg-tech-text h2 {
        font-size: var(--font-size-2xl);
    }

    .bg-footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {

    /* ===========================
       MOBILE NAVIGATION
       =========================== */
    .bg-nav {
        display: none;
    }

    .bg-mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bg-mobile-menu-btn svg {
        width: 24px;
        height: 24px;
        stroke: var(--bg-gray-700);
    }

    .bg-header.transparent .bg-mobile-menu-btn svg {
        stroke: var(--bg-white);
    }

    /* ===========================
       MOBILE HERO SECTION
       =========================== */
    .bg-hero {
        min-height: auto;
        padding-top: 60px;
    }

    .bg-hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: 100%;
        border-radius: 0;
        opacity: 0.3;
    }

    .bg-hero::before {
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.95) 0%,
                rgba(255, 255, 255, 0.85) 50%,
                rgba(255, 255, 255, 0.95) 100%);
    }

    .bg-hero-content {
        position: relative;
        padding: 40px 20px 48px;
        max-width: 100%;
        margin: 0;
        margin-left: 0;
        min-height: auto;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        text-align: center;
    }

    .bg-hero-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .bg-hero-subtitle {
        font-size: var(--font-size-sm);
        max-width: 100%;
        margin-bottom: 24px;
    }

    /* ===========================
       MOBILE SEARCH FORM
       =========================== */
    .bg-search-bar,
    .bg-search-form-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .bg-search-bar {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 12px;
        gap: 8px;
    }

    .bg-search-field {
        width: 100%;
        padding: 14px 16px;
        background: var(--bg-gray-50);
        border-radius: var(--radius-md);
    }

    .bg-search-divider {
        display: none;
    }

    .bg-search-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        margin-top: 4px;
    }

    /* Routiz Search Form Mobile Override */
    .bg-search-form-wrapper .rz-search-form {
        flex-direction: column !important;
        border-radius: var(--radius-lg) !important;
        padding: 12px !important;
        gap: 8px !important;
    }

    .bg-search-form-wrapper .rz-search-form form,
    .bg-search-form-wrapper .rz-search-form .rz--form,
    .bg-search-form-wrapper .rz-search-form .rz-search-mods {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .bg-search-form-wrapper .rz-search-form .rz-mod,
    .bg-search-form-wrapper .rz-search-form .rz-search-field {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--bg-gray-200) !important;
        padding: 12px 16px !important;
        background: var(--bg-gray-50) !important;
        border-radius: var(--radius-md) !important;
    }

    .bg-search-form-wrapper .rz-search-form .rz-mod:last-of-type {
        border-bottom: none !important;
    }

    .bg-search-form-wrapper .rz-search-form .rz-search-submit,
    .bg-search-form-wrapper .rz-search-form .rz-button-wrapped {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 8px !important;
    }

    .bg-search-form-wrapper .rz-search-form .rz-search-submit button,
    .bg-search-form-wrapper .rz-search-form button[type="submit"] {
        width: 100% !important;
        padding: 14px 24px !important;
    }

    /* ===========================
       MOBILE SECTIONS
       =========================== */
    .bg-section {
        padding: 48px 0;
    }

    .bg-container {
        padding: 0 16px;
    }

    .bg-section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: 12px;
    }

    .bg-section-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: 32px;
    }

    /* ===========================
       MOBILE FEATURES GRID
       =========================== */
    .bg-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bg-feature-card {
        padding: 24px;
    }

    .bg-feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .bg-feature-icon svg {
        width: 28px;
        height: 28px;
    }

    .bg-feature-title {
        font-size: var(--font-size-lg);
    }

    /* ===========================
       MOBILE LIFESTYLE CARDS
       =========================== */
    .bg-lifestyle-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bg-lifestyle-card {
        height: 280px;
    }

    .bg-lifestyle-overlay {
        padding: 24px;
    }

    .bg-lifestyle-title {
        font-size: var(--font-size-xl);
    }

    .bg-lifestyle-text {
        font-size: var(--font-size-sm);
    }

    /* ===========================
       MOBILE TECH SECTION
       =========================== */
    .bg-tech-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bg-tech-text {
        order: 1;
    }

    .bg-tech-mockup {
        order: 2;
    }

    .bg-tech-text h2 {
        font-size: var(--font-size-2xl);
        margin-bottom: 16px;
    }

    .bg-tech-text p {
        font-size: var(--font-size-base);
        margin-bottom: 24px;
    }

    .bg-tech-features {
        gap: 12px;
    }

    .bg-tech-feature span {
        font-size: var(--font-size-sm);
    }

    /* ===========================
       MOBILE TESTIMONIALS
       =========================== */
    .bg-testimonial-card {
        flex: 0 0 280px;
    }

    .bg-testimonial-video {
        height: 160px;
    }

    .bg-testimonial-content {
        padding: 20px;
    }

    .bg-testimonial-quote {
        font-size: var(--font-size-sm);
    }

    /* ===========================
       MOBILE COMPANIES
       =========================== */
    .bg-companies {
        padding: 40px 0;
    }

    .bg-companies-title {
        font-size: var(--font-size-base);
        margin-bottom: 24px;
    }

    .bg-companies-grid {
        gap: 24px 32px;
    }

    .bg-company-logo {
        height: 24px;
    }

    /* ===========================
       MOBILE CITIES GRID
       =========================== */
    .bg-cities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bg-city-card {
        height: 200px;
    }

    .bg-city-card.large {
        height: 240px;
    }

    .bg-city-overlay {
        padding: 20px;
    }

    .bg-city-name {
        font-size: var(--font-size-lg);
    }

    .bg-city-card.large .bg-city-name {
        font-size: var(--font-size-xl);
    }

    /* ===========================
       MOBILE FOOTER
       =========================== */
    .bg-footer {
        padding: 48px 0 24px;
    }

    .bg-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bg-footer-brand {
        text-align: center;
    }

    .bg-footer-social {
        justify-content: center;
    }

    .bg-footer-column {
        text-align: center;
    }

    .bg-footer-column h4 {
        margin-bottom: 16px;
    }

    .bg-footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .bg-footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* ===========================
   EXTRA SMALL DEVICES (480px and below)
   =========================== */
@media (max-width: 480px) {
    .bg-hero-content {
        padding: 32px 16px 40px;
    }

    .bg-hero-title {
        font-size: 1.5rem;
    }

    .bg-section {
        padding: 40px 0;
    }

    .bg-section-title {
        font-size: var(--font-size-xl);
    }

    .bg-section-subtitle {
        font-size: var(--font-size-sm);
    }

    .bg-feature-card {
        padding: 20px;
    }

    .bg-lifestyle-card {
        height: 240px;
    }

    .bg-testimonial-card {
        flex: 0 0 260px;
    }

    .bg-city-card {
        height: 180px;
    }

    .bg-city-card.large {
        height: 200px;
    }

    .bg-companies-grid {
        gap: 20px 24px;
    }

    .bg-company-logo {
        height: 20px;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.bg-text-center {
    text-align: center;
}

.bg-mt-4 {
    margin-top: 16px;
}

.bg-mt-8 {
    margin-top: 32px;
}

.bg-mb-4 {
    margin-bottom: 16px;
}

.bg-mb-8 {
    margin-bottom: 32px;
}

/* ===========================
   PHONE MOCKUP (Tech Section)
   =========================== */
.bg-phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
}

.bg-phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    z-index: 10;
}

.bg-phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-primary-dark) 100%);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bg-app-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 48px 24px 20px;
    text-align: center;
}

.bg-app-header span {
    color: var(--bg-white);
    font-size: var(--font-size-xl);
    font-weight: 700;
    letter-spacing: 2px;
}

.bg-app-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bg-app-welcome {
    color: var(--bg-white);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 8px;
}

.bg-app-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.bg-app-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.bg-app-card-icon {
    font-size: 28px;
}

.bg-app-card-text {
    color: var(--bg-white);
    font-size: var(--font-size-base);
    font-weight: 500;
}

/* ===========================
   CITY TABS
   =========================== */
.bg-cities-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.bg-cities-tab {
    background: transparent;
    border: 2px solid var(--bg-gray-200);
    color: var(--bg-gray-600);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bg-cities-tab:hover {
    border-color: var(--bg-primary);
    color: var(--bg-primary);
}

.bg-cities-tab.active {
    background: var(--bg-primary);
    border-color: var(--bg-primary);
    color: var(--bg-white);
}

/* ===========================
   CTA SECTION
   =========================== */
.bg-cta {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-primary-dark) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bg-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: floatBg 15s ease-in-out infinite;
}

@keyframes floatBg {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

.bg-cta-content {
    position: relative;
    z-index: 1;
}

.bg-cta h2 {
    color: var(--bg-white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.bg-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto 32px;
}

.bg-cta-button {
    display: inline-block;
    background: var(--bg-white);
    color: var(--bg-primary);
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.bg-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ===========================
   UNDERLINE TEXT STYLING
   =========================== */
.bg-hero-subtitle .underline {
    text-decoration: underline;
    text-decoration-color: var(--bg-primary);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

/* ===========================
   RESPONSIVE: PHONE MOCKUP
   =========================== */
@media (max-width: 768px) {
    .bg-phone-mockup {
        width: 220px;
        height: 440px;
        border-radius: 32px;
    }

    .bg-phone-mockup::before {
        width: 80px;
        height: 20px;
    }

    .bg-phone-screen {
        border-radius: 24px;
    }

    .bg-app-header {
        padding: 40px 16px 16px;
    }

    .bg-app-header span {
        font-size: var(--font-size-lg);
    }

    .bg-app-content {
        padding: 16px;
        gap: 12px;
    }

    .bg-app-card {
        padding: 14px;
        gap: 12px;
    }

    .bg-app-card-icon {
        font-size: 22px;
    }

    .bg-app-card-text {
        font-size: var(--font-size-sm);
    }

    /* City tabs mobile */
    .bg-cities-tabs {
        gap: 6px;
        margin-bottom: 24px;
    }

    .bg-cities-tab {
        padding: 8px 16px;
        font-size: var(--font-size-xs);
    }

    /* CTA mobile */
    .bg-cta {
        padding: 60px 0;
    }

    .bg-cta h2 {
        font-size: var(--font-size-2xl);
    }

    .bg-cta p {
        font-size: var(--font-size-base);
        margin-bottom: 24px;
    }

    .bg-cta-button {
        padding: 14px 32px;
        font-size: var(--font-size-sm);
    }
}

/* ===========================
   SILKY SCROLL REVEAL ANIMATIONS
   Antigravity-inspired fluid effects
   =========================== */

/* Base reveal state - hidden initially */
.bg-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 800ms var(--ease-out-expo),
        transform 800ms var(--ease-out-expo);
    will-change: opacity, transform;
}

.bg-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal from left */
.bg-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity 800ms var(--ease-out-expo),
        transform 800ms var(--ease-out-expo);
    will-change: opacity, transform;
}

.bg-reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal with scale */
.bg-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition:
        opacity 700ms var(--ease-smooth),
        transform 700ms var(--ease-smooth);
    will-change: opacity, transform;
}

.bg-reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays for grid items */
.bg-reveal-stagger-1 {
    transition-delay: 0ms;
}

.bg-reveal-stagger-2 {
    transition-delay: 100ms;
}

.bg-reveal-stagger-3 {
    transition-delay: 200ms;
}

.bg-reveal-stagger-4 {
    transition-delay: 300ms;
}

.bg-reveal-stagger-5 {
    transition-delay: 400ms;
}

.bg-reveal-stagger-6 {
    transition-delay: 500ms;
}

/* ===========================
   PARALLAX SCROLL EFFECTS
   =========================== */
.bg-parallax {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Hero parallax background */
.bg-hero-bg {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ===========================
   ENHANCED HOVER MICRO-INTERACTIONS
   =========================== */

/* Feature cards - silky lift */
.bg-feature-card {
    transition:
        transform 500ms var(--ease-spring),
        box-shadow 500ms var(--ease-smooth),
        border-color 300ms var(--ease-smooth);
}

.bg-feature-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.08),
        0 32px 64px rgba(27, 76, 130, 0.12);
}

/* Feature icon glow effect */
.bg-feature-icon {
    transition:
        transform 500ms var(--ease-spring),
        box-shadow 500ms var(--ease-smooth);
}

.bg-feature-card:hover .bg-feature-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 8px 24px rgba(27, 76, 130, 0.4),
        0 0 40px rgba(59, 130, 246, 0.2);
}

/* Lifestyle cards - smooth image zoom */
.bg-lifestyle-card img {
    transition: transform 800ms var(--ease-out-expo);
}

.bg-lifestyle-card:hover img {
    transform: scale(1.08);
}

/* Lifestyle link arrow animation */
.bg-lifestyle-link svg {
    transition: transform 400ms var(--ease-spring);
}

.bg-lifestyle-card:hover .bg-lifestyle-link svg {
    transform: translateX(8px);
}

/* City cards - fluid zoom */
.bg-city-card img {
    transition: transform 800ms var(--ease-out-expo);
}

.bg-city-card:hover img {
    transform: scale(1.08);
}

/* City card overlay fade */
.bg-city-overlay {
    transition: background 600ms var(--ease-smooth);
}

.bg-city-card:hover .bg-city-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 60%);
}

/* Testimonial cards - smooth lift */
.bg-testimonial-card {
    transition:
        transform 500ms var(--ease-spring),
        box-shadow 500ms var(--ease-smooth);
}

.bg-testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.06);
}

/* Play button pulse effect */
.bg-testimonial-play {
    transition:
        transform 400ms var(--ease-spring),
        box-shadow 400ms var(--ease-smooth);
}

.bg-testimonial-card:hover .bg-testimonial-play {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 0 0 8px rgba(27, 76, 130, 0.15);
}

/* CTA button - spring hover */
.bg-cta-button {
    transition:
        transform 400ms var(--ease-spring),
        box-shadow 400ms var(--ease-smooth),
        background-color 300ms var(--ease-smooth);
}

.bg-cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 16px 48px rgba(27, 76, 130, 0.15);
}

/* City tabs - silky transition */
.bg-cities-tab {
    transition:
        all 400ms var(--ease-smooth),
        transform 300ms var(--ease-spring);
}

.bg-cities-tab:hover {
    transform: translateY(-2px);
}

.bg-cities-tab:active {
    transform: translateY(0) scale(0.98);
}

/* Search button - smooth press */
.bg-search-btn {
    transition:
        background-color 300ms var(--ease-smooth),
        transform 250ms var(--ease-spring),
        box-shadow 300ms var(--ease-smooth);
}

.bg-search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(27, 76, 130, 0.3);
}

.bg-search-btn:active {
    transform: scale(0.98);
}

/* App card interactions - buttery smooth */
.bg-app-card {
    transition:
        background 400ms var(--ease-smooth),
        transform 400ms var(--ease-spring);
}

.bg-app-card:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateX(8px);
}

/* ===========================
   SMOOTH SCROLL BEHAVIOR
   =========================== */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .bg-reveal,
    .bg-reveal-left,
    .bg-reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================
   HERO CONTENT ENHANCED ANIMATION
   =========================== */
.bg-hero-content {
    animation: heroSlideIn 1s var(--ease-out-expo) forwards;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* Subtle floating animation for phone mockup */
.bg-phone-mockup {
    animation: phoneFloat 4s var(--ease-in-out-smooth) infinite;
}

@keyframes phoneFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Companies logo subtle fade */
.bg-company-logo {
    transition:
        opacity 400ms var(--ease-smooth),
        transform 400ms var(--ease-spring);
}

.bg-company-logo:hover {
    opacity: 1;
    transform: scale(1.08);
}