:root {
    /* Colors from health_tracking_app */
    --bg-dark: #121212;
    --bg-card: rgba(44, 44, 44, 0.6);
    --bg-card-hover: rgba(56, 56, 56, 0.8);
    --border-color: rgba(97, 97, 97, 0.3);
    --border-color-hover: rgba(117, 117, 117, 0.5);
    
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    
    --accent-primary: #0F766E;
    --accent-primary-hover: #14B8A6;
    --accent-purple: #14B8A6; /* Secondary Teal */
    --accent-blue: #2DD4BF;   /* Accent Teal */
    --accent-cyan: #2DD4BF;
    --accent-orange: #FFA726; /* Warning */
    --accent-pink: #E57373;   /* Error/Missed */
    --accent-green: #4CAF50;  /* Success/Taken */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-hover) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(15, 118, 110, 0.2) 0%, rgba(20, 184, 166, 0.2) 100%);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Effects */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 40px rgba(99, 91, 255, 0.3);
    --blur: blur(16px);
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Glows */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    filter: blur(120px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.top-glow {
    top: -200px;
    left: -100px;
}
.bottom-glow {
    bottom: 20%;
    right: -200px;
    background: var(--accent-cyan);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 4rem; letter-spacing: -0.03em; }
h2 { font-size: 2.5rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

/* Layout Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 91, 255, 0.4);
}
.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color-hover);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(7, 8, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}
.logo i {
    color: var(--accent-primary);
    font-size: 2rem;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.nav-links a:hover {
    color: var(--text-primary);
}
.nav-actions {
    display: flex;
    gap: 1rem;
}
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(7, 8, 10, 0.95);
    backdrop-filter: blur(15px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 99;
    pointer-events: none;
}
.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu a {
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    padding-bottom: 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(99, 91, 255, 0.1);
    border: 1px solid rgba(99, 91, 255, 0.3);
    border-radius: 30px;
    font-size: 0.85rem;
    color: #b1adff;
    margin-bottom: 1.5rem;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}
.hero-title {
    margin-bottom: 1.5rem;
}
.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* User Avatars Row */
.hero-stats {
    display: flex;
    align-items: center;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.user-avatars {
    display: flex;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-left: -12px;
    background-size: cover;
    background-position: center;
}
.avatar:first-child { margin-left: 0; }
.avatar.more {
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    backdrop-filter: blur(5px);
}
.stat-text {
    display: flex;
    flex-direction: column;
}
.stars i {
    color: var(--accent-orange);
    font-size: 1rem;
}
.stat-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* Hero Visual Mockup */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}
.mockup-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}
.floating-card {
    position: absolute;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}
.floating-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-primary);
}
.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-secondary);
}
.card-header i {
    font-size: 1.5rem;
}
.card-1 {
    top: 50px;
    right: 20px;
    width: 260px;
    z-index: 3;
    animation: float 7s ease-in-out infinite alternate;
}
.card-2 {
    bottom: 50px;
    left: 0;
    width: 240px;
    z-index: 2;
    animation: float 5s ease-in-out infinite alternate-reverse;
}
.card-3 {
    top: 40%;
    right: -20px;
    width: 250px;
    z-index: 1;
    animation: float 6.5s ease-in-out infinite alternate;
}

/* Card internals */
.med-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 12px;
}
.med-info h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.med-info p { font-size: 0.75rem; color: var(--text-secondary); }
.med-status.checked {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.metric { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.metric span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.trend.positive {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent-green);
    font-size: 0.85rem;
    background: rgba(76, 175, 80, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}
.appt-info {
    border-left: 3px solid var(--accent-cyan);
    padding-left: 1rem;
}
.appt-info h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.appt-info p { font-size: 0.85rem; color: var(--text-secondary); }

/* Features */
.features {
    position: relative;
    z-index: 2;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section-description {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 1.1rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-card {
    padding: 2.5rem;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
}
.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}
.bg-blue { background: linear-gradient(135deg, #1e88e5, #0d47a1); }
.bg-purple { background: linear-gradient(135deg, #ab47bc, #4a148c); }
.bg-cyan { background: linear-gradient(135deg, #26c6da, #006064); }
.bg-orange { background: linear-gradient(135deg, #ffa726, #e65100); }
.bg-pink { background: linear-gradient(135deg, #ec407a, #880e4f); }
.bg-green { background: linear-gradient(135deg, #66bb6a, #1b5e20); }

.feature-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}
.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA */
.cta-box {
    position: relative;
    padding: 4rem;
    text-align: center;
    overflow: hidden;
}
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}
.cta-content h2 { margin-bottom: 1rem; }
.cta-content p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    padding-bottom: 2rem;
    background: rgba(7, 8, 10, 0.5);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand p {
    color: var(--text-secondary);
    margin: 1.5rem 0;
    max-width: 250px;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.social-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}
.footer-links h4 {
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}
.footer-links a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.footer-links a:hover {
    color: var(--accent-primary);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
        margin-bottom: 3rem;
    }
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-cta {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .card-1 { right: 0; width: 220px; }
    .card-2 { left: 0; width: 220px; }
    .card-3 { display: none; }
}
