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

:root {
    --primary-color: #ec4899;
    --secondary-color: #f472b6;
    --accent-color: #f97316;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #fdf2f8;
    --border-color: #f3e8ff;
    --shadow-sm: 0 1px 2px rgba(236, 72, 153, 0.05);
    --shadow-md: 0 4px 6px rgba(236, 72, 153, 0.1);
    --shadow-lg: 0 10px 15px rgba(236, 72, 153, 0.1);
    --shadow-xl: 0 20px 25px rgba(236, 72, 153, 0.15);
    --gradient-primary: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    --gradient-secondary: linear-gradient(135deg, #f472b6 0%, #f97316 100%);
    --gradient-glossy: linear-gradient(135deg, #ec4899 0%, #f472b6 50%, #f97316 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo .logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo .logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button::after {
    display: none;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    background: var(--gradient-secondary);
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 20%;
    background: var(--gradient-accent);
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 60px;
    height: 60px;
    top: 10%;
    right: 60%;
    background: var(--gradient-secondary);
    animation-delay: 3s;
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: var(--gradient-glossy);
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-glossy);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.cta-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

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

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

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

/* Dashboard Preview */
.hero-visual {
    animation: slideInRight 1s ease-out 0.3s both;
}

.dashboard-preview {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.3s ease;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.dashboard-header {
    background: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.header-dots {
    display: flex;
    gap: 0.5rem;
}

.header-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6b7280;
}

.header-dots span:nth-child(1) { background: #ef4444; }
.header-dots span:nth-child(2) { background: #f59e0b; }
.header-dots span:nth-child(3) { background: #10b981; }

.dashboard-content {
    padding: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

.widget {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-badge {
    background: var(--gradient-glossy);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.appointment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.appointment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.appointment-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 60px;
}

.appointment-details {
    flex: 1;
}

.client-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.appointment-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.appointment-status.confirmed {
    background: var(--primary-color);
}

.revenue-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.revenue-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.revenue-change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.revenue-change.positive {
    background: #dcfce7;
    color: #166534;
}

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

.chart-bar {
    flex: 1;
    background: var(--gradient-glossy);
    border-radius: 4px 4px 0 0;
    min-width: 8px;
    animation: growUp 1s ease-out;
}

@keyframes growUp {
    from { height: 0; }
    to { height: var(--height); }
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.features-section {
    padding: 6rem 0 8rem 0;
    background: var(--bg-primary);
}

/* Feature Showcase */
.feature-showcase {
    margin-bottom: 4rem;
    position: relative;
    padding: 6rem 4rem;
    width: 95vw;
    margin-left: calc(-47.5vw + 50%);
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.06);
}

.feature-showcase:last-child {
    margin-bottom: 0;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.feature-showcase.reverse .feature-visual {
    order: 1;
}

.feature-showcase.reverse .feature-text {
    order: 2;
}

/* Angle chat demo toward the text on the right */
.feature-showcase.reverse #chat-demo {
    transform: perspective(1000px) rotateY(15deg) rotateX(5deg) !important;
}

.feature-showcase.reverse #chat-demo:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02) !important;
}

/* Angle revenue demo toward the text on the right */
.feature-showcase.reverse #revenue-demo {
    transform: perspective(1000px) rotateY(15deg) rotateX(5deg) !important;
}

.feature-showcase.reverse #revenue-demo:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02) !important;
}

/* Angle mobile demo toward the text on the right */
.feature-showcase.reverse #mobile-demo {
    transform: perspective(1000px) rotateY(25deg) rotateX(5deg) !important;
}

.feature-showcase.reverse #mobile-demo:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02) !important;
}

.feature-text h3 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.feature-text p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.feature-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-learn-more:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-start-free {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-glossy);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-start-free:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-demo {
    width: 560px;
    height: 420px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-demo:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Mobile demo specific - no container box */
#mobile-demo {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
}

#mobile-demo:hover {
    transform: none !important;
}

/* Chat demo specific - no container box */
#chat-demo {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

#chat-demo:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02) !important;
}

/* Revenue demo specific - keep container box */
#revenue-demo {
    background: white !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-xl) !important;
    overflow: hidden !important;
}

#revenue-demo:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02) !important;
}

/* Demo Calendar Styles */
.demo-calendar {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.demo-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.demo-calendar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.demo-calendar-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.demo-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    flex: 1;
}

.demo-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.demo-selected {
    background: var(--gradient-glossy);
    color: white;
    font-weight: 700;
}

/* Enhanced Booking Demo Styles */
.demo-time-slots {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.demo-time-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.demo-time-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.demo-time-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.demo-time-slot {
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.demo-time-slot.available {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid transparent;
}

.demo-time-slot.booked {
    background: #fee2e2;
    color: #dc2626;
    border: 2px solid #fecaca;
}

.demo-slot-time {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.demo-slot-status {
    font-size: 0.7rem;
    opacity: 0.8;
}

.demo-appointment-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-align: center;
    min-width: 60px;
}

.demo-appointment-status.confirmed {
    background: #dcfce7;
    color: #166534;
}

.demo-appointment-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.demo-appointments {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
}

.demo-appointment {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.demo-appointment-time {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 80px;
}

.demo-appointment-info {
    flex: 1;
}

.demo-appointment-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.demo-appointment-service {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Demo Chat Styles */
.demo-chat {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.demo-chat:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.demo-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
}

.demo-chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.demo-chat-info {
    flex: 1;
}

.demo-chat-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.demo-chat-status {
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
    opacity: 0.9;
}

.demo-chat-messages {
    flex: 1;
    padding: 1.5rem;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    height: 300px;
}

.demo-message {
    display: flex;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.demo-message.received {
    justify-content: flex-start;
}

.demo-message.sent {
    justify-content: flex-end;
}

.demo-message-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
}

.demo-message.received .demo-message-bubble {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.demo-message.sent .demo-message-bubble {
    background: var(--gradient-primary);
    color: white;
}

.demo-message {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.demo-message.show {
    opacity: 1;
    transform: translateY(0);
}

.demo-chat-input {
    padding: 1rem;
    background: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.demo-typing-area {
    flex: 1;
    min-height: 20px;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.demo-typing-area.active {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.1);
}

.demo-text {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.demo-cursor {
    color: var(--primary-color);
    font-weight: bold;
    animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.demo-send-button {
    width: 40px;
    height: 40px;
    background: var(--gradient-glossy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.demo-send-button.active {
    transform: scale(1.1);
    background: linear-gradient(145deg, #be185d 0%, #ec4899 50%, #f472b6 100%);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Demo Payment Styles */
.demo-payment {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.demo-payment-content {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    transform: scale(0.95);
}

.demo-payment-form {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.demo-payment-amount {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.demo-currency {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.demo-amount {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-left: 0.25rem;
}

.demo-payment-details {
    margin-bottom: 1.5rem;
}

.demo-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.02rem;
}

.demo-service-item:last-child {
    border-bottom: none;
}

.demo-service-item span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.demo-service-item span:last-child {
    color: var(--text-secondary);
    font-weight: 600;
}

.demo-payment-method {
    margin-bottom: 1.5rem;
}

.demo-card-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.demo-card-preview i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.demo-card-preview span {
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.demo-payment-button {
    text-align: center;
}

.demo-pay-btn {
    background: var(--gradient-glossy);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.demo-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.demo-success-screen {
    text-align: center;
    color: white;
    max-width: 320px;
    margin: 0 auto;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 24px;
    padding: 2rem 1.75rem;
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.25);
    position: relative;
    overflow: hidden;
}

.demo-success-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.demo-success-icon {
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.demo-success-icon i {
    font-size: 3.6rem;
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.demo-success-screen h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: white;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Demo Revenue Styles */
.demo-revenue {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.demo-revenue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.demo-revenue-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.demo-revenue-balance {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.demo-revenue-transactions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
}

.demo-transaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.demo-transaction-info {
    flex: 1;
}

.demo-transaction-description {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.demo-transaction-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.demo-transaction-amount {
    font-size: 0.9rem;
    font-weight: 700;
    color: #10b981;
}

/* Demo Merge Styles - Updated to match dedicated page */
.demo-upload-screen {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: screenTransition 0.5s ease-out;
}

.demo-loading-screen {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: screenTransition 0.5s ease-out;
}

.demo-analytics-screen {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: screenTransition 0.5s ease-out;
}

@keyframes screenTransition {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.demo-upload-area {
    text-align: center;
    padding: 2rem;
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    background: var(--bg-secondary);
}

.demo-upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.demo-upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.demo-upload-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.demo-progress {
    width: 100%;
    text-align: center;
}

.demo-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.demo-progress-fill {
    height: 100%;
    background: var(--gradient-glossy);
    border-radius: 4px;
    animation: progressFill 3s ease-out;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

.demo-progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.demo-merge-success {
    text-align: center;
    animation: successFadeIn 0.5s ease-out;
}

.demo-merge-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.demo-stat {
    text-align: center;
}

.demo-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.demo-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* New Demo Merge Styles for dedicated page compatibility */
.demo-loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.demo-analytics-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.demo-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.demo-analytics-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.demo-analytics-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.demo-analytics-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Demo Mobile Styles */
.demo-phone {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.demo-phone-frame {
    width: 272px;
    height: 544px;
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
    border-radius: 34px;
    padding: 7px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(3deg);
    transition: transform 0.3s ease;
}

.demo-phone-frame:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(1deg) scale(1.02);
}

.demo-phone-frame::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 3px;
    background: #4a5568;
    border-radius: 2px;
}

.demo-phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 27px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-app-logo {
    width: 85px;
    height: 85px;
    background: var(--gradient-glossy);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: white;
    box-shadow: var(--shadow-lg);
    animation: logoAppear 2s ease-out;
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.demo-click-effect {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: clickRipple 1s ease-out;
}

@keyframes clickRipple {
    0% {
        opacity: 1;
        transform: scale(0.3);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-login-screen {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: screenTransition 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.demo-login-logo {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-glossy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2.5rem;
    position: relative;
    letter-spacing: -1px;
}

.demo-role-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 204px;
}

.demo-role-card {
    background: white;
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #f3e8ff;
    animation: cardSlideIn 0.6s ease-out;
}

.demo-role-card:nth-child(2) {
    animation-delay: 0.2s;
}

.demo-role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.3);
    border-color: var(--primary-color);
}

.demo-role-icon {
    width: 51px;
    height: 51px;
    background: var(--gradient-glossy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 6px 15px rgba(236, 72, 153, 0.3);
    transition: all 0.3s ease;
}

.demo-role-card:hover .demo-role-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.demo-role-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.demo-click-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(236, 72, 153, 0.3);
    border-radius: 50%;
    animation: clickRipple 1s ease-out;
    pointer-events: none;
}

@keyframes clickRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.feature-card.large {
    padding: 2.5rem;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-glossy);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.3);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-glossy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.feature-details {
    margin-top: 1.5rem;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
}

.feature-details ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-details li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-details i {
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    margin-bottom: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-glossy);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    justify-content: center;
    align-self: center;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: white;
}

.learn-more-btn i {
    font-size: 0.7rem;
}

.feature-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.feature-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1rem;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(145deg, #ffffff 0%, #fdf2f8 100%);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
    background: linear-gradient(145deg, #ffffff 0%, #fce7f3 100%);
}

.pricing-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-glossy);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-price {
    margin-bottom: 1rem;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: top;
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-features {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pricing-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.pricing-features i {
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 16px;
}

.pricing-cta {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gradient-glossy);
    color: white;
    box-shadow: var(--shadow-md);
}

.pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pricing-cta.featured {
    background: var(--gradient-glossy);
}

.pricing-cta.coming-soon {
    background: var(--gradient-glossy);
    cursor: not-allowed;
    opacity: 0.7;
}

.pricing-cta.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.cta-section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-glossy);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.cta-shape-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.cta-shape-2 {
    width: 120px;
    height: 120px;
    top: 70%;
    right: 20%;
    background: var(--gradient-glossy);
    animation-delay: 2s;
}

.cta-shape-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 80%;
    background: var(--gradient-glossy);
    animation-delay: 4s;
}

.cta-shape-4 {
    width: 100px;
    height: 100px;
    top: 25%;
    right: 60%;
    animation-delay: 1s;
}

.cta-shape-5 {
    width: 50px;
    height: 50px;
    top: 80%;
    left: 30%;
    background: var(--gradient-glossy);
    animation-delay: 3s;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

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

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.cta-primary.large, .cta-secondary.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.cta-secondary.large {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.cta-secondary.large:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .pricing-grid {
        gap: 1rem;
        max-width: 900px;
    }

    .pricing-card {
        padding: 1.75rem;
    }

    .pricing-price .amount {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .dashboard-preview {
        transform: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-showcase {
        width: 98vw;
        margin-left: calc(-49vw + 50%);
        padding: 4rem 2rem;
        margin-bottom: 2rem;
        border-radius: 16px;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-showcase.reverse .feature-content {
        direction: ltr;
    }
    
    .feature-text h3 {
        font-size: 2.5rem;
    }
    
    .feature-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .feature-demo {
        width: 448px;
        height: 336px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-card {
        min-height: auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero-container {
        padding: 0 1rem;
    }

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

    .container {
        padding: 0 1rem;
    }
    
    .feature-showcase {
        width: 99vw;
        margin-left: calc(-49.5vw + 50%);
        padding: 3rem 1.5rem;
        border-radius: 12px;
    }

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

    .pricing-card {
        padding: 2rem;
        min-height: auto;
    }

    .pricing-price .amount {
        font-size: 2.5rem;
    }
}

/* Ambassador Page Specific Styles */
.earnings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.earnings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.earnings-month {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.earnings-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.referral-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.earnings-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.earnings-status.active {
    background: #10b981;
}

.earnings-status.pending {
    background: #f59e0b;
}

.referral-link-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.link-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.income-calculator {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.income-calculator h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.calculator-input {
    margin-bottom: 2rem;
}

.calculator-input label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.calculator-input input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.calculator-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calculator-result {
    text-align: center;
    padding: 1.5rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
    margin-bottom: 1.5rem;
}

.result-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1rem;
    opacity: 0.9;
}

.calculator-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.benefit i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.tracking-dashboard {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
    border: none;
    color: var(--text-primary);
}

.tracking-dashboard .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.tracking-dashboard .dashboard-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tracking-dashboard .dashboard-stats {
    display: flex;
    gap: 1.5rem;
}

.tracking-dashboard .stat {
    text-align: center;
}

.tracking-dashboard .stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tracking-dashboard .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tracking-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tracking-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tracking-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.tracking-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.tracking-item p {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Responsive Design for Ambassador Page */
@media (max-width: 768px) {
    .tracking-dashboard .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .tracking-dashboard .dashboard-stats {
        justify-content: center;
    }
    
    .income-calculator {
        padding: 1.5rem;
    }
    
    .tracking-dashboard {
        padding: 1.5rem;
    }
}

/* FAQ Section Styles */
.faq-section {
    padding: 6rem 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.faq-answer.active {
    max-height: 200px;
}

.faq-answer p {
    padding: 1rem 2rem 2rem;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .tracking-dashboard .dashboard-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calculator-result {
        padding: 1rem;
    }
    
    .result-amount {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem;
    }
}

/* Mobile Responsive Design */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .ambassador-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .income-showcase {
        flex-direction: column;
        gap: 2rem;
    }
    
    .tracking-showcase {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
        height: 55px;
    }
    
    .nav-logo .logo-text {
        font-size: 1.1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 55px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.75rem 0;
        display: block;
        width: 100%;
    }
    
    .cta-button {
        margin: 0.5rem 0;
        padding: 0.75rem 2rem !important;
        border-radius: 8px;
        background: var(--gradient-primary);
        color: white !important;
    }
    
    /* Hero Section */
    .hero {
        padding: 8rem 0 4rem;
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
    }
    
    /* Features Section */
    .features-section {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    /* Pricing Section */
    .pricing-section {
        padding: 4rem 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-card h3 {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    /* Ambassador Page */
    .ambassador-hero {
        padding: 6rem 0 3rem;
    }
    
    .ambassador-hero h1 {
        font-size: 2.5rem;
    }
    
    .ambassador-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ambassador-card {
        padding: 1.5rem;
    }
    
    .income-calculator {
        padding: 1.5rem;
    }
    
    .calculator-input {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calculator-input input {
        width: 100%;
    }
    
    .tracking-dashboard {
        padding: 1.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tracking-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* FAQ Section */
    .faq-section {
        padding: 4rem 0;
    }
    
    .faq-question {
        padding: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer p {
        padding: 1rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Navigation */
    .nav-container {
        padding: 0 0.75rem;
        height: 50px;
    }
    
    .nav-logo .logo-text {
        font-size: 1rem;
    }
    
    .nav-menu {
        top: 50px;
        padding: 1.5rem 0;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 6rem 0 3rem;
        min-height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Features Section */
    .features-section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Pricing Section */
    .pricing-section {
        padding: 3rem 0;
    }
    
    .pricing-card {
        padding: 1.25rem;
    }
    
    .pricing-card h3 {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .pricing-card ul {
        margin: 1rem 0;
    }
    
    .pricing-card li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Ambassador Page */
    .ambassador-hero {
        padding: 5rem 0 2rem;
    }
    
    .ambassador-hero h1 {
        font-size: 2rem;
    }
    
    .ambassador-hero p {
        font-size: 0.9rem;
    }
    
    .ambassador-stats {
        gap: 0.75rem;
    }
    
    .ambassador-card {
        padding: 1.25rem;
    }
    
    .ambassador-card h3 {
        font-size: 1.1rem;
    }
    
    .ambassador-card p {
        font-size: 0.85rem;
    }
    
    .income-calculator {
        padding: 1.25rem;
    }
    
    .calculator-input input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .calculator-result {
        padding: 1rem;
    }
    
    .result-amount {
        font-size: 1.75rem;
    }
    
    .tracking-dashboard {
        padding: 1.25rem;
    }
    
    .dashboard-stats {
        gap: 0.75rem;
    }
    
    .stat {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .tracking-features {
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .feature-item h4 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.85rem;
    }
    
    /* FAQ Section */
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-question {
        padding: 1.25rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0.75rem 1.25rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cta-primary.large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
        padding: 5rem 0 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .nav-container {
        height: 50px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .feature-card,
    .pricing-card,
    .ambassador-card {
        border-width: 0.5px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover::after {
        width: 0;
    }
    
    .feature-card:hover,
    .pricing-card:hover,
    .ambassador-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .faq-item:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .nav-link {
        padding: 0.5rem;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .faq-question {
        min-height: 44px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .cta-section,
    .btn {
        display: none !important;
    }
    
    .hero,
    .features-section,
    .pricing-section {
        padding: 1rem 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Additional Mobile Optimizations */

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        overflow-x: hidden;
    }
    
    /* Improve touch targets */
    .btn,
    .nav-link,
    .faq-question {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Optimize images and graphics */
    .hero-visual img,
    .dashboard-preview img {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve form elements */
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
    }
    
    /* Better spacing for mobile */
    .section-header {
        margin-bottom: 2rem;
    }
    
    .feature-card,
    .pricing-card,
    .ambassador-card {
        margin-bottom: 1rem;
    }
}

/* Mobile-specific animations */
@media (max-width: 768px) {
    .floating-shapes .shape {
        animation-duration: 8s;
    }
    
    .hero-content {
        animation-duration: 1s;
    }
    
    /* Reduce motion for better performance */
    .feature-card:hover,
    .pricing-card:hover,
    .ambassador-card:hover {
        transform: none;
        transition: none;
    }
}

/* Mobile landscape optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
        padding: 3rem 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }
    
    .stat-item {
        flex: 1;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    /* Ensure sufficient color contrast */
    .nav-link {
        color: var(--text-primary);
    }
    
    .nav-link:hover,
    .nav-link:focus {
        color: var(--primary-color);
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Improve focus indicators */
    .btn:focus,
    .faq-question:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Better text readability */
    .hero-content p,
    .feature-card p,
    .pricing-card p {
        line-height: 1.6;
    }
}

/* Performance optimizations */
@media (max-width: 768px) {
    /* Reduce box shadows for better performance */
    .feature-card,
    .pricing-card,
    .ambassador-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Mobile-specific loading states */
@media (max-width: 768px) {
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .faq-question:active {
        background: var(--bg-secondary);
    }
}

/* Mobile Responsive Design - Comprehensive Fix */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 1rem;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 1rem 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .cta-button {
        margin: 1rem 0;
        padding: 1rem 2rem !important;
        border-radius: 8px;
        background: var(--gradient-primary);
        color: white !important;
        font-weight: 600;
    }
    
    /* Hero Section - Proper mobile sizing */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Feature Cards */
    .feature-card h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Pricing Cards */
    .pricing-card h3 {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .pricing-card li {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Visual Elements - Hidden on mobile for cleaner experience */
    .hero-visual {
        display: none !important;
    }
    
    .floating-shapes {
        display: none !important;
    }
    
    /* Dashboard Preview - Hidden on mobile for cleaner experience */
    .dashboard-preview {
        display: none !important;
    }
    
    /* Dashboard content - Hidden on mobile for cleaner experience */
    .dashboard-content,
    .widget,
    .widget-header,
    .widget-badge {
        display: none !important;
    }
    
    /* Feature Demo - Hidden on mobile for cleaner experience */
    .feature-demo {
        display: none !important;
    }
    
    /* Demo content - Hidden on mobile for cleaner experience */
    .demo-calendar,
    .demo-time-slots,
    .demo-appointments,
    .demo-chat,
    .demo-payment,
    .demo-revenue,
    .demo-upload-screen,
    .demo-loading-screen,
    .demo-analytics-screen,
    .demo-login-screen {
        display: none !important;
    }
    
    .demo-calendar-grid {
        gap: 0.1rem !important;
    }
    
    .demo-day {
        font-size: 0.6rem !important;
        padding: 0.2rem !important;
    }
    
    .demo-time-slot {
        padding: 0.3rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Spacing adjustments */
    .hero {
        padding: 3rem 0 2rem;
        min-height: 70vh;
    }
    
    .features-section,
    .pricing-section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* Layout adjustments */
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    /* Feature showcase adjustments */
    .feature-showcase {
        padding: 2rem 1rem !important;
        margin: 1rem 0 !important;
    }
    
    .feature-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .feature-text h3 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    .feature-text p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Ensure text doesn't overflow */
    .hero-content,
    .feature-card,
    .pricing-card,
    .feature-text,
    .hero-title,
    .hero-subtitle,
    .section-header h2,
    .section-header p,
    .feature-text h3,
    .feature-text p,
    .faq-question h3,
    .faq-answer p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Ambassador page specific mobile fixes */
    .hero-title .title-line {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-stats {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }
    
    .stat-item {
        text-align: center !important;
    }
    
    .stat-number {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
    }
    
    .stat-label {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    .features-section .section-header h2 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }
    
    .features-section .section-header p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    .feature-showcase .feature-text h3 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    .feature-showcase .feature-text p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    .faq-section .section-header h2 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }
    
    .faq-section .section-header p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    .faq-question h3 {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
    
    .faq-answer p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Fix layout issues for ambassador page */
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .feature-showcase .feature-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .feature-showcase.reverse .feature-content {
        direction: ltr !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .faq-container {
        gap: 1rem !important;
    }
    
    /* Fix button sizing for ambassador page */
    .hero-cta .cta-primary {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .feature-actions .cta-primary {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover::after {
        width: 0;
    }
    
    .feature-card:hover,
    .pricing-card:hover,
    .ambassador-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .faq-item:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .faq-question {
        min-height: 44px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .feature-card,
    .pricing-card,
    .ambassador-card {
        border-width: 0.5px;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Reduce box shadows for better performance */
    .feature-card,
    .pricing-card,
    .ambassador-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    

    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        overflow-x: hidden;
    }
    
    /* Improve form elements */
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .cta-section,
    .btn,
    .hamburger {
        display: none !important;
    }
    
    .hero,
    .features-section,
    .pricing-section {
        padding: 1rem 0 !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .feature-demo,
    .dashboard-preview {
        display: none !important;
    }
}

/* Mobile Demo Elements - Optimized for Mobile */
@media (max-width: 768px) {
    /* Reset all 3D transforms and perspective effects on mobile */
    .feature-demo,
    .dashboard-preview,
    .demo-chat,
    .demo-phone-frame,
    .demo-payment-content {
        transform: none !important;
        perspective: none !important;
        transform-style: flat !important;
    }
    
    /* Remove hover effects that cause issues on mobile */
    .feature-demo:hover,
    .dashboard-preview:hover,
    .demo-chat:hover,
    .demo-phone-frame:hover {
        transform: none !important;
    }
    
    /* Mobile-specific demo sizing - Hidden on mobile for cleaner experience */
    #booking-demo,
    #chat-demo,
    #payment-demo,
    #revenue-demo,
    #merge-demo {
        display: none !important;
    }
    
    /* Mobile demo specific - Hidden on mobile for cleaner experience */
    #mobile-demo {
        display: none !important;
    }
    
    .demo-phone-frame {
        display: none !important;
    }
    
    .demo-phone-screen {
        border-radius: 16px !important;
    }
    
    /* Adjust demo content for mobile */
    .demo-calendar,
    .demo-time-slots,
    .demo-appointments,
    .demo-chat,
    .demo-payment,
    .demo-revenue,
    .demo-upload-screen,
    .demo-loading-screen,
    .demo-analytics-screen,
    .demo-login-screen {
        padding: 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Demo elements - Hidden on mobile for cleaner experience */
    .demo-calendar-grid,
    .demo-day,
    .demo-time-slot {
        display: none !important;
    }
    
    .demo-appointment {
        padding: 0.75rem !important;
    }
    
    .demo-appointment-time {
        font-size: 0.8rem !important;
        min-width: 60px !important;
    }
    
    .demo-appointment-name {
        font-size: 0.8rem !important;
    }
    
    .demo-appointment-service {
        font-size: 0.7rem !important;
    }
    
    /* Chat demo mobile adjustments */
    .demo-chat-messages {
        height: 200px !important;
        padding: 1rem !important;
    }
    
    .demo-message-bubble {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Payment demo mobile adjustments */
    .demo-payment-form {
        padding: 1.25rem !important;
    }
    
    .demo-payment-amount {
        padding: 1rem !important;
    }
    
    .demo-amount {
        font-size: 1rem !important;
    }
    
    .demo-service-item {
        font-size: 0.9rem !important;
        padding: 0.4rem 0 !important;
    }
    
    /* Revenue demo mobile adjustments */
    .demo-revenue-transactions {
        gap: 0.5rem !important;
    }
    
    .demo-transaction {
        padding: 0.5rem !important;
    }
    
    .demo-transaction-description {
        font-size: 0.75rem !important;
    }
    
    .demo-transaction-time {
        font-size: 0.65rem !important;
    }
    
    .demo-transaction-amount {
        font-size: 0.8rem !important;
    }
    
    /* Merge demo mobile adjustments */
    .demo-upload-area {
        padding: 1.5rem !important;
    }
    
    .demo-upload-icon {
        font-size: 2rem !important;
    }
    
    .demo-upload-text {
        font-size: 1rem !important;
    }
    
    .demo-upload-subtext {
        font-size: 0.8rem !important;
    }
    
    .demo-analytics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .demo-analytics-item {
        padding: 0.75rem !important;
    }
    
    .demo-analytics-number {
        font-size: 1.2rem !important;
    }
    
    .demo-analytics-label {
        font-size: 0.7rem !important;
    }
    
    /* Mobile login screen adjustments */
    .demo-login-logo {
        font-size: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .demo-role-cards {
        gap: 1.5rem !important;
        max-width: 180px !important;
    }
    
    .demo-role-card {
        padding: 1rem !important;
    }
    
    .demo-role-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
    
    .demo-role-title {
        font-size: 0.85rem !important;
    }
    
    /* Fix floating shapes on mobile */
    .floating-shapes,
    .cta-floating-shapes {
        display: none !important;
    }
    
    /* Adjust hero section for mobile */
    .hero {
        min-height: 70vh !important;
        padding: 6rem 0 3rem !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-cta {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    /* Feature showcase mobile adjustments */
    .feature-showcase {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 3rem 1.5rem !important;
        border-radius: 12px !important;
        margin-bottom: 2rem !important;
    }
    
    .feature-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .feature-text h3 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .feature-text p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .feature-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .btn-learn-more,
    .btn-start-free {
        width: 100% !important;
        max-width: 250px !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Remove reverse order on mobile for better flow */
    .feature-showcase.reverse .feature-content {
        direction: ltr !important;
    }
    
    .feature-showcase.reverse .feature-visual {
        order: 2 !important;
    }
    
    .feature-showcase.reverse .feature-text {
        order: 1 !important;
    }
    
    /* Pricing section mobile adjustments */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .pricing-card {
        padding: 1.5rem !important;
        min-height: auto !important;
    }
    
    .pricing-card.featured {
        transform: none !important;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-4px) !important;
    }
    
    .pricing-price .amount {
        font-size: 2.5rem !important;
    }
    
    /* CTA section mobile adjustments */
    .cta-content h2 {
        font-size: 2rem !important;
    }
    
    .cta-content p {
        font-size: 1rem !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .cta-primary.large,
    .cta-secondary.large {
        width: 100% !important;
        max-width: 280px !important;
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .feature-demo {
        height: 250px !important;
    }
    
    #booking-demo,
    #chat-demo,
    #payment-demo,
    #revenue-demo,
    #merge-demo {
        height: 240px !important;
    }
    
    #mobile-demo {
        height: 280px !important;
    }
    
    .demo-phone-frame {
        width: 180px !important;
        height: 360px !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .feature-text h3 {
        font-size: 1.8rem !important;
    }
    
    .feature-text p {
        font-size: 0.9rem !important;
    }
    
    .feature-showcase {
        padding: 2rem 1rem !important;
    }
    
    .pricing-card {
        padding: 1.25rem !important;
    }
    
    .pricing-price .amount {
        font-size: 2.2rem !important;
    }
    
    .cta-content h2 {
        font-size: 1.8rem !important;
    }
    
    .cta-content p {
        font-size: 0.9rem !important;
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 60vh !important;
        padding: 4rem 0 2rem !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .feature-demo {
        height: 200px !important;
    }
    
    #booking-demo,
    #chat-demo,
    #payment-demo,
    #revenue-demo,
    #merge-demo {
        height: 180px !important;
    }
    
    #mobile-demo {
        height: 220px !important;
    }
    
    .demo-phone-frame {
        width: 160px !important;
        height: 320px !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .feature-demo:hover,
    .dashboard-preview:hover,
    .demo-chat:hover,
    .demo-phone-frame:hover,
    .feature-card:hover,
    .pricing-card:hover {
        transform: none !important;
    }
    
    /* Increase touch targets */
    .btn-learn-more,
    .btn-start-free,
    .cta-primary,
    .cta-secondary,
    .pricing-cta {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .nav-link {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Reduce animations for better performance */
    .floating-shapes .shape {
        animation-duration: 10s !important;
    }
    
    /* Simplify shadows for better performance */
    .feature-card,
    .pricing-card,
    .dashboard-preview {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .container {
        overflow-x: hidden !important;
    }
    
    /* Optimize form elements */
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .feature-card,
    .pricing-card,
    .dashboard-preview {
        border-width: 0.5px !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .cta-section,
    .btn,
    .hamburger,
    .floating-shapes,
    .cta-floating-shapes {
        display: none !important;
    }
    
    .hero,
    .features-section,
    .pricing-section {
        padding: 1rem 0 !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .feature-demo,
    .dashboard-preview {
        display: none !important;
    }
}
