:root {
    --primary: #9a181c;
    --primary-light: #df3035;
    --primary-dark: #7a1015;
    --secondary: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: var(--font-family);
    background: #f8fafc;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Laptop Container */
.laptop-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    height: auto; /* Add explicit height */
    display: flex;
    z-index: 1;
    /* background: #ddd; Temporary background to see the container */
    border-radius: 12px;
}

.laptop-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Overlay */
.content-overlay {
    position: absolute;
    top: 5.5%;
    left: 12.25%;
    right: 11.5%;
    bottom: 8%;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Scaled down styles for the landing page content */
.scaled-content {
    transform: scale(0.84);
    transform-origin: top left;
    width: 120%; /* 100% / 0.85 to compensate for scale */
    height: 117%;
    overflow-y: auto;
    font-size: 0.85em;
}

/* Header */
.header {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-4) var(--spacing-6);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary);
    margin-left: var(--spacing-2);
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-6);
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.cta-button {
    background-color: var(--primary);
    color: white;
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: var(--primary-dark);
}

/* Main Content */
.main-content {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: var(--spacing-4);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-8);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-10);
}

.hero-content {
    flex: 0 0 60%;
    text-align: left;
}

.hero-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-6);
    line-height: 1.6;
}

.hero-description {
    font-size: var(--font-size-md);
    color: var(--text-muted);
    margin-bottom: var(--spacing-8);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-3);
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-md);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    padding: var(--spacing-3) var(--spacing-6);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-md);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Hero Chatbot Interface */
.hero-chatbot {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chatbot-interface {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 400px;
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-interface .chatbot-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-interface .chatbot-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 12px;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    opacity: 0.9;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
}

.bot-message .message-avatar {
    background: rgba(154, 24, 28, 0.1);
    border: 1px solid rgba(154, 24, 28, 0.2);
    color: var(--primary);
}

.user-message .message-avatar {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.message-content {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    line-height: 1.4;
    color: #374151;
}

.user-message .message-content {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.message-content p {
    margin: 0 0 6px 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 6px 0;
    padding-left: 16px;
}

.message-content li {
    margin-bottom: 2px;
}

.response-section {
    margin-bottom: 12px;
}

.response-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-weight: 600;
    font-size: 10px;
    margin-bottom: 6px;
    color: #374151;
}

.report-link {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.report-link p {
    margin-bottom: 6px;
    font-size: 10px;
    color: #6b7280;
}

.report-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s;
}

.report-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.chatbot-input {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.input-container {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.input-container input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
    background: white;
    color: #6b7280;
}

.input-container input:focus {
    outline: none;
    border-color: var(--primary);
}

.send-button {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.send-button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

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

.demo-note {
    font-size: 9px;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

/* Features Section */
.features-section {
    padding: var(--spacing-8) var(--spacing-6);
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-6);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-4);
    color: white;
    font-size: var(--font-size-2xl);
}

.feature-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .scaled-content {
        transform: scale(0.7);
        width: 142.86%; /* 100% / 0.7 */
    }
    
    .hero-container {
        flex-direction: column;
        gap: var(--spacing-6);
        text-align: center;
    }
    
    .hero-content {
        flex: none;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-chatbot {
        flex: none;
        width: 100%;
    }
    
    .chatbot-interface {
        max-width: 100%;
        height: 400px;
    }
}