:root {
    --primary-green: #8EC63D;
    --primary-pink: #D00141;
    --primary-teal: #019AAA;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav-cta {
    background: var(--primary-teal);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    background: #017a87;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23019AAA" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23019AAA" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-content p {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-form {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    border: 1px solid rgba(1, 154, 170, 0.1);
}

.hero-form h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row select {
    padding: 15px 18px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 15px;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-row select:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(1, 154, 170, 0.1);
}

.hero-button {
    width: 100%;
    background: var(--primary-teal);
    color: var(--white);
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.hero-button:hover {
    background: #017a87;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

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

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-mockups {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.mockup-device {
    position: absolute;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease-out;
    background: var(--white);
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.mockup-device:hover {
    transform: translateY(-8px) translateZ(0);
}

.mockup-device img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 20px;
}

.mockup-primary {
    width: 280px;
    height: 560px;
    z-index: 2;
    border: 4px solid var(--white);
    left: 20px;
    transform: rotate(-5deg);
}

.mockup-secondary {
    width: 260px;
    height: 520px;
    z-index: 1;
    right: 20px;
    top: 40px;
    border: 3px solid var(--white);
    opacity: 0.95;
    transform: rotate(8deg);
}

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

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 60px;
    line-height: 1.2;
}

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

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(1, 154, 170, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, #017a87 100%);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

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

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

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

.doctor-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(1, 154, 170, 0.1);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.doctor-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, #017a87 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}

.doctor-info {
    padding: 25px;
}

.doctor-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.doctor-specialty {
    color: var(--text-medium);
    font-size: 16px;
    margin-bottom: 12px;
}

.doctor-experience {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 18px;
}

.doctor-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-stars {
    color: #ffd700;
    font-size: 16px;
}

.rating-text {
    color: var(--text-light);
    font-size: 14px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 35px;
    border-radius: 20px;
    border-left: 5px solid var(--primary-teal);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 16px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.testimonial-title {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.partners h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-logo {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(1, 154, 170, 0.1);
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-teal);
}

/* App Download Section */
.app-download {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-teal) 0%, #017a87 50%, var(--primary-teal) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.app-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.app-download::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="hexagons" width="60" height="60" patternUnits="userSpaceOnUse"><polygon points="30,2 50,15 50,35 30,48 10,35 10,15" fill="none" stroke="white" stroke-width="1" opacity="0.05"/></pattern></defs><rect width="60" height="60" fill="url(%23hexagons)"/></svg>');
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.app-download-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-download-content h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #e0f7fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-download-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.download-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

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

.download-stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffffff 0%, #b2dfdb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-stat-label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.download-badge {
    display: block;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.download-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.store-badge {
    height: 60px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.store-badge:hover {
    transform: scale(1.02);
}

.app-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-preview-mockup {
    width: 300px;
    height: 600px;
    border-radius: 40px;
    padding: 10px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: float-gentle 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.app-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 30px;
    position: relative;
    z-index: 2;
}

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

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--primary-teal);
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    font-size: 15px;
}

.footer-section a:hover {
    color: var(--primary-teal);
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
    font-size: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

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

    .hero-content p {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-mockups {
        height: 500px;
    }

    .mockup-primary {
        width: 220px;
        height: 440px;
        left: 10px;
        transform: rotate(-3deg);
    }

    .mockup-secondary {
        width: 200px;
        height: 400px;
        right: 10px;
        top: 30px;
        transform: rotate(5deg);
    }

    .section-title {
        font-size: 32px;
    }

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

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        justify-content: center;
        align-items: center;
    }

    .app-download-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .app-download-content h2 {
        font-size: 36px;
    }

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

    .app-preview-mockup {
        width: 250px;
        height: 500px;
    }

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

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

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-mockups {
        height: 400px;
    }

    .mockup-primary {
        width: 180px;
        height: 360px;
        left: 5px;
        transform: rotate(-2deg);
    }

    .mockup-secondary {
        width: 160px;
        height: 320px;
        right: 5px;
        top: 20px;
        transform: rotate(3deg);
    }

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

    .section-title {
        font-size: 28px;
    }

    .app-download-content h2 {
        font-size: 28px;
    }

    .download-stats {
        flex-direction: column;
        gap: 20px;
    }

    .app-preview-mockup {
        width: 200px;
        height: 400px;
    }

    .store-badge {
        height: 50px;
    }

    .download-buttons {
        flex-direction: column;
        gap: 15px;
    }
}