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

/* CSS Variables - Design System */
:root {
    /* Colors */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(224, 30%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(224, 30%, 15%);
    --primary: hsl(201, 94%, 37%);
    --primary-foreground: hsl(0, 0%, 98%);
    --secondary: hsl(142, 71%, 45%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --muted: hsl(210, 40%, 96.1%);
    --muted-foreground: hsl(215.4, 16.3%, 46.9%);
    --accent: hsl(142, 71%, 45%);
    --accent-foreground: hsl(0, 0%, 98%);
    --border: hsl(214.3, 31.8%, 91.4%);
    --input: hsl(214.3, 31.8%, 91.4%);
    --ring: hsl(201, 94%, 37%);

    /* Medical/Pharmacy specific colors */
    --medical-blue: hsl(201, 94%, 37%);
    --medical-blue-light: hsl(201, 94%, 85%);
    --medical-green: hsl(142, 71%, 45%);
    --medical-green-light: hsl(142, 71%, 85%);
    --pharmacy-accent: hsl(35, 91%, 48%);
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(201, 94%, 37%), hsl(142, 71%, 45%));
    --gradient-card: linear-gradient(145deg, hsl(201, 94%, 85%), hsl(142, 71%, 85%));
    --gradient-subtle: linear-gradient(180deg, hsl(0, 0%, 100%), hsl(210, 40%, 98%));
    
    /* Shadows */
    --shadow-soft: 0 4px 20px hsla(201, 94%, 37%, 0.1);
    --shadow-card: 0 8px 32px hsla(201, 94%, 37%, 0.12);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --radius: 0.5rem;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--gradient-subtle);
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--medical-blue);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--medical-blue);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: inherit;
}

.btn:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-sm {
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: calc(var(--radius) - 2px);
}

.btn-lg {
    height: 2.75rem;
    padding: 0 2rem;
    border-radius: calc(var(--radius) + 2px);
}

.btn-medical {
    background: var(--gradient-hero);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-medical:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-card);
}

.btn-outline-medical {
    border: 1px solid var(--medical-blue);
    color: var(--medical-blue);
    background: transparent;
}

.btn-outline-medical:hover {
    background: var(--medical-blue);
    color: white;
}

/* Hero Styles */
.hero {
    padding: 5rem 0 8rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.badge {
    display: inline-block;
    background: var(--medical-blue-light);
    color: var(--medical-blue);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 1rem 0;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.text-medical-blue {
    color: var(--medical-blue);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-image {
    position: relative;
}

.hero-img {
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    width: 100%;
    height: auto;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.1;
    border-radius: 1rem;
}

/* Features Styles */
.features {
    padding: 5rem 0;
    background: white;
}

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

.features-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .features-title {
        font-size: 2.5rem;
    }
}

.features-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

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

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: var(--gradient-card);
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    box-shadow: var(--shadow-soft);
    transform: scale(1.05);
}

.feature-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--medical-blue);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.feature-description {
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* CTA Section Styles */
.cta {
    padding: 5rem 0;
}

.email-signup {
    background: var(--gradient-subtle);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.signup-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.signup-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.signup-description {
    color: var(--muted-foreground);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 28rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .signup-form {
        flex-direction: row;
    }
}

.email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    background: white;
}

.email-input:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* Footer Styles */
.footer {
    background: var(--foreground);
    color: white;
    padding: 3rem 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-tagline {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Toast Styles */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1rem;
    max-width: 24rem;
    z-index: 100;
    transition: var(--transition-smooth);
}

.toast.hidden {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-header {
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--medical-blue);
}

.toast-body {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}