/* ===================================
   TILLRUN BUILD Page - "The Integrated Cockpit"
   Proven Platforms, Ready to Deploy
   =================================== */

/* ===================================
   Color Palette - Highlight Colors
   =================================== */
:root {
    --highlight-cyan: #00D9FF;
    --highlight-purple: #B24BF3;
    --highlight-orange: #FF6B35;
    --highlight-green: #00F5A0;
    --alert-red: #FF3B3B;
    --safe-green: #00D68F;
    --warning-orange: #FFA900;
}

/* ===================================
   Build Hero Section - Cockpit Theme
   =================================== */
.build-hero.cockpit-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #0A0B0D 0%, #151820 100%);
    padding-top: 100px;
    overflow: hidden;
}

.build-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cockpit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 11, 13, 0.8) 100%);
    pointer-events: none;
}

#buildHeroCanvas {
    width: 100%;
    height: 100%;
}

.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.build-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1100px;
}

/* Cockpit Status Messages */
.cockpit-status {
    margin-bottom: 2.5rem;
}

.status-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--highlight-cyan);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: statusBoot 0.8s ease-out forwards;
}

.status-line.delay-1 {
    animation-delay: 0.8s;
}

.status-line.delay-2 {
    animation-delay: 1.6s;
}

@keyframes statusBoot {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-effect::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0;
    letter-spacing: 0.05em;
}

.hero-slogan .highlight-cyan {
    color: var(--highlight-cyan);
}

.hero-slogan .highlight-purple {
    color: var(--highlight-purple);
    margin-left: 0.5rem;
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.875rem 1.25rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.tab-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--highlight-cyan);
    color: var(--highlight-cyan);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(178, 75, 243, 0.2));
    border-color: var(--highlight-cyan);
    color: var(--color-text-primary);
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

.tab-btn i {
    font-size: 1.125rem;
}

/* ===================================
   Platform Detail Sections - Hybrid Realism
   =================================== */
.platform-detail {
    min-height: 100vh;
    padding: 6rem 0;
    position: relative;
    background: var(--color-bg-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-detail:nth-child(even) {
    background: linear-gradient(180deg, #0A0B0D 0%, #12141A 100%);
}

.platform-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 4rem;
    align-items: center;
}

/* Platform Info Panel */
.platform-info-panel {
    position: sticky;
    top: 120px;
}

.platform-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--highlight-cyan);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.platform-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.platform-tagline {
    font-size: 1.25rem;
    color: var(--highlight-cyan);
    margin-bottom: 2rem;
    font-weight: 500;
    font-style: italic;
}

/* Real Project Badge */
.real-project-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.badge-icon {
    font-size: 2rem;
}

.badge-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.badge-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.platform-description {
    margin-bottom: 2rem;
}

.platform-description p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Key Capabilities */
.key-capabilities {
    margin-bottom: 2rem;
}

.key-capabilities h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.key-capabilities ul {
    list-style: none;
    padding: 0;
}

.key-capabilities li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.key-capabilities li i {
    color: var(--highlight-cyan);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.key-capabilities li strong {
    color: var(--color-text-primary);
}

/* Platform Metrics */
.platform-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--highlight-cyan);
    margin-bottom: 0.5rem;
}

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

/* Platform Actions */
.platform-actions {
    display: flex;
    gap: 1rem;
}

.btn-cockpit {
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-cockpit.primary {
    background: linear-gradient(135deg, var(--highlight-cyan), var(--highlight-purple));
    color: #fff;
    border: none;
}

.btn-cockpit.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.4);
}

.btn-cockpit.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
}

.btn-cockpit.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--highlight-cyan);
}

/* ===================================
   Platform Visual Panel - Device Mockups
   =================================== */
.platform-visual-panel {
    position: relative;
}

/* Device Mockup Styles */
.device-mockup {
    position: relative;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.device-mockup.monitor {
    border-radius: 1.5rem 1.5rem 0 0;
}

.device-mockup.widescreen {
    border-radius: 1rem;
}

.device-mockup.tablet {
    border-radius: 1.5rem;
    max-width: 800px;
}

.device-mockup.split-screen {
    border-radius: 1rem;
}

.mockup-screen {
    background: #0F1014;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    min-height: 500px;
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
}

/* 3D Background */
.platform-3d-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 60px 60px;
}

.glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.glow-orb.cyan {
    background: var(--highlight-cyan);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.glow-orb.green {
    background: var(--highlight-green);
    top: 30%;
    right: 10%;
}

.glow-orb.orange {
    background: var(--highlight-orange);
    bottom: 20%;
    left: 15%;
}

.glow-orb.purple {
    background: var(--highlight-purple);
    top: 40%;
    right: 20%;
}

.glow-orb.red {
    background: var(--alert-red);
    bottom: 30%;
    right: 25%;
}

/* ===================================
   Platform 1: AI Media (Liveflow)
   =================================== */
.liveflow-dashboard {
    padding: 1.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.live-indicator {
    color: var(--alert-red);
    font-weight: 600;
    font-size: 0.875rem;
}

.device-count {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.timestamp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Display Map Widget */
.display-map-widget {
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.map-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
}

.map-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--safe-green);
    box-shadow: 0 0 10px var(--safe-green);
    animation: pulse 2s infinite;
}

.map-marker.warning .marker-dot {
    background: var(--warning-orange);
    box-shadow: 0 0 10px var(--warning-orange);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.marker-count {
    font-size: 0.75rem;
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

/* Schedule Timeline */
.schedule-timeline {
    margin-bottom: 1.5rem;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    transition: all var(--transition-base);
}

.timeline-item.active {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.timeline-item .time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.timeline-item .content-name {
    font-size: 0.9375rem;
    color: var(--color-text-primary);
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
}

.status-badge.playing {
    background: var(--alert-red);
    color: #fff;
}

.status-badge.scheduled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
}

/* Streaming Widget */
.streaming-widget {
    margin-bottom: 1rem;
}

.stream-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.stat-label {
    color: var(--color-text-secondary);
}

.stat-value {
    color: var(--color-text-primary);
    font-weight: 600;
}

.stat-value.highlight-cyan {
    color: var(--highlight-cyan);
}

.stat-value.highlight-green {
    color: var(--highlight-green);
}

/* Air Quality Widget */
.air-quality-widget {
    margin-bottom: 1rem;
}

.quality-indicators {
    display: flex;
    gap: 1rem;
}

.indicator {
    flex: 1;
    text-align: center;
}

.indicator-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.indicator-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

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

/* ===================================
   Platform 2: Data Intelligence (Farmingo)
   =================================== */
.farmingo-dashboard {
    padding: 1.5rem;
    position: relative;
}

/* Digital Twin Map */
.digital-twin-map {
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.map-layer {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(178, 75, 243, 0.05));
    border-radius: 0.75rem;
}

.twin-title {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    z-index: 2;
}

/* Sensor Nodes */
.sensor-node {
    position: absolute;
    z-index: 2;
}

.node-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--highlight-cyan);
    box-shadow: 0 0 20px var(--highlight-cyan);
}

.node-dot.pulsing {
    animation: nodePulse 1.5s infinite;
}

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--highlight-cyan);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 30px var(--highlight-cyan);
    }
}

.node-popup {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 217, 255, 0.3);
    white-space: nowrap;
}

.popup-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.popup-data {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.heatmap-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 25%, rgba(0, 217, 255, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 55% 50%, rgba(0, 245, 160, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 42% 70%, rgba(178, 75, 243, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

/* Floating Charts */
.floating-chart {
    position: absolute;
    z-index: 3;
    padding: 0.75rem;
}

.chart-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.mini-chart {
    width: 150px;
    height: 60px;
}

.line-chart, .bar-chart {
    width: 100%;
    height: 100%;
}

/* AI Prediction Panel */
.prediction-panel {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 3;
    padding: 1rem;
    min-width: 250px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.prediction-item {
    margin-bottom: 1rem;
}

.prediction-item:last-child {
    margin-bottom: 0;
}

.prediction-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.prediction-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.prediction-value.highlight-green {
    color: var(--highlight-green);
}

.prediction-value.highlight-cyan {
    color: var(--highlight-cyan);
}

.prediction-confidence {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* ===================================
   Platform 3: AI Vision Analysis
   =================================== */
.vision-dashboard.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    position: relative;
}

.split-left, .split-right {
    display: flex;
    flex-direction: column;
}

/* CCTV Feed */
.cctv-header, .mirror-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem 0.5rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.live-badge {
    margin-left: auto;
    color: var(--alert-red);
    font-size: 0.75rem;
}

.cctv-feed, .mirror-ui {
    flex: 1;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 0.5rem 0.5rem;
    overflow: hidden;
}

/* Bounding Boxes */
.bbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.bounding-box {
    position: absolute;
    border: 2px solid var(--safe-green);
    border-radius: 0.25rem;
    box-shadow: 0 0 10px rgba(0, 213, 143, 0.5);
}

.bounding-box.warning {
    border-color: var(--warning-orange);
    box-shadow: 0 0 10px rgba(255, 169, 0, 0.5);
}

.bbox-label {
    position: absolute;
    top: -28px;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.label-icon {
    font-size: 0.875rem;
}

.bbox-tags {
    position: absolute;
    bottom: -25px;
    left: 0;
    display: flex;
    gap: 0.25rem;
}

.tag {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.tag.safe {
    background: var(--safe-green);
    color: #000;
}

.tag.warning {
    background: var(--warning-orange);
    color: #000;
}

/* Alert Banner */
.alert-banner {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 169, 0, 0.2);
    border: 1px solid var(--warning-orange);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

.alert-banner i {
    color: var(--warning-orange);
}

/* Detection Stats */
.detection-stats {
    margin-top: 0.5rem;
    padding: 0.75rem;
    display: flex;
    justify-content: space-around;
}

.detection-stats .stat-item {
    text-align: center;
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-right: 0.5rem;
}

.stat-item .stat-value {
    font-size: 0.875rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

.stat-item .stat-value.highlight-orange {
    color: var(--warning-orange);
}

/* Ainoon Smart Mirror */
.face-detection-frame {
    position: relative;
    width: 200px;
    height: 250px;
    margin: 2rem auto;
}

.face-outline {
    width: 100%;
    height: 100%;
    border: 2px solid var(--highlight-cyan);
    border-radius: 50% 50% 40% 40%;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--highlight-cyan), transparent);
}

.scan-line.animating {
    animation: scanMove 2s linear infinite;
}

@keyframes scanMove {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

/* rPPG Nodes */
.rppg-node {
    position: absolute;
    width: 10px;
    height: 10px;
}

.node-pulse {
    width: 100%;
    height: 100%;
    background: var(--highlight-cyan);
    border-radius: 50%;
    animation: rppgPulse 1.5s infinite;
}

.node-pulse.delay-1 {
    animation-delay: 0.5s;
}

.node-pulse.delay-2 {
    animation-delay: 1s;
}

@keyframes rppgPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Health Metrics */
.health-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1rem 1rem 0.75rem;
}

.metric-card {
    padding: 0.75rem;
    text-align: center;
}

.metric-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.metric-data .metric-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.metric-data .metric-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* rPPG Waveform */
.waveform-display {
    margin: 0.75rem 1rem 1rem;
    padding: 0.75rem;
}

.waveform-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.waveform-canvas {
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.25rem;
}

/* Pest Alert */
.pest-alert {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 1rem 1.5rem;
    min-width: 350px;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid var(--highlight-orange);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
}

.alert-icon {
    font-size: 2rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.alert-details {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.btn-alert {
    padding: 0.5rem 1rem;
    background: var(--highlight-orange);
    color: #000;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-alert:hover {
    transform: scale(1.05);
}

/* ===================================
   Platform 4: Inventory & Engineering (The One Dental)
   =================================== */
.inventory-dashboard {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
}

/* 3D Design Viewer */
.design-viewer {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.viewer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem 0.5rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.viewer-controls {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.control-btn:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--highlight-cyan);
    color: var(--highlight-cyan);
}

.viewer-canvas {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 0.5rem 0.5rem;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wireframe-model {
    text-align: center;
}

.wireframe-svg {
    width: 200px;
    height: 200px;
}

.model-label {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--color-text-primary);
}

.viewer-info {
    margin-top: 0.5rem;
    padding: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: var(--color-text-secondary);
}

.info-value {
    color: var(--color-text-primary);
    font-weight: 600;
}

.info-value.highlight-cyan {
    color: var(--highlight-cyan);
}

/* Calculation Panel */
.calculation-panel {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    padding: 1rem;
}

.calc-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.calc-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 700;
}

.calc-label {
    color: var(--color-text-secondary);
}

.calc-value {
    color: var(--color-text-primary);
    font-weight: 600;
}

.calc-value.highlight-cyan {
    color: var(--highlight-cyan);
}

.calc-value.highlight-green {
    color: var(--highlight-green);
}

/* Kanban Board */
.kanban-board {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.kanban-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.column-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding: 0.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
}

.column-header.active {
    color: var(--highlight-cyan);
    background: rgba(0, 217, 255, 0.1);
}

.kanban-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.kanban-card.active {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.kanban-card.complete {
    background: rgba(0, 245, 160, 0.1);
    border: 1px solid rgba(0, 245, 160, 0.3);
}

.card-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.card-product {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

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

.card-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--highlight-cyan), var(--highlight-purple));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-fill.animating {
    animation: progressGrow 2s ease-in-out infinite;
}

@keyframes progressGrow {
    0%, 100% {
        width: 65%;
    }
    50% {
        width: 70%;
    }
}

.progress-text {
    font-size: 0.75rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

.card-badge {
    font-size: 0.75rem;
    color: var(--highlight-green);
    font-weight: 600;
}

/* Stock Graphs */
.stock-graphs {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    padding: 1rem;
    margin-top: 1rem;
}

.graph-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.stock-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stock-bar-item {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    gap: 0.75rem;
    align-items: center;
}

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

.bar-container {
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.bar-fill.safe {
    background: var(--highlight-green);
}

.bar-fill.warning {
    background: var(--warning-orange);
}

.bar-value {
    font-size: 0.875rem;
    color: var(--color-text-primary);
    font-weight: 600;
    text-align: right;
}

.bar-value.highlight-orange {
    color: var(--warning-orange);
}

/* ===================================
   Platform 5: Security & Maintenance (VMS & OTA)
   =================================== */
.security-dashboard {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
}

/* Radar Display */
.radar-display {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.radar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.radar-canvas {
    position: relative;
    width: 100%;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.05) 0%, transparent 70%);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 50%;
}

#securityRadar {
    width: 100%;
    height: 100%;
}

/* Device Blips */
.device-blip {
    position: absolute;
}

.blip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--safe-green);
    box-shadow: 0 0 15px var(--safe-green);
}

.device-blip.warning .blip-dot {
    background: var(--warning-orange);
    box-shadow: 0 0 15px var(--warning-orange);
}

.blip-dot.pulsing {
    animation: blipPulse 1s infinite;
}

@keyframes blipPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

.blip-info {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.75rem;
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.radar-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-pill {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-pill.safe {
    background: rgba(0, 213, 143, 0.2);
    color: var(--safe-green);
    border: 1px solid var(--safe-green);
}

.stat-pill.warning {
    background: rgba(255, 169, 0, 0.2);
    color: var(--warning-orange);
    border: 1px solid var(--warning-orange);
}

/* Vulnerability Alert */
.vulnerability-alert {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    padding: 1rem;
}

.vulnerability-alert.critical {
    border: 1px solid var(--alert-red);
    background: rgba(255, 59, 59, 0.1);
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.alert-header i {
    color: var(--alert-red);
}

.alert-body {
    margin-bottom: 1rem;
}

.vuln-info {
    margin-bottom: 0.75rem;
}

.vuln-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.vuln-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.vuln-severity {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.vuln-severity.critical {
    background: var(--alert-red);
    color: #fff;
}

.vuln-devices {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.device-count {
    font-weight: 600;
    color: var(--color-text-primary);
}

.alert-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.patch-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.patch-status i {
    color: var(--highlight-cyan);
}

.spinning {
    animation: spin 1s linear infinite;
}

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

.patch-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.patch-progress .progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.patch-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--highlight-cyan), var(--highlight-green));
    border-radius: 4px;
}

.patch-progress .progress-text {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-align: center;
}

/* Security Gauges */
.security-gauges {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gauge-widget {
    padding: 1rem;
    text-align: center;
}

.gauge-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.gauge-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 0.75rem;
}

.circular-gauge {
    width: 100%;
    height: 100%;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

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

/* Security Log Stream */
.log-stream {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    padding: 1rem;
}

.log-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.log-content {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
}

.log-line {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.75rem;
}

.log-time {
    color: var(--color-text-secondary);
}

.log-level {
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.log-level.info {
    background: rgba(0, 217, 255, 0.2);
    color: var(--highlight-cyan);
}

.log-level.warning {
    background: rgba(255, 169, 0, 0.2);
    color: var(--warning-orange);
}

.log-level.success {
    background: rgba(0, 245, 160, 0.2);
    color: var(--highlight-green);
}

.log-level.critical {
    background: rgba(255, 59, 59, 0.2);
    color: var(--alert-red);
}

.log-message {
    color: var(--color-text-primary);
    flex: 1;
}

/* ===================================
   Call to Action Section
   =================================== */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(178, 75, 243, 0.05));
    text-align: center;
}

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

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-cta {
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-cta.primary {
    background: linear-gradient(135deg, var(--highlight-cyan), var(--highlight-purple));
    color: #fff;
    border: none;
}

.btn-cta.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.4);
}

.btn-cta.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
}

.btn-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--highlight-cyan);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1200px) {
    .platform-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .platform-info-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .platform-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .platform-metrics {
        grid-template-columns: 1fr;
    }
    
    .platform-actions {
        flex-direction: column;
    }
    
    .vision-dashboard.split-layout {
        grid-template-columns: 1fr;
    }
    
    .inventory-dashboard {
        grid-template-columns: 1fr;
    }
    
    .kanban-board {
        grid-template-columns: 1fr;
    }
    
    .security-dashboard {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ===================================
   Scroll Animations
   =================================== */
.platform-detail {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.platform-detail.visible {
    opacity: 1;
    transform: translateY(0);
}
