/* ========================================
   n8n Lead Qualification Assistant
   Landing Page Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #18181f;
    --bg-elevated: #1e1e28;
    --bg-hover: #262632;

    /* Text */
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;

    /* Accent - Teal/Cyan for data flow */
    --accent-primary: #14b8a6;
    --accent-secondary: #0d9488;
    --accent-glow: rgba(20, 184, 166, 0.15);
    --accent-border: rgba(20, 184, 166, 0.3);

    /* Hot - Red for high priority */
    --hot-primary: #ef4444;
    --hot-secondary: #dc2626;
    --hot-glow: rgba(239, 68, 68, 0.15);

    /* Warm - Orange for medium priority */
    --warm-primary: #f59e0b;
    --warm-secondary: #d97706;
    --warm-glow: rgba(245, 158, 11, 0.15);

    /* Cold - Blue for low priority */
    --cold-primary: #60a5fa;
    --cold-glow: rgba(96, 165, 250, 0.15);

    /* Success */
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.15);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: var(--bg-tertiary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform var(--transition-fast);
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-cta {
    display: flex;
    gap: var(--space-sm);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-cta .btn-secondary {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    padding: var(--space-4xl) 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.hero-title {
    margin-bottom: var(--space-xl);
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.5s; }

.title-accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--hot-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-3xl);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.7s;
}

.hero-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.8s;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.metric-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.metric-divider {
    width: 1px;
    height: 40px;
    background: var(--border-default);
}

@media (max-width: 768px) {
    .hero-metrics {
        flex-direction: column;
        gap: var(--space-md);
    }
    .metric-divider {
        display: none;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Problem Section */
.problem {
    background: var(--bg-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
}

.problem-card {
    padding: var(--space-xl);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.problem-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.problem-icon {
    width: 48px;
    height: 48px;
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--text-tertiary);
}

.problem-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.problem-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Solution Section */
.solution {
    background: var(--bg-primary);
}

.solution-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    max-width: 140px;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.node-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.node-icon svg {
    width: 28px;
    height: 28px;
}

.node-icon.source { border-color: var(--border-default); }
.node-icon.source svg { color: var(--text-secondary); }

.node-icon.platform {
    border-color: var(--accent-border);
    background: var(--accent-glow);
}
.node-icon.platform svg { color: var(--accent-primary); }

.node-icon.ai {
    border-color: var(--hot-primary);
    background: var(--hot-glow);
}
.node-icon.ai svg { color: var(--hot-primary); }

.node-icon.score {
    border-color: var(--success);
    background: var(--success-glow);
}
.node-icon.score svg { color: var(--success); }

.node-icon.crm {
    border-color: var(--warm-primary);
    background: var(--warm-glow);
}
.node-icon.crm svg { color: var(--warm-primary); }

.flow-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.flow-desc {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.4;
}

.flow-arrow {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.flow-arrow svg {
    width: 32px;
    height: 12px;
}

@media (max-width: 1024px) {
    .solution-flow {
        flex-direction: column;
    }
    .flow-arrow {
        transform: rotate(90deg);
    }
}

.solution-result {
    display: flex;
    justify-content: center;
}

.result-card {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-2xl);
    background: linear-gradient(135deg, var(--accent-glow), var(--hot-glow));
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-xl);
    max-width: 600px;
}

.result-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.result-content h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.result-content p {
    font-size: 0.9375rem;
}

@media (max-width: 640px) {
    .result-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Features Section */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    padding: var(--space-xl);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--accent-primary);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Product Preview Section */
.product {
    background: var(--bg-primary);
    padding-bottom: var(--space-4xl);
}

.product-preview {
    position: relative;
}

.dashboard {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.dashboard-controls {
    display: flex;
    gap: var(--space-sm);
}

.control-btn {
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    border-color: var(--border-strong);
    color: var(--text-secondary);
}

.control-btn.active {
    background: var(--accent-glow);
    border-color: var(--accent-border);
    color: var(--accent-primary);
}

.dashboard-content {
    padding: var(--space-xl);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    padding: var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.stat-card.stat-card-hot {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: inset 3px 0 0 var(--hot-primary);
}

.stat-card.stat-card-telegram {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: inset 3px 0 0 #0ea5e9;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-value.stat-hot {
    color: var(--hot-primary);
}

.stat-value.stat-telegram {
    color: #0ea5e9;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-top: var(--space-sm);
}

.stat-change.positive {
    color: var(--success);
}

.dashboard-flow {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.flow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.flow-header span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.flow-time {
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    color: var(--text-tertiary) !important;
}

.flow-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
}

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

.flow-column {
    background: var(--bg-primary);
    min-height: 400px;
}

.column-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.column-dot {
    width: 8px;
    height: 8px;
    background: var(--text-tertiary);
    border-radius: 50%;
}

.column-dot.processing {
    background: var(--hot-primary);
    animation: pulse 1.5s infinite;
}

.column-dot.qualified {
    background: var(--success);
}

.column-count {
    margin-left: auto;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.lead-cards {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.lead-card {
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.lead-card:hover {
    border-color: var(--border-default);
}

.lead-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.lead-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.lead-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.lead-message {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lead-source {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.lead-source.source-telegram {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.12);
}

.lead-source.source-website {
    color: var(--success);
    background: var(--success-glow);
}

.lead-card.processing {
    border-color: var(--hot-primary);
}

.lead-processing {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: var(--space-sm);
}

.processing-bar {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, var(--hot-secondary), var(--hot-primary));
    border-radius: 2px;
    animation: processing 1.5s ease-in-out infinite;
}

@keyframes processing {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 30%; }
}

.lead-card.qualified {
    border-color: var(--accent-border);
}

.lead-card.qualified.hot {
    border-color: rgba(239, 68, 68, 0.35);
}

.lead-card.qualified.warm {
    border-color: rgba(245, 158, 11, 0.35);
}

.lead-card.qualified.cold {
    border-color: rgba(96, 165, 250, 0.35);
}

.lead-badge {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.lead-badge.hot {
    background: var(--hot-glow);
    color: var(--hot-primary);
}

.lead-badge.warm {
    background: var(--warm-glow);
    color: var(--warm-primary);
}

.lead-badge.cold {
    background: var(--cold-glow);
    color: var(--cold-primary);
}

.lead-score {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.score-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.score-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--accent-primary);
}

.lead-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
}

.detail-label {
    color: var(--text-tertiary);
}

.detail-value {
    color: var(--text-secondary);
}

.lead-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.lead-action svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.lead-action.follow-up {
    color: var(--warm-primary);
}

.lead-action.call {
    color: var(--hot-primary);
}

.lead-action.archive {
    color: var(--cold-primary);
}

.lead-card.qualified.hot .lead-action {
    color: var(--hot-primary);
}

.lead-card.qualified.warm .lead-action {
    color: var(--warm-primary);
}

.lead-card.qualified.cold .lead-action {
    color: var(--cold-primary);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: var(--space-lg);
}

.cta-desc {
    font-size: 1.125rem;
    margin-bottom: var(--space-2xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

@media (max-width: 640px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-top: var(--space-md);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 640px) {
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-group h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
}

.footer-group a {
    display: block;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.footer-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    .hero-content {
        padding: var(--space-2xl) 0;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Manager Result Section */
.manager-result {
    background: var(--bg-secondary);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

@media (max-width: 1024px) {
    .result-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.result-item:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
}

.result-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

.result-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.result-content p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Integrations Section */
.integrations {
    background: var(--bg-primary);
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .integrations-grid {
        grid-template-columns: 1fr;
    }
}

.integration-card {
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-normal);
}

.integration-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.integration-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-logo svg {
    width: 40px;
    height: 40px;
}

.integration-logo.kommo {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(20, 184, 166, 0.05));
    color: var(--accent-primary);
}

.integration-logo.bitrix {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0.05));
    color: var(--cold-primary);
}

.integration-logo.webhook {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: var(--hot-primary);
}

.integration-logo.n8n {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(167, 139, 250, 0.05));
    color: var(--warm-primary);
}

.integration-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.integration-card p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.portfolio-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.portfolio-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.portfolio-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.portfolio-note {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: inline-block;
}

/* LQ landing adjustments */
.integration-logo.telegram {
    color: #0ea5e9;
}

/* ========================================
   Demo Access Popover
   ======================================== */

.demo-dropdown {
    position: relative;
}

.demo-trigger {
    cursor: pointer;
}

.demo-trigger .btn-arrow {
    transition: transform var(--transition-fast);
}

.demo-dropdown.active .demo-trigger .btn-arrow {
    transform: rotate(180deg);
}

.demo-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1100;
}

.demo-dropdown.active .demo-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.demo-popover-header {
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
}

.demo-popover-content {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.demo-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.demo-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-default);
    transform: translateX(4px);
}

.demo-card-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.demo-card-content {
    flex: 1;
    min-width: 0;
}

.demo-card-title {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.demo-card-desc {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Demo Navigation - Back to Demo Landing */
.demo-back {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.demo-back:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.demo-back-icon {
    width: 1rem;
    height: 1rem;
}

/* Responsive adjustments for popover */
@media (max-width: 768px) {
    .demo-popover {
        width: 280px;
        right: 0;
        left: auto;
    }

    .demo-card {
        padding: var(--space-sm) var(--space-md);
    }

    .demo-card-icon {
        font-size: 1.25rem;
    }

    .demo-card-title {
        font-size: 0.875rem;
    }

    .demo-card-desc {
        font-size: 0.75rem;
    }
}
}
