/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066cc;
    --dark-blue: #004499;
    --light-blue: #e6f2ff;
    --gradient-blue: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --purple: #8b5cf6;
    --orange: #f97316;
    --green: #10b981;
    --teal: #14b8a6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* Breakpoints (documented constants) */
    --bp-xs: 480px;
    --bp-sm: 768px;
    --bp-md: 1024px;
    --bp-lg: 1280px;
}

html {
    overflow-x: hidden;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* Media defaults */
img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

/* Layout helpers */
.min-w-0 { min-width: 0 !important; }
.w-100 { width: 100% !important; }
.max-w-100 { max-width: 100% !important; }

/* Visibility helpers */
.hide-xs { display: none !important; }
.only-xs { display: none !important; }

@media (max-width: 480px) {
    .only-xs { display: block !important; }
}
@media (min-width: 481px) {
    .hide-xs { display: initial !important; }
}

/* Stack helpers */
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.stack-sm { display: block; }
@media (max-width: 768px) {
    .stack-sm { display: flex; flex-direction: column; gap: 0.75rem; }
}

/* Horizontal scroll helper (fallback for tables) */
.scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Safe-area padding helpers (useful for fixed headers/footers) */
.safe-x {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
.safe-top { padding-top: env(safe-area-inset-top); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 3rem;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-blue);
    flex-shrink: 0;
    max-width: 200px;
}

.logo i {
    font-size: 1.5rem;
}

.logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
    margin-left: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    white-space: nowrap;
    padding: 0.25rem 0;
}

.nav a:hover {
    color: var(--primary-blue);
}

/* Dropdown Navigation */
.nav-item-dropdown {
    position: static;
}

.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s;
    margin-left: 0.25rem;
}

.nav-item-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    min-width: 280px;
    padding: 0.5rem 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-mega {
    position: fixed;
    width: 100vw;
    left: 0;
    right: 0;
    top: 3rem;
    min-height: 60vh;
    padding: 3rem 5%;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-top: 0;
    z-index: 999;
}

.nav-item-dropdown.active .dropdown-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.dropdown-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 50vh;
    align-content: start;
}

@media (max-width: 1200px) {
    .dropdown-mega {
        padding: 2.5rem 4%;
    }
    
    .dropdown-columns {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 3rem;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dropdown-mega {
        width: 100vw;
        left: 0;
        right: 0;
        top: 80px;
        min-height: 60vh;
        transform: translateY(-10px);
        padding: 2rem 1.5rem;
    }
    
    .nav-item-dropdown.active .dropdown-mega {
        transform: translateY(0);
    }
    
    .dropdown-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
}

.dropdown-column-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem 0;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
    min-width: 0;
    width: 100%;
}

.dropdown-item:hover {
    color: var(--primary-blue);
    border-bottom-color: #e0e0e0;
}

.dropdown-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    flex: 1;
}

.dropdown-item-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.2s;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dropdown-item:hover .dropdown-item-label {
    color: var(--primary-blue);
}

.dropdown-item-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    display: block;
    white-space: normal;
    hyphens: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-light);
    font-size: 0.9rem;
    z-index: 1;
}

.search-box input {
    padding: 0.4rem 0.9rem 0.4rem 2.3rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    width: 200px;
    font-size: 0.85rem;
    transition: border-color 0.3s, width 0.3s;
}

.search-box input:focus {
    border-color: var(--primary-blue);
    width: 250px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
}

.btn-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: var(--primary-blue);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    display: inline-block;
    border-radius: 8px;
    background: var(--white);
    color: var(--primary-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary.btn-large:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-outline {
    padding: 0.75rem 1.5rem;
    border: 2px solid;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    background: var(--white);
}

.btn-outline.blue {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline.blue:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-outline.green {
    border-color: var(--green);
    color: var(--green);
}

.btn-outline.green:hover {
    background: var(--green);
    color: var(--white);
}

.btn-outline.orange {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-outline.orange:hover {
    background: var(--orange);
    color: var(--white);
}

.btn-outline.purple {
    border-color: var(--purple);
    color: var(--purple);
}

.btn-outline.purple:hover {
    background: var(--purple);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: var(--gradient-blue);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 1;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300" stroke="rgba(255,255,255,0.05)" fill="none" stroke-width="2"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.hero .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 60px);
    padding: 3rem 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hero-text h1 {
    font-size: 3.3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: -0.02em;
    color: var(--white);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
    opacity: 0.92;
    line-height: 1.8;
    font-weight: 400;
    color: var(--white);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-actions .btn-primary.btn-large {
    text-transform: none;
}

.hero-actions .note {
    font-size: 0.9rem;
    opacity: 0.85;
    color: var(--white);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    animation: fadeInRight 1s ease-out 0.8s both;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 20px;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

.hero-banner-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    /*border: 1px solid rgba(255, 255, 255, 0.1);*/
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    transform: scale(1.15) translateX(-20px);
}

.hero-banner-image:hover {
    transform: scale(1.18) translateX(-20px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Laptop Mockup */
.laptop-mockup {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    perspective: 1000px;
}

.laptop-screen {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px 12px 2px 2px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.laptop-screen::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #1a1d29;
    border-radius: 2px;
}

.laptop-screen-inner {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

/* Laptop Tabs */
.laptop-tabs {
    display: flex;
    gap: 0;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 0;
    flex-shrink: 0;
}

.laptop-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.laptop-tab i {
    font-size: 0.9rem;
}

.laptop-tab:hover {
    background: rgba(0, 102, 204, 0.05);
    color: var(--primary-blue);
}

.laptop-tab.active {
    background: var(--white);
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    font-weight: 600;
}

/* Tab Content */
.laptop-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.laptop-tab-content.active {
    display: flex;
    flex-direction: column;
}

.dashboard-preview,
.payments-preview,
.maintenance-preview {
    background: var(--white);
    padding: 0.75rem;
    color: var(--text-dark);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}

.laptop-keyboard {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    height: 40px;
    border-radius: 0 0 8px 8px;
    margin-top: -2px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.laptop-keyboard::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: #1a1d29;
    border-radius: 2px;
}

.laptop-trackpad {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 50px;
    background: #1a1d29;
    border-radius: 4px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.dashboard-header i {
    font-size: 1rem;
}

.dashboard-stats {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.dashboard-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
}

.dashboard-header {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.stat-number {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.8rem;
}

.dashboard-menu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.5rem;
    min-height: auto;
}

.dashboard-menu a i {
    font-size: 0.9rem;
}

.dashboard-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-blue);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.dashboard-menu a i {
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.dashboard-menu a:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.dashboard-menu a:hover i {
    color: var(--white);
}

/* Payments Tab Styles */
.payments-preview {
    padding: 0.75rem;
}

.payments-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.payments-info {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    flex-shrink: 0;
}

.payment-amount {
    margin-bottom: 0.75rem;
}

.amount-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.amount-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.amount-period {
    font-size: 0.8rem;
    color: var(--text-light);
}

.payment-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.payment-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.payment-badge.overdue {
    background: #f8d7da;
    color: #721c24;
}

.payment-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-direction: column;
    flex-shrink: 0;
}

.btn-pay-now,
.btn-auto-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pay-now {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-pay-now:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-auto-pay {
    background: #e9ecef;
    color: var(--text-dark);
}

.btn-auto-pay:hover {
    background: #dee2e6;
}

.payment-history {
    margin-top: 0.75rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

.history-table {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.history-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.7rem;
}

.history-row:last-child {
    border-bottom: none;
}

.history-row.header {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--text-dark);
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.paid {
    background: #d4edda;
    color: #155724;
}

.status-badge.urgent {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.in-progress {
    background: #d1ecf1;
    color: #0c5460;
}

/* Maintenance Tab Styles */
.maintenance-preview {
    padding: 0.75rem;
}

.maintenance-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.maintenance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.maintenance-stat {
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.maintenance-stat .stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.15rem;
}

.maintenance-stat .stat-label {
    font-size: 0.65rem;
    color: var(--text-light);
}

.maintenance-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.maintenance-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--primary-blue);
    flex-shrink: 0;
}

.maintenance-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--light-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.maintenance-icon.urgent {
    background: #fff3cd;
    color: #f97316;
}

.maintenance-info {
    flex: 1;
}

.maintenance-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.maintenance-detail {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Automation Section */
.automation {
    padding: 5rem 0;
    background: var(--white);
    overflow-x: hidden;
    width: 100%;
}

.automation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.automation-text {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.automation-text h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.automation-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.btn-automation {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #f0f0f0;
    color: var(--text-dark);
    border: 1px solid #ddd;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-automation:hover {
    background: #e0e0e0;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.automation-illustration {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

.laptop-dashboard-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.illustration-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.house-icon {
    width: 60px;
    height: 60px;
    background: var(--orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.chart-bars {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    height: 60px;
}

.bar {
    width: 20px;
    border-radius: 4px 4px 0 0;
}

.bar-purple {
    background: var(--purple);
    height: 45px;
}

.bar-blue {
    background: var(--primary-blue);
    height: 60px;
}

.illustration-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    position: relative;
}

.magnifying-glass {
    position: relative;
    width: 120px;
    height: 120px;
}

.magnifier-ring {
    width: 100px;
    height: 100px;
    border: 4px solid var(--dark-blue);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.magnifier-ring::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 30px;
    height: 4px;
    background: var(--dark-blue);
    transform: rotate(45deg);
}

.chart-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-blue) 0deg 180deg, var(--light-blue) 180deg 360deg);
    position: absolute;
    top: 10px;
    left: 10px;
}

.chart-circle-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--green) 0deg 120deg, var(--light-blue) 120deg 360deg);
}

.illustration-bottom {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.bar-chart-green {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    height: 100px;
}

.bar-green {
    width: 30px;
    background: var(--green);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
}

.illustration-people {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.person {
    width: 80px;
    height: 120px;
    position: relative;
}

.person-head {
    width: 40px;
    height: 40px;
    background: #ffa500;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.person-body {
    width: 50px;
    height: 70px;
    margin: 0 auto;
}

.person-left .person-body {
    background: var(--purple);
    border-radius: 8px;
}

.person-right .person-body {
    background: var(--primary-blue);
    border-radius: 8px;
}

/* Solutions Section */
.solutions {
    padding: 5rem 0;
    background: #f5f5f5;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.solution-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--white);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.solution-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.solution-icon.purple {
    background: var(--purple);
}

.solution-icon.orange {
    background: var(--orange);
}

.solution-icon.blue {
    background: var(--primary-blue);
}

.solution-icon.teal {
    background: var(--teal);
}

.solution-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.solution-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.solution-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    align-self: center;
}

.solution-link:hover {
    gap: 1rem;
}

/* Financial Management Section */
.financial-management {
    padding: 5rem 0;
    background: var(--white);
}

.financial-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.financial-illustration {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laptop-container {
    position: relative;
    z-index: 2;
}

.laptop-screen {
    width: 300px;
    height: 200px;
    background: #2c3e50;
    border-radius: 8px 8px 0 0;
    position: relative;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.laptop-document {
    background: white;
    height: 100%;
    border-radius: 4px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.laptop-document::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    height: 200px;
    background: white;
    border-top: 1px solid #eee;
}

.document-line {
    height: 3px;
    background: #333;
    margin-bottom: 8px;
    border-radius: 2px;
}

.document-line:nth-child(1) { width: 90%; }
.document-line:nth-child(2) { width: 75%; }
.document-line:nth-child(3) { width: 85%; }
.document-line:nth-child(4) { width: 70%; }
.document-line:nth-child(5) { width: 80%; }

.laptop-base {
    width: 320px;
    height: 15px;
    background: #34495e;
    border-radius: 0 0 8px 8px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.chart-bars-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1;
}

.chart-bars-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1;
}

.chart-bar-small {
    width: 25px;
    border-radius: 4px;
}

.chart-bar-small.orange {
    background: var(--orange);
    height: 40px;
}

.chart-bar-small.red {
    background: #ef4444;
    height: 55px;
}

.chart-bar-small.purple {
    background: var(--purple);
    height: 35px;
}

.chart-bar-small.green {
    background: var(--green);
    height: 50px;
}

.chart-bar-small.pink {
    background: #ec4899;
    height: 45px;
}

.chart-bar-small.blue {
    background: var(--primary-blue);
    height: 60px;
}

.person-figure {
    position: absolute;
    right: 80px;
    bottom: 50px;
    z-index: 3;
}

.person-head-fig {
    width: 50px;
    height: 50px;
    background: #ffa500;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.person-body-fig {
    width: 60px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 8px;
    margin: 0 auto;
}

.xero-logo {
    position: absolute;
    top: 20px;
    right: 100px;
    z-index: 4;
}

.xero-circle {
    width: 70px;
    height: 70px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.financial-text-content {
    padding-left: 2rem;
}

.financial-text-content h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.financial-text-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.financial-features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.financial-features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.financial-features-list i {
    color: var(--green);
    font-size: 1.2rem;
}

.btn-xero {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #f0f0f0;
    color: var(--text-dark);
    border: 1px solid #ddd;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-xero:hover {
    background: #e0e0e0;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Stakeholders Section */
.stakeholders {
    padding: 5rem 0;
    background: var(--gradient-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stakeholders::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="2"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.stakeholders .container {
    position: relative;
    z-index: 1;
}

.stakeholders .section-title {
    color: var(--white);
}

.stakeholders-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.stakeholder-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    border-top: 4px solid;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stakeholder-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stakeholder-card:nth-child(1) {
    border-top-color: var(--primary-blue);
}

.stakeholder-card:nth-child(2) {
    border-top-color: var(--green);
}

.stakeholder-card:nth-child(3) {
    border-top-color: var(--orange);
}

.stakeholder-card:nth-child(4) {
    border-top-color: var(--purple);
}

.stakeholder-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--white);
}

.stakeholder-icon.blue {
    background: var(--primary-blue);
}

.stakeholder-icon.green {
    background: var(--green);
}

.stakeholder-icon.orange {
    background: var(--orange);
}

.stakeholder-icon.purple {
    background: var(--purple);
}

.stakeholder-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.subtitle {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
}

.stakeholder-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.stakeholder-card .btn-outline {
    margin-top: auto;
    align-self: flex-start;
}

.stakeholders .btn-outline {
    background: #f5f5f5;
    color: var(--text-dark);
}

.stakeholders .btn-outline.blue {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.stakeholders .btn-outline.blue:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.stakeholders .btn-outline.green {
    border-color: var(--green);
    color: var(--green);
}

.stakeholders .btn-outline.green:hover {
    background: var(--green);
    color: var(--white);
}

.stakeholders .btn-outline.orange {
    border-color: var(--orange);
    color: var(--orange);
}

.stakeholders .btn-outline.orange:hover {
    background: var(--orange);
    color: var(--white);
}

.stakeholders .btn-outline.purple {
    border-color: var(--purple);
    color: var(--purple);
}

.stakeholders .btn-outline.purple:hover {
    background: var(--purple);
    color: var(--white);
}

/* Integrations Section */
.integrations {
    padding: 5rem 0;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.integrations-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.integrations-logos {
    display: flex;
    gap: 3rem;
    align-items: center;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
    max-width: 1000px;
}

.integrations-logos::-webkit-scrollbar {
    display: none;
}

.logo-item {
    flex-shrink: 0;
}

.logo-box {
    padding: 1.5rem 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 150px;
    justify-content: center;
    transition: transform 0.3s;
}

.logo-box:hover {
    transform: translateY(-5px);
}

.xero-logo-box {
    color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.1);
}

.transunion-logo-box {
    color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.1);
}

.tu-circle {
    width: 30px;
    height: 30px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.tu-text {
    color: var(--primary-blue);
}

.tenant-logo-box {
    color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.1);
    font-size: 0.9rem;
}

.onthemarket-logo-box {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.onthemarket-logo-box i {
    color: #dc3545;
    font-size: 1.5rem;
}

.signable-logo-box {
    color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.1);
}

.zoopla-logo-box {
    color: var(--purple);
    background: rgba(139, 92, 246, 0.1);
}

.carousel-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: absolute;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary-blue);
    width: 30px;
    border-radius: 5px;
}

.more-integrations {
    text-align: center;
}

.btn-more-integrations {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: white;
    color: var(--text-dark);
    border: 1px solid #ddd;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-more-integrations:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* User-Friendly Platform Section */
.user-friendly {
    padding: 5rem 0;
    background: #f5f5f5;
}

.stats-grid-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item-large {
    text-align: center;
}

.stat-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.stat-icon-large.blue {
    background: var(--primary-blue);
    border: 3px solid var(--light-blue);
}

.stat-number-large {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label-large {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Financial Section */
.financial {
    padding: 5rem 0;
    background: var(--light-blue);
}

.financial-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.financial-illustration {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.financial-illustration i {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.chart-elements {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: flex-end;
    height: 150px;
}

.chart-bar {
    width: 40px;
    background: var(--gradient-blue);
    border-radius: 5px 5px 0 0;
}

.financial-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.financial-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--green);
    font-size: 1.2rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--text-dark);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: var(--gradient-blue);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer — editorial / premium */
.footer.footer--premium {
    position: relative;
    color: #f8fafc;
    padding: 0 clamp(1rem, 4vw, 2.5rem) 2rem;
    margin-top: 0;
    overflow: hidden;
    border-top: none;
    background: #070d1a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 55% at 100% -10%, rgba(0, 102, 204, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 60% 70% at 0% 100%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0f172a 0%, #070d1a 38%, #050a12 100%);
    z-index: 0;
}

.footer__ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.footer__ribbon {
    position: relative;
    height: 4px;
    z-index: 1;
    background: linear-gradient(90deg, #004499 0%, #0066cc 35%, #ff6b35 100%);
    opacity: 0.95;
}

.footer__container {
    position: relative;
    z-index: 1;
    padding-top: 2.75rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.25fr) minmax(280px, 1.55fr);
    gap: 2.5rem 2.25rem;
    align-items: start;
    padding-bottom: 2.5rem;
}

/* Third+ link sections get their own column(s) after the combined pair */
.footer__grid--extra-links {
    grid-template-columns: minmax(240px, 1.25fr) minmax(260px, 1.35fr) repeat(auto-fit, minmax(160px, 1fr));
}

.footer-section--brand {
    grid-column: 1;
}

.footer-section--combo {
    min-width: 0;
}

.footer-combo-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.75rem;
    align-items: start;
}

.footer-combo-group {
    min-width: 0;
}

.footer-brand-card {
    position: relative;
    padding: 1.5rem 1.35rem 1.35rem;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 24px 48px -24px rgba(0, 0, 0, 0.5);
}

.footer-brand-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.7), transparent);
    opacity: 0.85;
}

.footer-logo {
    margin-bottom: 0.65rem;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(226, 232, 240, 0.88);
    margin: 0 0 1rem;
}

.footer-brand-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.95);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    background: rgba(0, 102, 204, 0.18);
    border: 1px solid rgba(125, 211, 252, 0.2);
}

.footer-section--brand .social-links {
    margin-top: 1.25rem;
}

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

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: translateY(-2px);
}

.footer-heading {
    margin: 0 0 1.1rem;
    padding: 0;
    border: none;
}

.footer-heading__text {
    position: relative;
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    padding-bottom: 0.55rem;
}

.footer-heading__text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.75rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0066cc 0%, rgba(255, 107, 53, 0.9) 100%);
}

.footer-linklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    color: rgba(226, 232, 240, 0.9);
    text-decoration: none;
    font-size: 0.94rem;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.footer-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.footer-link__label {
    flex: 1;
    min-width: 0;
}

.footer-link__icon {
    font-size: 0.65rem;
    opacity: 0;
    transform: translateX(-6px);
    color: #7dd3fc;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-link:hover .footer-link__icon {
    opacity: 1;
    transform: translateX(0);
}

.footer-legal {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.footer-legal__main {
    width: 100%;
}

.footer-copyright {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(148, 163, 184, 0.95);
}

.footer-legal__seo {
    margin: 0;
    max-width: 42rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(100, 116, 139, 0.95);
}

@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__grid--extra-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-section--brand {
        grid-column: 1 / -1;
    }

    .footer-section--combo {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-combo-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* Pages still using plain .footer without premium layout */
.footer:not(.footer--premium) {
    background: linear-gradient(180deg, #0f172a 0%, #070d1a 100%);
    color: #f8fafc;
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

/* Legacy footer class names (fallback) */
.footer-content {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.75rem 2.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-section h4 {
    margin-bottom: 1.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.55);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.45rem;
}

.footer-section a {
    color: rgba(226, 232, 240, 0.88);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-section a:hover {
    color: #fff;
    padding-left: 2px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .header {
        padding: 1rem 2rem;
    }

    .nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        gap: 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile dropdowns: render inline inside the menu and allow scrolling */
    .nav-item-dropdown {
        position: relative;
        width: 100%;
    }

    .nav-link-dropdown {
        width: 100%;
        justify-content: center;
        position: relative;
        padding-right: 2rem;
    }

    .nav a,
    .nav-link-dropdown {
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .dropdown-arrow {
        position: absolute;
        right: 0.25rem;
        margin-left: 0;
    }

    .dropdown-menu,
    .dropdown-mega {
        position: static;
        width: 100%;
        left: auto;
        right: auto;
        top: auto;
        min-height: 0;
        padding: 0.75rem 0 0;
        box-shadow: none;
        border-radius: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        z-index: auto;
    }

    .nav-item-dropdown.active .dropdown-menu,
    .nav-item-dropdown.active .dropdown-mega {
        display: block;
    }

    .dropdown-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-actions {
        align-items: center;
    }
    
    .hero-actions .btn-primary {
        width: 100%;
        max-width: 300px;
    }

    .hero-text h1 {
        font-size: 2.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-text h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .hero-text h3 {
        font-size: 1.3rem;
    }

    .hero-text h4 {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        order: -1;
        justify-content: center;
    }
    
    .hero-image::before {
        display: none;
    }
    
    .hero-banner-image {
        max-width: 100%;
        border-radius: 12px;
    }

    .financial-content {
        grid-template-columns: 1fr;
    }

    .automation-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 100%;
        overflow: hidden;
    }

    .automation-text {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .automation-text h2 {
        font-size: 2rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .automation-illustration {
        height: 400px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .laptop-dashboard-image {
        max-width: 100%;
        max-height: 100%;
    }

    .financial-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .financial-illustration {
        height: 400px;
    }

    .financial-text-content {
        padding-left: 0;
    }

    .financial-text-content h2 {
        font-size: 2rem;
    }

    .stakeholders-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .header-right {
        gap: 1rem;
    }
}

/* Make header CTAs behave on small screens */
@media (max-width: 968px) {
    .header-content {
        min-width: 0;
    }
    .header-right {
        min-width: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .header-right a,
    .header-right button {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .stakeholders-grid {
        grid-template-columns: 1fr;
    }

    .integrations-logos {
        gap: 2rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .stats-grid-large {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stat-number-large {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1rem;
        max-width: 150px;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .nav {
        margin-left: 0;
    }

    .search-box {
        display: none;
    }

    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }

    .hero .container {
        padding: 0 1.5rem;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .laptop-mockup {
        max-width: 100%;
        padding: 0 1rem;
    }

    .laptop-screen {
        padding: 6px;
    }

    .laptop-screen-inner {
        aspect-ratio: 16 / 9;
    }

    .laptop-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .laptop-tab span {
        display: none;
    }

    .dashboard-preview,
    .payments-preview,
    .maintenance-preview {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .dashboard-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .dashboard-menu {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .payment-actions {
        flex-direction: column;
    }

    .maintenance-stats {
        grid-template-columns: 1fr;
    }

    .history-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .history-row.header {
        display: none;
    }

    .history-row > div::before {
        content: attr(data-label) ': ';
        font-weight: 600;
        color: var(--text-light);
    }

    .section-title {
        font-size: 2rem;
    }

    .header-right {
        gap: 0.75rem;
    }

    .btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Extra-small phones (e.g. iPhone X width 375px) */
@media (max-width: 480px) {
    .header {
        padding-top: calc(0.75rem + env(safe-area-inset-top));
        padding-left: calc(1rem + env(safe-area-inset-left));
        padding-right: calc(1rem + env(safe-area-inset-right));
        padding-bottom: 0.75rem;
    }

    .header-content {
        gap: 0.75rem;
    }

    .logo {
        max-width: 150px;
    }

    .logo img {
        height: 28px !important;
    }

    .header-right {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .header-right .btn-link {
        padding: 0.35rem 0.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .header-right .btn-primary {
        padding: 0.42rem 0.7rem;
        font-size: 0.78rem;
        border-radius: 999px;
        white-space: nowrap;
    }

    /* Keep hamburger comfortable for touch */
    .mobile-menu-toggle {
        padding: 0.4rem;
    }
}

/* Demo Booking Modal */
.demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.demo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.demo-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.demo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10002;
}

.demo-modal-close:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.demo-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.demo-modal-header h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.demo-modal-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.demo-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.form-actions .btn-primary {
    background: var(--gradient-blue);
    color: var(--white);
}

.form-actions .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.form-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-actions .btn-secondary {
    background: #f3f4f6;
    color: var(--text-dark);
}

.form-actions .btn-secondary:hover {
    background: #e5e7eb;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .demo-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .demo-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .demo-modal-header h2 {
        font-size: 1.5rem;
    }

    .demo-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }
}

.user-menu-dropdown-container {
    position: relative;
    display: inline-block;
}

.user-menu-dropdown-toggle {
    cursor: pointer;
    background: none;
    border: none;
    color: #007bff; /* Adjust as needed for your theme */
    padding: 0.5rem 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%; /* Position below the toggle button */
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    display: none; /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block; /* Shown when 'show' class is present */
}

.user-menu-dropdown .dropdown-item {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s ease;
}

.user-menu-dropdown .dropdown-item:hover {
    background-color: #f1f1f1;
}

/* ChatGPT Content - Hero Trust Signals */
.hero-trust-signals {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}


/* Benefits Section - Professional UI */
.benefits {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.benefits::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.benefits-header {
    text-align: center;
    margin-bottom: 4.5rem;
    position: relative;
    z-index: 1;
}

.benefits .section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.benefits-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-top: 1rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 400;
}

.benefits-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 4rem 0;
    padding: 0 80px;
    position: relative;
    z-index: 1;
}

.benefits-carousel-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.benefits-grid {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 1rem 0;
}

.benefits-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.benefits-grid .benefit-card {
    flex: 0 0 300px;
    min-width: 300px;
    max-width: 300px;
}

.benefit-card {
    background: var(--white);
    padding: 3rem 2.25rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--green) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.benefit-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 102, 204, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 102, 204, 0.3);
    background: var(--white);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover::after {
    opacity: 1;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0052a3 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 20px rgba(0, 102, 204, 0.25),
        0 4px 10px rgba(0, 102, 204, 0.15);
    position: relative;
    z-index: 2;
}

.benefit-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary-blue), var(--green));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(8px);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 
        0 12px 30px rgba(0, 102, 204, 0.35),
        0 6px 15px rgba(0, 102, 204, 0.2);
}

.benefit-card:hover .benefit-icon::before {
    opacity: 0.6;
}

.benefit-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.875rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.benefit-card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.benefits-carousel-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.benefits-carousel-prev {
    left: 0;
}

.benefits-carousel-next {
    right: 0;
}

.benefits-carousel-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-50%) scale(1.1);
}

.benefits-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.benefits-carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.benefits-cta {
    text-align: center;
    margin-top: 4.5rem;
    position: relative;
    z-index: 1;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background: #f9fafb;
}

.steps {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.steps-note {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-top: 2rem;
    font-size: 1rem;
}

/* UK Compliance Section */
.uk-compliance {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.uk-compliance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/rental-regulation.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.25;
}

.uk-compliance::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background-color: rgba(255, 255, 255, 0.65);*/
    z-index: 1;
}

.uk-compliance .container {
    position: relative;
    z-index: 2;
}

.compliance-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-left: 3px solid var(--primary-blue);
    border-radius: 4px;
}

.compliance-note small {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
    padding: 4rem 0;
    background: var(--gradient-blue);
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.final-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta .btn-primary {
    background: white;
    color: var(--primary-blue);
}

.final-cta .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Footer SEO Line */
.footer-seo-line {
    text-align: center;
    padding: 1.1rem 1rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    margin-top: 1.25rem;
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.82rem;
    line-height: 1.55;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Carousel - Horizontal Scrollable */
.features-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 80px; /* Add padding to make room for arrow buttons */
}

.features-carousel-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.features-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 1rem 0;
}

.features-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.features-carousel .stakeholder-card {
    flex: 0 0 270px;
    min-width: 270px;
    max-width: 270px;
    height: auto;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.features-carousel-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.features-carousel-prev {
    left: 0;
}

.features-carousel-next {
    right: 0;
}

.features-carousel-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-50%) scale(1.1);
}

.features-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.features-carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-trust-signals {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-carousel-wrapper {
        gap: 0.5rem;
        padding: 0 60px; /* Reduce padding on mobile */
    }
    
    .features-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .features-carousel .stakeholder-card {
        flex: 0 0 270px;
        min-width: 270px;
        max-width: 270px;
    }
    
    .features-carousel-prev {
        left: 0;
    }
    
    .features-carousel-next {
        right: 0;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .benefits {
        padding: 4rem 0;
    }
    
    .benefits .section-title {
        font-size: 2rem;
    }
    
    .benefits-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .benefits-carousel-wrapper {
        padding: 0 60px;
        gap: 0.5rem;
    }
    
    .benefits-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .benefits-grid .benefit-card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
    }
    
    .benefit-card {
        padding: 2.5rem 2rem;
    }
    
    .benefit-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .benefit-card h3 {
        font-size: 1.2rem;
    }
    
    .benefits-cta {
        margin-top: 3rem;
    }
    
    .final-cta h2 {
        font-size: 1.75rem;
    }
    
    .how-it-works h2,
    .uk-compliance h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   Blog listing page
   ============================================ */
/* Blog banner – dark editorial style (like reference) */
.blog-banner-editorial {
    background: #0d0d0d;
    color: #fff;
    padding: 2rem 1.5rem 3.5rem;
}
.blog-banner-editorial-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.blog-banner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.blog-banner-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.9;
}
.blog-banner-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.blog-banner-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.blog-banner-nav-link:hover {
    opacity: 1;
}
.blog-banner-hero {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
}
.blog-banner-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.blog-banner-tagline {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
    max-width: 320px;
    line-height: 1.5;
}
.blog-banner-social {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
}
.blog-banner-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e85c3a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}
.blog-banner-social-icon:hover {
    background: #d94a28;
    transform: scale(1.08);
    color: #fff;
}
@media (max-width: 768px) {
    .blog-banner-editorial {
        padding: 1.5rem 1rem 2.5rem;
    }
    .blog-banner-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .blog-banner-social {
        margin-left: 0;
    }
}

/* Hero compact variant (blog and other inner pages – same look as main hero, shorter) */
.hero--compact {
    min-height: 0;
    padding: 5rem 0 4rem;
    align-items: center;
}
.hero-content--center {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0;
    text-align: center;
}
.hero-content--center .hero-text {
    text-align: center;
    align-items: center;
}
.hero-content--center .hero-description {
    max-width: 100%;
}
@media (max-width: 768px) {
    .hero--compact {
        padding: 3.5rem 0 2.5rem;
    }
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-page {
    padding-top: 3rem;
    padding-bottom: 4rem;
    min-height: 60vh;
}

.blog-page .container {
    max-width: 900px;
    margin-left: 0;
    margin-right: auto;
}

.blog-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-card {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.blog-card:last-child {
    border-bottom: none;
}

.blog-card:hover {
    opacity: 0.95;
}

.blog-card:hover .blog-card-title {
    color: var(--primary-blue);
}

.blog-card-image-wrap {
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-blue);
}

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

.blog-card-body {
    flex: 1;
    min-width: 0;
}

.blog-card-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    transition: color 0.2s;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.blog-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
}

.blog-card-link:hover {
    text-decoration: underline;
}

.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .blog-card-image-wrap {
        width: 100%;
        height: 200px;
    }

    .blog-page-title {
        font-size: 1.65rem;
    }
}

/* Blog single post page */
.blog-single-page {
    padding-top: 5rem;
    padding-bottom: 4rem;
    min-height: 60vh;
}

.blog-single-page .container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.blog-single-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.blog-single-meta {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.blog-single-featured {
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-blue);
    margin-bottom: 2rem;
}

.blog-single-featured img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.blog-single-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-dark);
}

.blog-single-content p {
    margin-bottom: 1rem;
}

.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.blog-single-content h2 { font-size: 1.5rem; }
.blog-single-content h3 { font-size: 1.25rem; }
.blog-single-content h4 { font-size: 1.125rem; }

.blog-single-content ul,
.blog-single-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.blog-single-content li {
    margin-bottom: 0.35rem;
}

.blog-single-content a {
    color: var(--primary-blue);
    text-decoration: none;
}

.blog-single-content a:hover {
    text-decoration: underline;
}

.blog-single-content blockquote {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-blue);
    color: var(--text-light);
}

.blog-single-back {
    display: inline-block;
    margin-top: 2.5rem;
    font-weight: 500;
    color: var(--primary-blue);
    text-decoration: none;
}

.blog-single-back:hover {
    text-decoration: underline;
}

/* Related blogs - single row slider */
.related-blogs {
    padding: 3rem 0 4rem;
    background: var(--light-blue, #f5f9fc);
}
.blog-single-page .container--wide {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}
.related-blogs-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}
.related-blogs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.related-blogs-container {
    flex: 1;
    overflow: hidden;
}
.related-blogs-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}
.related-blogs-slider::-webkit-scrollbar {
    display: none;
}
.related-blogs-card {
    flex: 0 0 300px;
    min-width: 300px;
    max-width: 300px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}
.related-blogs-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.related-blogs-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--light-blue);
    overflow: hidden;
}
.related-blogs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-blogs-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2rem;
}
.related-blogs-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.related-blogs-card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.related-blogs-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}
.related-blogs-card-title a {
    color: inherit;
    text-decoration: none;
}
.related-blogs-card-title a:hover {
    color: var(--primary-blue);
}
.related-blogs-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-blogs-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
}
.related-blogs-card-link:hover {
    text-decoration: underline;
}
.related-blogs-btn {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.related-blogs-btn:hover {
    background: var(--dark-blue, #004499);
}
.related-blogs-prev { margin-right: 0; }
.related-blogs-next { margin-left: 0; }
@media (max-width: 768px) {
    .related-blogs-card {
        flex: 0 0 260px;
        min-width: 260px;
        max-width: 260px;
    }
    .related-blogs-wrapper {
        padding: 0 8px;
    }
}
