/* ========================================
   TurnPilot Landing Page Styles
   Light/Dark Theme Support
   ======================================== */

/* Light Theme (Default) */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-secondary: #0ea5e9;
    --color-accent: #10b981;

    --color-bg: #ffffff;
    --color-bg-elevated: #f8fafc;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #f1f5f9;

    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;

    --color-border: #e2e8f0;
    --color-border-light: #cbd5e1;

    --color-success: #10b981;
    --color-success-text: #059669;
    --color-warning: #f59e0b;
    --color-warning-text: #d97706;
    --color-danger: #ef4444;
    --color-danger-text: #dc2626;

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-hero: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.08) 0%, transparent 50%);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.98);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --color-bg: #0a0a0f;
    --color-bg-elevated: #12121a;
    --color-bg-card: #1a1a24;
    --color-bg-card-hover: #22222e;

    --color-text: #ffffff;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;

    --color-border: #27272a;
    --color-border-light: #3f3f46;

    --color-success-text: #10b981;
    --color-warning-text: #f59e0b;
    --color-danger-text: #ef4444;

    --gradient-hero: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 50%);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    --nav-bg: rgba(10, 10, 15, 0.8);
    --nav-bg-scrolled: rgba(10, 10, 15, 0.95);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
}

.btn-outline:hover {
    background: var(--color-bg-elevated);
    border-color: var(--color-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    color: var(--color-text);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-secondary);
}

.theme-toggle:hover {
    background: var(--color-bg-card-hover);
    color: var(--color-text);
    border-color: var(--color-border-light);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 20px;
    height: 20px;
}

/* Show/hide icons based on theme */
.theme-toggle .icon-moon {
    display: block;
}

.theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    font-weight: 800;
    color: white;
}

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

.nav-links a {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
    transition: background var(--transition-base);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 520px;
    margin-bottom: 32px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
}

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

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.hero-dashboard {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: background var(--transition-base), border-color var(--transition-base);
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
}

.dashboard-dots {
    display: flex;
    gap: 6px;
}

.dashboard-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border-light);
}

.dashboard-dots span:first-child { background: #ef4444; }
.dashboard-dots span:nth-child(2) { background: #f59e0b; }
.dashboard-dots span:nth-child(3) { background: #10b981; }

.dashboard-title {
    font-size: 13px;
    color: var(--color-text-muted);
}

.dashboard-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: background var(--transition-base), border-color var(--transition-base);
}

.card-label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
}

.card-trend {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.card-trend.positive {
    color: var(--color-success);
}

.dashboard-timeline {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.timeline-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-bar {
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.timeline-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.timeline-stages {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-muted);
}

.timeline-stages .complete {
    color: var(--color-success);
}

.timeline-stages .active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Problem Section */
.problem {
    padding: 100px 0;
    background: var(--color-bg-elevated);
    transition: background var(--transition-base);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-base);
}

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

.problem-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-danger);
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.problem-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Solution Section */
.solution {
    padding: 100px 0 40px;
}

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

/* Features Section */
.features {
    padding: 40px 0 100px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-description {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.feature-list svg {
    flex-shrink: 0;
    color: var(--color-success);
    margin-top: 2px;
}

.feature-visual {
    position: relative;
}

/* Contractor Card Stack */
.feature-card-stack {
    position: relative;
}

.contractor-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.contractor-card:first-child {
    margin-bottom: 16px;
}

.contractor-card:last-child {
    opacity: 0.6;
    transform: scale(0.97);
}

.contractor-card.recommended {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .contractor-card.recommended {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.contractor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contractor-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.contractor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contractor-name {
    font-weight: 600;
    font-size: 15px;
}

.contractor-specialty {
    font-size: 13px;
    color: var(--color-text-muted);
}

.contractor-score {
    width: 44px;
    height: 44px;
    background: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.contractor-score.dim {
    background: var(--color-border-light);
    color: var(--color-text-muted);
}

.contractor-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.badge.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success-text);
}

.badge.blue {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}

.badge.gold {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning-text);
}

.contractor-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.capacity-bar {
    flex: 1;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}

.capacity-bar > div {
    height: 100%;
    background: var(--color-success);
    border-radius: 3px;
}

/* Analytics Preview */
.analytics-preview {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.analytics-card {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.trend-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.trend-badge.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success-text);
}

.analytics-chart {
    height: 140px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100%;
    gap: 16px;
}

.bar {
    flex: 1;
    background: var(--color-border);
    border-radius: 4px 4px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 8px;
    transition: all var(--transition-base);
}

.bar span {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: auto;
    padding-top: 8px;
}

.bar.highlight {
    background: var(--gradient-primary);
}

.bar.highlight span {
    color: white;
}

.analytics-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--color-border);
}

.metric {
    background: var(--color-bg-card);
    padding: 16px;
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Timeline Preview */
.timeline-preview {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-weight: 600;
}

.status-badge {
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success-text);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.timeline-visual {
    position: relative;
    padding-left: 24px;
}

.timeline-visual::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 50%;
}

.timeline-item.complete .timeline-dot {
    background: var(--color-success);
    border-color: var(--color-success);
}

.timeline-item.active .timeline-dot {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.timeline-content {
    display: flex;
    flex-direction: column;
}

.timeline-date {
    font-size: 12px;
    color: var(--color-text-muted);
}

.timeline-event {
    font-weight: 500;
}

.timeline-event.predicted {
    color: var(--color-primary);
}

/* Activity Preview */
.activity-preview {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.activity-header {
    padding: 16px 20px;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
}

.activity-items {
    padding: 12px 20px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

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

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

.activity-avatar.green { background: rgba(16, 185, 129, 0.15); color: var(--color-success-text); }
.activity-avatar.blue { background: rgba(14, 165, 233, 0.15); color: #0284c7; }
.activity-avatar.purple { background: rgba(168, 85, 247, 0.15); color: #9333ea; }

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}

.activity-time {
    font-size: 12px;
    color: var(--color-text-muted);
}

.activity-badge {
    padding: 12px 20px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--color-bg-elevated);
}

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

.step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

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

.step-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--color-border);
    margin-top: 28px;
    flex-shrink: 0;
}

/* Comparison Section */
.comparison {
    padding: 100px 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    background: var(--color-bg-elevated);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.comparison-table th.highlight {
    background: rgba(99, 102, 241, 0.08);
    color: var(--color-primary);
}

.comparison-table td.highlight {
    background: rgba(99, 102, 241, 0.03);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover td {
    background: var(--color-bg-card-hover);
}

.comparison-table tbody tr:hover td.highlight {
    background: rgba(99, 102, 241, 0.08);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
}

.status.yes {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success-text);
}

.status.no {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger-text);
}

.status.partial {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning-text);
}

/* ROI Section */
.roi {
    padding: 100px 0;
    background: var(--color-bg-elevated);
}

.roi-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.roi-calculation {
    margin-top: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.roi-line {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border);
}

.roi-line:last-child {
    border-bottom: none;
}

.roi-line.highlight {
    background: rgba(99, 102, 241, 0.06);
    font-weight: 600;
}

.roi-line.highlight span:last-child {
    color: var(--color-success);
    font-size: 18px;
}

.roi-card {
    background: var(--color-bg-card);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.1);
}

.roi-card-header {
    padding: 20px;
    background: rgba(99, 102, 241, 0.06);
    font-weight: 600;
    text-align: center;
}

.roi-card-body {
    padding: 24px;
}

.roi-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.roi-input label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.roi-value {
    font-weight: 600;
}

.roi-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 8px;
}

.roi-result span:first-child {
    font-weight: 600;
}

.roi-total {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-success);
}

.roi-card-footer {
    padding: 16px 20px;
    background: var(--color-bg-elevated);
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    position: relative;
    margin-bottom: 32px;
}

.testimonial-quote svg {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-primary);
    opacity: 0.15;
}

.testimonial-quote p {
    font-size: 22px;
    line-height: 1.6;
    color: var(--color-text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-name {
    font-weight: 600;
}

.author-title {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--color-bg-elevated);
}

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

.cta-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.cta-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.cta-form input,
.cta-form select {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.cta-form input::placeholder {
    color: var(--color-text-muted);
}

.cta-form input:focus,
.cta-form select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.cta-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.cta-form select option {
    background: var(--color-bg-card);
}

.cta-form .btn {
    margin-top: 8px;
}

.cta-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-text-muted);
    max-width: 280px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--color-text-muted);
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a:hover {
    color: var(--color-text);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-image-wrapper {
        transform: none;
        max-width: 600px;
        margin: 0 auto;
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 48px;
        direction: ltr;
    }

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

    .roi-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

    .nav-cta .btn-ghost {
        display: none;
    }

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

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

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

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

    .stat-divider {
        display: none;
    }

    .section-title {
        font-size: 28px;
    }

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

    .steps {
        flex-direction: column;
        gap: 32px;
    }

    .step-connector {
        width: 2px;
        height: 32px;
        margin: 0 auto;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 16px;
        font-size: 13px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .testimonial-card {
        padding: 32px 24px;
    }

    .testimonial-quote p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .feature-title {
        font-size: 24px;
    }

    .cta-form {
        padding: 24px 16px;
    }
}
