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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

.app {
    min-height: 100vh;
    background: linear-gradient(135deg, #dbeafe 0%, #ffffff 50%, #dcfce7 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.logo-img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}
/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 1rem;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #2563eb 0%, #059669 100%);
    opacity: 0.1;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-icon > div {
    background: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pill-icon {
    width: 3rem;
    height: 3rem;
    color: #2563eb;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, #2563eb 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-primary {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #1d4ed8 0%, #1e40af 100%);
    transform: scale(1.05);
}

.btn-secondary {
    background: white;
    color: #374151;
    padding: 1rem 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #f9fafb;
    transform: scale(1.05);
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}
.video-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: white;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #111827;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.step-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s;
}

.step-item:hover {
    background: #f8fafc;
}

.step-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.5s;
}

.step-item.active .step-icon {
    background: linear-gradient(90deg, #2563eb 0%, #059669 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.step-icon svg {
    width: 2rem;
    height: 2rem;
}

.step-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.step-item p {
    color: #6b7280;
}

/* Demo Section */
.demo-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 100%);
}

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

.scanner-panel {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.scanner-area {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.scanner-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.scanner-state.hidden {
    display: none;
}

.camera-icon {
    width: 4rem;
    height: 4rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.scanner-state p {
    color: #6b7280;
    font-weight: 500;
}

/* Scanning Animation */
#scanner-scanning {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.scanning-animation {
    position: relative;
    margin-bottom: 1rem;
}

.scan-icon {
    width: 4rem;
    height: 4rem;
    animation: pulse 2s infinite;
}

.scan-border {
    position: absolute;
    inset: -0.5rem;
    border: 2px solid #10b981;
    border-radius: 0.5rem;
    animation: pulse 2s infinite;
}

.progress-bar {
    width: 8rem;
    height: 0.25rem;
    background: #374151;
    border-radius: 9999px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #10b981;
    border-radius: 9999px;
    animation: progress 3s ease-in-out;
    width: 0;
}

/* Scanner Complete */
#scanner-complete {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.check-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
}

/* Scanner Result */
.scanned-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.scan-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
    background: linear-gradient(90deg, #2563eb 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.scan-button:hover:not(:disabled) {
    background: linear-gradient(90deg, #1d4ed8 0%, #047857 100%);
    transform: scale(1.05);
}

.scan-button:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
}

/* Results Panel */
.results-panel {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.5s;
    opacity: 0.5;
    transform: translateY(1rem);
}

.results-panel.show {
    opacity: 1;
    transform: translateY(0);
}

.medicine-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.medicine-icon {
    width: 3rem;
    height: 3rem;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.medicine-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #059669;
}

.medicine-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.25rem;
}

.medicine-info p {
    color: #6b7280;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-card {
    padding: 1rem;
    border-radius: 0.75rem;
}

.info-card.blue {
    background: #dbeafe;
}

.info-card.green {
    background: #dcfce7;
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.info-header svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

.info-card.blue .info-header {
    color: #1d4ed8;
}

.info-card.green .info-header {
    color: #059669;
}

.info-header span {
    font-size: 0.875rem;
    font-weight: 500;
}

.info-card p {
    font-size: 0.875rem;
    color: #374151;
}

.description {
    margin-bottom: 1.5rem;
}

.description h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.description p {
    color: #6b7280;
    font-size: 0.875rem;
}

.warnings {
    margin-bottom: 1.5rem;
}

.warnings h4 {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.warnings h4 svg {
    width: 1rem;
    height: 1rem;
    color: #f59e0b;
    margin-right: 0.5rem;
}

.warnings ul {
    list-style: none;
}

.warnings li {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.warnings li::before {
    content: '';
    width: 0.25rem;
    height: 0.25rem;
    background: #f59e0b;
    border-radius: 50%;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.footer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.price {
    display: flex;
    align-items: center;
}

.price svg {
    width: 1rem;
    height: 1rem;
    color: #fbbf24;
    margin-right: 0.25rem;
}

.price span {
    font-size: 0.875rem;
    color: #6b7280;
}

.details-btn {
    color: #2563eb;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.details-btn:hover {
    color: #1d4ed8;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: white;
}

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

.feature-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-0.25rem);
}

.feature-card:nth-child(1):hover {
    background: #dbeafe;
}

.feature-card:nth-child(2):hover {
    background: #dcfce7;
}

.feature-card:nth-child(3):hover {
    background: #faf5ff;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s;
}

.feature-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.feature-icon.green {
    background: #dcfce7;
    color: #059669;
}

.feature-icon.purple {
    background: #faf5ff;
    color: #7c3aed;
}

.feature-card:hover .feature-icon.blue {
    background: #bfdbfe;
}

.feature-card:hover .feature-icon.green {
    background: #bbf7d0;
}

.feature-card:hover .feature-icon.purple {
    background: #f3e8ff;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.feature-card p {
    color: #6b7280;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0;
}

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

.footer-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-icon svg {
    width: 2rem;
    height: 2rem;
    color: #60a5fa;
}

.footer-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-content p {
    color: #9ca3af;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-ios {
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ios:hover {
    background: #1d4ed8;
}

.btn-android {
    background: #059669;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-android:hover {
    background: #047857;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes progress {
    0% {
        width: 0;
    }
    100% {
        width: 70%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-ios,
    .btn-android {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-section {
        padding: 4rem 1rem;
    }
    
    .scanner-panel,
    .results-panel {
        padding: 1rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}