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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

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

.video-section, .prompts-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

#webcamFeed {
    width: 100%;
    height: auto;
    display: block;
}

#captureCanvas {
    display: none;
}

.status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    transition: opacity 0.3s ease;
}

.status-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.primary {
    background: #007bff;
    color: white;
}

.btn.primary:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn.danger {
    background: #dc3545;
    color: white;
}

.btn.danger:hover:not(:disabled) {
    background: #a71e2a;
    transform: translateY(-2px);
}

.btn.warning {
    background: #ffc107;
    color: #000;
}

.btn.warning:hover:not(:disabled) {
    background: #d39e00;
    transform: translateY(-2px);
}

.btn.success {
    background: #28a745;
    color: white;
}

.btn.success:hover:not(:disabled) {
    background: #1c7430;
    transform: translateY(-2px);
}

.interval-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.interval-control input {
    width: 80px;
    padding: 8px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    text-align: center;
}

.status-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 14px;
    color: #6c757d;
}

.prompt-group {
    margin-bottom: 20px;
}

.prompt-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.prompt-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.prompt-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.responses-table {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.table-header h3 {
    color: #495057;
    font-size: 1.4em;
}

.table-controls {
    display: flex;
    gap: 10px;
}

.table-content {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.response-entry {
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
    transition: background-color 0.3s ease;
}

.response-entry:last-child {
    border-bottom: none;
}

.response-entry:hover {
    background-color: #f8f9fa;
}

.response-entry.error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.timestamp {
    font-weight: 600;
    color: #495057;
}

.analysis-type {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.error-badge {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background: #e9ecef;
}

.analysis-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.analysis-section.secondary {
    border-left-color: #28a745;
    margin-bottom: 0;
}

.prompt-section {
    margin-bottom: 15px;
}

.response-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prompt-text {
    background: white;
    padding: 10px;
    border-radius: 6px;
    font-style: italic;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.response-text {
    background: white;
    padding: 12px;
    border-radius: 6px;
    line-height: 1.6;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.response-text:hover {
    background: #f1f3f4;
    border-color: #007bff;
}

.loading {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .controls {
        justify-content: center;
    }
    
    .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-controls {
        justify-content: center;
    }
    
    .response-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .video-section, .prompts-section, .responses-table {
        padding: 15px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-img {
    max-width: 500px;
    width: 100%;
}
.hero-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
    opacity: 0.7;
}

.trust-logos img {
    max-height: 40px;
    object-fit: contain;
}
.testimonials {
    background: #f9f9f9;
    padding: 60px 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.testimonial-card {
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
    color: #333;
    position: relative;
}

.testimonial-card::before {
    content: "“";
    font-size: 4em;
    position: absolute;
    left: -10px;
    top: -20px;
    color: #ccc;
}
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.feature-item i {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.25em;
    margin-bottom: 10px;
}
.pricing {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.pricing-card {
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 30px;
    border-radius: 12px;
    width: 280px;
    margin: 15px;
}

.pricing-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.pricing-card p {
    font-size: 1em;
    color: #6c757d;
    margin-bottom: 20px;
}

.pricing-card .price {
    font-size: 2.4em;
    margin: 20px 0;
    font-weight: bold;
}
.cta-footer {
    padding: 60px 20px;
    background: #007bff;
    color: white;
    text-align: center;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.cta-footer h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.cta-footer .btn {
    font-size: 1.2em;
    padding: 15px 30px;
}
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
