/* LeadLink Design System */
:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --accent-red: #cf2e2e;
    --accent-blue: #0693e3;
    --accent-yellow: #fabe08;
    --accent-purple: #9b51e0;
    --accent-orange: #ff6900;
    --dark-gray: #32373c;
    --light-gray: #f5f7fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--primary-white);
}

/* Typography - LeadLink Style */
h1 {
    font-size: 32px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.6px;
}

h2 {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 600;
}

h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

h4 {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
}

p {
    line-height: 1.8;
}

/* Header - Sticky with dark background */
header {
    position: sticky;
    top: 0;
    background: var(--text-primary);
    height: 75px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo {
    height: 100px;
    width: auto;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--primary-white);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.6px;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
}

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

/* Hero Section - Full width video background style */
.hero {
    background: linear-gradient(135deg, var(--text-primary) 0%, #2d2d2d 100%);
    padding: 100px 2rem;
    text-align: center;
    color: var(--primary-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.subtitle {
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tech-badge {
    display: inline-block;
    background: var(--accent-blue);
    color: var(--primary-white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Form Section - Clean Card Style */
.form-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.form-card {
    background: var(--primary-white);
    padding: 3rem;
    border-radius: 3px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--accent-blue);
}

.form-card h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-card .subtitle {
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 2rem;
    font-size: 16px;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    transition: all 0.3s;
    background: var(--primary-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(6, 147, 227, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Button - Rounded LeadLink Style */
.btn {
    background: var(--accent-blue);
    color: var(--primary-white);
    border: 1px solid var(--primary-white);
    padding: 1rem 2.5rem;
    font-size: 16px;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(6, 147, 227, 0.3);
}

.btn:hover {
    background: #0059b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 147, 227, 0.4);
}

.btn:disabled {
    background: var(--dark-gray);
    cursor: not-allowed;
    transform: none;
}

/* Features Grid */
.features {
    padding: 4rem 0;
    background: var(--primary-white);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 32px;
}

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

.feature-card {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 3px;
    transition: all 0.3s;
    border-left: 3px solid var(--accent-blue);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: var(--primary-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Modal - LeadLink Style */
.analysis-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.analysis-modal.active {
    display: flex;
}

.modal-content {
    background: var(--primary-white);
    border-radius: 3px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--text-primary) 0%, #2d2d2d 100%);
    color: var(--primary-white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--primary-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-progress h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.modal-progress-bar {
    background: #e0e0e0;
    border-radius: 3px;
    height: 20px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.modal-progress-fill {
    background: var(--accent-blue);
    height: 100%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: var(--primary-white);
    font-size: 14px;
    font-weight: bold;
}

.modal-status {
    color: var(--text-secondary);
    font-size: 16px;
}

.results-summary {
    background: var(--light-gray);
    border-radius: 3px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sentiment-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.sentiment-stat {
    text-align: center;
    padding: 1rem;
    background: var(--primary-white);
    border-radius: 3px;
    border: 2px solid #e0e0e0;
}

.sentiment-stat.positive {
    border-color: #4caf50;
}

.sentiment-stat.negative {
    border-color: var(--accent-red);
}

.sentiment-stat.neutral {
    border-color: #9e9e9e;
}

.sentiment-stat .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.sentiment-stat .label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.sentiment-stat .count {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.sentiment-stat .percentage {
    font-size: 18px;
    color: var(--text-secondary);
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.modal-btn {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 200px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--primary-white);
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-btn.primary {
    background: var(--accent-blue);
    color: var(--primary-white);
}

.modal-btn.primary:hover {
    background: #0059b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 147, 227, 0.3);
}

.modal-btn.secondary {
    background: var(--dark-gray);
    color: var(--primary-white);
}

.modal-btn.secondary:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Video Script Section */
.video-script-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 3px;
    border-left: 4px solid var(--accent-blue);
}

.video-script-section h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 18px;
}

.script-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.script-block {
    background: var(--primary-white);
    padding: 1.25rem;
    border-radius: 3px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.script-block:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 2px 8px rgba(6, 147, 227, 0.1);
}

.script-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.script-text {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    white-space: pre-wrap;
}

/* Campaign Predictor Section */
.campaign-predictor-section {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(6, 147, 227, 0.2);
}

.campaign-predictor-section h4 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.predictor-description {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

#campaignVariantsInput {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.77);
    border: 1px solid rgba(6, 147, 227, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

#campaignVariantsInput::placeholder {
    color: rgba(255, 255, 255, 0.60);
}

#campaignVariantsInput:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(6, 147, 227, 0.1);
}

.campaign-results {
    margin-top: 1.5rem;
}

.campaign-results h5 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.variant-score {
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 4px solid;
}

.variant-score.positive {
    border-left-color: #4caf50;
}

.variant-score.neutral {
    border-left-color: #fabe08;
}

.variant-score.negative {
    border-left-color: #f44336;
}

.variant-text {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.variant-sentiment {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.sentiment-label {
    color: #e0e0e0;
}

.sentiment-score {
    font-weight: 600;
    font-size: 1.1rem;
}

.sentiment-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.sentiment-bar-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.sentiment-bar-fill.positive {
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.sentiment-bar-fill.neutral {
    background: linear-gradient(90deg, #fabe08, #ffd54f);
}

.sentiment-bar-fill.negative {
    background: linear-gradient(90deg, #f44336, #e57373);
}

.best-performer {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(6, 147, 227, 0.2), rgba(250, 190, 8, 0.2));
    border-radius: 12px;
    border: 2px solid var(--accent-yellow);
}

.best-performer h6 {
    color: var(--accent-yellow);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.best-performer-text {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.best-performer-stats {
    display: flex;
    gap: 2rem;
    color: #e0e0e0;
    font-size: 0.95rem;
}

/* Real-Time Dashboard Section */
.dashboard-section {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(6, 147, 227, 0.2);
}

.dashboard-section h4 {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.dashboard-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-btn {
    padding: 0.6rem 1.2rem;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.dashboard-btn:hover {
    background: #0577c2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 147, 227, 0.4);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.dashboard-card {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(6, 147, 227, 0.2);
}

.dashboard-card.full-width {
    grid-column: span 2;
}

.dashboard-card h5 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.dashboard-card canvas {
    max-height: 250px;
}

.gauge-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.alerts-container {
    min-height: 100px;
}

.no-alerts {
    color: #4caf50;
    text-align: center;
    padding: 2rem;
    font-size: 1rem;
}

.alert-item {
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: rgba(244, 67, 54, 0.2);
    border-left: 4px solid #f44336;
    border-radius: 8px;
    color: #fff;
}

.alert-item.warning {
    background: rgba(250, 190, 8, 0.2);
    border-left-color: #fabe08;
}

.alert-time {
    color: #e0e0e0;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card.full-width {
        grid-column: span 1;
    }
}

/* Chatbot - LeadLink Style */
.chatbot-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(6, 147, 227, 0.4);
    transition: all 0.3s;
    z-index: 1000;
}

.chatbot-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(6, 147, 227, 0.5);
}

.chatbot-trigger svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-white);
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 380px;
    height: 500px;
    background: var(--primary-white);
    border-radius: 3px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.chatbot-window.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--text-primary) 0%, #2d2d2d 100%);
    color: var(--primary-white);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--primary-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--light-gray);
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
}

.chat-message.bot {
    flex-direction: row;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.chat-message.bot .message-avatar {
    background: var(--accent-blue);
    color: var(--primary-white);
}

.chat-message.user .message-avatar {
    background: var(--dark-gray);
    color: var(--primary-white);
}

.message-content {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 15px;
}

.chat-message.bot .message-content {
    background: var(--primary-white);
    color: var(--text-primary);
}

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

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background: var(--primary-white);
    display: flex;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 3px;
    font-size: 15px;
    font-family: 'Rajdhani', sans-serif;
}

.chatbot-input button {
    background: var(--accent-blue);
    color: var(--primary-white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    font-family: 'Rajdhani', sans-serif;
}

.chatbot-input button:hover {
    background: #0059b3;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    nav {
        display: none;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .chatbot-window {
        width: calc(100vw - 2rem);
        right: 1rem;
        left: 1rem;
    }
}
