/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 1rem 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray-light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient);
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: var(--border-radius);
    font-weight: 600 !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-icon {
    width: 24px;
    height: 2px;
    background: var(--light);
    position: relative;
    transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--light);
    left: 0;
    transition: all 0.3s ease;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    bottom: -6px;
}

.menu-icon.open {
    background: transparent;
}

.menu-icon.open::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-icon.open::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    align-items: flex-start;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.navbar.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: var(--dark-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.navbar.menu-open .mobile-menu-content {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-close-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-links a {
    color: var(--gray-light);
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.mobile-menu-links a:hover {
    color: var(--light);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-cta {
    background: var(--gradient);
    color: white !important;
    font-weight: 600 !important;
    margin-top: 1rem;
    text-align: center;
}

.mobile-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.typed-text {
    color: #e90edb;
    font-weight: 600;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--secondary);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 1px solid var(--gray);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.hero-visual {
    animation: fadeIn 1s ease 0.5s both;
}

.dashboard-preview {
    background: var(--dark-light);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.header-item {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-card {
    height: 80px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.live-feed {
    height: 100px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.person-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.person-dot:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.person-dot:nth-child(2) { top: 60%; left: 60%; animation-delay: 0.5s; }
.person-dot:nth-child(3) { top: 40%; left: 80%; animation-delay: 1s; }

/* Dashboard Cards with Charts */
.dashboard-card {
    height: 120px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.25rem;
    opacity: 0.7;
}

.card-chart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.25rem 0;
}

.card-label {
    font-size: 0.85rem;
    color: var(--light);
    font-weight: 600;
    text-align: center;
    margin-top: 0.25rem;
}

.card-change {
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
}

.card-change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.card-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.card-change.neutral {
    background: rgba(156, 163, 175, 0.2);
    color: var(--gray);
}

/* People Chart */
.people-chart {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.person-dots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    flex: 1;
}

.person-dot-small {
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    animation: blinkPerson 2s infinite;
}

.person-dot-small:nth-child(2n) {
    animation-delay: 0.5s;
}

.people-trend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.trend-line {
    width: 20px;
    height: 2px;
    background: var(--success);
}

.trend-up {
    color: var(--success);
    font-size: 0.8rem;
    animation: floatUp 3s ease-in-out infinite;
}

@keyframes blinkPerson {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Temperature Chart */
.temperature-chart {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.thermometer {
    width: 8px;
    height: 30px;
    position: relative;
    flex-shrink: 0;
}

.thermometer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.thermometer-fill {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #f59e0b, #ef4444);
    border-radius: 4px;
    transition: height 2s ease;
}

.thermometer-bulb {
    position: absolute;
    bottom: 0;
    left: -2px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
}

.temp-scale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 30px;
    font-size: 0.6rem;
    color: var(--gray);
}

.temp-current {
    color: var(--light);
    font-weight: 600;
    font-size: 0.7rem;
}

/* Anomaly Chart */
.anomaly-chart {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.anomaly-radar {
    width: 40px;
    height: 40px;
    position: relative;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    flex-shrink: 0;
}

.radar-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        transparent 0deg,
        rgba(239, 68, 68, 0.3) 90deg,
        transparent 180deg
    );
    border-radius: 50%;
    animation: rotate 4s linear infinite;
}

.anomaly-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--danger);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.anomaly-levels {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.level {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--danger);
    animation: loadLevel 3s ease-in-out infinite;
}

.level.low::after { width: 30%; animation-delay: 0s; }
.level.medium::after { width: 60%; animation-delay: 0.5s; }
.level.high::after { width: 90%; animation-delay: 1s; }

@keyframes loadLevel {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Occupancy Chart */
.occupancy-chart {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.occupancy-gauge {
    width: 40px;
    height: 40px;
    position: relative;
    flex-shrink: 0;
}

.gauge-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(var(--primary) 0deg, var(--primary) calc(65% * 3.6deg), transparent calc(65% * 3.6deg), transparent 360deg);
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 50% 0%);
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--light);
}

.occupancy-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
    flex: 1;
}

.occ-bar {
    width: 8px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    animation: bounceBar 2s ease-in-out infinite;
}

.occ-bar:nth-child(1) { animation-delay: 0s; }
.occ-bar:nth-child(2) { animation-delay: 0.2s; }
.occ-bar:nth-child(3) { animation-delay: 0.4s; }
.occ-bar:nth-child(4) { animation-delay: 0.6s; }
.occ-bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes bounceBar {
    0%, 100% { height: var(--target-height); }
    50% { height: calc(var(--target-height) - 5%); }
}

/* Live Feed */
.live-feed {
    height: 80px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    color: var(--light);
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
}

/* ===== FEATURES ===== */
.features {
    padding: 6rem 2rem;
    background: var(--dark-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feature-highlight {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.step {
    text-align: center;
    padding: 2rem;
    position: relative;
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
    color: var(--light);
}

.step p {
    color: var(--gray);
    line-height: 1.6;
}

/* Integration Pipeline Demo */
.integration-demo {
    max-width: 800px;
    margin: 4rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.camera-source, .ai-chip, .dashboard-output {
    padding: 1.5rem 2rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 140px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.camera-source:hover, .dashboard-output:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.camera-source::before {
    content: "📹";
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.ai-chip {
    background: var(--gradient);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    animation: pulse 2s infinite;
    min-width: 100px;
}

.ai-chip:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.dashboard-output::before {
    content: "📊";
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Arrow styles - using CSS content for responsive arrows */
.arrow {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.7;
    padding: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

/* Default arrow for desktop (→) */
.arrow::before {
    content: "→";
}

.arrow:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Pipeline labels */
.camera-source h4, .ai-chip h4, .dashboard-output h4 {
    color: var(--light);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.camera-source p, .ai-chip p, .dashboard-output p {
    color: var(--gray-light);
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.9;
}

.ai-chip p {
    color: rgba(255, 255, 255, 0.9);
}

/* Tech Stack (Optional - remove if not in your component) */
.tech-stack {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
}

.tech-stack h3 {
    margin-bottom: 2rem;
    color: var(--light);
}

.tech-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.tech-icon {
    font-size: 1.25rem;
}

.tech-item span {
    color: var(--light);
    font-weight: 500;
    font-size: 0.875rem;
}

/* ===== DEMO ===== */
.demo-section {
    padding: 6rem 2rem;
    background: var(--dark-light);
}

.demo-container {
    max-width: 1000px;
    margin: 3rem auto;
    background: rgba(30, 41, 59, 0.8);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-controls {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--gray);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.demo-btn.active {
    color: var(--light);
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 2px solid var(--primary);
}

.demo-visual {
    padding: 2rem;
}

.camera-feed {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #1e293b, #334155);
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.person-box, .detection-box {
    position: absolute;
    border: 2px solid var(--success);
    background: rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    animation: pulse 2s infinite;
}

.person-box:nth-child(1) { top: 20%; left: 30%; width: 40px; height: 80px; }
.person-box:nth-child(2) { top: 40%; left: 50%; width: 40px; height: 80px; animation-delay: 0.5s; }
.person-box:nth-child(3) { top: 60%; left: 70%; width: 40px; height: 80px; animation-delay: 1s; }

.suspicious-activity {
    position: absolute;
    top: 30%;
    left: 40%;
    width: 60px;
    height: 60px;
    border: 2px solid var(--danger);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.alert-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--danger);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    animation: pulse 0.5s infinite;
}

.demo-sidebar {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius);
}

.confidence-meter {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
}

.metric {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 6rem 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.testimonial-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-content {
    font-style: italic;
    color: var(--gray-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clients-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.client-logo {
    color: var(--gray);
    font-weight: 700;
    font-size: 1.25rem;
    opacity: 0.7;
}

/* ===== COMPARE SYSTEMS ===== */
.compare-systems {
    padding: 6rem 2rem;
    background: var(--dark-light);
}

.comparison-container {
    max-width: 1200px;
    margin: 0 auto;
}

.metric-selector {
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-selector h3 {
    margin-bottom: 1rem;
    color: var(--light);
}

.metric-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.metric-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--gray-light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.metric-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.metric-btn.active {
    background: var(--gradient);
    color: white;
    border-color: var(--primary);
}

.metric-info {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.metric-info h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.metric-info p {
    color: var(--gray-light);
    font-size: 0.875rem;
}

.comparison-chart {
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-header {
    margin-bottom: 2rem;
    text-align: center;
}

.chart-header h3 {
    color: var(--light);
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-row {
    display: grid;
    grid-template-columns: 150px 1fr 200px;
    gap: 1rem;
    align-items: center;
}

.system-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--light);
}

.system-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.bar-container {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.bar {
    height: 100%;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    transition: width 1s ease;
    min-width: 40px;
}

.bar-value {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.system-desc p {
    color: var(--gray);
    font-size: 0.875rem;
    margin: 0;
}

.comparison-table {
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.comparison-table h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--light);
    border-bottom: 2px solid var(--primary);
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-light);
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.comparison-table .best {
    color: var(--success);
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
}

.key-takeaways {
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.key-takeaways h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--light);
}

.takeaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.takeaway-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.takeaway-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.takeaway-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.takeaway-card h4 {
    color: var(--light);
    margin-bottom: 0.5rem;
}

.takeaway-card p {
    color: var(--gray);
    font-size: 0.875rem;
    margin: 0;
}

/* ===== CONTACT ===== */
.contact {
    padding: 6rem 2rem;
}

.contact-container {
    max-width: 1200px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 0.5rem;
}

.contact-form {
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-tagline {
    color: var(--gray);
    font-size: 0.875rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--light);
}

.footer-column a {
    display: block;
    color: var(--gray);
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.footer-column a:hover {
    color: var(--light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--gray);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--light);
}

/* Simplified Contact Popup */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.contact-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    max-width: 500px;
    margin: 4rem auto;
    background: var(--dark-light);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    overflow: hidden;
}

.contact-popup.show .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.popup-header h2 {
    color: var(--light);
    margin-bottom: 0.5rem;
}

.popup-header p {
    color: var(--gray-light);
}

.contact-info {
    padding: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--light);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-value {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--gray);
    font-size: 0.875rem;
    margin: 0;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.popup-btn {
    flex: 1;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popup-btn.primary {
    background: var(--gradient);
    color: white;
}

.popup-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.popup-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .popup-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
    }
}
