/* =========================================
   CSS Reset & Variables
   ========================================= */

:root {
    /* Color Palette - Healthcare AI Premium */
    --clr-bg: #FFFFFF;
    --clr-surface: #F8FAFC; /* Slate 50 */
    --clr-surface-hover: #F1F5F9; /* Slate 100 */
    --clr-text: #0F172A; /* Slate 900 */
    --clr-text-muted: #475569; /* Slate 600 */
    --clr-primary: #0F172A; /* Slate 900 */
    --clr-primary-hover: #1E293B; /* Slate 800 */
    --clr-accent: #0284C7; /* Sky 600 - crisp, trustworthy blue */
    --clr-accent-light: #E0F2FE; /* Sky 100 */
    --clr-border: #E2E8F0; /* Slate 200 */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout & Spacing */
    --max-width: 1200px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-glow: 0 0 40px -10px rgba(2, 132, 199, 0.15);
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--clr-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* =========================================
   Components
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--clr-surface);
    color: var(--clr-primary);
    border: 1px solid var(--clr-border);
}

.btn-secondary:hover {
    background-color: var(--clr-surface-hover);
    transform: translateY(-1px);
}

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

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

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

/* =========================================
   Layout Sections
   ========================================= */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at top, rgba(2, 132, 199, 0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--clr-primary);
    margin-bottom: var(--spacing-sm);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--clr-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-accent) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: rgba(2, 132, 199, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--clr-accent-light);
    color: var(--clr-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--clr-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-details {
    padding-top: 1.5rem;
    border-top: 1px solid var(--clr-border);
}

.service-details h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-primary);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.service-details h4:first-child {
    margin-top: 0;
}

.service-details ul {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-details li {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    display: flex;
    align-items: flex-start;
}

.service-details li strong {
    color: var(--clr-text);
    font-weight: 500;
}

.deliverables-list li {
    gap: 0.75rem;
}

.deliverables-list i {
    color: var(--clr-accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-container {
    background: var(--clr-primary);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--clr-surface);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-decoration {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(2,132,199,0.4) 0%, transparent 60%);
    z-index: 0;
    border-radius: 50%;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--clr-border);
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--clr-primary);
}

/* =========================================
   Animations & Utilities
   ========================================= */

/* Reveal animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .cta-container {
        padding: 3rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
