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

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Hardware acceleration for animations */
.feature-card,
.benefit-item,
.preview-card,
.hero-decoration,
.section-header,
.cta-content {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

:root {
    --primary-purple: #7c3aed;
    --primary-purple-dark: #6d28d9;
    --primary-purple-light: #8b5cf6;
    --secondary-blue: #3b82f6;
    --accent-gold: #f59e0b;
    --gradient-start: #e0c3fc;
    --gradient-mid: #8ec5fc;
    --gradient-end: #c4b5fd;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-purple-light: #faf5ff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-buttons {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary-purple);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-purple);
    border: 1px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--bg-purple-light);
}

.btn-secondary-outline {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-purple);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.btn-secondary-outline:hover {
    background: rgba(124, 58, 237, 0.2);
}

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

.btn-white:hover {
    background: var(--bg-light);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 24px 0;
}

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

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-purple);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-medium);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Dashboard Preview */
.hero-visual {
    position: relative;
}

.dashboard-preview {
    position: relative;
    width: 100%;
    height: 500px;
    max-width: 550px;
    margin: 0 auto;
}

.preview-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    gap: 16px;
    align-items: center;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20px;
    left: 0;
    width: 260px;
    animation-delay: 0s;
}

.card-2 {
    top: 180px;
    right: 0;
    width: 260px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20px;
    left: 40px;
    width: 220px;
    padding: 20px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.patient-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.schedule-icon {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.card-content {
    flex: 1;
    width: 100%;
}

.card-line {
    height: 10px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 8px;
}

.card-line.short {
    width: 60%;
}

.card-line.medium {
    width: 80%;
}

/* Enhanced Card Styles */
.preview-card {
    flex-direction: column;
    align-items: flex-start;
}

.card-header {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
}

.card-header-small {
    width: 100%;
    margin-bottom: 12px;
}

.card-title {
    flex: 1;
}

.card-line-title {
    height: 12px;
    background: #1f2937;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 6px;
}

.card-line-title.small {
    width: 50%;
}

.card-line-subtitle {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    width: 50%;
}

/* Patient Info Styles */
.patient-info {
    width: 100%;
    margin-bottom: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.info-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-purple);
    flex-shrink: 0;
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-purple);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Calendar Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
    width: 100%;
}

.calendar-cell {
    height: 30px;
    background: #e5e7eb;
    border-radius: 6px;
}

.calendar-cell.active {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
}

.calendar-cell.scheduled {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.appointment-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.appointment-item {
    height: 20px;
    background: #e5e7eb;
    border-radius: 4px;
    border-left: 3px solid var(--primary-purple);
    padding-left: 8px;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.legend-item {
    height: 8px;
    width: 40px;
    background: #e5e7eb;
    border-radius: 4px;
}

.legend-item:first-child {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
}

.legend-item:last-child {
    background: #e5e7eb;
}

.chart-preview {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 80px;
    width: 100%;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
    border-radius: 6px 6px 0 0;
    animation: grow 2s ease-in-out infinite;
}

@keyframes grow {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.1);
    }
}

/* Hero Decorations */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
}

.hero-decoration.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.hero-decoration.circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
}

.hero-decoration.circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-medium);
}

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

.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(124, 58, 237, 0.3);
    border-color: var(--primary-purple);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--bg-purple-light);
    color: var(--primary-purple);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.benefit-item p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.cta-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.cta-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.cta-decoration.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, white 0%, transparent 70%);
    top: -250px;
    right: -100px;
}

.cta-decoration.circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, white 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
}

.footer-brand img {
    width: 32px;
    height: 32px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

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

.footer-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-buttons {
        display: none;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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