:root {
    --primary-color: #1FA7A3;
    /* Medical Teal */
    --secondary-color: #2C7BE5;
    /* Soft Blue */
    --background-color: #F8FAFC;
    /* Slightly cooler gray for SaaS feel */
    --white: #FFFFFF;
    --text-dark: #1E293B;
    /* Slate 900 */
    --text-light: #64748B;
    /* Slate 500 */
    --border-color: #E2E8F0;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --radius: 16px;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography & Utilities */
h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header {
    margin-bottom: 4rem;
}

.pill-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(31, 167, 163, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-badge.secondary {
    background-color: rgba(44, 123, 229, 0.1);
    color: var(--secondary-color);
}

/* Background Patterns */
.dot-pattern {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(31, 167, 163, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #178a87;
    border-color: #178a87;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #1a62c1;
    box-shadow: 0 10px 15px -3px rgba(44, 123, 229, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-dark);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: #f0fdfc;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.95rem;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--text-dark);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.trust-avatars {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

.trust-avatars span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup-stack {
    position: relative;
    width: 320px;
    height: 640px;
}

/* .phone-img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background-color: #fff;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    border: 8px solid #1a1a1a;
} */

.main-phone {
    z-index: 3;
    position: relative;
}

.secondary-phone {
    z-index: 2;
    transform: scale(0.9) translateY(20px) translateX(40px);
    opacity: 0.8;
}

.phone-offset-2 {
    z-index: 1;
    transform: scale(0.8) translateY(40px) translateX(80px);
    opacity: 0.6;
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(31, 167, 163, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.rounded-img {
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.check-list {
    margin: 2rem 0;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.check-list li::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231FA7A3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    display: block;
    width: 20px;
    height: 20px;
}

/* Courses Section */
.courses-section {
    padding: 6rem 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.course-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.course-img-wrapper {
    height: 180px;
    overflow: hidden;
}

.course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img-wrapper img {
    transform: scale(1.05);
}

.course-content {
    padding: 1.5rem;
}

.category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(31, 167, 163, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.course-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials-section {
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(31, 167, 163, 0.2);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
    font-family: serif;
}

.testimonial-card p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-style: italic;
    color: var(--text-dark);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.user-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    background-color: var(--white);
}

/* Toggle Switch */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    font-weight: 600;
    cursor: pointer;
}

.toggle-bg {
    width: 60px;
    height: 32px;
    background-color: #cbd5e1;
    border-radius: 50px;
    position: relative;
    padding: 4px;
    transition: background-color 0.3s ease;
}

.pricing-toggle.active .toggle-bg {
    background-color: var(--primary-color);
}

.toggle-circle {
    width: 24px;
    height: 24px;
    background-color: var(--white);
    border-radius: 50%;
    position: absolute;
    left: 4px;
    top: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.pricing-toggle.active .toggle-circle {
    transform: translateX(28px);
}

/* Stats Section */
/* Removed previous stats-section styles if any duplicated... */
/* Keeping only what's needed */

/* Hero Image Stack - Clean up */
.hero-image {
    perspective: 1000px;
}

.phone-mockup-stack {
    position: relative;
    width: 300px;
    height: 600px;
    transform-style: preserve-3d;
}

/* 
.phone-img {
    width: 100%;
    height: auto;
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    border: 8px solid #1a1a1a;
    transition: transform 0.5s ease;
} */

.main-phone {
    z-index: 10;
    position: relative;
    transform: rotateY(-10deg) rotateX(5deg);
}

.secondary-phone {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    opacity: 0.9;
    transform: translate(50px, 40px) scale(0.9) rotateY(-10deg) rotateX(5deg);
    filter: brightness(0.9);
}

/* Hide third phone for cleaner look as requested */
.phone-offset-2 {
    display: none;
}

.discount-badge {
    background-color: #ffe4e6;
    color: #e11d48;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 5px;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 40px -10px rgba(31, 167, 163, 0.15);
    z-index: 10;
    transform: scale(1.05);
    /* Make it stand out */
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.plan-desc {
    margin-bottom: 2rem;
}

.features-list {
    margin-bottom: 2.5rem;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
}

.features-list li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.features-list li.disabled {
    color: #cbd5e1;
}

.features-list li.disabled::before {
    content: "×";
    color: #cbd5e1;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
}

.faq-container {
    max-width: 800px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--white);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* FAQ Active State */
.faq-item.active {
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-color);
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust based on content */
    padding-bottom: 1rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0 6rem;
}

.newsletter-box {
    background-color: var(--text-dark);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1551076805-e1869033e561?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.9);
    /* Dark overlay */
    border-radius: 24px;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 50px;
    border: none;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: 2px solid var(--secondary-color);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--primary-color);
    text-align: center;
    color: var(--white);
}

.cta-container h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* Footer */
.footer-container {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col {
    flex: 1;
    min-width: 150px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-light);
    font-weight: 500;
}

/* Responsive Styles */
@media screen and (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-avatars {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .check-list li {
        justify-content: center;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 4rem;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .phone-mockup-stack {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        margin-top: 3rem;
    }

    .phone-img {
        position: relative;
        width: 80%;
        margin: 0 auto;
    }

    .secondary-phone {
        display: none;
    }
}