/* --- Brand Variables (Global) --- */
:root {
    --mz-chassis: #e0e5ec;
    --mz-panel: #f0f2f5;
    --mz-recessed: #d1d9e6;
    --mz-text: #2d3436;
    --mz-labels: #4a5568;
    --mz-accent: #FF5722;
    --mz-accent-secondary: #F97316;
    --mz-white: #ffffff;
    --mz-dark: #2d3436;
    --shadow-lift: 8px 8px 16px #babecc, -8px -8px 16px #ffffff;
    --shadow-pressed: inset 6px 6px 12px #babecc, inset -6px -6px 12px #ffffff;
    --shadow-recessed: inset 4px 4px 8px #babecc, inset -4px -4px 8px #ffffff;
    --shadow-floating: 12px 12px 24px #babecc, -12px -12px 24px #ffffff;
    --font-headings: 'Noto Sans Hebrew', sans-serif;
    --font-body: 'Assistant', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ======== RESET & BASE ======== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-body);
    background-color: var(--mz-chassis);
    color: var(--mz-text);
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* Noise overlay — matte plastic texture */
.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.06;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

/* ======== HEADER ======== */
.nexus-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    direction: ltr;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(224, 229, 236, 0.95) 0%, rgba(224, 229, 236, 0) 100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.nexus-header.scrolled {
    background: rgba(224, 229, 236, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.header-logo { display: flex; align-items: center; z-index: 10001; }
.header-logo img { height: 45px; width: auto; display: block; transition: height 0.3s ease; }
.menu-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    background: transparent;
    border: none;
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow-lift);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.menu-toggle:active {
    box-shadow: var(--shadow-pressed);
    transform: translateY(1px);
}
.menu-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--mz-text);
    transition: color 0.3s;
}
.hamburger-lines { width: 26px; height: 18px; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.line { width: 100%; height: 2px; background-color: var(--mz-text); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); border-radius: 2px; }
.menu-open .line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background-color: var(--mz-accent); }
.menu-open .line:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-open .line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background-color: var(--mz-accent); }
.menu-open .menu-text { color: var(--mz-accent); }

/* ======== FULLSCREEN MENU ======== */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--mz-dark);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    clip-path: circle(0% at 95% 5%);
    direction: ltr;
}
.menu-bg-texture {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 87, 34, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
.nav-links { text-align: center; position: relative; z-index: 2; }
.nav-item { margin: 18px 0; overflow: hidden; }
.nav-link {
    display: block;
    font-family: var(--font-headings);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--mz-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    transform: translateY(100%);
}
.nav-link:hover { color: var(--mz-accent); transform: translateX(10px); }
.menu-footer {
    position: absolute;
    bottom: 50px;
    display: flex;
    gap: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    opacity: 0;
}
.menu-footer a { color: inherit; transition: color 0.3s; }
.menu-footer a:hover { color: var(--mz-accent); }

/* ======== SECTION 1: HERO — THE MAIN CONSOLE ======== */
.hero-console {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--mz-chassis);
    padding: 120px 60px 80px;
    overflow: hidden;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}
.hero-text { flex: 1; max-width: 550px; }

/* Status LED */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-recessed);
    background: var(--mz-recessed);
}
.led-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mz-accent);
    box-shadow: 0 0 10px 2px rgba(255, 87, 34, 0.6);
    animation: ledPulse 2s ease-in-out infinite;
}
.status-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--mz-labels);
    letter-spacing: 1.5px;
}

/* Hero Title */
.hero-title {
    font-family: var(--font-headings);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--mz-text);
    margin-bottom: 20px;
    text-shadow: 1px 1px 0px var(--mz-white);
}
.accent-text { color: var(--mz-accent); }
.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--mz-labels);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

/* Tactile Buttons */
.btn-tactile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 14px;
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: var(--mz-accent);
    color: var(--mz-white);
    box-shadow: 6px 6px 14px rgba(255, 87, 34, 0.3), -4px -4px 10px rgba(255, 255, 255, 0.7);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 8px 8px 18px rgba(255, 87, 34, 0.35), -6px -6px 14px rgba(255, 255, 255, 0.8); }
.btn-primary:active { transform: translateY(2px); box-shadow: var(--shadow-pressed); }
.btn-secondary {
    background: var(--mz-chassis);
    color: var(--mz-text);
    box-shadow: var(--shadow-lift);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-floating); }
.btn-secondary:active { transform: translateY(2px); box-shadow: var(--shadow-pressed); }
.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* 3D Device */
.hero-device { flex: 1; max-width: 450px; display: flex; justify-content: center; }
.device-bezel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--mz-chassis);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-floating);
}
.device-screw {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8ccd4 0%, #a8adb6 50%, #d4d8e0 100%);
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.6), inset -1px -1px 2px rgba(0, 0, 0, 0.15), 1px 1px 3px rgba(0, 0, 0, 0.1);
}
.device-screw::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 1.5px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.3);
}
.device-screw-tl { top: 10px; left: 10px; }
.device-screw-tr { top: 10px; right: 10px; }
.device-screw-bl { bottom: 10px; left: 10px; }
.device-screw-br { bottom: 10px; right: 10px; }

.device-screen {
    width: 100%;
    height: 100%;
    background: var(--mz-dark);
    border-radius: 12px;
    box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.5), inset -2px -2px 6px rgba(255, 255, 255, 0.03);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.screen-scanlines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
}
.screen-readout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}
.readout-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255, 87, 34, 0.6);
    letter-spacing: 2px;
}
.sine-wave-container { width: 100%; height: 60px; }
#sineWaveCanvas { width: 100%; height: 100%; display: block; }
.readout-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--mz-accent);
    letter-spacing: 1px;
    min-height: 1.2em;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}
.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--mz-labels);
    opacity: 0.6;
}
.scroll-arrow {
    width: 2px;
    height: 20px;
    background: var(--mz-labels);
    opacity: 0.4;
    position: relative;
    animation: bounceDown 2s infinite;
}
.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--mz-labels);
    border-bottom: 2px solid var(--mz-labels);
}

/* ======== SECTION 2: THE MECHANICS ======== */
.mechanics-section {
    position: relative;
    padding: 100px 60px;
    background-color: var(--mz-chassis);
    overflow: hidden;
}
.mechanics-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
    z-index: 1;
}
.module-panel {
    flex: 1;
    padding: 40px 36px;
    border-radius: 20px;
    position: relative;
}
.module-crisis {
    background: var(--mz-recessed);
    box-shadow: var(--shadow-recessed);
}
.module-bridge {
    background: var(--mz-panel);
    box-shadow: var(--shadow-lift);
}
.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.panel-code {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--mz-accent);
    background: rgba(255, 87, 34, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}
.panel-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--mz-labels);
    letter-spacing: 1.5px;
}
.panel-heading {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--mz-text);
    margin-bottom: 14px;
}
.panel-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--mz-labels);
}

/* Pipe Connector */
.connector-pipe {
    width: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.connector-pipe::before {
    content: '';
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: var(--mz-recessed);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), inset 0 -1px 2px rgba(255, 255, 255, 0.5);
    position: absolute;
}
.pipe-flow {
    width: 20px;
    height: 6px;
    border-radius: 3px;
    background: var(--mz-accent);
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
    animation: pipeFlow 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

/* ======== SECTION 3: CORE MODULES ======== */
.modules-section {
    position: relative;
    padding: 100px 60px;
    background-color: var(--mz-chassis);
    overflow: hidden;
}
.modules-container { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }

.section-header-industrial {
    text-align: center;
    margin-bottom: 60px;
}
.section-code {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mz-accent);
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding: 6px 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-recessed);
    background: var(--mz-recessed);
}
.section-title-industrial {
    font-family: var(--font-headings);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--mz-text);
    text-shadow: 1px 1px 0px var(--mz-white);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.module-card {
    position: relative;
    background: var(--mz-chassis);
    border-radius: 20px;
    padding: 36px 28px 32px;
    box-shadow: var(--shadow-lift);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}
.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-floating);
}

/* Ventilation Slots */
.card-vents {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vent-slot {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--mz-recessed);
    box-shadow: inset 1px 1px 2px #babecc, inset -1px -1px 2px #ffffff;
}

/* Icon Housing */
.card-icon-housing {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--mz-recessed);
    box-shadow: var(--shadow-recessed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.card-icon {
    width: 26px;
    height: 26px;
    color: var(--mz-accent);
}
.card-title {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mz-text);
    margin-bottom: 10px;
    line-height: 1.4;
}
.card-desc {
    font-size: 0.9rem;
    color: var(--mz-labels);
    line-height: 1.7;
}

/* ======== SECTION 4: DASHBOARD ======== */
.dashboard-section {
    position: relative;
    padding: 100px 60px;
    background-color: var(--mz-chassis);
    overflow: hidden;
}
.dashboard-container { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }

.dashboard-chassis { margin-top: 10px; }
.chassis-border {
    border-radius: 24px;
    padding: 16px;
    background: var(--mz-chassis);
    box-shadow: var(--shadow-floating);
    border: 3px solid var(--mz-recessed);
}
.dashboard-display {
    position: relative;
    background: var(--mz-dark);
    border-radius: 16px;
    padding: 32px;
    overflow: hidden;
}
.display-scanlines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.3;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 0.8fr;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.dash-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
}
.dash-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--mz-accent);
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    opacity: 0.8;
}

/* Emotion Gauge */
.emotion-gauge { margin-top: 10px; }
.gauge-track {
    width: 100%;
    height: 14px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}
.gauge-fill {
    height: 100%;
    width: 30%;
    border-radius: 7px;
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e);
    transition: width 1.5s ease-out;
    position: relative;
}
.gauge-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--mz-white);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}
.gauge-label-crisis {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #ef4444;
    letter-spacing: 1px;
}
.gauge-label-regulated {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #22c55e;
    letter-spacing: 1px;
}

/* JIT Prompts */
.prompt-list { display: flex; flex-direction: column; gap: 12px; }
.prompt-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 87, 34, 0.05);
    border-radius: 8px;
    border-right: 2px solid rgba(255, 87, 34, 0.3);
}
.prompt-step {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--mz-accent);
    min-width: 20px;
}
.prompt-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Matchmaker */
.professional-list { display: flex; flex-direction: column; gap: 14px; }
.professional-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}
.online-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.led-green {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
.led-amber {
    background: #eab308;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.5);
}
.professional-info { display: flex; flex-direction: column; gap: 2px; }
.professional-name {
    font-size: 0.85rem;
    color: var(--mz-white);
    font-weight: 600;
}
.professional-role {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

/* Recessed Search Input */
.dash-search {
    margin-top: 20px;
    position: relative;
    z-index: 2;
}
.dash-input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.4), inset -4px -4px 8px rgba(50, 50, 50, 0.2);
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    direction: rtl;
    outline: none;
}

/* ======== SECTION 5: VISION ======== */
.vision-section {
    position: relative;
    padding: 120px 60px;
    background-color: var(--mz-chassis);
    overflow: hidden;
}
.blueprint-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 52, 54, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 52, 54, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}
.vision-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.vision-panel {
    background: var(--mz-panel);
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: var(--shadow-floating);
}
.vision-code {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--mz-accent);
    letter-spacing: 2px;
    margin-bottom: 28px;
    opacity: 0.7;
}
.vision-statement {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 700;
    color: var(--mz-text);
    line-height: 1.6;
    text-align: right;
}
.blink-cursor {
    color: var(--mz-accent);
    animation: cursorBlink 1s step-end infinite;
    font-weight: 400;
}

/* ======== SECTION 6: FOOTER / COMMUNICATION TERMINAL ======== */
.terminal-footer {
    position: relative;
    background: var(--mz-dark);
    color: var(--mz-white);
    padding: 80px 60px 0;
    overflow: hidden;
    z-index: 10;
}
.terminal-footer .footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    align-items: start;
}
.terminal-footer .footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}
.terminal-footer .footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mz-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 87, 34, 0.2);
    width: fit-content;
}

/* Profile Bezel */
.profile-bezel {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    padding: 4px;
    background: var(--mz-dark);
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.5), inset -3px -3px 6px rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
    overflow: hidden;
}
.profile-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-placeholder svg {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.2);
}
.profile-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}
.profile-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mz-white);
}

/* Footer Links */
.terminal-footer .footer-links li { margin-bottom: 12px; }
.terminal-footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
}
.terminal-footer .footer-links a:hover { color: var(--mz-accent); padding-right: 5px; }

/* Footer Contact */
.footer-contact-item { margin-bottom: 16px; }
.footer-contact-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.footer-contact-value {
    color: var(--mz-white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-decoration: none;
    display: inline-block;
}
.footer-contact-value:hover { color: var(--mz-accent); }

.data-port {
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3), inset -2px -2px 4px rgba(255, 255, 255, 0.03);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}
.btn-tactile-small {
    padding: 8px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), -2px -2px 5px rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.btn-tactile-small:hover { box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.35), -3px -3px 6px rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
.btn-tactile-small:active { box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.3), inset -2px -2px 5px rgba(255, 255, 255, 0.04); transform: translateY(1px); }

/* Emergency WhatsApp Button */
.emergency-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 28px 20px;
    border-radius: 16px;
    background: var(--mz-accent);
    color: var(--mz-white);
    text-decoration: none;
    box-shadow: 6px 6px 16px rgba(255, 87, 34, 0.35), -4px -4px 10px rgba(255, 140, 80, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}
.emergency-btn:hover { filter: brightness(1.1); transform: translateY(-3px); box-shadow: 8px 8px 22px rgba(255, 87, 34, 0.4), -6px -6px 14px rgba(255, 140, 80, 0.2); }
.emergency-btn:active { transform: translateY(4px); box-shadow: inset 6px 6px 12px rgba(200, 50, 10, 0.4), inset -4px -4px 8px rgba(255, 150, 100, 0.15); }
.emergency-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 6px;
}
.emergency-number {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.emergency-sublabel {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.75;
    margin-top: 6px;
}

/* Footer Bottom */
.terminal-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 25px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}
.footer-bottom-links a:hover { color: var(--mz-white); }

/* ======== KEYFRAMES ======== */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}
@keyframes ledPulse {
    0%, 100% { box-shadow: 0 0 10px 2px rgba(255, 87, 34, 0.6); }
    50% { box-shadow: 0 0 16px 4px rgba(255, 87, 34, 0.9); }
}
@keyframes pipeFlow {
    0% { transform: translateX(-30px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(30px); opacity: 0; }
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ======== RESPONSIVE — MOBILE (768px) ======== */
@media (max-width: 768px) {
    .nexus-header { padding: 15px 20px; }
    .header-logo img { height: 32px; }
    .menu-text { display: none; }
    .menu-toggle { padding: 6px 10px; }
    .nav-link { font-size: 1.8rem; }
    .menu-footer { flex-direction: column; gap: 15px; text-align: center; bottom: 30px; }

    /* Hero */
    .hero-console { padding: 100px 24px 60px; min-height: auto; }
    .hero-content { flex-direction: column; gap: 40px; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-cta-group { justify-content: center; }
    .btn-tactile { padding: 14px 28px; font-size: 0.95rem; }
    .hero-device { max-width: 320px; }
    .status-indicator { margin-left: auto; margin-right: auto; }
    .scroll-indicator { display: none; }

    /* Mechanics */
    .mechanics-section { padding: 60px 24px; }
    .mechanics-container { flex-direction: column; gap: 0; }
    .connector-pipe {
        width: 100%;
        min-width: 100%;
        height: 50px;
        min-height: 50px;
    }
    .connector-pipe::before {
        width: 12px;
        height: 100%;
        border-radius: 6px;
    }
    .pipe-flow {
        width: 6px;
        height: 20px;
        border-radius: 3px;
        animation-name: pipeFlowVert;
    }

    /* Modules */
    .modules-section { padding: 60px 24px; }
    .section-title-industrial { font-size: 1.8rem; }
    .modules-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Dashboard */
    .dashboard-section { padding: 60px 24px; }
    .dashboard-display { padding: 20px 16px; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Vision */
    .vision-section { padding: 80px 24px; }
    .vision-panel { padding: 36px 28px; }
    .vision-statement { font-size: 1.4rem; }

    /* Footer */
    .terminal-footer { padding: 60px 24px 0; }
    .terminal-footer .footer-container { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .terminal-footer .footer-col { align-items: center; text-align: center; }
    .terminal-footer .footer-col h4 { margin: 0 auto 20px auto; }
    .terminal-footer .footer-links a:hover { padding-right: 0; }
    .emergency-btn { padding: 24px 16px; }
    .emergency-number { font-size: 1.2rem; }
    .terminal-footer .footer-bottom { flex-direction: column; gap: 15px; }
}

@keyframes pipeFlowVert {
    0% { transform: translateY(-20px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* ======== RESPONSIVE — TABLET (1024px) ======== */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-console { padding: 100px 40px 80px; }
    .hero-title { font-size: 2.8rem; }
    .hero-device { max-width: 360px; }
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .matchmaker-panel { grid-column: 1 / -1; }
    .terminal-footer .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
    .vision-panel { padding: 48px 36px; }
    .vision-statement { font-size: 1.7rem; }
}