:root {
    /* DEVCNX Theme (Dark) - Default */
    --teal: #00DADD;
    --teal-dim: rgba(0, 218, 221, 0.15);
    --teal-glow: rgba(0, 218, 221, 0.3);
    --dark: #050505;
    --panel: #0A0A0A;
    --border: #222;
    --border-lite: #1a1a1a;
    --text: #E5E5E5;
    --dim: #666;
    --grid-size: 48px;
    --bg-color: #050505;
    --text-color: #E5E5E5;
    --sub-text: #888;
    --card-bg: #0A0A0A;
    --nav-bg: rgba(5, 5, 5, 0.95);
    --theme-indicator: '●';
}

/* Studio Theme (Light) */
.theme-studio {
    --bg-color: #FAFAFA;
    --text-color: #1A1A1A;
    --sub-text: #525252;
    --card-bg: #FFFFFF;
    --nav-bg: rgba(250, 250, 250, 0.95);
    --border: #E5E5E5;
    --border-lite: #F0F0F0;
    --panel: #FFFFFF;
    --text: #1A1A1A;
    --dim: #888;
    --grid-size: 48px;
    --theme-indicator: '○';
    
    /* Studio-specific overrides */
    --grid-line: rgba(0, 0, 0, 0.05);
    --scanlines: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
}

/* Theme transition */
:root, .theme-studio {
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

html {
    height: 100%;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: "JetBrains Mono", monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* ── Schematic Grid ── */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ── Ambient glow ── */
.glow-orb {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 218, 221, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* ── Main Container ── */
.main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* ── Wordmark ── */
.wordmark {
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--text);
    text-transform: uppercase;
    position: relative;
    line-height: 1;
}

.wordmark span {
    color: var(--teal);
}

.wordmark::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    margin-top: 0.6rem;
    opacity: 0.4;
}

/* ── Status Panel ── */
.status-panel {
    border: 1px solid var(--border);
    background: var(--panel);
    padding: 2rem 2.4rem;
    width: 100%;
    position: relative;
    color: var(--text-color);
}

.status-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--teal);
    border-left: 2px solid var(--teal);
}

.status-panel::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--teal);
    border-right: 2px solid var(--teal);
}

.status-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sub-text);
    margin-bottom: 1.2rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    animation: blink 2s step-end infinite;
    box-shadow: 0 0 6px var(--teal-glow);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.status-heading {
    font-family: "DM Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.status-heading em {
    color: var(--teal);
    font-style: normal;
    font-weight: 500;
}

.status-body {
    font-size: 0.78rem;
    color: var(--sub-text);
    line-height: 1.7;
    font-weight: 300;
}

/* ── Progress Bar ── */
.progress-track {
    width: 100%;
    height: 2px;
    background: var(--border);
    position: relative;
    overflow: hidden;
    margin-top: 1.2rem;
    margin-bottom: 0.75rem;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, var(--teal), rgba(0, 218, 221, 0.3));
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateX(180%);
        opacity: 0;
    }
}

/* ── Meta Row ── */
.meta-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sub-text);
}

.meta-item strong {
    color: var(--teal);
    font-weight: 500;
}

/* ── CTA Button ── */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--teal);
    background: transparent;
    color: var(--teal);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--teal-dim);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cta-btn:hover::before {
    opacity: 1;
}

.cta-btn:hover {
    box-shadow: 0 0 20px rgba(0, 218, 221, 0.15);
}

.cta-btn svg {
    width: 14px;
    height: 14px;
}

/* ── Footer ── */
.footer-line {
    font-size: 0.55rem;
    color: var(--sub-text);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ── Scanline Effect ── */
.scanlines {
    position: fixed;
    inset: 0;
    background: var(--scanlines);
    pointer-events: none;
    z-index: 2;
}

/* ── Entrance Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.8s ease forwards;
}

.fade-up:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-up:nth-child(2) {
    animation-delay: 0.3s;
}

.fade-up:nth-child(3) {
    animation-delay: 0.5s;
}

.fade-up:nth-child(4) {
    animation-delay: 0.65s;
}

.fade-up:nth-child(5) {
    animation-delay: 0.8s;
}

.fade-up:nth-child(6) {
    animation-delay: 0.9s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .status-panel {
        padding: 1.4rem 1.2rem;
    }

    .meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== UNIFIED NAVIGATION ===== */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    height: 60px;
    display: flex;
    align-items: center;
}

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

.brand-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.devcnx-logo {
    font-family: "JetBrains Mono", monospace;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: var(--text-color);
    text-decoration: none;
}

.logo-mono {
    color: var(--text-color);
}

.logo-accent {
    color: var(--teal);
}

.studio-logo {
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--sub-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.studio-logo::before {
    content: "●";
    color: var(--teal);
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--sub-text);
    text-decoration: none;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--teal);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-utilities {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--teal);
    background: var(--teal-dim);
}

.toggle-icon {
    color: var(--teal);
}

.nav-cta {
    background: var(--teal);
    color: #050505;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: rgba(0, 218, 221, 0.9);
    transform: translateY(-1px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.mobile-menu a:hover {
    background: var(--teal-dim);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-links, .nav-utilities {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .brand-logos {
        gap: 1rem;
    }

    .devcnx-logo {
        font-size: 1rem;
    }

    .studio-logo {
        font-size: 0.9rem;
    }
}

:root {
    --signal-teal: #00DADD;
    --grid-line: rgba(255, 255, 255, 0.05);
}

body {
    background-color: #050505;
    color: #E5E5E5;
    font-family: "JetBrains Mono", monospace;
    -webkit-font-smoothing: antialiased;
}

.schematic-grid {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Status Indicator */
.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--signal-teal);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.spec-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

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

.spec-label {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 140px;
}