:root {
    --bg-color: #0b0e14;
    --panel-bg: #11151c;
    --panel-border: #2b3137;
    --accent-orange: #ff5900;
    --text-main: #e6edf3;
    --text-muted: #8b949e;
    --font-ui: 'Inter', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-ui);
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Blueprint Grid Background */
.blueprint-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(43, 49, 55, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 49, 55, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

.glow-effect {
    position: fixed;
    top: -20%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 89, 0, 0.03) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Typography Utilities */
.accent {
    color: var(--accent-orange);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(11, 14, 20, 0.9);
    border-bottom: 1px solid var(--panel-border);
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon {
    height: 60px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-main {
    font-family: 'Quantico', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #ffffff;
    line-height: 1;
    margin: 0;
}

.brand-sub {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: 14px;
    color: #94a3b8;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
}

.tld {
    color: #ff5a00;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 3px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-orange);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cta-button.outline {
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.cta-button.outline:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: rgba(255, 89, 0, 0.1);
}

.cta-button.primary {
    background-color: var(--accent-orange);
    color: #fff;
    border: 1px solid var(--accent-orange);
}

.cta-button.primary:hover {
    background-color: transparent;
    color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(255, 89, 0, 0.4);
}

.cta-button.full-width {
    width: 100%;
    text-align: center;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 0 80px;
    position: relative;
}

.hero-coords {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: left;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Panels */
.panels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.panel-header {
    border-bottom: 1px solid var(--panel-border);
    padding: 15px 20px;
}

.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-sub {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.panel-content {
    display: flex;
    padding: 20px;
    gap: 20px;
    flex-grow: 1;
}

/* RT-SYSTEMS Specifics */
.rt-systems {
    flex-direction: row;
}

.terminal-block {
    flex: 1;
    background: #000;
    border: 1px solid var(--panel-border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-code {
    flex-grow: 1;
    color: #a5d6ff;
}

.terminal-code .comment {
    color: #8b949e;
}

.terminal-code .keyword {
    color: #ff7b72;
}

.terminal-code .function {
    color: #d2a8ff;
}

.terminal-code .string {
    color: #a5d6ff;
}

.terminal-code .number {
    color: #79c0ff;
}

.terminal-prompt {
    color: #7ee787;
    margin-top: 10px;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.telemetry-block {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.uptime-display {
    border: 1px solid var(--panel-border);
    padding: 15px;
    text-align: center;
}

.uptime-display .label {
    font-family: var(--font-heading);
    color: var(--text-muted);
    letter-spacing: 1px;
}

.uptime-display .time {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    margin-top: 5px;
}

.gauges {
    display: flex;
    justify-content: space-between;
}

.gauge {
    width: 30%;
    text-align: center;
}

.gauge-arc {
    width: 100%;
    margin-bottom: 5px;
}

.gauge-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.status-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-row .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    width: 50px;
}

.bar-container {
    flex-grow: 1;
    height: 6px;
    background: #000;
    border: 1px solid var(--panel-border);
}

.bar {
    height: 100%;
}

.bg-blue {
    background: #58a6ff;
}

.bg-orange {
    background: var(--accent-orange);
}

.bg-green {
    background: #3fb950;
}

.panel-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--panel-border);
    padding: 10px;
}

.uptime-small {
    font-family: var(--font-mono);
    font-size: 1rem;
    line-height: 1.2;
}

/* MOBILE LABS Specifics */
.mobile-labs {
    flex-direction: column;
}

.wireframes {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    height: 250px;
}

.phone {
    flex: 1;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    padding: 15px 10px;
    display: flex;
}

.phone-screen {
    flex-grow: 1;
    border: 1px solid var(--panel-border);
    position: relative;
    overflow: hidden;
}

.wire-cross {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to bottom right, transparent 49%, var(--panel-border) 50%, transparent 51%),
        linear-gradient(to top right, transparent 49%, var(--panel-border) 50%, transparent 51%);
}

.wire-lines {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wire-lines div {
    height: 4px;
    background: var(--panel-border);
    width: 100%;
}

.wire-lines div:last-child {
    width: 60%;
}

.specs-block {
    display: flex;
    gap: 20px;
}

.spec-list {
    flex: 1;
    border: 1px solid var(--panel-border);
    padding: 15px;
}

.spec-list h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 5px;
}

.spec-list ul {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #a5d6ff;
}

.spec-list ul li {
    margin-bottom: 4px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    width: 200px;
}

.icon-box {
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.icon-box:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: rgba(255, 89, 0, 0.1);
}

.bottom-spec {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.spec-list.compact {
    flex: 2;
}

.bottom-spec .cta-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .panels-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .brand-main {
        font-size: 2rem;
    }

    .tagline {
        font-size: 2.5rem;
    }

    .rt-systems {
        flex-direction: column;
    }

    .telemetry-block {
        width: 100%;
    }

    .specs-block {
        flex-direction: column;
    }

    .icon-grid {
        width: 100%;
    }

    .bottom-spec {
        flex-direction: column;
    }

    .wireframes {
        flex-direction: column;
        height: auto;
    }

    .phone {
        min-height: 150px;
    }
}