@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f0f4f8;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Glassmorphism Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Header */
header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

.mobile-toggle {
    display: none;
}

header.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.nav-dropdown {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-demo {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-dark);
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 14px;
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
    background: 
        linear-gradient(to right, #f0f4f8 30%, rgba(240, 244, 248, 0.8) 70%, transparent 100%),
        url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&q=80&w=1600') no-repeat center right;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Removed .hero-bg-overlay as it's now integrated into .hero background */
.hero-bg-overlay {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.4fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.text-red {
    color: #ef4444;
    display: inline-block;
    white-space: nowrap;
}

.text-block {
    display: block;
    color: var(--dark);
}

.hero-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 2rem;
}

.hero-cta-box {
    display: inline-flex;
    flex-direction: row;
    gap: 1.5rem;
    padding: 1.5rem 2.5rem;
    margin-top: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.hero-cta-box .btn {
    width: auto;
    white-space: nowrap;
}

/* Phone Mockup */
.phone-mockup-wrapper {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 570px;
    background: #000;
    border-radius: 36px;
    border: 10px solid #1a1a1a;
    position: relative;
    box-shadow: -20px 50px 100px -20px rgba(0,0,0,0.4);
    overflow: hidden;
    margin: 0 auto;
    transform: perspective(1200px) rotateY(-15deg) rotateX(5deg);
    transform-style: preserve-3d;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0b1120;
    color: white;
    padding: 1.5rem 1.25rem;
    overflow: hidden;
    position: relative;
    font-size: 0.9em;
}

.phone-screen::-webkit-scrollbar {
    display: none;
}

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

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.appointment-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-area {
    height: 150px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 1rem;
}

.bar {
    flex: 1;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

.icon-1 { top: 20%; right: 10%; animation-delay: 0s; }
.icon-2 { top: 45%; right: -5%; animation-delay: 1s; }
.icon-3 { bottom: 20%; right: 5%; animation-delay: 2s; }
.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.3;
}

.blob-1 {
    background: var(--primary);
    top: -100px;
    right: -200px;
}

.blob-2 {
    background: var(--secondary);
    bottom: -100px;
    right: 100px;
}

.circuit-pattern {
    pointer-events: none;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { margin: 0 auto 2.5rem; }
    .hero-bg-overlay { width: 100%; mask-image: radial-gradient(circle, black, transparent); }
    header { width: 95%; }
}

@media (max-width: 768px) {
    nav { 
        display: none; 
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border: 1px solid rgba(255,255,255,0.5);
    }
    
    nav.active {
        display: flex;
    }

    .text-red, .text-block {
        white-space: normal !important;
        display: inline;
    }

    .hero-content h1 { 
        font-size: 2rem; 
        line-height: 1.3;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        text-align: center;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 40px;
        text-align: center;
    }

    header { padding: 0 1.5rem; }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: var(--text-dark);
        font-size: 1.8rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }

    .hero-cta-box {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .hero-cta-box .btn {
        width: 100%;
    }

    .phone-mockup-wrapper {
        margin-top: 3rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
        transform: none !important; /* Remove tilt on mobile for better visibility */
    }

    .floating-icon {
        display: none; /* Remove floating icons on mobile to declutter */
    }
}

/* Features & Pricing Sections */
.features-section, .pricing-section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

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

.feature-card, .pricing-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover, .pricing-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    position: relative;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
}

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

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 900;
}

/* Footer */
footer {
    margin-top: 100px;
    padding: 4rem 0 2rem;
    border-radius: 40px 40px 0 0 !important;
}

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

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .pricing-card.featured:hover { transform: translateY(-10px); }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--dark);
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

.modal-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}
