@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    /* Account for fixed navbar */
}

:root {
    /* Shared */
    --color-neurona-ink: #070A10;

    /* Micro-Brand: Motorsport (Dark, Aggressive) */
    --color-motor-bg: #0A0A0A;
    --color-motor-cyan: #00F0FF;
    --color-motor-orange: #FF4D00;

    /* Micro-Brand: Agro (Clean, ROI-focused) */
    --color-agro-bg-light: #F5F5F7;
    --color-agro-bg-dark: #2D3436;
    --color-agro-green: #00B894;
    /* Data Green */

    /* Micro-Brand: Engineering (Technical, Precision) */
    --color-eng-bg: #0B1021;
    /* Blueprint Dark */
    --color-eng-yellow: #F1C40F;
    /* Electric Warning */

    /* Colors */
    --background: var(--color-neurona-ink);
    --foreground: #ffffff;

    --card: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
    --stroke: rgba(255, 255, 255, 0.1);
    --radius: 0.75rem;

    --animate-fade-in-up: fade-in-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;

    /* New variables for better gradients */
    --gradient-cyan: linear-gradient(to right, var(--color-motor-cyan), rgba(0, 240, 255, 0.8));
    --gradient-cyan-vertical: linear-gradient(to bottom, var(--color-motor-cyan), rgba(0, 240, 255, 0.6));
    --gradient-dark: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
    --gradient-radial: radial-gradient(ellipse at center, var(--color-motor-cyan) 0%, transparent 70%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-neurona-ink);
    color: white;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

* {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Utility classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.glass {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Additional animations */
@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fade-in 0.6s ease forwards;
}

.slide-up {
    animation: slide-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.scale-in {
    animation: scale-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 10, 16, 0.8);
    backdrop-filter: blur(24px);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-logo img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

.navbar-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .navbar-nav {
        display: flex;
    }
}

.navbar-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-nav a:hover {
    color: white;
}

.navbar-nav .motorsport-link:hover {
    color: var(--color-motor-cyan);
}

.navbar-nav .agro-link:hover {
    color: var(--color-agro-green);
}

.navbar-nav .engineering-link:hover {
    color: white;
}

.navbar-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .navbar-actions {
        display: flex;
    }
}

.navbar-actions a {
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.navbar-actions a:hover {
    color: white;
}

.navbar-actions .language-switch {
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.navbar-actions .language-switch:hover {
    color: white;
}

.navbar-login {
    position: relative;
}

.navbar-login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar-login-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 12rem;
    background: rgba(10, 14, 23, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 100;
}

.navbar-login-dropdown a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    text-align: left;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-login-dropdown a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.navbar-mobile-toggle {
    display: block;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 50;
}

@media (min-width: 768px) {
    .navbar-mobile-toggle {
        display: none;
    }
}

.navbar-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(24px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.navbar-mobile-menu.active {
    display: flex;
}

.navbar-mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.navbar-mobile-nav a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-mobile-nav a:hover {
    color: var(--color-motor-cyan);
}

.navbar-mobile-nav .agro-link:hover {
    color: var(--color-agro-green);
}

.navbar-mobile-nav .engineering-link:hover {
    color: white;
}

.navbar-mobile-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.navbar-mobile-actions a {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.navbar-mobile-actions a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero section */
.hero {
    position: relative;
    min-height: 100vh;
    background: black;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-background-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    background-image: url('../images/telemetry-bg.jpeg');
}

.hero-background-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, black, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
}

.hero-background-gradient-horizontal {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, black, transparent, rgba(0, 0, 0, 0.7));
}

/* New background effects */
.hero-background-radial {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    opacity: 0.3;
}

.hero-background-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 5rem 1.5rem;
    }
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-copy {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease;
}

.hero-copy.animate {
    opacity: 1;
    transform: translateX(0);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(8px);
    color: var(--color-motor-cyan);
    font-size: 0.75rem;
    font-family: monospace;
    margin-bottom: 1.5rem;
}

.hero-eyebrow-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--color-motor-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    line-height: 0.95;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title-highlight {
    background: linear-gradient(to right, var(--color-motor-cyan), rgba(0, 240, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 28rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-tech-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.hero-tech-spec {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.875rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.hero-tech-spec:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.3);
}

.hero-tech-spec-label {
    color: rgba(255, 255, 255, 0.5);
}

.hero-tech-spec-value {
    color: var(--color-motor-cyan);
    font-weight: bold;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }
}

.hero-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(to right, var(--color-motor-cyan), rgba(0, 240, 255, 0.8));
    color: black;
    font-weight: bold;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 25px 50px -12px rgba(0, 240, 255, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-cta-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 240, 255, 0.4);
}

.hero-cta-primary:hover::before {
    opacity: 1;
}

.hero-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: bold;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.hero-cta-secondary:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Dashboard styles */
.hero-dashboard {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease;
}

.hero-dashboard.animate {
    opacity: 1;
    transform: translateX(0);
}

.dashboard-frame {
    position: relative;
    background: rgba(39, 39, 42, 1);
    border-radius: 1.5rem;
    border: 1px solid rgba(39, 39, 42, 1);
    padding: 0.25rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 240, 255, 0.05),
        0 0 40px rgba(0, 240, 255, 0.1);
}

.dashboard-live-badge {
    position: absolute;
    top: -0.75rem;
    left: 1.5rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #dc2626;
    border-radius: 9999px;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: white;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.dashboard-content {
    background: black;
    border-radius: 1rem;
    border: 1px solid rgba(39, 39, 42, 1);
    overflow: hidden;
}

.dashboard-status-bar {
    height: 2.5rem;
    background: rgba(39, 39, 42, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(39, 39, 42, 1);
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-status-icon {
    width: 1rem;
    height: 1rem;
    color: #22c55e;
}

.dashboard-status-text {
    color: #22c55e;
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: bold;
}

.dashboard-time {
    color: rgba(113, 113, 122, 1);
    font-size: 0.75rem;
    font-family: monospace;
}

.dashboard-main {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    min-height: 21.875rem;
}

.dashboard-gear-speed {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-right: 1px solid rgba(39, 39, 42, 1);
}

@media (max-width: 640px) {
    .dashboard-gear-speed {
        grid-column: span 12;
        border-right: none;
        border-bottom: 1px solid rgba(39, 39, 42, 1);
    }
}

.dashboard-gear-label {
    color: rgba(113, 113, 122, 1);
    font-family: monospace;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-gear-value {
    font-size: 5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

@media (min-width: 640px) {
    .dashboard-gear-value {
        font-size: 8rem;
    }
}

.dashboard-speed {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.dashboard-speed-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    font-variant-numeric: tabular-nums;
}

.dashboard-speed-unit {
    color: rgba(113, 113, 122, 1);
    font-family: monospace;
    font-size: 0.875rem;
}

.dashboard-data-panels {
    grid-column: span 7;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
}

@media (max-width: 640px) {
    .dashboard-data-panels {
        grid-column: span 12;
    }
}

.dashboard-panel {
    padding: 1rem;
    border-bottom: 1px solid rgba(39, 39, 42, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.dashboard-panel:hover {
    background: rgba(255, 255, 255, 0.02);
}

.dashboard-panel:last-child {
    border-bottom: none;
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(113, 113, 122, 1);
    font-family: monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-panel-icon {
    width: 1rem;
    height: 1rem;
    color: var(--color-motor-cyan);
}

.dashboard-panel-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    font-variant-numeric: tabular-nums;
}

.dashboard-rpm-bar {
    height: 0.75rem;
    background: rgba(39, 39, 42, 1);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.dashboard-rpm-fill {
    height: 100%;
    background: linear-gradient(to right, rgba(14, 165, 233, 1), var(--color-motor-cyan), rgba(241, 196, 15, 1));
    border-radius: 9999px;
    transition: width 0.15s linear;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.dashboard-shift-lights {
    height: 2rem;
    background: rgba(39, 39, 42, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0 1rem;
    border-top: 1px solid rgba(39, 39, 42, 1);
}

.dashboard-light {
    height: 0.75rem;
    flex: 1;
    border-radius: 0.125rem;
    background: rgba(39, 39, 42, 1);
    transition: all 0.15s ease;
}

.dashboard-light.active-green {
    background: #22c55e;
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
}

.dashboard-light.active-yellow {
    background: #eab308;
    box-shadow: 0 0 5px rgba(234, 179, 8, 0.5);
}

.dashboard-light.active-red {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.dashboard-glow {
    position: absolute;
    inset: -2rem;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    filter: blur(3rem);
    border-radius: 50%;
    z-index: -10;
    opacity: 0.5;
}

/* Missing Sections Styles */

/* Proof Bar */
.proof-bar {
    background: rgba(39, 39, 42, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
}

.proof-bar-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.proof-bar-title {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.proof-bar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

@media (max-width: 768px) {
    .proof-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.proof-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.proof-bar-item:hover {
    transform: scale(1.05);
}

.proof-bar-logo {
    width: 12rem;
    height: 6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.proof-bar-item:hover .proof-bar-logo {
    border-color: var(--color-motor-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.proof-bar-label {
    color: var(--color-motor-cyan);
    font-size: 0.75rem;
    font-family: monospace;
    opacity: 0.7;
}

.proof-bar-logo.winner {
    border-color: rgba(234, 179, 8, 0.3);
    background: rgba(234, 179, 8, 0.05);
}

.proof-bar-logo.winner:hover {
    border-color: rgba(234, 179, 8, 0.5);
}

.proof-bar-label.winner {
    color: rgba(234, 179, 8, 0.8);
}

/* Stats Bar */
.stats-bar {
    background: linear-gradient(to right, rgba(0, 240, 255, 0.1), rgba(39, 39, 42, 0.5), rgba(0, 240, 255, 0.1));
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    padding: 3rem 0;
}

.stats-bar-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-bar-grid {
        grid-template-columns: 1fr;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-family: monospace;
    max-width: 180px;
}

/* Case Studies */
.case-studies {
    background: black;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.case-studies::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    opacity: 0.3;
}

.case-studies-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.case-studies-header {
    text-align: center;
    margin-bottom: 3rem;
}

.case-studies-eyebrow {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 9999px;
    color: var(--color-motor-cyan);
    font-size: 0.875rem;
    font-family: monospace;
    margin-bottom: 1rem;
}

.case-studies-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
}

.case-studies-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

.case-study-card {
    background: rgba(39, 39, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-study-card:hover {
    border-color: var(--color-motor-cyan);
    transform: translateY(-5px);
}

.case-study-card.winner {
    border-color: rgba(234, 179, 8, 0.3);
}

.case-study-card.winner:hover {
    border-color: rgba(234, 179, 8, 0.5);
}

.case-study-image {
    height: 16rem;
    background: linear-gradient(to bottom right, rgba(39, 39, 42, 1), rgba(0, 0, 0, 0.8));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--color-motor-cyan);
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: bold;
}

.case-study-card.winner .case-study-badge {
    border-color: rgba(234, 179, 8, 0.3);
    color: rgba(234, 179, 8, 0.9);
}

.winner-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(234, 179, 8, 1);
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
}

.case-study-body {
    padding: 2rem;
}

.case-study-category {
    color: var(--color-motor-cyan);
    font-size: 0.875rem;
    font-family: monospace;
    margin-bottom: 0.5rem;
}

.case-study-card.winner .case-study-category {
    color: rgba(234, 179, 8, 0.9);
}

.case-study-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.case-study-description {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.case-study-metric {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1rem;
}

.case-study-metric-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-motor-cyan);
    margin-bottom: 0.5rem;
}

.case-study-card.winner .case-study-metric-icon {
    color: rgba(234, 179, 8, 0.9);
}

.case-study-metric-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-family: monospace;
    margin-bottom: 0.25rem;
}

.case-study-metric-value {
    color: white;
    font-weight: bold;
}

.case-study-quote {
    border-left: 2px solid rgba(0, 240, 255, 0.5);
    padding-left: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 1.5rem;
}

.case-study-card.winner .case-study-quote {
    border-left-color: rgba(234, 179, 8, 0.5);
}

.case-study-quote-author {
    color: var(--color-motor-cyan);
    font-size: 0.875rem;
    font-family: monospace;
    margin-top: 0.5rem;
    font-style: normal;
}

.case-study-card.winner .case-study-quote-author {
    color: rgba(234, 179, 8, 0.9);
}

.case-studies-cta {
    text-align: center;
    margin-top: 3rem;
}

.case-studies-cta-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

/* Why NEURONA */
.why-neurona {
    background: black;
    padding: 5rem 0;
    position: relative;
}

.why-neurona::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: radial-gradient(circle at bottom left, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    opacity: 0.3;
}

.why-neurona-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.why-neurona-header {
    text-align: center;
    margin-bottom: 3rem;
}

.why-neurona-eyebrow {
    color: var(--color-motor-cyan);
    font-size: 0.875rem;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.why-neurona-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
}

.why-neurona-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

.why-neurona-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .why-neurona-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .why-neurona-grid {
        grid-template-columns: 1fr;
    }
}

.why-neurona-card {
    background: rgba(39, 39, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.why-neurona-card:hover {
    border-color: var(--color-motor-cyan);
    background: rgba(39, 39, 42, 0.8);
    transform: translateY(-5px);
}

.why-neurona-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.why-neurona-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-motor-cyan);
}

.why-neurona-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.75rem;
}

.why-neurona-card-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Footer styles */
.footer {
    background: rgba(9, 9, 11, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        padding: 4rem 1.5rem;
    }
}

.footer-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    grid-column: span 1;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .footer-brand {
        grid-column: span 2;
    }
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 2.5rem;
    width: auto;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-agro-green);
    background: rgba(0, 184, 148, 0.1);
}

.footer-social a.instagram:hover {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
}

.footer-social a.email:hover {
    color: var(--color-motor-cyan);
    background: rgba(0, 240, 255, 0.1);
}

.footer-section h3 {
    color: white;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-motor-cyan);
}

.footer-links a.agro:hover {
    color: var(--color-agro-green);
}

.footer-links a.engineering:hover {
    color: var(--color-eng-yellow);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-contact-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-text a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
    padding-top: 1.5rem;
}

.footer-bottom-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

.footer-made-with {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-family: monospace;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Selection */
::selection {
    background: rgba(0, 240, 255, 0.3);
}

/* Triad Section */
.triad-hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background-color: black;
    overflow: hidden;
}

@media (min-width: 768px) {
    .triad-hero {
        flex-direction: row;
    }
}

.triad-panel {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 60vh;
}

@media (min-width: 768px) {
    .triad-panel {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        min-height: auto;
    }

    .triad-panel:last-child {
        border-right: none;
    }
}

.triad-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.5s ease, filter 0.6s ease;
    z-index: 0;
}

.triad-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.8;
}

.triad-content {
    position: relative;
    z-index: 10;
    pointer-events: none;
}

@media (min-width: 768px) {
    .triad-content {
        pointer-events: auto;
    }
}

.triad-icon-wrapper {
    display: inline-flex;
    padding: 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.triad-title {
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    color: white;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .triad-title {
        font-size: 3.75rem;
    }
}

.triad-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: monospace;
    max-width: 24rem;
    margin-bottom: 2rem;
    display: none;
    overflow: hidden;
}

@media (min-width: 768px) {
    .triad-subtitle {
        display: block;
        height: 0;
        margin-bottom: 0;
        opacity: 0.6;
        transition: all 0.6s ease;
    }
}

.triad-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-weight: bold;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0.25rem;
    text-decoration: none;
    pointer-events: auto;
    transition: transform 0.2s ease;
    width: fit-content;
}

.triad-cta:hover {
    transform: scale(1.05);
}

/* Triad Hover States (Desktop) */
@media (min-width: 768px) {
    .triad-panel.active {
        flex: 3;
    }

    .triad-panel.shrunk {
        flex: 0.5;
    }

    .triad-panel.active .triad-bg {
        transform: scale(1.1);
    }

    .triad-panel.shrunk .triad-bg {
        filter: grayscale(100%) blur(4px);
    }

    .triad-panel.shrunk .triad-title {
        color: rgba(255, 255, 255, 0.3);
    }

    .triad-panel.active .triad-subtitle {
        height: auto;
        margin-bottom: 2rem;
        opacity: 1;
    }
}

/* About Us Section */
.about-us {
    padding: 6rem 1.5rem;
    background: black;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-us-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .about-us-content {
        grid-template-columns: 5fr 7fr;
        align-items: start;
    }
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-family: monospace;
    margin-bottom: 1.5rem;
}

.about-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .about-title {
        font-size: 3rem;
    }
}

.about-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.about-people-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .about-people-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.about-person-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem;
}

.about-person-image-placeholder {
    aspect-ratio: 4/5;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.about-person-image-placeholder span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
}

.about-person-name {
    font-weight: bold;
    color: white;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.about-person-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.about-note {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Global CTA Section */
.global-cta {
    position: relative;
    padding: 8rem 1.5rem;
    background: white;
    color: black;
    text-align: center;
    overflow: hidden;
}

.global-cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgb(245, 245, 245), white);
}

.global-cta-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
}

.global-cta-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .global-cta-title {
        font-size: 3.75rem;
    }
}

.global-cta-subtitle {
    font-size: 1.25rem;
    color: #525252;
    margin-bottom: 3rem;
}

.global-cta-buttons {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .global-cta-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

.global-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: black;
    color: white;
    font-weight: bold;
    border-radius: 1rem;
    text-decoration: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.global-cta-btn:hover {
    transform: scale(1.03);
}

/* =========================================
   DASHBOARD DEMOS (Motorsport, Agro, Engineering)
   ========================================= */

/* --- Motorsport Dashboard --- */
.dashboard-showcase {
    padding: 6rem 0;
    background-color: #09090b;
    overflow: hidden;
    position: relative;
}

.dashboard-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    text-align: center;
}

.dashboard-badge {
    color: #06b6d4;
    font-family: monospace;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    background: rgba(8, 51, 68, 0.3);
    margin-bottom: 1rem;
}

.dashboard-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: white;
}

@media (min-width: 768px) {
    .dashboard-title {
        font-size: 3rem;
    }
}

.dashboard-frame {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
    background: #050505;
    border-radius: 1.5rem;
    border: 1px solid #27272a;
    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(22, 78, 99, 0.25);
}

.dashboard-carbon-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    pointer-events: none;
    border-radius: 1.5rem;
}

.dashboard-interface {
    position: relative;
    background: black;
    border-radius: 1rem;
    border: 1px solid #27272a;
    overflow: hidden;
}

/* Shift Lights */
.dashboard-shift-lights {
    height: 3rem;
    background: #18181b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-bottom: 1px solid #27272a;
    position: relative;
}

.shift-lights-container {
    display: flex;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.shift-light {
    height: 1rem;
    width: 100%;
    border-radius: 0.125rem;
    background: #27272a;
    transition: background-color 0.05s;
}

.shift-light.green {
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.shift-light.yellow {
    background-color: #eab308;
    box-shadow: 0 0 10px #eab308;
}

.shift-light.red {
    background-color: #dc2626;
    box-shadow: 0 0 10px #dc2626;
}

.shift-alert {
    position: absolute;
    inset: 0;
    background: rgba(220, 38, 38, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-style: italic;
    font-size: 2rem;
    color: white;
    animation: pulse-fast 0.1s infinite;
    z-index: 50;
}

.hidden {
    display: none !important;
}

@keyframes pulse-fast {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Display Grid */
.dashboard-display-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    min-height: 400px;
}

.dashboard-col-left {
    grid-column: span 12;
    background: rgba(24, 24, 27, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #27272a;
    position: relative;
    padding: 2rem;
}

@media (min-width: 768px) {
    .dashboard-col-left {
        grid-column: span 5;
    }
}

.dashboard-gear {
    font-size: 8rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

@media (min-width: 768px) {
    .dashboard-gear {
        font-size: 12rem;
    }
}

.dashboard-gear-label {
    color: #71717a;
    font-family: monospace;
    font-size: 1.25rem;
    letter-spacing: 0.5em;
    position: absolute;
    top: 3rem;
}

.dashboard-speed-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: -1rem;
}

.dashboard-speed {
    font-size: 4rem;
    font-weight: bold;
    color: white;
}

.dashboard-speed-unit {
    color: #71717a;
    font-family: monospace;
}

.dashboard-col-right {
    grid-column: span 12;
    display: grid;
    grid-template-rows: auto 1fr;
}

@media (min-width: 768px) {
    .dashboard-col-right {
        grid-column: span 7;
    }
}

.dashboard-row-rpm {
    padding: 2rem;
    border-bottom: 1px solid #27272a;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.dashboard-row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.dashboard-label {
    color: #71717a;
    font-family: monospace;
    font-size: 0.875rem;
}

.dashboard-value-wrapper {
    font-size: 2.25rem;
    font-weight: bold;
    color: white;
}

.dashboard-unit {
    font-size: 0.875rem;
    color: #71717a;
}

.dashboard-bar-bg {
    height: 2rem;
    background: #27272a;
    border-radius: 0.25rem;
    overflow: hidden;
}

.dashboard-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #0891b2, #22d3ee, #ffffff);
    transition: width 0.1s linear;
}

.dashboard-critical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.dashboard-metric-card {
    padding: 1.5rem;
    border-right: 1px solid #27272a;
    border-bottom: 1px solid #27272a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-metric-header {
    display: flex;
    justify-content: space-between;
}

.dashboard-metric-label {
    color: #71717a;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.dashboard-status-dot.green {
    background-color: #22c55e;
}

.dashboard-metric-val {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-top: 0.5rem;
}

.dashboard-metric-unit {
    font-size: 1.25rem;
    color: #525252;
}

.dashboard-metric-sub {
    font-size: 0.75rem;
    color: #525252;
    margin-top: 0.25rem;
}

.dashboard-metric-bar {
    height: 0.25rem;
    width: 100%;
    background: #27272a;
    margin-top: 0.5rem;
    border-radius: 9999px;
    overflow: hidden;
}

.dashboard-metric-fill {
    height: 100%;
    background: #06b6d4;
}

.dashboard-tag-ok {
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 0 0.25rem;
    border-radius: 0.25rem;
}

.dashboard-footer-label {
    text-align: center;
    margin-top: 1.5rem;
    color: #71717a;
    font-family: monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Agro Dashboard --- */
.agro-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 16px 16px;
}

.soil-layer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.soil-label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #52525b;
}

.soil-val {
    font-weight: bold;
    color: #27272a;
}

.soil-bar-bg {
    flex: 2;
    height: 0.5rem;
    background: #f4f4f5;
    border-radius: 9999px;
    overflow: hidden;
}

.soil-bar-fill {
    height: 100%;
    background: #10b981;
    transition: width 1s ease;
}

.agro-valve-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e4e4e7;
    background: white;
    color: #52525b;
    font-size: 0.875rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.agro-valve-btn.active {
    background: #2563eb;
    color: white;
    border-color: #1d4ed8;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.valve-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #d4d4d8;
}

.agro-valve-btn.active .valve-status-dot {
    background: white;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* --- Engineering Digital Twin --- */
.twin-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.layer-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.625rem;
    font-weight: bold;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.layer-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.layer-btn.active {
    background: #2563eb;
    color: white;
}

.pcb-grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pcb-board {
    width: 400px;
    height: 300px;
    background: #1a2c4e;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
    position: relative;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.1);
    transform-style: preserve-3d;
    animation: pcb-rotate 10s infinite alternate ease-in-out;
}

@keyframes pcb-rotate {
    0% {
        transform: perspective(1000px) rotateX(10deg) rotateY(-10deg);
    }

    100% {
        transform: perspective(1000px) rotateX(10deg) rotateY(10deg);
    }
}

.pcb-component {
    position: absolute;
    background: #0a1525;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-esp32 {
    top: 2.5rem;
    left: 2.5rem;
    width: 6rem;
    height: 6rem;
}

.c-cap {
    bottom: 2.5rem;
    right: 2.5rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}

.c-label {
    font-size: 0.5rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.pcb-traces {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.8;
}

.trace {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 3s linear infinite;
}

.t-blue {
    stroke: #3b82f6;
}

.t-yellow {
    stroke: #facc15;
    animation-delay: 0.5s;
}

.t-red {
    stroke: #ef4444;
    animation-delay: 1s;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.pcb-via {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.v-yellow {
    top: 5rem;
    right: 5rem;
    background: #facc15;
    box-shadow: 0 0 10px #facc15;
}

.v-cyan {
    bottom: 5rem;
    left: 5rem;
    background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee;
}

.pcb-measure {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}