/* ============================================
   AUSCULTO - Main Stylesheet
   Professional Medical Report Tool
   ============================================ */

/* --- CSS Variables --- */
:root {
    /* Primary Navy Blues */
    --navy-900: #0a1628;
    --navy-800: #0f1f36;
    --navy-700: #142744;
    --navy-600: #1a3352;
    --navy-500: #234060;
    --navy-400: #2d4f70;
    
    /* Accent Blues */
    --accent-400: #38bdf8;
    --accent-500: #0ea5e9;
    --accent-600: #0284c7;
    
    /* Cyan Highlights */
    --cyan-300: #67e8f9;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    
    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-100);
    background: var(--navy-900);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan-400);
    background: rgba(6, 182, 212, 0.1);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--gray-400);
    max-width: 600px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-500), var(--accent-500));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.4);
}

.btn-ghost {
    color: var(--gray-300);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    color: var(--gray-200);
    background: transparent;
    border: 2px solid var(--navy-500);
}

.btn-outline:hover {
    border-color: var(--cyan-500);
    background: rgba(6, 182, 212, 0.1);
}

.btn-white {
    background: var(--white);
    color: var(--navy-900);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-outline-white {
    color: var(--white);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--cyan-400);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-400);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan-400);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--white);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy-800);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--navy-600);
    flex-direction: column;
    gap: var(--space-md);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-300);
    padding: var(--space-sm) 0;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--navy-600);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-4xl)) 0 var(--space-4xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(6, 182, 212, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(14, 165, 233, 0.1), transparent);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--cyan-500);
    top: 10%;
    right: 10%;
    animation-delay: -2s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-600);
    bottom: 20%;
    left: 5%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cyan-300);
    background: rgba(6, 182, 212, 0.1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-bottom: var(--space-lg);
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.title-accent {
    background: linear-gradient(135deg, var(--cyan-400), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--navy-500);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.app-preview {
    width: 100%;
    max-width: 480px;
    background: var(--navy-800);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--navy-600);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        var(--shadow-glow);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-slow);
}

.app-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--navy-700);
    border-bottom: 1px solid var(--navy-600);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--navy-500);
}

.preview-dots span:first-child { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:last-child { background: #10b981; }

.preview-title {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-400);
}

.preview-content {
    display: grid;
    grid-template-columns: 80px 1fr;
    min-height: 280px;
}

.preview-sidebar {
    background: var(--navy-900);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.preview-category {
    height: 40px;
    background: var(--navy-700);
    border-radius: var(--radius-md);
    opacity: 0.5;
    transition: all var(--transition-fast);
}

.preview-category.active {
    background: linear-gradient(135deg, var(--cyan-500), var(--accent-500));
    opacity: 1;
}

.preview-main {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.preview-line {
    height: 12px;
    background: var(--navy-600);
    border-radius: var(--radius-sm);
    animation: pulse 2s ease-in-out infinite;
}

.preview-line.long { width: 100%; }
.preview-line.medium { width: 75%; animation-delay: 0.2s; }
.preview-line.short { width: 50%; animation-delay: 0.4s; }

.preview-highlight {
    height: 48px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 165, 233, 0.2));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-md);
    margin: var(--space-sm) 0;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* --- Features Section --- */
.features {
    padding: var(--space-4xl) 0;
    background: var(--navy-800);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--navy-500), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .section-desc {
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--navy-700);
    border: 1px solid var(--navy-600);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--cyan-500);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--cyan-400);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.feature-visual {
    margin-top: auto;
    padding-top: var(--space-xl);
}

.checklist-visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.check-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--navy-800);
    border: 1px solid var(--navy-600);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--gray-400);
    position: relative;
    padding-left: 40px;
}

.check-item::before {
    content: '';
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--navy-500);
    border-radius: var(--radius-sm);
}

.check-item.checked {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--gray-200);
}

.check-item.checked::before {
    background: var(--success);
    border-color: var(--success);
}

.check-item.checked::after {
    content: '✓';
    position: absolute;
    left: 15px;
    font-size: 12px;
    font-weight: bold;
    color: var(--white);
}

/* --- Approach Section --- */
.approach {
    padding: var(--space-4xl) 0;
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.approach-text .section-title {
    margin-bottom: var(--space-xl);
}

.approach-paragraphs {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.approach-paragraphs p {
    color: var(--gray-400);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.approach-paragraphs strong {
    color: var(--gray-200);
}

.approach-quote {
    padding-left: var(--space-lg);
    border-left: 3px solid var(--cyan-500);
}

.approach-quote blockquote {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--gray-300);
    line-height: 1.6;
}

.approach-visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.warning-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.warning-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.warning-card h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--warning);
    margin-bottom: var(--space-sm);
}

.warning-card p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--navy-800);
    border: 1px solid var(--navy-600);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.benefit-item:hover {
    border-color: var(--navy-500);
    background: var(--navy-700);
}

.benefit-icon {
    font-size: 1.25rem;
}

.benefit-item span:last-child {
    color: var(--gray-300);
    font-size: 0.9375rem;
}

/* --- CTA Section --- */
.cta-section {
    padding: var(--space-4xl) 0;
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
    border: 1px solid var(--navy-600);
    border-radius: var(--radius-2xl);
    padding: var(--space-4xl);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--cyan-500);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    top: -50%;
    right: -10%;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    background: var(--navy-800);
    border-top: 1px solid var(--navy-600);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-desc {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: var(--space-md);
}

.footer-col a {
    display: block;
    color: var(--gray-500);
    font-size: 0.9375rem;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--cyan-400);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--navy-600);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .approach-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: calc(70px + var(--space-3xl));
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .cta-card {
        padding: var(--space-2xl);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* --- Animation Utilities --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
