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

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --secondary: #ec4899;
    --bg-main: #fafafa;
    --bg-card: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-light: #e5e7eb;
    --border-lighter: #f3f4f6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(139, 92, 246, 0.08);
    --shadow-lg: 0 8px 24px rgba(139, 92, 246, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.top-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 70px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: #4b5563;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.nav-item a:hover {
    background: var(--border-lighter);
    color: var(--primary);
}

.arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown.active .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-width: 320px;
    padding: 20px;
    margin-top: 10px;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
    z-index: 1000;
}

.dropdown.active .dropdown-menu {
    display: block;
}

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

.dropdown-header {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-menu input[type="text"],
.dropdown-menu input[type="number"],
.dropdown-menu select {
    width: 100%;
    margin-bottom: 10px;
}

.dropdown-select {
    width: 100%;
    margin-bottom: 15px;
}

.dropdown-btn {
    width: 100%;
    margin-top: 10px;
}

.dropdown-btn.delete-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
}

.dropdown-btn.delete-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #b91c1c;
}

.dropdown-info {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.hamburger {
    width: 25px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        height: 60px;
        padding: 0 20px;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        flex-direction: column;
        gap: 0;
        display: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-item a {
        padding: 15px 20px;
    }

    .dropdown-menu {
        position: static;
        margin-top: 0;
        border-radius: 0;
        border: none;
        border-top: 1px solid #e5e7eb;
        box-shadow: none;
    }
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.compliance-notice {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    padding: 15px;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.9rem;
    margin-top: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    color: #374151;
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr auto;
    gap: 10px;
    margin-bottom: 15px;
}

input[type="text"],
input[type="number"],
select,
textarea {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

button:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

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

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead {
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
    border-bottom: 2px solid var(--border-light);
}

th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

td {
    padding: 10px;
    border-top: 1px solid #f3f4f6;
    color: #4b5563;
}

tbody tr:hover {
    background: #faf5ff;
}

tbody tr.lead-row {
    cursor: pointer;
}

tbody tr.selected-row {
    background: #ede9fe !important;
    border-left: 3px solid #8b5cf6;
}

tbody tr.selected-row td {
    color: #5b21b6;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-style: italic;
}

.editable {
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.editable:hover {
    background: #f3f4f6;
}

/* Selected Lead Box */
.selected-lead-box {
    background: #f5f3ff;
    border: 2px dashed #c4b5fd;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.selected-lead-display {
    font-size: 1.1rem;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #c4b5fd;
    color: #374151;
}

.no-lead-hint {
    color: #8b5cf6;
    font-style: italic;
    margin: 8px 0 0 0;
}

.score-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}

.score-excellent {
    background: #ddd6fe;
    color: #5b21b6;
}

.score-high {
    background: #d1fae5;
    color: #065f46;
}

.score-medium {
    background: #fed7aa;
    color: #9a3412;
}

.score-low {
    background: #fee2e2;
    color: #991b1b;
}

.score-bot-protected {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.45rem;
    padding: 3px 4px;
    border: 1px solid #d1d5db;
    line-height: 1;
    text-align: center;
    min-width: 36px;
    max-width: 36px;
    white-space: normal;
    font-weight: 600;
}

.status-text {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.email-composer label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #374151;
    font-weight: 500;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.email-preview {
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.email-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 6px;
    border-left: 3px solid var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.email-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.email-item .subject {
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.email-item .body {
    color: #6b7280;
    white-space: pre-wrap;
}

.info-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.email-send-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #374151;
    font-weight: 500;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    background: linear-gradient(135deg, #faf5ff 0%, #fdf4ff 100%);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.pipeline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pipeline-stage {
    flex: 1;
    min-width: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.pipeline-stage:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.pipeline-count {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.pipeline-label {
    color: #6b7280;
    font-size: 0.85rem;
}

.campaign-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.campaign-controls select {
    flex: 1;
    max-width: 500px;
}

.campaign-controls button {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .nav-brand h1 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .nav-menu {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-item a {
        text-align: center;
        width: 100%;
    }
    
    .dropdown-menu {
        position: relative;
        left: 0;
        right: 0;
        margin-top: 5px;
        width: 100%;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .campaign-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .campaign-controls select {
        max-width: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .pipeline {
        flex-direction: column;
    }
    
    .table-controls {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .table-controls button {
        min-height: 44px;
        touch-action: manipulation;
    }
}

.sms-composer textarea {
    font-family: inherit;
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: -10px;
    margin-bottom: 15px;
}

.preview-sms {
    background: #f0f4ff;
    border-left: 3px solid var(--primary);
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
    color: #374151;
}

.scoring-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.score-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.score-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(74, 108, 247, 0.15);
}

.score-badge {
    display: inline-block;
    font-size: 2rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 80px;
    text-align: center;
}

.score-low {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: #fff;
}

.score-medium {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #000;
}

.score-high {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
}

.score-excellent {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.score-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.score-card p {
    margin: 8px 0;
    line-height: 1.6;
    color: #4b5563;
}

.scoring-factors {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.scoring-factors h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.scoring-factors ul {
    list-style: none;
    padding-left: 0;
}

.scoring-factors li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #4b5563;
}

.scoring-factors li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.scoring-tip {
    background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 25px 0;
    font-size: 1.05rem;
}

.scoring-tip strong {
    color: var(--primary);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
    padding: 20px;
}

.auth-modal-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.auth-close:hover {
    color: #4b5563;
}

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

.auth-header h2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 10px;
    border: none;
    padding: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form h3 {
    color: #111827;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.auth-form label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 5px;
}

.auth-form input {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.auth-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 15px;
    color: #6b7280;
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.auth-error:not(:empty) {
    display: block;
}

.auth-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-form h3 {
    color: var(--primary);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.settings-form h3:first-of-type {
    margin-top: 0;
}

.settings-form label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 5px;
    margin-top: 10px;
}

.settings-form input {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 1rem;
}

.settings-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

@media (max-width: 768px) {
    .auth-modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }
}

.tutorial-modal-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 20px auto;
    min-height: auto;
    max-height: 85vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .tutorial-modal-content {
        padding: 24px;
        width: 95%;
        margin: 10px auto;
        max-height: 90vh;
    }
}

.tutorial-progress {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tutorial-steps {
    position: relative;
    min-height: auto;
}

@media (min-width: 769px) {
    .tutorial-steps {
        min-height: 400px;
    }
}

.tutorial-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tutorial-step.active {
    display: block;
}

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

.tutorial-step h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.tutorial-step p {
    margin-bottom: 15px;
    color: #4b5563;
    line-height: 1.7;
}

.tutorial-step ul {
    margin: 15px 0;
    padding-left: 20px;
}

.tutorial-step li {
    margin: 8px 0;
    color: #4b5563;
}

.tutorial-step code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--primary);
}

.tutorial-btns {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    justify-content: space-between;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    transition: background 0.3s ease;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
}

.modal.show .modal-content {
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(139, 92, 246, 0.2);
    position: relative;
    margin: auto;
}

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

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.close,
.close-modal {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: absolute;
    top: 20px;
    right: 20px;
}

.close:hover,
.close-modal:hover {
    background: #e5e7eb;
    color: #374151;
    transform: none;
}

.breakdown-header {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #c7d2fe;
}

.lead-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.lead-url {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.lead-url:hover {
    text-decoration: underline;
}

.total-score {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 20px 0;
}

.confidence-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.confidence-high {
    background: #d1fae5;
    color: #065f46;
}

.confidence-medium {
    background: #fed7aa;
    color: #9a3412;
}

.confidence-low {
    background: #fee2e2;
    color: #991b1b;
}

.render-info {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.render-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
}

.render-static {
    background: #dbeafe;
    color: #1e40af;
}

.render-rendered {
    background: #d1fae5;
    color: #065f46;
}

.render-failed {
    background: #fee2e2;
    color: #991b1b;
}

.hybrid-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.score-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 10px;
}

.section-score {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.heuristic-section .section-score {
    color: #10b981;
}

.ai-section .section-score {
    color: #8b5cf6;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.category-item:last-child {
    border-bottom: none;
}

.category-name {
    color: #6b7280;
    font-size: 0.9rem;
}

.category-score {
    font-weight: 600;
    color: #111827;
}

.evidence-section {
    margin: 20px 0;
}

.evidence-section h4 {
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.evidence-item {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.evidence-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.evidence-value {
    font-weight: 600;
    color: #111827;
}

.evidence-value.true {
    color: #10b981;
}

.evidence-value.false {
    color: #ef4444;
}

.justifications-section {
    margin: 20px 0;
}

.justification-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.justification-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: capitalize;
}

.justification-text {
    color: #4b5563;
    line-height: 1.6;
}

.plain-english-report {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.plain-english-report h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.report-section {
    margin-bottom: 20px;
}

.report-section h5 {
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.report-section ul {
    list-style: none;
    padding-left: 0;
}

.report-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #4b5563;
    line-height: 1.6;
}

.strengths-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.weaknesses-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

.opportunities-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.tech-observations {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    color: #4b5563;
    line-height: 1.7;
}

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

    .modal-content {
        padding: 20px;
    }

    .total-score {
        font-size: 2.5rem;
    }

    .evidence-grid {
        grid-template-columns: 1fr;
    }
}

.compose-from-score-btn {
    margin-top: 20px;
}

.action-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-gradient);
    padding: 8px 16px !important;
    border-radius: 20px;
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.credits-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
    background: var(--primary-gradient) !important;
}

.credits-icon {
    font-size: 1rem;
}

.credits-modal-header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.current-balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.balance-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.balance-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credits-section {
    margin-bottom: 24px;
}

.credits-section h3 {
    margin-bottom: 12px;
    color: #111827;
    font-size: 1.1rem;
}

.credit-costs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.credit-cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cost-action {
    color: #374151;
    font-weight: 500;
}

.cost-value {
    color: var(--primary-dark);
    font-weight: 600;
}

.credit-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.credit-package {
    position: relative;
    padding: 24px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.credit-package:hover {
    border-color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.credit-package.featured {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

.credit-package.onetime {
    background: #f9fafb;
    border-color: #d1d5db;
}

.credit-package.onetime:hover {
    border-color: #9ca3af;
    box-shadow: 0 8px 24px rgba(107, 114, 128, 0.15);
}

.section-desc {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.package-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.package-btn.secondary:hover {
    background: #e5e7eb;
}

.active-subscription-card {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 2px solid #818cf8;
    border-radius: 12px;
    padding: 20px;
}

.subscription-info {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 16px;
}

.sub-plan, .sub-credits {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
}

.sub-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.sub-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.sub-badge.active {
    background: #dcfce7;
    color: #166534;
}

.sub-badge.canceling {
    background: #fef3c7;
    color: #92400e;
}

.cancel-sub-btn {
    padding: 8px 16px;
    background: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.cancel-sub-btn:hover {
    background: #fef2f2;
}

.cancel-notice {
    color: #92400e;
    font-size: 0.875rem;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 6px;
    margin-top: 12px;
    text-align: center;
}

.info-tooltip {
    cursor: help;
    opacity: 0.7;
}

.info-tooltip:hover {
    opacity: 1;
}

.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.package-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.package-credits {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.package-price {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 12px;
}

.package-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.package-btn:hover {
    opacity: 0.9;
}

.transaction-history {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.transaction-desc {
    color: #111827;
    font-weight: 500;
    font-size: 0.9rem;
}

.transaction-date {
    color: #9ca3af;
    font-size: 0.8rem;
}

.transaction-amount {
    font-weight: 600;
    font-size: 1rem;
}

.amount-positive {
    color: #10b981;
}

.amount-negative {
    color: #ef4444;
}

.empty-state {
    color: #9ca3af;
    text-align: center;
    padding: 24px;
}

@media (max-width: 768px) {
    .credits-badge {
        padding: 6px 12px !important;
        font-size: 0.85rem;
    }
    
    .credit-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .balance-value {
        font-size: 2.5rem;
    }
}

.progress-container {
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    height: 8px;
    margin: 12px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    transition: width 0.3s ease;
}

.progress-bar.indeterminate {
    width: 30%;
    animation: indeterminate 1.5s infinite ease-in-out;
}

@keyframes indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 16px;
    color: #374151;
    font-size: 1.1rem;
    font-weight: 500;
}

.loading-subtext {
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.9rem;
}

/* ===== LANDING PAGE STYLES ===== */
.landing-page {
    display: none;
    min-height: 100vh;
    background: transparent;
    position: relative;
}

.landing-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/images/ai_neural_network_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    pointer-events: none;
}

.landing-page.active {
    display: block;
}

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

.landing-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-icon {
    font-size: 1.5rem;
    -webkit-text-fill-color: initial;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

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

.landing-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.landing-btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

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

.landing-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    padding: 140px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    max-width: 560px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    background: none;
    -webkit-text-fill-color: initial;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.hero-supporting {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 32px;
    font-style: italic;
}

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

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-arrow {
    transition: transform 0.3s;
}

.hero-btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.trust-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hero Visual Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(139, 92, 246, 0.1);
    width: 100%;
    max-width: 400px;
    animation: float 6s ease-in-out infinite;
}

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

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-card-score {
    text-align: center;
    margin-bottom: 24px;
}

.score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    font-size: 2.5rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 8px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.score-label {
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out 0.5s, transform 0.6s ease-out 0.5s;
}

.insight-callout {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #10b98140;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #065f46;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out 0.6s, transform 0.6s ease-out 0.6s;
}

.hero-card.animate-in .insight-callout {
    opacity: 1;
    transform: translateY(0);
}

.hero-card-insights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* Animation triggered states */
.hero-card.animate-in .score-circle {
    opacity: 1;
    transform: scale(1);
}

.hero-card.animate-in .score-label {
    opacity: 1;
    transform: translateY(0);
}

.hero-card.animate-in .insight-item {
    opacity: 1;
    transform: translateX(0);
}

.hero-card.animate-in .insight-item:nth-child(1) {
    transition-delay: 1s;
}

.hero-card.animate-in .insight-item:nth-child(2) {
    transition-delay: 1.4s;
}

.hero-card.animate-in .insight-item:nth-child(3) {
    transition-delay: 1.8s;
}

.hero-card.animate-in .insight-item:nth-child(4) {
    transition-delay: 2.2s;
}

.insight-item.weakness {
    background: #fef9e6;
    border: 1px solid #f59e0b40;
    color: #92400e;
}

.insight-item.opportunity {
    background: #f0fdf4;
    color: #16a34a;
}

.insight-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.insight-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.insight-main {
    font-weight: 600;
    color: #92400e;
}

.insight-sub {
    font-size: 0.8rem;
    color: #78350f;
    opacity: 0.9;
}

.insight-item.opportunity .insight-main {
    color: #16a34a;
}

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

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    background: none;
    -webkit-text-fill-color: initial;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-section .section-subtitle {
    color: white;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pricing-section .section-title {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pricing-section .section-title .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features-section {
    padding: 100px 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

.features-section .section-title {
    color: #1f2937 !important;
}

.features-section .gradient-text {
    background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-section .section-subtitle {
    color: #4b5563;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    border-radius: var(--radius-lg);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background-size: cover;
    background-position: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.85) 60%);
    z-index: 1;
}

.feature-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.75) 60%);
}

.feature-discovery {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('/static/images/feature_discovery.png');
    background-size: cover;
    background-position: center;
}

.feature-ai {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background-image: url('/static/images/feature_ai.png');
    background-size: cover;
    background-position: center;
}

.feature-email {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    background-image: url('/static/images/feature_email.png');
    background-size: cover;
    background-position: center;
}

.feature-outreach {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    background-image: url('/static/images/feature_outreach.png');
    background-size: cover;
    background-position: center;
}

.feature-reports {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    background-image: url('/static/images/feature_reports.png');
    background-size: cover;
    background-position: center;
}

.feature-crm {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    background-image: url('/static/images/feature_crm.png');
    background-size: cover;
    background-position: center;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* How It Works Section */
.how-it-works-section {
    padding: 100px 24px;
    background: rgba(245, 243, 255, 0.4);
    backdrop-filter: blur(8px);
}

.how-it-works-section .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 24px;
    max-width: 220px;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.85) 60%);
    z-index: 1;
}

.step-card:hover::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.75) 60%);
}

.step-content {
    position: relative;
    z-index: 2;
}

.step-search {
    background-image: url('/static/images/step_search.png');
}

.step-analyze {
    background-image: url('/static/images/step_analyze.png');
}

.step-personalize {
    background-image: url('/static/images/step_personalize.png');
}

.step-convert {
    background-image: url('/static/images/step_convert.png');
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    margin-top: 28px;
    flex-shrink: 0;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 24px;
    background-image: url('/static/images/pricing_section_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.15) 100%);
    z-index: 0;
}

.pricing-section > * {
    position: relative;
    z-index: 1;
}

.pricing-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-footnote {
    text-align: center;
    color: white;
    font-size: 0.85rem;
    margin-top: 24px;
    opacity: 0.9;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-align: center;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
    transform: translateY(-4px);
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pricing-toggle span {
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.pricing-toggle span.active {
    color: var(--primary);
    font-weight: 700;
}

.toggle-switch {
    position: relative;
    width: 80px;
    height: 40px;
    background: var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.annual {
    background: var(--primary);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.annual::after {
    transform: translateX(40px);
}

.annual-discount-text {
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 24px;
    margin-top: -20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-amount {
    margin-bottom: 24px;
}

.pricing-amount .price {
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-amount .period {
    color: var(--text-secondary);
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-lighter);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "✓ ";
    color: var(--primary);
    font-weight: 600;
}

.pricing-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.pricing-btn-primary {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.pricing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

/* Final CTA Section */
.final-cta-section {
    padding: 100px 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(168, 85, 247, 0.95) 100%);
    backdrop-filter: blur(10px);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    background: none;
    -webkit-text-fill-color: white;
    border-bottom: none;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.final-cta-section .hero-btn-primary {
    background: white;
    color: var(--primary);
}

.final-cta-section .hero-btn-primary:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Landing Footer */
.landing-footer {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 24px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Landing Page */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        flex-wrap: wrap;
        gap: 24px;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        flex-basis: 45%;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

}

@media (max-width: 768px) {
    .landing-nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-light);
    }

    .landing-nav-links.mobile-active {
        display: flex;
    }

    .landing-nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-lighter);
    }

    .landing-nav-links button {
        width: 100%;
    }

    .landing-mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        flex-basis: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Loading indicator and spinner */
.loading-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-lighter);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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