/* ===== LANDING PAGE STYLES ===== */
/* Styles for RentalFlow Pro landing page */

/* CSS Variables */
:root {
    /* Carousel spacing */
    --carousel-gap: 24px;
    
    /* Colors - RentalFlow Pro Theme (Matches App) */
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --secondary-gradient: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #6366f1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Background Colors - Match App Theme */
    --bg-primary: #0a0f1b;
    --bg-secondary: #101827;
    --bg-card: #1a2332;
    --bg-hover: #243447;
    --bg-dark: #0f172a;
    
    /* Text Colors - Match App Theme */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-white: #ffffff;
    
    /* Border Colors - Match App Theme */
    --border-color: #2d3e50;
    --border-hover: #475569;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    --font-mono: 'Space Grotesk', 'SF Mono', Monaco, monospace;
    --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;
    --font-size-6xl: 3.75rem;
    --font-size-7xl: 4.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Animation Durations */
    --animation-fast: 0.3s;
    --animation-normal: 0.6s;
    --animation-slow: 1s;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-card: #1e293b;
        --bg-hover: #334155;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-color: #334155;
        --border-hover: #475569;
    }
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

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

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

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Scroll Animation Classes */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.scroll-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.scroll-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease-out;
}

.scroll-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Animation Delays */
.scroll-delay-1 { transition-delay: 0.1s; }
.scroll-delay-2 { transition-delay: 0.2s; }
.scroll-delay-3 { transition-delay: 0.3s; }
.scroll-delay-4 { transition-delay: 0.4s; }
.scroll-delay-5 { transition-delay: 0.5s; }
.scroll-delay-6 { transition-delay: 0.6s; }

/* Loading Animations */
.page-loading {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.3s forwards;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h3 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h4 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

h5 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

h6 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

/* Special Typography Classes */
.hero-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    transform: translateZ(0);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    transition: color var(--transition-normal);
}

/* Enhanced Text Styles */
.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: all var(--transition-normal);
    overflow: visible;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1001;
    transition: width 0.1s ease-out;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    position: relative;
    overflow: visible;
}

.nav-logo {
    display: flex;
    align-items: center;
    animation: fadeIn var(--transition-normal) ease-out;
    animation-delay: 0.1s;
    animation-fill-mode: both;
    transition: all var(--transition-normal);
    position: relative;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 12px;
}

.nav-logo:hover {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 12px 35px rgba(102, 126, 234, 0.5));
}

.nav-logo svg {
    transition: all var(--transition-normal);
    height: 56px;
    width: auto;
    max-width: 320px;
}

.nav-logo:hover svg {
    filter: brightness(1.15) saturate(1.3) contrast(1.1);
}

.nav-logo:active {
    transform: translateY(-1px) scale(1.02);
    filter: drop-shadow(0 8px 25px rgba(102, 126, 234, 0.6));
    transition: all 0.1s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #1f2937;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.25);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-link.active::before {
    width: 80%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
    background: transparent;
    z-index: 10001;
    position: absolute;
    right: 2rem;
    top: 1rem;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.nav-toggle:hover {
    transform: scale(1.1);
}

.nav-toggle:hover span {
    background: var(--accent-color);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile styles */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 5rem;
        left: 1.5rem;
        right: 1.5rem;
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.9) 100%);
        backdrop-filter: blur(25px) saturate(180%);
        border: 1px solid rgba(102, 126, 234, 0.3);
        border-radius: 16px;
        box-shadow: 
          0 16px 32px rgba(0, 0, 0, 0.25),
          0 4px 8px rgba(0, 0, 0, 0.1),
          inset 0 1px 0 rgba(255, 255, 255, 0.1);
        flex-direction: column;
        padding: 1.5rem 1.25rem;
        gap: 0.5rem;
        transform: translateY(-100%) scale(0.96);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
    }
    
    .nav-toggle {
        display: flex !important;
    }
    
    .nav-menu.active {
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }
    
    .nav-menu .nav-link {
        padding: 1rem 1.5rem;
        text-align: left;
        border-radius: 8px;
        font-size: 1rem;
        color: #e2e8f0;
        background: transparent;
        font-weight: 500;
        border: none;
        border-left: 3px solid transparent;
        margin: 0.25rem 0;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        letter-spacing: 0.025em;
    }
    
    .nav-menu .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
        transition: left 0.5s;
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(102, 126, 234, 0.1);
        color: #a5b4fc;
        border-left-color: #667eea;
        transform: translateX(4px);
    }
    
    .nav-menu .nav-link:hover::before {
        left: 100%;
    }
    
    .nav-menu .nav-link:active {
        background: rgba(102, 126, 234, 0.15);
        color: #c7d2fe;
        transform: translateX(2px);
        border-left-color: #8b5cf6;
    }
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    position: relative;
    overflow: hidden;
    min-height: 65vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.1s;
    animation-fill-mode: both;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
    line-height: 1.6;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
}

.stat-item:hover .stat-number {
    color: #a78bfa;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(167, 139, 250, 0.5);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.8s;
    animation-fill-mode: both;
}

.hero-guarantee {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 1s;
    animation-fill-mode: both;
}

.guarantee-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem; /* Slight adjustment to align with text baseline */
}

/* Mobile-specific guarantee layout */
@media (max-width: 768px) {
    .hero-guarantee {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.25rem;
    }
    
    .guarantee-icon {
        margin-top: 0;
        margin-bottom: 0.25rem;
    }
}

/* Hero Brand */
.hero-brand {
    margin-top: 0.75rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 1.2s;
    animation-fill-mode: both;
}

.hero-brand span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Testimonials */
.testimonials-row {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial {
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-8px);
}

.testimonial-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonial:hover .testimonial-content {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.testimonial-content p {
    font-size: 1.125rem;
    color: #ffffff;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.float-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.element-3 {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.element-4 {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
}

.element-5 {
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Buttons */
.cta-primary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    padding: 1rem 2rem;
    min-height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.cta-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--text-white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.cta-primary:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    padding: 1rem 2rem;
    min-height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--text-white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.cta-secondary:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.full-width {
    width: 100%;
}


/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    background: var(--bg-secondary);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

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

.feature-card {
    background: linear-gradient(145deg, #1e293b, #334155);
    border: 2px solid #475569;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(59, 130, 246, 0.25),
        0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    background: linear-gradient(145deg, #334155, #475569);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots-carousel-container,
.carousel {
    margin-top: 3rem;
    position: relative;
}

/* Container for carousel & nav buttons */
.carousel-wrapper,
.carousel__viewport {
    position: relative;
    overflow: hidden;          /* hide cards beyond viewport */
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Track: holds all cards in a flex row */
.screenshots-carousel,
.carousel__track {
    display: flex;
    gap: var(--carousel-gap);  /* use gap, not margins on cards */
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    transition: transform 0.35s ease;
    will-change: transform;
}

/* Card: exactly 3 per view - Image-dominant layout */
.screenshots-carousel .screenshot-item,
.carousel__card {
    flex: 0 0 calc((100% - (2 * var(--carousel-gap))) / 3); /* 3 cards + 2 gaps */
    margin: 0;                 /* no external margins */
    min-width: 0;              /* prevent overflow */
    box-sizing: border-box;
    background: linear-gradient(145deg, #1a2332, #243447);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 290px;             /* Smaller fixed height */
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Image area: 65% of card height (~189px) */
.screenshot-image {
    position: relative;
    overflow: hidden;
    height: 65%;                /* 65% of 290px = ~189px */
    background: var(--bg-dark);
    border-radius: 12px 12px 0 0; /* Only round top corners */
}

.screenshot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* Fill space, crop as needed */
    display: block;
    transition: transform 0.2s ease;
    cursor: pointer;
}

/* Subtle gradient overlay on image bottom for separation */
.screenshot-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.08), transparent);
    pointer-events: none;
}

/* Hover: scale image slightly */
.carousel__card:hover .screenshot-image img {
    transform: scale(1.02);
}

/* Card hover - elevate shadow, don't move text */
.carousel__card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.2);
}

/* Carousel Navigation - positioned OUTSIDE on desktop, INSIDE on mobile */
.carousel-btn,
.carousel__btn,
.carousel__btn--prev,
.carousel__btn--next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;                /* above everything, but not in layout */
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
    pointer-events: auto;
}

.carousel-btn--prev,
.carousel-prev,
.carousel__btn--prev {
    left: -56px;  /* outside the viewport on desktop */
}

.carousel-btn--next,
.carousel-next,
.carousel__btn--next {
    right: -56px; /* outside the viewport on desktop */
}

.carousel-btn:hover,
.carousel__btn:hover,
.carousel__btn--prev:hover,
.carousel__btn--next:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active,
.carousel__btn:active,
.carousel__btn--prev:active,
.carousel__btn--next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Remove ALL focus and click artifacts */
.carousel-btn:focus,
.carousel__btn:focus,
.carousel__btn--prev:focus,
.carousel__btn--next:focus,
.carousel-btn:focus-visible,
.carousel__btn:focus-visible,
.carousel__btn--prev:focus-visible,
.carousel__btn--next:focus-visible,
.carousel-btn:active,
.carousel__btn:active,
.carousel__btn--prev:active,
.carousel__btn--next:active {
    outline: none !important;
    box-shadow: none !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

/* Remove click artifacts and pseudo-elements */
.carousel-btn::after,
.carousel__btn::after,
.carousel__btn--prev::after,
.carousel__btn--next::after,
.carousel-btn::before,
.carousel__btn::before,
.carousel__btn--prev::before,
.carousel__btn--next::before {
    display: none !important;
    content: none !important;
}

/* Remove any pseudo-elements that might cause artifacts */
.carousel-btn *,
.carousel__btn *,
.carousel__btn--prev *,
.carousel__btn--next * {
    /* Allow pointer events on button content for better touch support */
    pointer-events: auto;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    /* Remove focus and click artifacts */
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    border: none;
    box-shadow: none;
}

.dot.active {
    background: rgba(102, 126, 234, 0.8);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.dot.active:hover {
    background: rgba(102, 126, 234, 1);
}

/* Tablet (768px-1024px): 2 cards per view */
@media (max-width: 1024px) and (min-width: 769px) {
    .screenshots-carousel .screenshot-item,
    .carousel__card {
        flex: 0 0 calc((100% - var(--carousel-gap)) / 2);
    }
    
    /* Adjust image ratio slightly */
    .screenshot-image {
        height: 60%;
    }
    
    .screenshot-caption {
        height: 40%;
    }
}

/* Mobile Responsive - Carousel */
@media (max-width: 768px) {
    /* Reduce gap for mobile */
    :root {
        --carousel-gap: 16px;
    }
    
    /* Show only 1 card on mobile */
    .screenshots-carousel .screenshot-item,
    .carousel__card {
        flex: 0 0 100%;
        height: 280px;        /* Proportional to desktop size */
    }
    
    /* Adjust image ratio on mobile */
    .screenshot-image {
        height: 60%;          /* 60% of 280px = 168px */
    }
    
    .screenshot-caption {
        height: 40%;          /* 40% of 280px = 112px */
        padding: 12px 16px 10px 16px;
    }
    
    /* Title on mobile */
    .screenshot-caption h4 {
        font-size: 16px;
        line-height: 1.15;
        -webkit-line-clamp: 1; /* Single line on mobile */
        line-clamp: 1;
    }
    
    /* Subtitle on mobile */
    .screenshot-caption p {
        font-size: 13px;
        -webkit-line-clamp: 2; /* Max 2 lines */
        line-clamp: 2;
    }
    
    /* Move buttons inside on mobile for better touch targets and space efficiency */
    .carousel-btn--prev,
    .carousel-prev,
    .carousel__btn--prev {
        left: 8px;
    }
    
    .carousel-btn--next,
    .carousel-next,
    .carousel__btn--next {
        right: 8px;
    }
    
    .carousel-btn,
    .carousel__btn,
    .carousel__btn--prev,
    .carousel__btn--next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        /* Ensure buttons are touchable on mobile */
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Remove dot artifacts on mobile */
    .dot {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Prevent any focus artifacts on mobile dots */
    .dot:focus,
    .dot:active,
    .dot:focus-visible {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }
}

/* Screenshot Modal - Always centered on all devices */
.screenshot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove all transforms - keep content centered */
    /* Disable default touch behaviors for custom swipe on mobile */
    touch-action: none;
}

/* Close button - ALWAYS at top right of the image */
.modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000001;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.modal-close:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.8);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.modal-close:active {
    transform: scale(0.95);
}

/* Base image styles - always centered with crisp rendering */
.modal-content img {
    max-width: 85vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    object-fit: contain;
    display: block;
    margin: 0 auto;
    /* Enhanced image rendering for maximum quality */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    /* Force high-quality scaling */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent subpixel rendering issues */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    /* Prevent image compression artifacts */
    -webkit-image-rendering: optimizeQuality;
    image-rendering: optimizeQuality;
    /* Force GPU acceleration */
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Mobile optimizations for modal */
@media (max-width: 768px) {
    .screenshot-modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-content img {
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 4px;
        /* Enhanced mobile image rendering */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        image-rendering: pixelated;
        -webkit-backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        /* Force high-quality scaling */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        /* Prevent subpixel rendering issues */
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
        /* Ensure crisp pixel boundaries */
        -webkit-filter: contrast(1.1) brightness(1.02);
        filter: contrast(1.1) brightness(1.02);
        /* Force GPU acceleration for smoother rendering */
        -webkit-perspective: 1000px;
        perspective: 1000px;
        /* Prevent image compression artifacts */
        -webkit-image-rendering: optimizeQuality;
        image-rendering: optimizeQuality;
    }
    
    .modal-close {
        top: -16px;
        right: -16px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .modal-content img {
        max-width: 88vw;
        max-height: 88vh;
    }
}

/* Desktop - responsive sizing based on screenshot type */
@media (min-width: 1025px) {
    /* Dashboard - wider landscape view */
    .modal-dashboard img {
        max-width: 80vw;
        max-height: 75vh;
    }

    /* Owner Statement - portrait, taller */
    .modal-ownerstatement img {
        max-width: 50vw;
        max-height: 85vh;
    }

    /* Schedule E - portrait, taller */
    .modal-scheduleE img {
        max-width: 48vw;
        max-height: 85vh;
    }

    /* Property Details - wide landscape */
    .modal-property img {
        max-width: 80vw;
        max-height: 75vh;
    }

    /* Analytics - medium landscape */
    .modal-analytics img {
        max-width: 75vw;
        max-height: 78vh;
    }

    /* Settings - medium landscape */
    .modal-settings img {
        max-width: 75vw;
        max-height: 78vh;
    }

    /* Transactions - medium landscape */
    .modal-transactions img {
        max-width: 78vw;
        max-height: 76vh;
    }

    /* Tenants - wide landscape */
    .modal-tenants img {
        max-width: 80vw;
        max-height: 75vh;
    }

    /* Reports - wide landscape */
    .modal-reports img {
        max-width: 80vw;
        max-height: 75vh;
    }
}

/* High-DPI display optimizations for crisp images */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .modal-content img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Caption area: 35% of card height (~101px) - Compact footer */
.screenshot-caption {
    height: 35%;                /* 35% of 290px = ~101px */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 14px 18px 12px 18px; /* Top | Right | Bottom | Left - tighter */
    box-sizing: border-box;
}

/* Title: 17px, semibold, tight line-height, max 2 lines */
.screenshot-caption h4 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.15;          /* 115% line height */
    color: var(--text-primary);
    margin: 0 0 6px 0;          /* 6px gap to subtitle */
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Subtitle: 13px, regular, 140% line-height, max 2 lines */
.screenshot-caption p {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;           /* 140% line height */
    color: var(--text-secondary);
    margin: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pricing Section */
.pricing {
    background: var(--bg-primary);
}

.pricing-grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.pricing-card {
    background: linear-gradient(145deg, #1e293b, #334155);
    border: 2px solid #475569;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    padding-bottom: 6rem;
    transition: all var(--transition-normal);
    position: relative;
    flex: 1;
    height: 600px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(102, 126, 234, 0.3),
        0 12px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    background: linear-gradient(145deg, #334155, #475569);
}

.pricing-badge {
    position: absolute;
    top: -0.5rem;
    right: 1.5rem;
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pricing-card.pro {
    border-color: var(--primary-color);
    box-shadow: 
        0 16px 50px rgba(102, 126, 234, 0.25),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg, #1e293b, #3b82f6);
}

.pricing-card.pro:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 30px 60px rgba(102, 126, 234, 0.4),
        0 16px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-color: var(--accent-color);
    background: linear-gradient(145deg, #334155, #3b82f6);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.price-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pricing-cta {
    text-align: center;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
}

.pricing-cta .cta-primary,
.pricing-cta .cta-secondary {
    width: 100%;
    max-width: 280px;
}

.pricing-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Comparison Section */
.comparison {
  background: var(--bg-secondary);
  padding: 4rem 0;
}

.comparison-table {
  margin: 1.5rem 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  outline: none;
  overflow: hidden;
  max-width: 1300px;
  margin: 0 auto;
}

/* Column hover effects - JavaScript adds hover-col-1, hover-col-2, etc. classes */
.comparison-grid .comparison-header,
.comparison-grid .comparison-label,
.comparison-grid .comparison-cell {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

/* When hovering over any column, dim all other elements */
.comparison-grid.hover-col-1 .comparison-header:not(:nth-child(1)),
.comparison-grid.hover-col-1 .comparison-label:not(:nth-child(4n+1)),
.comparison-grid.hover-col-1 .comparison-cell:not(:nth-child(4n+1)),
.comparison-grid.hover-col-2 .comparison-header:not(:nth-child(2)),
.comparison-grid.hover-col-2 .comparison-label:not(:nth-child(4n+2)),
.comparison-grid.hover-col-2 .comparison-cell:not(:nth-child(4n+2)),
.comparison-grid.hover-col-3 .comparison-header:not(:nth-child(3)),
.comparison-grid.hover-col-3 .comparison-label:not(:nth-child(4n+3)),
.comparison-grid.hover-col-3 .comparison-cell:not(:nth-child(4n+3)),
.comparison-grid.hover-col-4 .comparison-header:not(:nth-child(4)),
.comparison-grid.hover-col-4 .comparison-label:not(:nth-child(4n)),
.comparison-grid.hover-col-4 .comparison-cell:not(:nth-child(4n)) {
  opacity: 0.6;
}

/* All columns hover - apply the stronger effect to all except RentalFlow Pro */
.comparison-grid.hover-col-1 .comparison-header:nth-child(1),
.comparison-grid.hover-col-1 .comparison-label:nth-child(4n+1),
.comparison-grid.hover-col-1 .comparison-cell:nth-child(4n+1),
.comparison-grid.hover-col-3 .comparison-header:nth-child(3),
.comparison-grid.hover-col-3 .comparison-cell:nth-child(4n+3),
.comparison-grid.hover-col-4 .comparison-header:nth-child(4),
.comparison-grid.hover-col-4 .comparison-cell:nth-child(4n) {
  background: linear-gradient(90deg, rgba(64, 112, 255, 0.2) 0%, rgba(64, 112, 255, 0.1) 100%) !important;
  opacity: 1 !important;
}

/* Column 2 hover (RentalFlow Pro) - teal pop effect */
.comparison-grid.hover-col-2 .comparison-header:nth-child(2),
.comparison-grid.hover-col-2 .comparison-label:nth-child(4n+2),
.comparison-grid.hover-col-2 .comparison-cell:nth-child(4n+2),
.comparison-grid.hover-col-2 .comparison-cell.rentalflow-cell,
.comparison-grid.hover-col-2 .comparison-cell.rentalflow-cell:nth-child(4n+2):not(:nth-child(-n+4)) {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.18) 0%, rgba(20, 184, 166, 0.12) 100%) !important;
  opacity: 1 !important;
}

.comparison-header {
  font-weight: 600;
  color: #000000;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem 0.8rem;
  background: transparent;
  text-align: center;
  text-shadow: none;
  filter: none;
}

.comparison-header.rentalflow-header {
  color: #000000;
  text-align: center;
  background: linear-gradient(90deg, rgba(64, 112, 255, 0.2) 0%, rgba(64, 112, 255, 0.1) 100%) !important;
  border-left: none;
  position: relative;
}

.comparison-header.rentalflow-header::after {
  content: '⭐';
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-size: 12px;
  opacity: 0.9;
}

.comparison-label {
  padding: 1rem 0.8rem;
  color: #000000;
  font-weight: 500;
  font-size: 0.875rem;
  background: transparent;
  text-shadow: none;
  filter: none;
}

.comparison-label:nth-child(4n+1):not(:first-child) {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-cell {
  padding: 1rem 0.8rem;
  text-align: center;
  background: transparent;
  font-weight: 500;
  font-size: 0.8rem;
  color: #000000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-shadow: none;
  filter: none;
  position: relative;
}


.comparison-cell:nth-child(4n+2):not(:nth-child(-n+4)) {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-cell.rentalflow-cell {
  background: linear-gradient(90deg, rgba(64, 112, 255, 0.2) 0%, rgba(64, 112, 255, 0.1) 100%) !important;
  border-left: none;
}

.comparison-cell.rentalflow-cell:nth-child(4n+2):not(:nth-child(-n+4)) {
  background: linear-gradient(90deg, rgba(64, 112, 255, 0.2) 0%, rgba(64, 112, 255, 0.1) 100%) !important;
}

.comparison-cell .check {
  display: inline-block;
  background: #10b981;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  height: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.comparison-cell .cross {
  display: inline-block;
  background: #ef4444;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  height: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.comparison-note {
  padding: 0.75rem 1.5rem;
  background: rgba(20, 28, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-radius: 0 0 12px 12px;
  text-align: center;
  margin-top: -1px;
}

.comparison-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  font-size: 0.875rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .comparison-grid {
    display: block;
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    margin: 0 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Hide all original grid elements on mobile */
  .comparison-grid > * {
    display: none;
  }
  
  /* Mobile comparison chart - simple version */
  .comparison-grid::before {
    content: "📊 Comparison";
    display: block;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #3498db;
    letter-spacing: 0.5px;
  }
  
  .comparison-grid::after {
    content: "RentalFlow Pro vs Alternatives" "\A" "\A" "✓ Offline capable" "\A" "✓ One-time cost" "\A" "✓ Schedule E reports" "\A" "\A" "vs SaaS tools (subscription, online only)" "\A" "vs Spreadsheets (manual work, no reports)";
    white-space: pre-line;
    display: block;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #343a40;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
}

/* FAQ Section */
.faq {
    background: var(--bg-primary);
}

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

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.faq-item h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: var(--text-white);
    text-align: center;
}

.cta-content h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 22, 33, 0.95) 100%);
    color: var(--text-white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    margin-bottom: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo h4 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.version-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    font-style: italic;
}

.brand-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    max-width: 280px;
}

.footer-section h4 {
    color: var(--text-white);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.footer-section ul li a {
    display: inline-block;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    position: relative;
}

.footer-section ul li a:hover {
    color: #a78bfa;
}

.footer-section ul li a:focus {
    outline: 2px solid rgba(167, 139, 250, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.footer-legal p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #a78bfa;
}

.footer-links span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-trust {
    text-align: center;
}

.support-info {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* Mobile Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-carousel {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        flex-direction: column;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand {
        max-width: none;
        width: 100%;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .footer-brand {
        text-align: center !important;
        max-width: none !important;
        width: 100% !important;
    }
    
    .footer-logo h4 {
        justify-content: center !important;
    }
    
    .footer-logo {
        text-align: center !important;
    }
    
    .brand-description {
        text-align: center !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    /* Legal page footer mobile optimizations */
    .footer-legal {
        text-align: center !important;
    }
    
    .footer-legal p {
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .footer-links {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .app-showcase {
        padding: 0 0.5rem;
        max-width: 100%;
    }
}

/* iOS Safari optimizations */
@supports (-webkit-touch-callout: none) {
    .cta-primary, .cta-secondary {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Improve touch responsiveness on iOS */
    .cta-primary:active, .cta-secondary:active {
        transform: scale(0.98);
    }
}

/* Legal Page Styles */
:root {
    --nav-h: 60px;
    --anchor-gap: 16px;
}

html {
    scroll-behavior: smooth;
}

/* Legal page navbar - compact variant */
body:has(.legal-section) .navbar {
    height: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body:has(.legal-section) .nav-container {
    height: 60px;
    /* Match legal content card width and center */
    max-width: 800px;
    padding: 0;
    margin: 0 auto;
    justify-content: space-between;
}

body:has(.legal-section) .nav-logo svg {
    height: 40px;
}

body:has(.legal-section) .nav-menu {
    gap: 1.5rem;
}

body:has(.legal-section) .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.legal-section {
    padding: 6rem 0 4rem 0;
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Anchor link positioning - proper solution */
#privacy, #terms, #refund, #eula {
    scroll-margin-top: calc(var(--nav-h) + var(--anchor-gap));
}



.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.legal-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.legal-nav-link {
    background: var(--bg-secondary);
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.legal-nav-link:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

.legal-content h2 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-primary);
}

.legal-content h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.privacy-highlight, .refund-highlight, .license-callout, .updates-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-white);
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
}

.legal-disclaimer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    border-left: 3px solid var(--warning-color);
}

.legal-disclaimer p {
    margin: 0;
    color: var(--text-secondary);
}

.legal-contact {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    min-height: 300px;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile-specific legal-contact overrides */
@media (max-width: 768px) {
    .legal-contact {
        min-height: 250px !important;
        max-height: 250px !important;
        padding: 1.5rem !important;
        justify-content: flex-start !important;
    }
    
    .legal-contact h2 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
    }
    
    .legal-contact p {
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    .legal-contact li {
        font-size: 0.85rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.2 !important;
    }
}

.legal-contact h2 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.legal-contact p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.legal-contact ul {
    list-style: none;
    padding: 0;
    color: var(--text-white);
}

.legal-contact li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-nav-link {
        width: 200px;
        text-align: center;
    }
    
    .legal-content {
        padding: 1.5rem;
        margin: 0 1rem 2rem 1rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .privacy-highlight, .refund-highlight, .license-callout, .updates-highlight {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Compact navbar on mobile */
    body:has(.legal-section) .navbar {
        height: 56px;
    }
    
    body:has(.legal-section) .nav-container {
        height: 56px;
    }
    
    body:has(.legal-section) .nav-logo svg {
        height: 36px;
    }
    
    body:has(.legal-section) .nav-menu {
        gap: 1rem;
    }
    
    body:has(.legal-section) .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}
