/* ========================================
   MedScribe Hotsite — Styles
   ======================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.btn-nav {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: visible;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.3rem;
    color: var(--gray-900);
}

.logo-icon { font-size: 1.5rem; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 24px;
    gap: 0;
    box-shadow: var(--shadow-md);
}

.nav-links.mobile-open li {
    border-bottom: 1px solid var(--gray-100);
}

.nav-links.mobile-open a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
}

/* Utility */
.hidden { display: none !important; }

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-top: 20px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Mockup Window */
.hero-visual {
    position: relative;
}

.mockup-window {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.mockup-title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.mockup-body {
    padding: 20px;
}

.mockup-worklist {
    margin-bottom: 16px;
}

.mockup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.mockup-item.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 500;
}

.mockup-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.mockup-badge.urgent { background: #fee2e2; color: var(--danger); }
.mockup-badge.normal { background: #d1fae5; color: var(--success); }

.mockup-dictation {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
}

.waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 12px;
    height: 24px;
}

.waveform span {
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 8px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 20px; animation-delay: 0.4s; }
.waveform span:nth-child(6) { height: 14px; animation-delay: 0.5s; }
.waveform span:nth-child(7) { height: 22px; animation-delay: 0.6s; }
.waveform span:nth-child(8) { height: 10px; animation-delay: 0.7s; }
.waveform span:nth-child(9) { height: 18px; animation-delay: 0.8s; }
.waveform span:nth-child(10) { height: 6px; animation-delay: 0.9s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

.transcription-text {
    font-size: 0.85rem;
    color: var(--gray-700);
    font-style: italic;
}

.mockup-report {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px;
    background: var(--white);
}

.report-section {
    font-size: 0.8rem;
    color: var(--gray-700);
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-100);
}

.report-section:last-child { border-bottom: none; }
.report-section strong { color: var(--gray-900); }

/* Social Proof */
.social-proof {
    padding: 40px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.social-proof-text {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-placeholder {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-400);
    letter-spacing: 1px;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header p {
    color: var(--gray-500);
    margin-top: 12px;
    font-size: 1.05rem;
}

/* Features */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    background: var(--white);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--gray-50);
}

.steps {
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 56px;
    width: 2px;
    height: calc(100% - 16px);
    background: var(--gray-200);
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-content h3 {
    margin-bottom: 8px;
}

.step-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Benefits */
.benefits {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-card {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.benefit-icon { font-size: 2rem; }

.benefit-list {
    list-style: none;
}

.benefit-list li {
    padding: 8px 0;
    color: var(--gray-700);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-200);
}

.benefit-list li:last-child { border-bottom: none; }

/* Pricing */
.pricing {
    padding: 100px 0;
    background: var(--gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--gray-200);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

.pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-header {
    margin-bottom: 20px;
}

.pricing-desc {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 4px;
}

.pricing-price {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-600);
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.period {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.pricing-features li.disabled {
    color: var(--gray-400);
}

/* Testimonial */
.testimonial {
    padding: 80px 0;
    background: var(--secondary);
    color: var(--white);
}

.testimonial blockquote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial blockquote p {
    font-size: 1.3rem;
    line-height: 1.7;
    font-weight: 300;
    color: var(--gray-200);
}

.testimonial blockquote strong {
    color: var(--accent);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.cta-benefits {
    list-style: none;
}

.cta-benefits li {
    padding: 8px 0;
    color: var(--gray-700);
    font-weight: 500;
}

/* Lead Form */
.cta-form-container {
    position: relative;
}

.lead-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.lead-form h3 {
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--danger);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 12px;
}

.form-success {
    text-align: center;
    padding: 60px 36px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.form-success h3 {
    color: var(--success);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--gray-600);
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: var(--gray-50);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    background: var(--white);
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-800);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 24px 18px;
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-brand .logo {
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid,
    .benefits-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .btn-nav { display: none; }
    .mobile-menu-btn { display: flex; }

    .features-grid,
    .benefits-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2.2rem; }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .benefit-card,
    .pricing-card,
    .step {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
    }

    .feature-card.visible,
    .benefit-card.visible,
    .pricing-card.visible,
    .step.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
