/* ===================================
   RxShelf - Modern Healthcare SaaS Website
   =================================== */

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

:root {
    /* Colors */
    --primary-blue: #1a73e8;
    --primary-blue-dark: #0d47a1;
    --accent-green: #00b894;
    --accent-green-dark: #00876c;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

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

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-cta {
    display: block;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    z-index: 999;
    transform: translateX(100%);
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 32px 24px;
}

.mobile-menu ul li {
    margin-bottom: 24px;
}

.mobile-menu ul li a {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 24px;
    animation: float 6s ease-in-out infinite;
}

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

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--accent-green);
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.dashboard-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 20px;
}

.dashboard-search input {
    border: none;
    background: none;
    font-size: 14px;
    outline: none;
    flex: 1;
    color: var(--text-dark);
}

.dashboard-search input::placeholder {
    color: var(--text-gray);
}

.dashboard-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 10px;
    align-items: center;
    transition: var(--transition);
}

.table-row:hover {
    background: #e8f4f8;
}

.bag-code {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 14px;
}

.shelf-location {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.status-ready {
    background: #d1fae5;
    color: #065f46;
}

.status-picked {
    background: #e5e7eb;
    color: #6b7280;
}

.waiting-time {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ===================================
   Section Styles
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   Problem Section
   =================================== */
.problem-section {
    padding: 100px 0;
    background: #fef2f2;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.problem-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.problem-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.problem-icon {
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.problem-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-white);
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.9);
}

.process-step.visible {
    opacity: 1;
    transform: scale(1);
}

.process-step:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.process-step p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.process-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-green) 100%);
    position: relative;
}

.process-connector::after {
    content: '→';
    position: absolute;
    right: -8px;
    top: -8px;
    font-size: 20px;
    color: var(--accent-green);
}

/* ===================================
   Features Section
   =================================== */
.features-section {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===================================
   Benefits Section
   =================================== */
.benefits-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0d47a1 0%, #1a73e8 100%);
    color: white;
}

.benefits-section .section-label {
    background: rgba(255, 255, 255, 0.2);
}

.benefits-section .section-title,
.benefits-section .section-subtitle {
    color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.benefit-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
}

.benefit-stat {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.stat-number {
    color: var(--accent-green);
}

.stat-symbol {
    font-size: 56px;
    color: white;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ===================================
   Demo Section
   =================================== */
.demo-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.demo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.demo-left .section-header {
    text-align: left;
    margin-bottom: 40px;
}

.demo-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-benefit {
    display: flex;
    align-items: start;
    gap: 16px;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
}

.demo-benefit svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.demo-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-privacy {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 16px;
    text-align: center;
}

.form-privacy a {
    color: var(--primary-blue);
    text-decoration: none;
}

.form-success {
    display: none;
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.form-success.active {
    display: block;
}

.form-success h3 {
    font-size: 28px;
    margin: 24px 0 12px;
    color: var(--text-dark);
}

.form-success p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #0f172a;
    color: white;
    padding: 60px 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo span {
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

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

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-green);
}

.footer-hipaa {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 24px;
    background: rgba(0, 184, 148, 0.1);
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.footer-hipaa p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   Animations
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Testimonials
   =================================== */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(250,250,255,0.6) 0%, var(--bg-white) 100%);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: white;
    padding: 28px;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.testimonial-quote {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.6;
}
.testimonial-meta {
    font-size: 14px;
    color: var(--text-gray);
}

/* Floating CTA (sticky) */
.floating-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
}
.floating-cta .btn {
    padding: 14px 18px;
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Product Section
   =================================== */
.product-section {
    padding: 80px 0;
    background: var(--bg-light);
}

/* ===================================
   Business Impact Section
   =================================== */
.business-impact {
    padding: 80px 0;
    background: #ffffff;
}
.impact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.impact-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.impact-details ul {
    list-style: disc inside;
    line-height: 1.6;
    color: var(--text-dark);
}
.impact-details ul li {
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .impact-content {
        grid-template-columns: 1fr;
    }
}
.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.product-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.product-details h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.product-details ul {
    list-style: disc inside;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.product-details ul li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .product-content {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .process-steps {
        flex-wrap: wrap;
    }
    
    .process-connector {
        display: none;
    }
    
    .demo-wrapper {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Navigation */
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .trust-badges {
        flex-direction: column;
    }
    
    .dashboard-mockup {
        max-width: 100%;
    }
    
    .table-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        font-size: 12px;
    }
    
    /* Sections */
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .benefit-stat {
        font-size: 56px;
    }
    
    .demo-wrapper {
        grid-template-columns: 1fr;
    }
    
    .demo-form {
        padding: 32px 24px;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .benefit-stat {
        font-size: 48px;
    }
    
    .stat-symbol {
        font-size: 40px;
    }
}